What I have to do for the same?

Paul Fox pgf at laptop.org
Mon Feb 4 09:17:41 EST 2013


pascal at diogoantunes.org wrote:
 > Quoting Paul Fox <pgf at laptop.org>:
 > 
 > > pascal at diogoantunes.org wrote:
 > >  > Hi,
 > >  > I have a simple question:
 > >  > when I use my XO-1, if I do nothing, after 15 sec, it changes to a
 > >  > middle-suspend : only the screen isn't off.
 > >  > So what I have to enable or disable to have the same on another init
 > >  > mod (init 2 for example)?
 > >  > Because I would to have the minimum of services (with my initdefault
 > >  > on starting up), without modificate my init (5). So for the moment, I
 > >  > have modificated the inittab, but now, I would to have the
 > >  > middle-suspend on inactivited use.
 > >  > How and what I have to do?
 > >
 > > this is the correct list for your question.
 > >
 > > the "middle suspend" you speak of, triggered by inactivity, is
 > > provided by /usr/sbin/powerd.  powerd doesn't care about init
 > > levels, so if you arrange to have powerd run in runlevel 2, then
 > > you will get the same behavior you currently get in runlevel 5.
 > >
 > > the configuration for powerd is found in /etc/powerd/powerd.conf.
 > > there is more documentation in the comments in /usr/sbin/powerd itself.
 > > (for better or worse, powerd is a shell script.)  any modifications
 > > you make to the powerd configuration will take effect both in init 5
 > > and in init 2.
 > >
 > > paul
 > >
 > >  >
 > >  > Thanks in advance.
 > >  >
 > >  > Best Regards,
 > >  > Pascal Diogo Antunes.
 > >  >
 > >  > ps: sorry if i wrote on the wrong list, but i didn't have response on
 > >  > the test at list.
 > >  >
 > >  > _______________________________________________
 > >  > Devel mailing list
 > >  > Devel at lists.laptop.org
 > >  > http://lists.laptop.org/listinfo/devel
 > >
 > > =---------------------
 > >  paul fox, pgf at laptop.org
 > >
 > 
 > Okay thanks.
 > The problem is on the init 2 mod, even with powerd runed, I have no  
 > reactions (with screen blank or freeze) on a idle functionment.
 > I change the values on configuration, but it works only on init 5.
 > No big deal, I did simple test, I will do all what I want on init 5.
 > So you said all I needed.

there are two other programs that i forgot about.  sorry.  you also
need to be sure that olpc-switchd and olpc-kbdshim are running in
init 2.  these are support programs that help powerd.

(you didn't say what software version you are running on your XO-1.
on recent systems, olpc-kbdshim is a standalone daemon, but on
earlier systems its invoked via hal.)

paul

 > Thanks.
 > 
 > Libere,
 > Pascal Diogo Antunes.

=---------------------
 paul fox, pgf at laptop.org



More information about the Devel mailing list