Skip to content
Snippets Groups Projects
Unverified Commit 19dafdb9 authored by Johannes Schauer Marin Rodrigues's avatar Johannes Schauer Marin Rodrigues
Browse files

use reform-sleep.service instead of /lib/systemd/system-sleep

parent 9fb50d3a
No related branches found
No related tags found
No related merge requests found
...@@ -8,4 +8,3 @@ etc/* /etc ...@@ -8,4 +8,3 @@ etc/* /etc
sbin/* /usr/sbin sbin/* /usr/sbin
systemd/reform-poweroff /lib/systemd/system-shutdown systemd/reform-poweroff /lib/systemd/system-shutdown
systemd/reform-sleep.conf /usr/lib/systemd/sleep.conf.d systemd/reform-sleep.conf /usr/lib/systemd/sleep.conf.d
systemd/reform-suspend /lib/systemd/system-sleep
...@@ -40,13 +40,25 @@ kbd_backlight_on() { ...@@ -40,13 +40,25 @@ kbd_backlight_on() {
done 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 if [[ $1 = "suspend" ]]; then
setup_wake setup_wake
wifi_off wifi_off
kbd_backlight_off kbd_backlight_off
hid_unbind
fi fi
if [[ $1 = "resume" ]]; then if [[ $1 = "resume" ]]; then
kbd_backlight_on kbd_backlight_on
wifi_on wifi_on
hid_bind
fi fi
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment