mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Merge pull request #1950 from NiLuJe/master
Alays wake the H2O IR grid on wakeup
This commit is contained in:
2
base
2
base
Submodule base updated: 75fc7f41f3...d040d1dab1
@@ -176,12 +176,11 @@ function Kobo:resume()
|
||||
-- HACK: wait a bit for the kernel to catch up
|
||||
os.execute("sleep 0.1")
|
||||
-- cf. #1862, I can reliably break IR touch input on resume...
|
||||
if os.getenv("FROM_NICKEL") == "true" then
|
||||
local f = io.open("/sys/devices/virtual/input/input1/neocmd", "r")
|
||||
if f ~= nil then
|
||||
io.close(f)
|
||||
os.execute("echo 'a' > /sys/devices/virtual/input/input1/neocmd")
|
||||
end
|
||||
-- cf. also #1943 for the rationale behind applying this workaorund in every case...
|
||||
local f = io.open("/sys/devices/virtual/input/input1/neocmd", "r")
|
||||
if f ~= nil then
|
||||
io.close(f)
|
||||
os.execute("echo 'a' > /sys/devices/virtual/input/input1/neocmd")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user