theking2
(John King)
1
I have a service that keeps my kemove keyboard sane:
/etc/systemd/system/kemove-keyboard.service
[Unit]
Description=kemove-keyboard
[Service]
Type=oneshot
ExecStart=/bin/sh -c "echo 2 > /sys/module/hid_apple/parameters/fnmode"
[Install]
WantedBy=multi-user.target
Yet after returning from sleep /sys/module/hid_apple/parameters/fnmode goes back to 3 again which breaks the function keys on the kemove.
How do I make sure that the service is rerun on wake up?
chillzone
(Rick The OldFart)
2
Just a guess but did you update your initramfs after making the change?
I forget sometimes myself…lol
sudo dracut --regenerate-all --force
wbo
(w. bo)
3
To trigger the service after resume WantedBy must be changed to
[Install]
WantedBy=suspend.target hibernate.target
grumpey
(Joe Walker)
4
echo "options hid_apple fnmode=2" | sudo tee /etc/modprobe.d/hid_apple
sudo dracut --regenerate-all --force
should also work.