After upgrading from 13.2 on my old 32 bit Acer TravelMate 2410 power management doesn't work as expected.
I have always used acpid for the purpose of having the system hibernate automatically when the power is disconnected if the lid is closed and I have these settings and scripts for the purpose. These have always worked on 13.2 (in 'init 5' and in 'init 3' mode):
Code:
# cat /etc/acpi/actions/hibernate.sh
#!/bin/bash
lockfile='/tmp/hibernation_started.lock'
/usr/bin/logger 'AC power is off.'
# Is hibernation already started?
if [ -f "$lockfile" ]
then
/usr/bin/logger 'Hibernation already started.'
exit 0
fi
/usr/bin/touch $lockfile
# Wait a bit (it may be just a short power off)
sleep 30
# Is AC power still off?
grep -q "off-line" /proc/acpi/ac_adapter/ADP1/state
if [ $? = 0 ]
then
# Power is still off. Now check if laptop lid is closed
grep -q closed /proc/acpi/button/lid/LID0/state
if [ $? = 0 ]
then
/usr/bin/logger 'Initiating closed lid hibernation...'
/usr/bin/rm $lockfile
/usr/sbin/pm-hibernate
fi
fi
# cat /etc/acpi/actions/online.sh
#!/bin/bash
lockfile='/tmp/hibernation_started.lock'
/usr/bin/logger 'AC power is on.'
# Is hibernation already started?
if [ -f "$lockfile" ]
then
/usr/bin/logger 'Cancelling closed lid hibernation.'
/usr/bin/rm $lockfile
fi
# cat /etc/acpi/events/ac_power_off
event=ac_adapter ACPI0003:00 00000080 00000000
action=/etc/acpi/actions/hibernate.sh
# cat /etc/acpi/events/ac_power_on
event=ac_adapter ACPI0003:00 00000080 00000001
action=/etc/acpi/actions/online.sh
But now 'journalctl -f' is showing me a weird message when testing:
Code:
Jan 17 01:01:27 acer.group systemd-logind[909]: Lid closed.
Jan 17 01:01:35 acer.group root[3562]: AC power is off.
Jan 17 01:01:35 acer.group systemd-udevd[3576]: Process '/usr/sbin/tlp auto' failed with exit code 4.
Jan 17 01:02:46 acer.group systemd-udevd[3644]: Process '/usr/sbin/tlp auto' failed with exit code 4.
(.... and the system doesn't hibernate... so I turn the power on again)
Jan 17 01:02:46 acer.group root[3658]: AC power is on.
Jan 17 01:02:46 acer.group root[3659]: Cancelling closed lid hibernation.
Jan 17 01:02:52 acer.group root[3703]: AC power is off.
Jan 17 01:02:52 acer.group systemd-udevd[3730]: Process '/usr/sbin/tlp auto' failed with exit code 4.
And again - hibernation doesn't work. The bolded lines are something new (after upgrading to Tumbleweed). In 13.2 there were no such errors.
Another attempt with acpid after rebooting (again) gives:
Code:
Jan 17 01:38:17 acer.group root[2070]: AC power is off.
(... no error like before but still not hibernating)
Jan 17 01:39:22 acer.group root[2145]: AC power is on.
Jan 17 01:39:22 acer.group root[2147]: Cancelling closed lid hiberna
I am watching the 'journalctl -f' from an ssh session.
I also tried manually evoking hibernation from xfce: Logout->Hibernate and it works. However when I power on the system again it is unusable - the power is on but the screen stays blank (although it is on too) and the system doesn't react to anything I try. The only way to get out of this is through hardware reset which is terrible.
Can someone help please?
Bookmarks