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 01-13-2023, 09:32 PM   #931
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,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@akadaedalus: That unfortunately depends on the device, and this only affects powering up/down the chip, which is only less than half the battle (and apparently, doing it wrong breaks Nickel's own handling of it, c.f., https://github.com/koreader/koreader...r.sh#L192-L206 which successfully kills it, but apparently kills it for good ).

c.f., arch/arm/mach-imx/imx_ntx_io.c (or similar, moves around depending on the kernel).
Code:
#define CM_BLUETOOTH_PWR 126
(I haven't looked into this any further)

EDIT: There's a /bin/ioctl binary on Kobo FW, but I have no idea of its provenance and whether it deals sanely w/ by-reference vs. by-value ioctl shenanigans...

Last edited by NiLuJe; 01-13-2023 at 09:36 PM.
NiLuJe is offline   Reply With Quote
Old 01-19-2023, 06:05 PM   #932
gogu1904
Connoisseur
gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.
 
Posts: 80
Karma: 2112464
Join Date: May 2019
Device: Kobo Aura One LE
May I write a menu label split on more lines? I mean, I would like to force a menu label with higher vertical spacing. I tried with the usual \n \r but they are not interpreted as such. Thank you!
gogu1904 is offline   Reply With Quote
Old 01-20-2023, 01:30 PM   #933
akadaedalus
Enthusiast
akadaedalus began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Jun 2008
Device: Sony PRS-500
Quote:
Originally Posted by NiLuJe View Post
@akadaedalus: That unfortunately depends on the device, and this only affects powering up/down the chip, which is only less than half the battle (and apparently, doing it wrong breaks Nickel's own handling of it, c.f., https://github.com/koreader/koreader...r.sh#L192-L206 which successfully kills it, but apparently kills it for good ).

EDIT: There's a /bin/ioctl binary on Kobo FW, but I have no idea of its provenance and whether it deals sanely w/ by-reference vs. by-value ioctl shenanigans...
If you think it's non-trivial, and I had suspected that it would be device dependent, I guess I'm not going to be able to come up with an elegant solution. I guess it will have to wait until I have more time to beat my head against the wall.

I looked at the ioctl binary and was stymied by the arguments which didn't really match other examples I found. I think you have to pass data to STDIN.

Thanks for the tips!
akadaedalus is offline   Reply With Quote
Old 01-20-2023, 06:02 PM   #934
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,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
For a safe and easy to track example, you can probably play with the frontlight command to test manual ioctl commands against ntx_io (IIRC, the cmd is 241 (do double-check that), and it takes a *value* [0-100], not a pointer).

EDIT: Yup, it's 241 .

Last edited by NiLuJe; 01-20-2023 at 06:05 PM.
NiLuJe is offline   Reply With Quote
Old 01-20-2023, 06:14 PM   #935
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,506
Karma: 26047202
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 NiLuJe View Post
EDIT: There's a /bin/ioctl binary on Kobo FW, but I have no idea of its provenance and whether it deals sanely w/ by-reference vs. by-value ioctl shenanigans...
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).
NiLuJe is offline   Reply With Quote
Old 01-24-2023, 12:31 PM   #936
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,000
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Is it possible to create a menu item to open a specific collection/shelf directly?
ownedbycats is offline   Reply With Quote
Old 01-27-2023, 12:02 PM   #937
akadaedalus
Enthusiast
akadaedalus began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Jun 2008
Device: Sony PRS-500
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).
That worked great for the front light, thank you.

I attempted the similar syntax to match the IOCTL call I saw earlier. Sadly it appears I need more than that. I'll keep poring through the strace and probably dive in some source code.

ps, I appreciate your efforts. I had the o.g. Sony Libre but when Sony stopped making readers I lived in a world of disappointment with tablet apps and a locked-down Kindle. This thing is fun again.
akadaedalus is offline   Reply With Quote
Old 01-27-2023, 01:39 PM   #938
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,796
Karma: 146391129
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 akadaedalus View Post
That worked great for the front light, thank you.

I attempted the similar syntax to match the IOCTL call I saw earlier. Sadly it appears I need more than that. I'll keep poring through the strace and probably dive in some source code.

ps, I appreciate your efforts. I had the o.g. Sony Libre but when Sony stopped making readers I lived in a world of disappointment with tablet apps and a locked-down Kindle. This thing is fun again.
What's your code for turning on the front light to a specific value? Thanks.
JSWolf is offline   Reply With Quote
Old 01-27-2023, 02:14 PM   #939
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,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Jon, that's is *literally* right in front of you in the quoted section (hint: 0 is a value).

(Keep in mind this will *not* be tracked by Nickel, as most boards don't have a way to actually request the current value from the hardware, so it has to be tracked in userland software).

Last edited by NiLuJe; 01-27-2023 at 02:18 PM.
NiLuJe is offline   Reply With Quote
Old 01-27-2023, 02:16 PM   #940
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,506
Karma: 26047202
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 NiLuJe View Post
(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).
Yup, it's by value .
NiLuJe is offline   Reply With Quote
Old 01-28-2023, 03:14 AM   #941
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by gogu1904 View Post
May I write a menu label split on more lines? I mean, I would like to force a menu label with higher vertical spacing. I tried with the usual \n \r but they are not interpreted as such. Thank you!
No, I'd have to implement that separately.
geek1011 is offline   Reply With Quote
Old 01-28-2023, 03:14 AM   #942
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by ownedbycats View Post
Is it possible to create a menu item to open a specific collection/shelf directly?
Yes, it's most likely possible, but I don't have time right now.
geek1011 is offline   Reply With Quote
Old 01-29-2023, 02:49 PM   #943
gogu1904
Connoisseur
gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.gogu1904 ought to be getting tired of karma fortunes by now.
 
Posts: 80
Karma: 2112464
Join Date: May 2019
Device: Kobo Aura One LE
Quote:
Originally Posted by geek1011 View Post
No, I'd have to implement that separately.
Please don't spend your time on this. I emulated this by having the same menu line written three times. I have a simple menu with KOReader and a Reboot and want to avoid accidentally pressing the reboot option. This is all right for me.

Another solution would be to have the Reboot menu item in another place, but this one seems the place.

Thank you indeed.
gogu1904 is offline   Reply With Quote
Old 01-29-2023, 02:50 PM   #944
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,000
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by geek1011 View Post
Yes, it's most likely possible, but I don't have time right now.
Thanks. Looking forward to it whenever you get a chance.
ownedbycats is offline   Reply With Quote
Old 01-29-2023, 04:29 PM   #945
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,689
Karma: 16307824
Join Date: Sep 2022
Device: Kobo Libra 2
Is there a way to get the battery percentage to be visible without tapping on the battery icon, first? To be clear, I'm not talking about NickelClock that always shows the time and battery in the header. I'm looking for a way to change the menu that opens when you tap in the middle of the screen. Half the time when I try to tap the battery icon to see the remaining percentage, I trigger the "recent books" list, instead, so I'd rather not need to tap on the battery icon at all.
Aleron Ives 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:50 PM.


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