diff options
author | Andy Chi <andy.chi@canonical.com> | 2021-11-29 11:06:28 +0800 |
---|---|---|
committer | Andy Chi <andy.chi@canonical.com> | 2021-11-29 15:37:09 +0800 |
commit | a80354d38326b7a1b4111da5667bf19812dc7191 (patch) | |
tree | 41a39eee741bfb0616dc189abe1209ef3aed8811 | |
parent | dece9d58203b8510b8e36272649ff86b164738ba (diff) |
Fix: also detect logitech keyboard in low-power idle tests
-rwxr-xr-x | bin/screenoff.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/screenoff.sh b/bin/screenoff.sh index 8a565c7..0769e58 100755 --- a/bin/screenoff.sh +++ b/bin/screenoff.sh @@ -9,7 +9,8 @@ do sysfs="${line:9}" break fi - if [ "$name" = "AT Translated Set 2 keyboard" ]; then + if [ "$name" = "AT Translated Set 2 keyboard" ] || + [ "${name:0:26}" = "Logitech Wireless Keyboard" ]; then keyboard=1 else keyboard=0 |