View Single Post
Old 09-15-2023, 10:35 AM   #1115
-stepan-
Enthusiast
-stepan- ought to be getting tired of karma fortunes by now.-stepan- ought to be getting tired of karma fortunes by now.-stepan- ought to be getting tired of karma fortunes by now.-stepan- ought to be getting tired of karma fortunes by now.-stepan- ought to be getting tired of karma fortunes by now.-stepan- ought to be getting tired of karma fortunes by now.-stepan- ought to be getting tired of karma fortunes by now.-stepan- ought to be getting tired of karma fortunes by now.-stepan- ought to be getting tired of karma fortunes by now.-stepan- ought to be getting tired of karma fortunes by now.-stepan- ought to be getting tired of karma fortunes by now.
 
Posts: 38
Karma: 2136610
Join Date: Apr 2021
Location: Ukraine
Device: Kobo Mini, Kobo Nia
Quote:
Originally Posted by John F View Post
This is what I did to toggle dark mode and set a light level:

Code:
   menu_item :reader   :Dark Mode On       :nickel_setting     :enable :dark_mode
                         chain_always :cmd_spawn : ioctl /dev/ntx_io 241 -v 10
   menu_item :reader   :Dark Mode Off       :nickel_setting    :disable :dark_mode
                         chain_always :cmd_spawn : ioctl /dev/ntx_io 241 -v 30
and it works.

I get 2 messages when I click on an entry. I tried getting rid of the messages by using ":quiet", but then the light level was set and I didn't get the messages, but dark mode was not turned on/off. How can I make these quiet?

Thank you.
Wow! It's what i want Thank you!

Some edit for me:
menu_item :reader :Frontlight On :nickel_setting :disable:dark_mode
chain_always :cmd_spawn : ioctl /dev/ntx_io 241 -v 18
menu_item :reader :Frontlight Off :nickel_setting :disable :dark_mode
chain_always :cmd_spawn : ioctl /dev/ntx_io 241 -v 0

Ok, i don't need Dark Mode, but if it's the only possible option to simply turn on the frontklight to 18% and turn it off altogether, without using the slider, then so be it. Kobo Nia work fine
-stepan- is offline   Reply With Quote