--- Stefan Seyfried <[EMAIL PROTECTED]> wrote:

> On Tue, Jan 02, 2007 at 07:27:56AM -0800, Chirag
> Rajyaguru wrote:
> > Hello,
> > 
> > I have posted some time ago that my compaq nx7010
> > (with suse 10.1) resumes spuriously if lid switch
> is
> > enabled in /proc/acpi/wakeup. Pavel has commented
> that
> > CMOS can do that and only solution was to disable
> the
> > lid switch in /proc/acpi/wakeup. I tried that and
> it
> > worked also. However, If I write a script e.g
> > prepare_resume_before_suspend_to_ram which checks
> if
> > lid is really open or still closed from
> > /proc/acpi/button/lid/<name of lid switch/state,
> what
> > would be the correct exit code for that script so
> that
> > no resuming takes place in case of spurious event.
> >         Or you guys think when such an event
> happens
> > the lid state in /proc structure would also
> reflect
> > "open" instead of "close".
> 
> Nobody knows. Since this is probably a glitch in
> your BIOS, anything
> can happen here.
> 
> But it would not help anyway, since once your script
> starts running,
> you have already resumed. You could of course
> immediately suspend
> again, but this would need to be tested well :-)

Yes, you have a valid point. I will post back if I can
do something like immediately suspending it back.

thanks.

Chirag


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel

Reply via email to