Skip to content

Instantly share code, notes, and snippets.

@OlivierLi
Created March 14, 2014 19:31
Show Gist options
  • Save OlivierLi/9555033 to your computer and use it in GitHub Desktop.
Save OlivierLi/9555033 to your computer and use it in GitHub Desktop.
Deal with X freeze
Another way to deal with X freezing.
Use acpi to set your power button to switch you to console. Just edit your /etc/acpi/power.sh and change it to...
#/bin/sh
/bin/chvt 1
The acpi system is separate from the X/keyboard interface and still works. So this way you can switch to the console even if your keyboard is locked.
Note you can use other keys as well. On my laptop I use my "thinkvantage" key for this. Any key that has an associated acpi event will work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment