CVS commit by campbell: This checkin lays the infrastructure for attaching actions to the power switch or lid closure switch on your laptop, this way you can set it up to for example shutdown when the power switch is pressed, or suspend or hibernate when the lid is closed - this does not yet work on any laptops since I don't have a system to test it on (coming soon) - shutdown hasn't yet been integrated Also included here is more integration with the Thinkpad tpctl utility (more to come) A buttons.cpp 1.1 A buttons.h 1.1 M +2 -2 Makefile.am 1.24 M +132 -1 laptop_daemon.cpp 1.35 [POSSIBLY UNSAFE: system] M +37 -1 laptop_daemon.h 1.21 M +19 -1 main.cpp 1.20 M +2 -0 main.h 1.5 M +214 -50 portable.cpp 1.47 M +3 -0 portable.h 1.12 M +11 -7 power.cpp 1.18