diff --git a/frontend/device/kobo/device.lua b/frontend/device/kobo/device.lua index b6fbdeac7..9c9e61ee4 100644 --- a/frontend/device/kobo/device.lua +++ b/frontend/device/kobo/device.lua @@ -428,6 +428,7 @@ local KoboLuna = Kobo:extend{ hasFrontlight = yes, touch_phoenix_protocol = true, display_dpi = 212, + hasReliableMxcWaitFor = no, -- Board is similar to the Libra 2, but it's such an unpopular device that reports are scarce. } -- Kobo Elipsa @@ -534,6 +535,9 @@ local KoboGoldfinch = Kobo:extend{ }, battery_sysfs = "/sys/class/power_supply/battery", power_dev = "/dev/input/by-path/platform-bd71828-pwrkey-event", + -- Board is eerily similar to the Libra 2, which, unfortunately, means it's also buggy as hell... + -- c.f., https://github.com/koreader/koreader/issues/9552#issuecomment-1293000313 + hasReliableMxcWaitFor = no, } function Kobo:setupChargingLED() diff --git a/frontend/ui/data/onetime_migration.lua b/frontend/ui/data/onetime_migration.lua index b33006cae..a6ef1b151 100644 --- a/frontend/ui/data/onetime_migration.lua +++ b/frontend/ui/data/onetime_migration.lua @@ -7,7 +7,7 @@ local lfs = require("libs/libkoreader-lfs") local logger = require("logger") -- Date at which the last migration snippet was added -local CURRENT_MIGRATION_DATE = 20220930 +local CURRENT_MIGRATION_DATE = 20221027 -- Retrieve the date of the previous migration, if any local last_migration_date = G_reader_settings:readSetting("last_migration_date", 0) @@ -479,5 +479,15 @@ if last_migration_date < 20220930 then end end +-- Extend the 20220205 hack to *all* the devices flagged as unreliable... +if last_migration_date < 20221027 then + logger.info("Performing one-time migration for 20221027") + + local Device = require("device") + if Device:isKobo() and not Device:hasReliableMxcWaitFor() then + G_reader_settings:makeFalse("followed_link_marker") + end +end + -- We're done, store the current migration date G_reader_settings:saveSetting("last_migration_date", CURRENT_MIGRATION_DATE)