add this line into xxx.opf (ex. content.opf)
<item id="cover" href="PATH/cover.jpg" media-type="image/jpeg" properties="cover-image"/>
add this line into xxx.opf (ex. content.opf)
<item id="cover" href="PATH/cover.jpg" media-type="image/jpeg" properties="cover-image"/>
1. pactl error in crontab script
**** XDG_RUNTIME_DIR=/run/user/$(id -u) /path/to/script
pactl 是用來 heartBeat bluetooth speaker 的, 因為15min不用會入睡, 既不想站起來按一下, 也不想設為永遠不入睡, 只好寫了個 heartBeat scrip, 每10min就 pactl set 一下
...原以為因為是這樣才不入睡的, 結果過去幾天都fail還是沒入睡?
2. headphone volume control fail
in /etc/pulse/default.pa
load-module module-udev-detect ignore_dB=1 -> for MM-1 volume control problem
but this option make headphone volume control fail
2023/07/24 update, alsamix -> headphone volume increase to normal
load-module module-alsa-sink control=PCM
3. microphone
/etc/pulse/default.pa set-source-volume 1 300000
/etc/pulse/daemon.conf avoid-resampling = yes
4. restart pulseaudio
pulseaudio -k pulseaudio --start
1. prepare
apt install python3-bluez
2. for python 3.10
pip install git+https://github.com/pybluez/pybluez
3. about battery
PauseAudio enable Battery info in 2022 (?)
pactl list cards | grep battery will show battery percentage
also show in /var/log/syslog like this
pulseaudio[1226]: Battery Level: 100%
for unknown periods
2023/01/07 modified : ignore anything about "-E" or Experimental option, don't care about complain in syslog, just look syslog, or "pactl list cards" to get battery level
with "-E" option, or use blueman "battery option" , the red power indicator always show on indicator area, anonnying!
and it complain about "Could not find org.bluez.BatteryProviderManager1.RegisterBatteryProvider(), is bluetoothd started with experimental features enabled (-E flag)?" even if modify daemon script to start with -E.
sudo vi /etc/systemd/system/bluetooth.target.wants/bluetooth.service
sudo systemctl daemon-reload
sudo systemctl restart bluetooth
the battery report seems related to this "-E flag", not sure
先去抓 vmware bundle (好煩)
裝好了會遇到 vmmon vmnet install fail
去 https://github.com/mkubecek/vmware-host-modules/tags 抓
make, sudo make install
然後 vmware 還是 fail (夠煩的)
說是找不到 version.h
在 /usr/include/linux/version.h 啦, copy 到 vmware 以為的path, 然後就可以了