l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
October 20: Web Application Hacking: How to Make and Break Security on the Web
Next Installfest:
TBD
Latest News:
Oct. 10: LUGOD Installfests coming again soon
Page last updated:
2009 Mar 10 19:19

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Insomniac laptop (was Hard drive dying?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Insomniac laptop (was Hard drive dying?)



On Thu, 2009-02-26 at 12:35 -0800, Alex Mandel wrote:
> Chanoch (Ken) Bloom wrote:
> > I unfortunately have such an insomniac laptop. I think that it's likely
> > that the lid button is too sensitive to bumps, and would like to know if
> > there's a way to work around this in software. (e.g. if the computer
> > wakes up to find that the lid button is closed, put the computer back to
> > sleep automatically.)
> > 
> > Any tips?
> > 
> > --Ken

> The tried and true method is to turn it off. If you really care about
> fast load times, get a solid state and be done with it.
> 
> I long since gave up on using any of the sleep,hibernate etc modes as
> they are simply unreliable. Even if they work one day, a few updates
> later always seems to break them. Case, how many windows xp desktops do
> you know of that can still properly go sleep and come back. Every one I
> ever worked on had that feature stop working somewhere between years 1
> and 3.
> 
> You could always physically hack you laptop and replace the lid sensor
> with a physical switch of some kind.

I finally concluded that the best strategy was to
modify /etc/acpi/sleep.sh (the script that puts my laptop to sleep) to
use /proc to check the lid state:

   echo mem > /sys/power/state
   #The computer ends up here the first time it wakes up
   if [[ -e /proc/acpi/button/lid/LID/state ]]; then
      while grep closed /proc/acpi/button/lid/LID/state; do
         echo mem > /sys/power/state
      done
   fi

If it wakes up and finds the lid closed, it goes right back to sleep.

--Ken

-- 
Ken (Chanoch) Bloom. PhD candidate. Linguistic Cognition Laboratory.
Department of Computer Science. Illinois Institute of Technology.
http://www.iit.edu/~kbloom1/

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!