[Kobo] Enable wake on page turn buttons#13669
Conversation
|
fixes #13669 |
|
Incidentally just caught that in a Nickel changelog when updating a device today. I'm not entirely sure if the page turn keys are actual wakeup sources on older devices with keys, but I would assume so, so, eeeh, why not. |
Co-authored-by: NiLuJe <ninuje@gmail.com>
I can verify tonight on a forma (tested this initially on a KLC to see it work, and a Clara2E to see it not break :) ) Assuming a Forma counts as an older device these days |
|
Verified works on the forma, fwiw. |
I'm mistaken. Looking into why t doesn't work. |
This needs to go in the original post #13669 (comment) |
I assume simply because the page turn buttons are not a wakeup source, so the kernel doesn't even wake the device up. |
If I had only seen this a few hours ago...but yes, the forma is missing the wakeup-source for the buttons (but has wakeup), which I think explains why the buttons work to wake up in the first minute or so, but not once hibernation has started (anecdotal, but I've noticed the forma isn't completely hibernating after a power button press, probably as it runs through suspension). Looking now to see if I can figure out which devices support wakeup-source so I can at least tune this proposal a little better. Also to apply it correctly as was pointed out :) |
|
I think it's only the KLC that supports it. None of the other devices have any mention of it in the latest FW release notes: |
Yes, suspend entry is delayed by something like 45s (for... ntx reasons). |
Checking the dtb might be a littler overkill (and potentially brittle ;p). I wouldn't expect the Libra 1/2 to be any different than the Forma, given the board similarities, soo, yeah, I would assume it's MTK-only (for... now?). |
I'll check on the Sage for good measure. |
That would be a no on sunxi: So, yeah, gating it behind |
@NiLuJe for pointing out the far more elegant solution vs what I was thinking
I have to agree (shame though) - given kobo is shy about upgrading kernels (and presumably modules), it's only with the latest release that it looks like this is available. |
* Fixed a tragic typo (looping crashes, ohmy) * Updated label for menu item to reflect how the buttons are referenced elsewhere (@Commodore64user)
|
Updated label and added condition for |
There was a problem hiding this comment.
this is my small symbolic attempt to remind @NiLuJe of this PR, has he finally moved out? ;)
|
Yeah, I'm slooooowwwly catching up, this is next on my list, ideally this week-end ;). |
…nts for `pageturn_power` Should help with *some* koreader#12787 reports, but not all, since that issue predates the PR that implemented the above feature (koreader#13669)
…nts for `pageturn_power` (#14216) * Kobo: Don't send `PowerPress` twice when fudging page turn button events for `pageturn_power` Should help with *some* #12787 reports, but not all, since that issue predates the PR that implemented the above feature (#13669) * Only fudge release events, dwallow press and repeat. Always follow your first instinct ;).
|
Folks, can you point me to where I should be seeing the menu option? I dug around and don’t see the option on a libra 2. I’m on the latest stable version. Thanks in advance |
|
The Libra 2 doesn't support this feature (as this requires cooperation from the kernel), which is why you can't find it. But if you ever find yourself looking for a setting that is available on your device, there's a search available in the help section of the top menu ;). |
Adds menu items (toggles) and functionality to turn a kobo back on with the page turn buttons. Fix koreader#13668
…nts for `pageturn_power` (koreader#14216) * Kobo: Don't send `PowerPress` twice when fudging page turn button events for `pageturn_power` Should help with *some* koreader#12787 reports, but not all, since that issue predates the PR that implemented the above feature (koreader#13669) * Only fudge release events, dwallow press and repeat. Always follow your first instinct ;).
Adds menu items (toggles) and functionality to turn a kobo back on with the page turn buttons.
Fix #13668
This change is