Laptop does not sleep when lid shuts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linux Mint |
Confirmed
|
Undecided
|
Unassigned | ||
Nouveau Xorg driver |
New
|
Undecided
|
Unassigned | ||
cinnamon |
New
|
Undecided
|
Unassigned |
Bug Description
Linux Mint Cinamon 64-bit
I have an external monitor on a Thinkpadx201. I close the lid and the external goes dark, but the laptop does not sleep.
I fixed it by adding a call to pm-suspend in /etc/acpi/lid.sh:
#!/bin/bash
# TODO: Change the above to /bin/sh
test -f /usr/share/
. /usr/share/
. /usr/share/
. /etc/default/
[ -x /etc/acpi/
if [ `CheckPolicy` = 0 ]; then exit; fi
grep -q closed /proc/acpi/
if [ $? = 0 ]
then
for x in /tmp/.X11-unix/*; do
displaynum=`echo $x | sed s#/tmp/
getXuser;
if [ x"$XAUTHORITY" != x"" ]; then
export DISPLAY=
. /usr/share/
fi
# I ADDDED CALL TO PM-SUSPEND
/usr/sbin/
done
else
for x in /tmp/.X11-unix/*; do
displaynum=`echo $x | sed s#/tmp/
getXuser;
if [ x"$XAUTHORITY" != x"" ]; then
export DISPLAY=
grep -q off-line /proc/acpi/
if [ $? = 1 ]
then
if pidof xscreensaver > /dev/null; then
su $user -c "xscreensaver-
fi
fi
if [ x$RADEON_LIGHT = xtrue ]; then
[ -x /usr/sbin/
fi
if [ `pidof xscreensaver` ]; then
su $user -c "xscreensaver-
fi
su $user -c "xset dpms force on"
fi
done
fi
[ -x /etc/acpi/
Changed in linuxmint: | |
status: | New → Confirmed |
Does the problem still exist for the OP when the external monitor is disconnected?
If so, I have the same problem.
Hardware: Dell Vostro 3750.
OS: Linux Mint 17 64-bit Cinnamon
The laptop will suspend OK on command from the Shutdown dialog, but fails to suspend when the lid is closed (even though that is how the default behaviour is set). Instead of suspending when the lid is closed it appears I am simply logged out and returned to the display manager.
I have no /etc/acpi/lid.sh on my system so cannot test the above workaround.