Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-15-2023, 07:53 AM   #1111
hatuluang
Teluk Biru
hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.
 
hatuluang's Avatar
 
Posts: 154
Karma: 348662
Join Date: Jan 2023
Device: Kobo Clara 2E
I'm sorry, I'm not a tech guy,

I think without Nickelmenu, you still need to reboot your device after
you tick/toggle on Invert at Reading setting.

The reboot will update ".kobo/Kobo/Kobo eReader.conf" since the
"InvertScreen=false" when you are in normal mode. Your device needs a reboot to update Kobo eReader.conf (to become "InvertScreen=true")

That's why we need NM to make the process easy.

Last edited by hatuluang; 09-15-2023 at 08:08 AM.
hatuluang is offline   Reply With Quote
Old 09-15-2023, 08:22 AM   #1112
asettico
Member
asettico began at the beginning.
 
asettico's Avatar
 
Posts: 16
Karma: 10
Join Date: May 2019
Device: Kobo Aura ONE
Quote:
Originally Posted by hatuluang View Post
I think without Nickelmenu, you still need to reboot your device after you tick/toggle on Invert at Reading setting.
Before I installed NM the very first time, that path worked without need to reboot, I simply changed the option and the effect was visible since closing the setting page.

Now that I installed and uninstalled NM, the behavior is no more the original one.
asettico is offline   Reply With Quote
Old 09-15-2023, 08:44 AM   #1113
John F
Grand Sorcerer
John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.
 
Posts: 7,941
Karma: 70766125
Join Date: Feb 2009
Device: Kobo Clara 2E
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.
John F is offline   Reply With Quote
Old 09-15-2023, 08:55 AM   #1114
hatuluang
Teluk Biru
hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.
 
hatuluang's Avatar
 
Posts: 154
Karma: 348662
Join Date: Jan 2023
Device: Kobo Clara 2E
Quote:
Originally Posted by asettico View Post
Before I installed NM the very first time, that path worked without need to reboot, I simply changed the option and the effect was visible since closing the setting page.
But before that, you made changes manually to Kobo eReader.conf (InvertScreen=true) before using the patch (thick invert) in order to make the invert work. Isn't?

Last edited by hatuluang; 09-15-2023 at 10:05 AM.
hatuluang is offline   Reply With Quote
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
Old 09-15-2023, 10:38 AM   #1116
hatuluang
Teluk Biru
hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.
 
hatuluang's Avatar
 
Posts: 154
Karma: 348662
Join Date: Jan 2023
Device: Kobo Clara 2E
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.
Hi, I tried to change a bit with toggle options to only have one command as below:

Code:
menu_item :reader   :Dark Mode on/off     :nickel_setting :toggle :dark_mode
     chain_success :cmd_spawn : ioctl /dev/ntx_io 241 -v 10
     chain_success :skip :2
     chain_failure :dbg_toast :Dark Mode switch!
     chain_always :cmd_spawn : ioctl /dev/ntx_io 241 -v 30
It works, hope that the syntax is correct.

Note:
- the slider indicator didn't move according to the level of brightness setup.

Last edited by hatuluang; 09-15-2023 at 11:03 AM.
hatuluang is offline   Reply With Quote
Old 09-15-2023, 10:41 AM   #1117
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by asettico View Post
Before I installed NM the very first time, that path worked without need to reboot, I simply changed the option and the effect was visible since closing the setting page.

Now that I installed and uninstalled NM, the behavior is no more the original one.
If you open the Kobo config file, .kobo/Kobo/Kobo eReader.conf in a good text editor (e.g. Notepad++ on Windows) I think you'll probably find that you have 2 lines with InvertScreen=true (or false).

One of them is left over from your experiments with NM so you need to manually delete it. I think it's the one which appears under the [FeatureSettings] section header.

The old patch (which you want to go back to) was a bit of a hack which worked by replacing one of the rarely used options which gets stored under the [Reading] section header in the config file. I think this is the one you need to keep.

If that doesn't work manually delete all InvertScreen lines and after rebooting the Kobo go back to Settings to start again.
jackie_w is offline   Reply With Quote
Old 09-15-2023, 10:52 AM   #1118
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by hatuluang View Post
Hi,
To do invert, I think you should reboot your device to make it work.

I use the below command in nickelmmenu configuration:

menu_item :main :Invert :nickel_setting :toggle :invert
chain_success :nickel_orientation :swap

the invert works without rebooting the device, but you should set again your portrait/landscape mode.

the other command is below and it will reboot your device in order to do the invert:

menu_item :main :Invert :nickel_setting :toggle :invert
chain_success ower :reboot (edit colon power :reboot)

Hope it helps.
Put your code in a code block and you;ll get the correct spaces and no smileys.
JSWolf is online now   Reply With Quote
Old 09-15-2023, 11:05 AM   #1119
hatuluang
Teluk Biru
hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.
 
hatuluang's Avatar
 
Posts: 154
Karma: 348662
Join Date: Jan 2023
Device: Kobo Clara 2E
Quote:
Originally Posted by JSWolf View Post
Put your code in a code block and you;ll get the correct spaces and no smileys.
thanks!
hatuluang is offline   Reply With Quote
Old 09-15-2023, 11:24 AM   #1120
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by -stepan- View Post
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
This is all you need.
Code:
menu_item : reader : Frontlight On : cmd_spawn : ioctl /dev/ntx_io 241 -v 18
menu_item : reader : Frontlight Off : cmd_spawn : ioctl /dev/ntx_io 241 -v 0

Last edited by JSWolf; 09-15-2023 at 11:58 AM.
JSWolf is online now   Reply With Quote
Old 09-15-2023, 12:17 PM   #1121
akadaedalus
Enthusiast
akadaedalus began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Jun 2008
Device: Sony PRS-500
Quote:
Originally Posted by John F View Post
I'm not looking for a direct control thru NM, or the GUI to be accurate, but the talk of sysfob and ioctl and this post:

Quote:
Originally Posted by akadaedalus
That worked great for the front light, thank you.
Seems to the lay person that it can be done?
Having been quoted here I'm going to say this isn't quite the "layperson" activity, I have worked with similar operating systems in the past, and have been a software developer of some number of decades.

This is a YMMV situation. It may or may not work for your particular device. I do just fine with gestures on my Kobo Libra 2.

I was only trying to do something else with ioctl and adjusting the frontlight setting was a quick way to test its functionality. Alas bluetooth is much, much more complicated.
akadaedalus is offline   Reply With Quote
Old 09-15-2023, 12:26 PM   #1122
-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 JSWolf View Post
This is all you need.
Code:
menu_item : reader : Frontlight On : cmd_spawn : ioctl /dev/ntx_io 241 -v 18
menu_item : reader : Frontlight Off : cmd_spawn : ioctl /dev/ntx_io 241 -v 0
Thanks! It's perfect work for me.
-stepan- is offline   Reply With Quote
Old 09-15-2023, 12:52 PM   #1123
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by -stepan- View Post
Thanks! It's perfect work for me.
I changed the value to what I want. I knew there had to be a way to run a command on it's own.

Glad it works. It's just what I want as well.
JSWolf is online now   Reply With Quote
Old 09-15-2023, 05:40 PM   #1124
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,750
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
@-stepan- try the following code. If I am correct, it will not display the code number.

Code:
menu_item : reader : Frontlight On : cmd_spawn : quiet :ioctl /dev/ntx_io 241 -v 18
menu_item : reader : Frontlight Off : cmd_spawn : quiet : ioctl /dev/ntx_io 241 -v 0
JSWolf is online now   Reply With Quote
Old 09-15-2023, 06:49 PM   #1125
John F
Grand Sorcerer
John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.John F ought to be getting tired of karma fortunes by now.
 
Posts: 7,941
Karma: 70766125
Join Date: Feb 2009
Device: Kobo Clara 2E
Quote:
Originally Posted by akadaedalus View Post
Having been quoted here I'm going to say this isn't quite the "layperson" activity, I have worked with similar operating systems in the past, and have been a software developer of some number of decades.

This is a YMMV situation. It may or may not work for your particular device. I do just fine with gestures on my Kobo Libra 2.

I was only trying to do something else with ioctl and adjusting the frontlight setting was a quick way to test its functionality. Alas bluetooth is much, much more complicated.
I was referring to myself as a layperson (not you).
John F is offline   Reply With Quote
Reply

Tags
kobo, launcher, ldpreload, nickel


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo eReaders and Heat PeterT Kobo Reader 13 08-02-2014 04:35 AM
kobo arc launcher not working lana loves books Kobo Tablets 8 03-21-2014 06:40 AM
Orginization on kobo ereaders crochetgeek2010 Kobo Reader 7 09-03-2013 02:13 PM
Kobo Announces eReaders Available for Purchase on Kobo.com in Canada and US markemark News 1 04-02-2013 01:46 PM
Ereaders with Integrated Dictionary poohbear_nc Which one should I buy? 4 04-08-2010 06:42 AM


All times are GMT -4. The time now is 07:26 PM.


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