View Single Post
Old 09-07-2013, 03:12 PM   #520
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
Quote:
Originally Posted by freekobo View Post
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

Last edited by Ken Maltby; 09-07-2013 at 03:27 PM.
Ken Maltby is offline   Reply With Quote