diff --git a/debian/reform-tools.install b/debian/reform-tools.install index a2d11a86dfc3e51ab57db79acb82f99bd9c86790..ae30c3cded2a890590705005f6ed310cf700a9d1 100644 --- a/debian/reform-tools.install +++ b/debian/reform-tools.install @@ -8,4 +8,3 @@ etc/* /etc sbin/* /usr/sbin systemd/reform-poweroff /lib/systemd/system-shutdown systemd/reform-sleep.conf /usr/lib/systemd/sleep.conf.d -systemd/reform-suspend /lib/systemd/system-sleep diff --git a/sbin/reform-standby b/sbin/reform-standby index 3ca3e327b3e1dee1ce1c78af37e0040bea335eee..6bb15c49cc95db04a30695d083e866759a8ee425 100755 --- a/sbin/reform-standby +++ b/sbin/reform-standby @@ -40,13 +40,25 @@ kbd_backlight_on() { done } +hid_bind() { + echo 0003:03EB:2041.0002 > /sys/bus/hid/drivers/hid-generic/bind + echo 0003:03EB:2042.0001 > /sys/bus/hid/drivers/hid-generic/bind +} + +hid_unbind() { + echo 0003:03EB:2041.0002 > /sys/bus/hid/drivers/hid-generic/unbind + echo 0003:03EB:2042.0001 > /sys/bus/hid/drivers/hid-generic/unbind +} + if [[ $1 = "suspend" ]]; then setup_wake wifi_off kbd_backlight_off + hid_unbind fi if [[ $1 = "resume" ]]; then kbd_backlight_on wifi_on + hid_bind fi diff --git a/systemd/reform-suspend b/systemd/reform-suspend deleted file mode 100755 index 7e924e4e899b8aac99b3f3f455f63413e56300cc..0000000000000000000000000000000000000000 --- a/systemd/reform-suspend +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -case "$1" in - pre) - echo 0003:03EB:2041.0002 >/sys/bus/hid/drivers/hid-generic/unbind - echo 0003:03EB:2042.0001 >/sys/bus/hid/drivers/hid-generic/unbind - ;; - post) - echo 0003:03EB:2041.0002 >/sys/bus/hid/drivers/hid-generic/bind - echo 0003:03EB:2042.0001 >/sys/bus/hid/drivers/hid-generic/bind - ;; -esac