I have been working on getting magicdev to stop when the lid is closed and restarted when it is opened. So i did some research and have been trying to get the suspend.d and resume.d to work with this laptop. Since these don't exist, I made them in /etc/power then i made a magicdev script in scripts.d by making a copy of skeleton. Made a symbolic link in suspend.d and resume.d to it, I then altered this new script to do some testing to see if it would do anything when the lid is opened or closed. Guess what it didn't, so something else was wrong. After some looking I found out that the script that calls the scripts in resume.d and suspend.d doesn't work properly (etc/power/pmcs-pbbuttonsd). Long story short the run-parts commands are to blame, in that /usr/bin/run-parts does not work the way the calling script suspects.
After some digging on the internet I found the source for the proper run-parts and compiled it and now the scripts are working. I don't have this entirely working, but now I can kill magicdev on lid close, but it won't come back up on open, I'm still working on this but I thought I'd bring people who want to know up to speed as to what I got so far.
Sorry this is alittle long winded, but I hope it helps someone out there.
Thanks for listening
HH
Ohh yeah, I'll try to find a place to put up my code for download, or viewing.
here is a link to the code to run-parts
http://www.yellowdog-board.com/viewtopi ... =1692#1692
Then did he raise on high the Holy Hand Grenade of Antioch, saying "Bless this, O Lord, that with it thou mayst blow thine enemies to tiny bits, in thy mercy."