From 810644e5a9fb0332fc260d122df34986d41d2d7d Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Sat, 7 Jan 2023 15:55:47 +0530 Subject: [PATCH] Added hp-keycodes.service --- hp-keycodes.service | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 hp-keycodes.service diff --git a/hp-keycodes.service b/hp-keycodes.service new file mode 100644 index 0000000..57f7013 --- /dev/null +++ b/hp-keycodes.service @@ -0,0 +1,18 @@ +# This fixes the annoying issue of WLAN getting disabled on +# lid open for HP laptops. Copy this file to /etc/systemd/system/ +# and enable the hp-keycodes service to fix this issue. +# More at https://askubuntu.com/a/965596/537675 + +[Unit] +Description=HP setkeycodes fix + +[Service] +Type=oneshot +Restart=no +RemainAfterExit=no +ExecStart=/usr/bin/setkeycodes e057 240 e058 240 + +[Install] +WantedBy=rescue.target +WantedBy=multi-user.target +WantedBy=graphical.target