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-14-2023, 01:21 PM   #1096
ccadi
Alive'n'Reading
ccadi is on a distinguished road
 
Posts: 43
Karma: 70
Join Date: Dec 2008
Location: uk
Device: Kobo Libra H20, Kobo Libra 2, Paperwhite 5 SE
Quote:
Originally Posted by Aleron Ives View Post
For those of us who want to control the frontlight via NIckelMenu, that would be just fine. I just want to toggle it between off and on at my preferred setting depending on whether I'm reading during the day or at night, so I'd be perfectly happy to not mess with or even look at the UI sliders anymore.
I use gestures to do this
ccadi is offline   Reply With Quote
Old 09-14-2023, 04:57 PM   #1097
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,542
Karma: 67891011
Join Date: Feb 2009
Device: Kobo Clara 2E
Quote:
Originally Posted by DNSB View Post
Jon, did you read message #1089 and the information in the link in that message? The message immediately before the one you quoted.

To save you the trouble of scanning back a few messages:
Some of us (or maybe just me) have trouble following some of the technical posts. From your quote, it sounds like light control can be set using NickelMenu and ioctl and sysfs? Could some example NickleMenu entries be given?

Thanks.
John F is offline   Reply With Quote
Advert
Old 09-14-2023, 05:05 PM   #1098
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 40,549
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by John F View Post
Some of us (or maybe just me) have trouble following some of the technical posts. From your quote, it sounds like light control can be set using NickelMenu and ioctl and sysfs? Could some example NickleMenu entries be given?
To quote the last informative message from pgaskin in the thread mentioned by @NiLuJe:

Quote:
Update: this segfault actually happens for the brightness too ... I've decided not to implement this for now, and not for the next while (unless I suddenly realize why), as it's too intermittently buggy, it will be the most complex action, and I don't think it's worth the hassle. In addition, even if I did manage to get it working, I wouldn't be confident that it works completely, much less that it works on all firmware versions supported by NickelMenu.
Basically, this says that no, there are no light control settings in NickelMenu since the work on setting colour temperature and light brightness consistently ran into segfaults. Patrick decided that he could not implement the action reliably and over multiple firmware versions. The game wasn't worth the candle.
DNSB is offline   Reply With Quote
Old 09-14-2023, 05:18 PM   #1099
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,542
Karma: 67891011
Join Date: Feb 2009
Device: Kobo Clara 2E
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 View Post
That worked great for the front light, thank you.
Seems to the lay person that it can be done?
John F is offline   Reply With Quote
Old 09-14-2023, 05:45 PM   #1100
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 40,549
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
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:

Seems to the lay person that it can be done?
Did you look at Jérôme Pouiller's IOCTL page on GitHub? Pay special attention to the line that reads: The missing tool to call arbitrary ioctl on devices.

At some point, pgaskin might add the ioctl binary to the NickelMenu install but given how busy he has been for the last while, I wouldn't hold my breath waiting.
DNSB is offline   Reply With Quote
Advert
Old 09-14-2023, 06:02 PM   #1101
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Kobo ships the ioctl binary, we've already had the discussion (possibly in this very thread) with the very same people (namely, Jon) with example code.

EDIT: Yup. (See surrounding pages (~65) for context and more examples)

Last edited by DNSB; 09-14-2023 at 06:07 PM.
NiLuJe is offline   Reply With Quote
Old 09-14-2023, 06:09 PM   #1102
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 40,549
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by NiLuJe View Post
Kobo ships the ioctl binary, we've already had the discussion (possibly in this very thread) with the very same people (namely, Jon) with example code.

EDIT: Yup. (See surrounding pages (~65) for context and more examples)
I noticed the reference to Jérôme Pouiller's ioctl implementation and made the assumption Kobo's version did not support some of the needed code. My bad.
DNSB is offline   Reply With Quote
Old 09-14-2023, 06:59 PM   #1103
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,542
Karma: 67891011
Join Date: Feb 2009
Device: Kobo Clara 2E
Quote:
Originally Posted by NiLuJe View Post
Turns out it's https://github.com/jerome-pouiller/ioctl .

So, my example above is as simple as `ioctl /dev/ntx_io 241 -v 0` (I *think* the WiFi/BT power stuff also takes a value, not a pointer, but I'm in no position to double-check right now).
So all I need in NM is 2 lines:

Code:
ioctl /dev/ntx_io 241 -v 0
ioctl /dev/ntx_io 241 -v some-number
The first line to turn off the front line and the second line to set it to some light level? But where are the labels for the menu entries?

I appreciate the "teach someone to fish, ..." philosophy, but sometimes you have to give them the fish.
John F is offline   Reply With Quote
Old 09-14-2023, 07:08 PM   #1104
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Quote:
Originally Posted by DNSB View Post
I noticed the reference to Jérôme Pouiller's ioctl implementation and made the assumption Kobo's version did not support some of the needed code. My bad.
No worries, I think I followed the exact same train of thought at the time, until I actually sat down and tried it on a device ;p.
NiLuJe is offline   Reply With Quote
Old 09-14-2023, 07:10 PM   #1105
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Quote:
Originally Posted by John F View Post
The first line to turn off the front line and the second line to set it to some light level? But where are the labels for the menu entries?
The range is [0, 100].

I can't speak for the NM-specific bits as I don't know the syntax off the top of my head, and cannot test it readily as I don't actually run Nickel most of the time .

Something based on cmd_spawn ought to do the trick, though.
NiLuJe is offline   Reply With Quote
Old 09-14-2023, 07:20 PM   #1106
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,542
Karma: 67891011
Join Date: Feb 2009
Device: Kobo Clara 2E
Quote:
Originally Posted by NiLuJe View Post
The range is [0, 100].

I can't speak for the NM-specific bits as I don't know the syntax off the top of my head, and cannot test it readily as I don't actually run Nickel most of the time .

Something based on cmd_spawn ought to do the trick, though.
Thank you. I'll give it try.

I actually want two menu entries:

set dark mode true AND set the light level to a value
Set dark mode false AND set the light level to a different value

I think I can work my way through that.
John F is offline   Reply With Quote
Old 09-14-2023, 08:10 PM   #1107
Aleron Ives
Wizard
Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.
 
Posts: 1,429
Karma: 16297052
Join Date: Sep 2022
Device: Kobo Libra 2
Based on the KOReader code, it looks like you can also do something like:

echo 10 > /sys/class/backlight/mxc_msp430.0/brightness

to set the backlight to 10% and:

echo 5 > /sys/class/backlight/lm3630a_led/color

to set the warmth to 50% on the Libra 2. Older devices require the ioctl method, though, and I haven't actually tried this yet.
Aleron Ives is offline   Reply With Quote
Old 09-14-2023, 11:41 PM   #1108
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: 76,438
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
delete post

Last edited by JSWolf; 09-14-2023 at 11:44 PM.
JSWolf is offline   Reply With Quote
Old 09-15-2023, 07:28 AM   #1109
asettico
Member
asettico began at the beginning.
 
asettico's Avatar
 
Posts: 14
Karma: 10
Join Date: May 2019
Device: Kobo Aura ONE
Hello all,
after uninstalling NM, redoing a fresh firmware installation, and applying some patches, including "Replace adobe page numbers toggle with invert screen", I can see the new setting, but it does not work anymore.
Manually editing the setting inside ".kobo/Kobo/Kobo eReader.conf" works.
What can I do to regain the right behavior?
Thanks for any hint.
asettico is offline   Reply With Quote
Old 09-15-2023, 08:14 AM   #1110
hatuluang
Zealot
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: 145
Karma: 348662
Join Date: Jan 2023
Location: Indonesia
Device: Kobo Clara 2E
Hi,
To do invert, I think you should reboot your device to make it work.

I use the below command in nickelmmenu configuration:
Code:
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:
Code:
menu_item :main     :Invert             :nickel_setting :toggle :invert
     chain_success  :power :reboot (edit colon power :reboot)
Hope it helps.

Last edited by hatuluang; 09-18-2023 at 03:44 PM. Reason: Added code block to get rid of smiley
hatuluang 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 05:35 AM
kobo arc launcher not working lana loves books Kobo Tablets 8 03-21-2014 07:40 AM
Orginization on kobo ereaders crochetgeek2010 Kobo Reader 7 09-03-2013 03:13 PM
Kobo Announces eReaders Available for Purchase on Kobo.com in Canada and US markemark News 1 04-02-2013 02:46 PM
Ereaders with Integrated Dictionary poohbear_nc Which one should I buy? 4 04-08-2010 07:42 AM


All times are GMT -4. The time now is 09:37 AM.


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