Skip to content

[Pocketbook] Execute rotation fix also for Era Color#14904

Merged
Frenzie merged 5 commits into
koreader:masterfrom
jannickfahlbusch:pb700/color/applyRotationFix
Jan 31, 2026
Merged

[Pocketbook] Execute rotation fix also for Era Color#14904
Frenzie merged 5 commits into
koreader:masterfrom
jannickfahlbusch:pb700/color/applyRotationFix

Conversation

@jannickfahlbusch

@jannickfahlbusch jannickfahlbusch commented Jan 31, 2026

Copy link
Copy Markdown
Contributor

@theboomr reported here, that the rotation issue #11033 is also affecting the Pocketbook Era Color.

Apparently the PB Inkpad Color is also affected, however since I don't know which of the versions this would be I would wait for someone to report/fix the issue there to not cause regressions for unaffected devices.


This change is Reviewable

Comment thread frontend/device/pocketbook/powerd.lua Outdated
-- c.f., https://github.com/koreader/koreader/issues/11033
if self.device.model == "PB700" then
logger.dbg("afterResume: Running orientation sync for PB700")
if self.device.model == "PB700" or self.device.model == "PBEraColor" then

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we know if the issue is limited to a very small number of devices only? Otherwise it should probably become something like needsOrientationSyncAfterResume (quite a mouthful).

needsScreenRefreshAfterResume = no,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the devices mentioned in the bug it is related to:

  • Pocketbook Era
  • Pocketbook Era Color
  • Some Pocketbook Inkpad Color (I don't know which, there are seven models that are supported by KOReader)

I agree that the model-specific property might be better, let me try to incorporate that

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's very simple, just add it to the global device definition with = no, with = yes on those devices, and in this file it'll be something like if self.device:needsScreenOrientationSync….

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think having it on the Pocketbook definition is already suficient, isn't it?

I implemented this approach with d66e1d4

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but in that case please make it needs_orientation_sync_after_resume (or use yes and no and use it as a function).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah no, I must've been unclear. camelCase is a function, snake_case is a variable.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries, I can adapt it :)

Do you have a preference for a way?

@Frenzie Frenzie Jan 31, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like I said, I don't really care, just don't mix & match so the code remains clear. On average we prefer a function (because that can be overridden to do something slightly fancier on a particular device if need be) but in this case let's just use a variable.

@Frenzie Frenzie added this to the 2026.01 milestone Jan 31, 2026
Comment thread frontend/device/pocketbook/device.lua Outdated
@Frenzie Frenzie merged commit 323e622 into koreader:master Jan 31, 2026
3 of 4 checks passed
@theboomr

theboomr commented Feb 1, 2026

Copy link
Copy Markdown

I tested out the new nightly late last night and it does indeed seem to have completely fixed the issue on my Era Color, thank you so much!!

0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
@theboomr reported [here](koreader#11033 (comment)), that the rotation issue koreader#11033 is also affecting the Pocketbook Era Color.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants