As for detecting whether a computer is a laptop or not, there's the laptop-detect package: http://packages.debian.org/unstable/utils/laptop-detect As I understand it, it uses information obtained from dmidecode to make its decision. Using it is a matter of checking whether it exited 0 (laptop) or 1 (not laptop). -- Dafydd