Skip to content

fix/remarkable: remove disable xochitl autosuspend and add explicit qtfb-shim check - #14211

Merged
Frenzie merged 2 commits into
koreader:masterfrom
NoaHimesaka1873:master
Aug 23, 2025
Merged

Frenzie merged 2 commits into
koreader:masterfrom
NoaHimesaka1873:master

Conversation

@NoaHimesaka1873

@NoaHimesaka1873 NoaHimesaka1873 commented Aug 22, 2025 •

Copy link
Copy Markdown
Contributor

QTFB shim check used for launch condition check, disabling autosuspend of xochitl not needed for new shim.


This change is Reviewable

Comment thread frontend/device/remarkable/device.lua Resolved
@Frenzie
Frenzie merged commit c6b1eb9 into koreader:master Aug 23, 2025
@Frenzie Frenzie added this to the 2025.10 milestone Aug 23, 2025
@benoit-pierre

Copy link
Copy Markdown
Member

The tests are still broken.

@Frenzie

Frenzie commented Aug 23, 2025

Copy link
Copy Markdown
Member

Thanks, indeed.

it("Remarkable", function()
io.open = function(filename, mode)
if filename == "/usr/bin/xochitl" then
return {
read = function()
return true
end,
close = function() end
}
elseif filename == "/sys/devices/soc0/machine" then
return {
read = function()
return "reMarkable", "generic"
end,
close = function() end
}
else
return iopen(filename, mode)
end
end
local Device = require("device/remarkable/device")
stub(Device, "initNetworkManager")
stub(Device, "suspend")
Device:init()
Device.powerd.fl = nil
package.loaded.device = Device
local UIManager = require("ui/uimanager")
stub(UIManager, "forceRePaint")
UIManager:init()
local sample_pdf = "spec/front/unit/data/tall.pdf"
local ReaderUI = require("apps/reader/readerui")
ReaderUI:doShowReader(sample_pdf)
local readerui = ReaderUI.instance
stub(readerui, "onFlushSettings")
UIManager.event_handlers.PowerPress()
UIManager.event_handlers.PowerRelease()
assert.stub(readerui.onFlushSettings).was_called()
UIManager.forceRePaint:revert()
Device.initNetworkManager:revert()
Device.suspend:revert()
readerui.onFlushSettings:revert()
Device.screen_saver_mode = false
readerui:onClose()
end)

@Frenzie

Frenzie commented Aug 23, 2025

Copy link
Copy Markdown
Member

@NoaHimesaka1873 Already fixed in #14217

0xstillb pushed a commit to 0xstillb/koreader-thai that referenced this pull request May 9, 2026
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