Skip to content

Instantly share code, notes, and snippets.

@altercation
altercation / handler.sh
Created January 21, 2013 01:29
current acpi handler for thinkpad x220 running arch
#!/bin/bash
case $* in
ac_adapter*) power auto ;; # unplug or plug ac cord
*LID*close) system sleep ;; # shut laptop lid
*TBLT*on*) displays tablet on ;; # rotate to tablet mode
*TBLT*off*) displays tablet off ;; # rotate to laptop mode
*0000500c) trigger Print ;; # undock tablet pen
*0000500b) trigger shift+Print ;; # dock tablet pen
esac
@altercation
altercation / archblocks_error.sh
Created October 3, 2012 23:22
archblocks - no temp fs space error
JUST PRIOR TO ERROR:
# -----------------------------------------------------------------------------------------------
# df -a > /test/1/dump_df
# -----------------------------------------------------------------------------------------------
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 28507096 2636548 24422468 10% /
proc 0 0 0 - /proc
sys 0 0 0 - /sys