I'm running slackware 10.2 on kernel 2.6.13
I'm trying to get my notebook to a state where if i close the lid, it goes into standby. this is the script i have in /etc/acpi/actions (lm_lid.sh)
Code:
#!/bin/bash
if [ "`cut -d " " -f 20 /proc/acpi/button/lid/LID/state`" = "open" ]
then
logger "ACPI: Lid open. Not going into suspend"
else
killall wpa_supplicant
rmmod ndiswrapper
echo -n "standby" > /sys/power/state
fi
When i close the lid, it works fine, the notebook goes into standby. The problem is when i open the lid the notebook goes back to normal operation for a second and then goes back to standby. It sorta gets stuck in a loop. What am I doing wrong here ? Any help would be gladly appreciated.
TIA