From f43cbc74e6dc01c46b4cc704a52e6a336c3bb818 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Sat, 9 Apr 2016 17:50:49 +0200 Subject: [PATCH] Always forcibly wake the H2O IR grid on wakeup Fix #1862 Fix #1943 --- frontend/device/kobo/device.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/frontend/device/kobo/device.lua b/frontend/device/kobo/device.lua index e137be05a..d0604ea63 100644 --- a/frontend/device/kobo/device.lua +++ b/frontend/device/kobo/device.lua @@ -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