![]() |
#931 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 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. |
![]() |
![]() |
![]() |
#932 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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!
|
![]() |
![]() |
![]() |
#933 | |
Enthusiast
![]() Posts: 34
Karma: 10
Join Date: Jun 2008
Device: Sony PRS-500
|
Quote:
![]() 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! |
|
![]() |
![]() |
![]() |
#934 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#935 | |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
![]() 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). |
|
![]() |
![]() |
![]() |
#936 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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?
![]() |
![]() |
![]() |
![]() |
#937 | |
Enthusiast
![]() Posts: 34
Karma: 10
Join Date: Jun 2008
Device: Sony PRS-500
|
Quote:
I attempted the similar syntax to match the IOCTL call I saw earlier. Sadly it appears I need more than that. ![]() 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. |
|
![]() |
![]() |
![]() |
#938 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
|
|
![]() |
![]() |
![]() |
#939 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#940 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
![]() |
![]() |
#941 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
|
![]() |
![]() |
![]() |
#942 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
|
![]() |
![]() |
![]() |
#943 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 2112464
Join Date: May 2019
Device: Kobo Aura One LE
|
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. |
![]() |
![]() |
![]() |
#944 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,000
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
|
![]() |
![]() |
![]() |
#945 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
![]() |
![]() |
![]() |
![]() |
Tags |
kobo, launcher, ldpreload, nickel |
|
![]() |
||||
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 |