2026年6月16日 星期二

audio related problem (2) pipewire/wireplumber with usb DAC

 Ubuntu 26.04 用 pipewire/wireplumber  for audio, 那以前為了 usb speaker MM-1 音量問題設的
/etc/pulse/default.pa
load-module module-udev-detect ignore_dB=1

要怎麼改? google / try error -> result

--------------------------------
add in /usr/share/wireplumber/wireplumber.conf.d/alsa-vm.conf

  {  matches = [ { device.name = "alsa_card.usb-Bowers___Wilkins_MM-1_304-00"  }  ]
     actions = { update-props = { api.alsa.ignore-dB = true }  }  },

  {  matches = [  { node.name = "~bluez_output.*" } ]
     actions = { update-props = { api.alsa.ignore-dB = false } }  },

第一段是呼應以前的 ignore_dB=1, 然而, 明明 device.name 都寫明了, 還是會影響到 bluetooth speaker, 加了第二段就 OK,很怪, 但有用就好

#device name 是用 pactl list short cards 得來的

------------------------------------
另外,usb speaker 有時會破音和奇怪的噪音,google 來修改
/usr/share/pipewire/pipewire.conf
default.clock.allowed-rates = [ 44100 48000 ]

好像有用?

2026年6月14日 星期日

adb start google tv to play recorded files via samba

 adb shell am start -a android.intent.action.VIEW -d 'smb://10.42.0.1/1recording/news.ts'

this will start 'default' video player for ts file, MXPlayer in my case

on ONN 4K , it work fine, but on google TV streamer 4K with lan port, only audio, no video,

-> choose 'soft decode' , then , fine

2026年6月10日 星期三

install Ubuntu Mate 25.10 and upgrade to 26.04

 Ubuntu mate 沒有 26.04 了, 好傷心

本來想認命的放棄 mate, 但原來一些自動化script 在用的 xdotool/xrandr/wmctrl 都要找代替品, 有點煩, 所以想說先裝 Ubuntu 25.10 , 用到幾時算幾時,結果一裝完它就問要不要升級到26.04,對喔,可以這樣玩。

1. 可以整個 copy 的config :
/var/lib/bluetooth : 藍牙設備可以被視為同一台,不用重連
.config/[browsers] browser history/bookmark 全部重現
.android : adb devices 也是被當成同一台
.config/VirtualBox, .config/calibre
.themes 桌面重現

2. python 從 3.10 -> 3.14, 討厭的就是很多不讓你從 pip install, 改用 apt install python3-xxx, 然後 google-genai 沒有這個選項, 只好在 pip3 install 時加個 --break-system-packages

3. on board sound 終於回來了, 當年討厭它, 不知改了什麼完全disable掉 =_=|||

4. wifi hotspot 2.4G 可用了, 速度也OK, kindle oasis 可以連了,但想起來為什麼當初要改用 5G頻段 : 會干擾 bluetooth speaker

目前為止的問題:

1. workspace switcher 比例不對, 尤其是 panel 放在左右兩邊時
2. 會Hang, 不知為啥...