Re: Disabling powersaving temporarily from olpc-session?

2010-07-10 Thread Hal Murray
p...@laptop.org said:
 close, but not quite.   /var/run/powerd-inhibit-suspend/ is a directory. 

Thanks for the correction.


 google is a good reference.  when all else fails, read the comments in
 /usr/bin/powerd.  overly verbose, perhaps, but hopefully complete.  :-)

That's actually /usr/sbin/powerd  (sbin vs bin)

Nice work.  Thanks.


One of the quirks about the XO is the lack of man pages.

Is there an obvious/simple way to discover that the documentation for X is in 
the executable itself so that which X, more/vi $X will tell me what I'm 
looking for?

I suppose it's worth a try  to assume that it's a script rather than a binary 
blob and see if more/vi works.


-- 
These are my opinions, not necessarily my employer's.  I hate spam.



___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Disabling powersaving temporarily from olpc-session?

2010-07-09 Thread Hal Murray

martin.langh...@gmail.com said:
 what would be the right way to signal to powerd that for this session
 aggressive suspend should be suspended, or its timeout lengthened to several
 minutes, without affecting the normal setting? 

My notes say that:
  touch /var/run/powerd-inhibit-suspend
Will inhibit suspend.

Google finds this:
  http://www.mail-archive.com/devel@lists.laptop.org/msg22607.html



-- 
These are my opinions, not necessarily my employer's.  I hate spam.



___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Disabling powersaving temporarily from olpc-session?

2010-07-09 Thread Paul Fox
hal wrote:
  
  martin.langh...@gmail.com said:
   what would be the right way to signal to powerd that for this session
   aggressive suspend should be suspended, or its timeout lengthened to 
   several
   minutes, without affecting the normal setting? 
  
  My notes say that:
touch /var/run/powerd-inhibit-suspend
  Will inhibit suspend.

close, but not quite.   /var/run/powerd-inhibit-suspend/ is a directory.

  
  Google finds this:
http://www.mail-archive.com/devel@lists.laptop.org/msg22607.html
  

google is a good reference.  when all else fails, read the
comments in /usr/bin/powerd.  overly verbose, perhaps, but
hopefully complete.  :-)

there's no good way to lengthen the timeout temporarily.  to
disable, create a file in /var/run/powerd-inhibit-suspend/ whose
name is the pid of the session.  i.e., in olpc-session, do:
 touch /var/run/powerd-inhibit-suspend/$$

there's no need to clean up, so the exec at the end of
olpc-session isn't a problem.

paul
=-
 paul fox, p...@laptop.org
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel