Nevím, jestli ti to pomůže, ale tady je odkaz:
http://www.but-i-digress.ca/suspend-on-lid-close-debian-squeeze.html
V podstatě si máš vytvořit soubor /home/ty/.xsession, který bude obsahovat:
#!/bin/sh
/cesta/ke/skriptu/v/odkazu&
http://www.but-i-digress.ca/suspend-on-lid-close-debian-squeeze.html
V podstatě si máš vytvořit soubor /home/ty/.xsession, který bude obsahovat:
#!/bin/sh
/cesta/ke/skriptu/v/odkazu&