Skip to content

Instantly share code, notes, and snippets.

@bodil
Created November 24, 2016 15:05
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bodil/16f985973394982e4f5b4fc0113c4ece to your computer and use it in GitHub Desktop.
Save bodil/16f985973394982e4f5b4fc0113c4ece to your computer and use it in GitHub Desktop.
Hacks for Linux kernel glitches on the HP Elitebook Folio G1
[Unit]
Description=HP Elitebook Folio G1 fixes
[Service]
ExecStart=/sbin/fix-my-stupid-folio
[Install]
WantedBy=basic.target
#!/bin/bash
# make suspend work
echo 0 > /sys/power/pm_async
# set keycodes for brightness down/up keys
setkeycodes e024 224
setkeycodes e043 225
# set keycode for lid close (sleep key)
setkeycodes e005 142
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment