Quote:
Originally Posted by freekobo
no, i mean after enabling sleep with the patch i hacked togeher the light button doesnt work in koreader...it works again after reinstalling latest koreader nightly..so something in the files i changed broke the light function... i dont know what...anyone else know?
|
Ah.. I wonder if the light switch was used to come out of suspend? I am near the end of my current read, once I finish I'll give it a try.
Luck;
Ken
Perhaps it could be here:
function Input:handleKeyBoardEv(ev)
local keycode = self.event_map[ev.code]
if self.is_kobo then
local press = false
if ev.value == EVENT_VALUE_KEY_PRESS then
press = true
end
if ev.code == 90 then
-- light
if not press then
os.execute("/mnt/onboard/.kobo/koreader/frontlight-wrap swap")
return
end
elseif ev.code == 116 then
-- power
if press then
return "Suspend"
else
return "Resume"
end
end
end