@ -21,6 +21,7 @@ local Device = {
screen = nil ,
screen = nil ,
screen_dpi_override = nil ,
screen_dpi_override = nil ,
input = nil ,
input = nil ,
home_dir = nil ,
-- For Kobo, wait at least 15 seconds before calling suspend script. Otherwise, suspend might
-- For Kobo, wait at least 15 seconds before calling suspend script. Otherwise, suspend might
-- fail and the battery will be drained while we are in screensaver mode
-- fail and the battery will be drained while we are in screensaver mode
suspend_wait_timeout = 15 ,
suspend_wait_timeout = 15 ,
@ -29,6 +30,7 @@ local Device = {
hasKeyboard = no ,
hasKeyboard = no ,
hasKeys = no ,
hasKeys = no ,
hasDPad = no ,
hasDPad = no ,
hasExitOptions = yes ,
hasFewKeys = no ,
hasFewKeys = no ,
hasWifiToggle = yes ,
hasWifiToggle = yes ,
hasWifiManager = no ,
hasWifiManager = no ,
@ -52,6 +54,7 @@ local Device = {
canToggleMassStorage = no ,
canToggleMassStorage = no ,
canUseWAL = yes , -- requires mmap'ed I/O on the target FS
canUseWAL = yes , -- requires mmap'ed I/O on the target FS
canRestart = yes ,
canRestart = yes ,
canSuspend = yes ,
canReboot = no ,
canReboot = no ,
canPowerOff = no ,
canPowerOff = no ,
@ -279,6 +282,10 @@ function Device:onPowerEvent(ev)
end
end
end
end
function Device : info ( )
return self.model
end
-- Hardware specific method to handle usb plug in event
-- Hardware specific method to handle usb plug in event
function Device : usbPlugIn ( ) end
function Device : usbPlugIn ( ) end