Quote:
Originally Posted by Ken Maltby
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
|
Probably, but I can figure out how to get it to work..I'm a n00b when it comes to this.