Quote:
Originally Posted by geek1011
Yes, and for the audiobook and notebook stuff, in the next release (as soon as I have enough time to work on it).
|
Did you make any headway with controlling bluetooth? Hit a road block?
About a month ago I messed with toggling Bluetooth with NickelMenu. I found that I could use bluetoothctl to turn it on and off but ONLY if I first turn it on in the Libra 2's menu options. Unfortunately it also turns off when the device goes to sleep. I ended up with this menu, which tells me to go turn it on before it will work:
Code:
menu_item :reader :Bluetooth (toggle) :cmd_output :500 :quiet :/sbin/lsmod |/bin/grep uhid || /sbin/insmod /mnt/onboard/.adds/kobo-libra2-uhid-module/uhid.ko
chain_success:skip:2
chain_failure :dbg_toast :problem installing uhid module
chain_always:skip:-1
chain_success :cmd_output :500 :quiet :/bin/bluetoothctl list |/bin/grep -q Kobo
chain_success:skip:2
chain_failure :dbg_toast :please start bluetooth from settings
chain_always:skip:-1
chain_success :cmd_output :500 :quiet :/bin/bluetoothctl show |/bin/grep -q "Powered: no"
chain_success:skip:3
chain_failure :cmd_output :1500 :quiet :/bin/bluetoothctl power off
chain_success :dbg_toast :bluetooth turned off
chain_always:skip:-1
chain_success :cmd_output :1500 :quiet :/bin/bluetoothctl power on
chain_success :dbg_toast :bluetooth turned on
If it goes to sleep while reading a book, it takes me 9 screen taps to turn on bluetooth (including a few seconds' wait for it to connect) and return to the book.
On a more fully built Linux system I would use rfkill to enable the BT antenna, but that's not available here.
I'm hoping maybe a write to the /proc filesystem will effect the BT toggle. At the very least it would be nice to have a NickelMenu option to jump directly to the native menu options so I can skip about half of the screen taps.
PS:, I ended up using NiLuJe's tools to load the uhid module on startup so my current NickelMenu setup skips that part.