Skip to content

Kobo: Don't send PowerPress twice when fudging page turn button events for pageturn_power - #14216

Merged
Frenzie merged 2 commits into
koreader:masterfrom
NiLuJe:fix-kobo-mtk-pgbutton-wakeup
Aug 28, 2025
Merged

Frenzie merged 2 commits into
koreader:masterfrom
NiLuJe:fix-kobo-mtk-pgbutton-wakeup

Conversation

@NiLuJe

@NiLuJe NiLuJe commented Aug 23, 2025 •

Copy link
Copy Markdown
Member

Should help with some #12787 reports, but not all, since that issue predates the PR that implemented the above feature (#13669)


This change is Reviewable

…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)
@Frenzie Frenzie added this to the 2025.10 milestone Aug 23, 2025
@Frenzie

Frenzie commented Aug 23, 2025

Copy link
Copy Markdown
Member

Sorry about the test error. It's not related of course.

@OGKevin

OGKevin commented Aug 24, 2025 •

Copy link
Copy Markdown
Contributor

I've installed this patch.

I will report in a few days if I encounter the race condition or not.


After multiple tries, I have not encountered the issue.

That said, from a UX perspective, I wouldn’t expect holding down the page turn button to turn off the device while it’s suspended. wdyt?

@NiLuJe

NiLuJe commented Aug 24, 2025

Copy link
Copy Markdown
Member Author

That said, from a UX perspective, I wouldn’t expect holding down the page turn button to turn off the device while it’s suspended. wdyt?

Gah, do we have a hold logic for PowerPress somewhere?

@NiLuJe

NiLuJe commented Aug 24, 2025

Copy link
Copy Markdown
Member Author

Gah, do we have a hold logic for PowerPress somewhere?

Turns out, a Kobo specific one, yeah. -_-".

Always follow your first instinct ;).
@OGKevin

OGKevin commented Aug 26, 2025

Copy link
Copy Markdown
Contributor

I've applied af1c29b, so far I've not encountered the race condition nor the associated symptoms 👍🏾.

I would say, this did the trick. Nice find @NiLuJe 🍻

@Frenzie
Frenzie merged commit e1b990a into koreader:master Aug 28, 2025
0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
…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 ;).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants