Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 02-19-2025, 10:53 AM   #16
AsherMaximum
Member
AsherMaximum began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jan 2025
Device: Kobo Libra 2
Quote:
Originally Posted by remlap View Post
Dark mode is not my concern now it's a Bluetooth enabled or disabled.
Yeah, that one I've got no idea on.
There's this option in NM:

Code:
#nickel_bluetooth   - one of:
#        enable   (4.34.20097+)
#        disable  (4.34.20097+)
#        toggle   (4.34.20097+)
#        check    (4.34.20097+)
#        scan     (4.34.20097+)
I don't know what "check" does though, or how it would proceed through the chain_success/chain_failure.

Should be easy enough to determine though with some experimentation though.
AsherMaximum is offline   Reply With Quote
Old 02-19-2025, 06:08 PM   #17
remlap
Connoisseur
remlap began at the beginning.
 
Posts: 55
Karma: 10
Join Date: Jun 2010
Device: none
Check brings up a popup showing Bluetooth status enabled or disabled.
remlap is offline   Reply With Quote
Old 03-05-2025, 03:39 PM   #18
remlap
Connoisseur
remlap began at the beginning.
 
Posts: 55
Karma: 10
Join Date: Jun 2010
Device: none
Code:
#
## Bluetooth Toggle Menu
menu_item       :   main        :   Enable Bluetooth        :   nickel_bluetooth            :   toggle
    chain_success               :   cmd_spawn               :   quiet           :   sed -i '/^## Bluetooth Toggle Menu/ { n; s/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1Disable Bluetooth \2/ }' /mnt/onboard/.adds/nm/menu
    chain_failure               :   cmd_spawn               :   quiet           :   sed -i '/^## Bluetooth Toggle Menu/ { n; s/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1Enable Bluetooth \2/ }' /mnt/onboard/.adds/nm/menu
#

Why wont this work for me
remlap is offline   Reply With Quote
Old 03-06-2025, 11:29 PM   #19
AsherMaximum
Member
AsherMaximum began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jan 2025
Device: Kobo Libra 2
Quote:
Originally Posted by remlap View Post
Code:
#
## Bluetooth Toggle Menu
menu_item       :   main        :   Enable Bluetooth        :   nickel_bluetooth            :   toggle
    chain_success               :   cmd_spawn               :   quiet           :   sed -i '/^## Bluetooth Toggle Menu/ { n; s/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1Disable Bluetooth \2/ }' /mnt/onboard/.adds/nm/menu
    chain_failure               :   cmd_spawn               :   quiet           :   sed -i '/^## Bluetooth Toggle Menu/ { n; s/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1Enable Bluetooth \2/ }' /mnt/onboard/.adds/nm/menu
#

Why wont this work for me
Because the bluetooth toggle will always succeed, so it will only ever go down the success chain

You could setup something that greps for "Enable bluetooth", and if it finds it, use nickel_bluetooth: enable, then use sed to change it to Disable Bluetooth.
If grep doesn't find it, use nickel_bluetooth:disable, and use sed to change the "Disable Bluetooth" to "Enable Bluetooth".

Not perfect though, as it still has no way of knowing if bluetooth is currently on or off. But, since you're not using the toggle this way, if the menu says "Disable bluetooth" and bluetooth is already off, clicking on it will just turn it off again.

What you might want to test though is if bluetooth is off, and you use turn it off again with nickelmenu, does it go down the success chain or the failure chain?
AsherMaximum is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting Labels Ernstig Calibre 2 08-19-2024 05:10 AM
Deleting Labels Ernstig Calibre 1 02-19-2023 11:09 AM
working with text labels Fynjisx Calibre 5 08-26-2022 07:20 AM
Mac Labels Lonniec3 Calibre 1 09-21-2012 01:39 PM
K3 Keyboard Labels clintbradford Amazon Kindle 10 08-28-2010 03:14 AM


All times are GMT -4. The time now is 11:21 AM.


MobileRead.com is a privately owned, operated and funded community.