[Debian-eeepc-devel] Bug#469505: Bug#469505: eeepc-acpi-scripts: Go in suspend2ram after shutdown

Nico Golde nion at debian.org
Wed Mar 5 17:16:22 UTC 2008


tags 469505 + confirmed pending
thanks

Hi,
* mancausoft <me at mancausoft.org> [2008-03-05 17:11]:
> If I shutdown my eeepc and close the screen before poweroff it go in
> suspend2ram. 
> 
> I try to add in /etc/acpi/events/suspend.sh:
> 
> if /sbin/runlevel | grep -q [06]$ ; then
> 	exit 0
> fi
> 
> but work only after it go in init 0 o init 6. First, when shutdown kill
> X programas, /sbin/runlevel output is N 2.

Just committed:
if (runlevel | grep -q [06]) || (ps x | grep -q '/sbin/shutdown'); then
    exit 0
fi

That should work even if it's somehow dirty :) Fixed package will be uploaded
after eeepc-acpi-scripts migrated to testing.
Cheers
Nico

-- 
Nico Golde - http://www.ngolde.de - nion at jabber.ccc.de - GPG: 0x73647CFF
For security reasons, all text in this mail is double-rot13 encrypted.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-eeepc-devel/attachments/20080305/a0da914c/attachment.pgp 


More information about the Debian-eeepc-devel mailing list