Quote Originally Posted by KIAaze View Post
For the grep error, check if you have LID0 instead of LID like erick404.
i.e. You should have "/proc/acpi/button/lid/LID0/state" or something similar somewhere.

For the aplay error, it looks like aplay can't play your soundfile, so try to convert it to a compatible format or just use mplayer:

So your code could be changed like this for instance:
grep -q closed /proc/acpi/button/lid/LID0/state
if [ $? = 0 ]
    mplayer /etc/acpi/cartman.wav;
    mplayer /etc/acpi/myniga.wav;
mplayer is in the repositories and supports mp3s.
sudo apt-get install mplayer
For converting sound files, you can use ffmpeg I think, but I don't have that much experience with it.
Seems like what you stated here was all correct. After changing to the "LID0" that error went away... but sadly, as in my previous post I stated that I cannot currently connect to the internet with my netbook (restrictions here at work in the middle of the ocean), I'm pretty much at an impass in regards to getting mplayer installed.

I'll just have to wait until I'm back on dry land in about 8 days to get it all sorted