Re: [gentoo-user] Bash and ACPI issue - laptop lid

2009-03-12 Thread Sebastian Günther
* Saphirus Sage (saphirus...@gmail.com) [12.03.09 00:53]: > I've been trying to setup my laptop to enter ACPI S3 (suspend to ram) > when I close the lid. I currently have the scripts setup as such: > /etc/acpi/events/lid > event=button[ /]lid.* > action=/etc/acpi/actions/lid.sh Looks norma

Re: [gentoo-user] Bash and ACPI issue - laptop lid

2009-03-11 Thread Saphirus Sage
Mike Kazantsev wrote: > On Wed, 11 Mar 2009 18:41:56 -0400 > Saphirus Sage wrote: > > >> The issue I've run into is that this will cause my laptop to suspend to >> the RAM upon any change in the lid state, irregardless of if it is open >> or closed. I tried to be more specific by utilizing the

Re: [gentoo-user] Bash and ACPI issue - laptop lid

2009-03-11 Thread Mike Kazantsev
On Wed, 11 Mar 2009 18:41:56 -0400 Saphirus Sage wrote: > The issue I've run into is that this will cause my laptop to suspend to > the RAM upon any change in the lid state, irregardless of if it is open > or closed. I tried to be more specific by utilizing the suffix of the > event, but it's inc

[gentoo-user] Bash and ACPI issue - laptop lid

2009-03-11 Thread Saphirus Sage
I've been trying to setup my laptop to enter ACPI S3 (suspend to ram) when I close the lid. I currently have the scripts setup as such: /etc/acpi/events/lid event=button[ /]lid.* action=/etc/acpi/actions/lid.sh /etc/acpi/actions/lid.sh #!/bin/bash for i in $(cat /proc/acpi/button/li