Re: [Server-devel] turn off backlight on XS-on-XO1

2010-03-03 Thread Paul Fox
anna wrote:
  I'd appreciate a command to blank the screen.  I installed olpc-kbdshim from

when you installed olpc-kbdshim i think you should have also
gotten a new command to control the display:  olpc-brightness,
which takes up, down, min, max, or a number between 0 and
15 as an argument.  it needs to run as root.

  the repo and then
  http://dev.laptop.org/~pgf/rpms/olpc-powerd-9-1.fc9.i386.rpm.  Tried editing
  /etc/powerd/powerd.conf to make the screen blank, but I guess I don't know
  what I'm doing cause it's not working.

i'm happy to help you figure this out if you can post more details of
what you've done/tried, etc.

settings something like this should work:
config_PLUGGED_TIME_DIM=60
config_PLUGGED_TIME_BLANK=90
config_PLUGGED_TIME_SLEEP=9
config_BATTERY_TIME_DIM=60
config_BATTERY_TIME_BLANK=90
config_BATTERY_TIME_SLEEP=9

this makes things work identically when on battery or wall power,
and tells the laptop not to go to sleep for about 30 years.

after making the config changes, run powerd-config =reconfig. 
(oh -- in your somewhat older version, you may need to do this
manually, with echo reconfig /var/run/powerevents, or simply
reboot.)

  
  In my particular situation, I usually just make sure the XS on XO is booted
  up and online, then ssh in from another machine.  So the ability to turn the
  backlight off at will would be great.
  
  When I have a screen at all, that is.  I've been messing around with XS on
  XO on a couple of XOs that have been stripped for parts cause of one issue
  or another.  But that's another story.

removing the backlight LED is certainly an effective way of
reducing the brightness.  :-)

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


Re: [Server-devel] turn off backlight on XS-on-XO1

2010-03-02 Thread Martin Langhoff
Good question. Could we run Paul's power daemon configured to dim
screen completely if there is no VT user actvity?

cc' ing Paul and devel -



m


On Tue, Mar 2, 2010 at 2:26 AM, Sameer Verma sve...@sfsu.edu wrote:
 Is there any way to turn off the backlight on a XS-on-XO1? Keyboard
 control doesn't do it.

 Sameer
 --
 Dr. Sameer Verma, Ph.D.
 Associate Professor, Information Systems
 Director, Campus Business Solutions
 San Francisco State University
 http://verma.sfsu.edu/
 http://cbs.sfsu.edu/
 http://is.sfsu.edu/
 ___
 Server-devel mailing list
 Server-devel@lists.laptop.org
 http://lists.laptop.org/listinfo/server-devel




-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] turn off backlight on XS-on-XO1

2010-03-02 Thread Paul Fox
martin wrote:
  On Tue, Mar 2, 2010 at 2:34 PM, Paul Fox p...@laptop.org wrote:
   yes, that would probably work.  there's no X11 requirement in kbdshim
   or powerd.   but to be clear:  is the requirement for blanking after
   an idle period?  or do you just want a command to blank the screen?
   because the latter can be created pretty easily.
  
  I want it on idle :-)

i figured.  :-)

unfortunately kernel console blanking was never tied to the dcon --
i think it's one of several issues with bare console use on the
XO.  (the console has never been a priority.)

you can install olpc-kbdshim and olpc-powerd, and adjust the
powerd config to never dim and/or blank the display without ever
suspending.  the fedora F9 packages should work for this.

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


Re: [Server-devel] turn off backlight on XS-on-XO1

2010-03-02 Thread Anna
On Tue, Mar 2, 2010 at 1:34 PM, Paul Fox p...@laptop.org wrote:

 martin wrote:
   Good question. Could we run Paul's power daemon configured to dim
   screen completely if there is no VT user actvity?

 yes, that would probably work.  there's no X11 requirement in kbdshim
 or powerd.   but to be clear:  is the requirement for blanking after
 an idle period?  or do you just want a command to blank the screen?
 because the latter can be created pretty easily.

 paul


I'd appreciate a command to blank the screen.  I installed olpc-kbdshim from
the repo and then
http://dev.laptop.org/~pgf/rpms/olpc-powerd-9-1.fc9.i386.rpm.  Tried editing
/etc/powerd/powerd.conf to make the screen blank, but I guess I don't know
what I'm doing cause it's not working.

In my particular situation, I usually just make sure the XS on XO is booted
up and online, then ssh in from another machine.  So the ability to turn the
backlight off at will would be great.

When I have a screen at all, that is.  I've been messing around with XS on
XO on a couple of XOs that have been stripped for parts cause of one issue
or another.  But that's another story.

Anna Schoolfield
Birmingham
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] turn off backlight on XS-on-XO1

2010-03-02 Thread James Cameron
On Tue, Mar 02, 2010 at 09:00:50PM -0600, Anna wrote:
 I'd appreciate a command to blank the screen.

Your subject line mentions the backlight, and blanking the screen is
potentially a different task.

I've tested an XO-1 with build 802b1.

If you mean the backlight, you can manually control this from a shell
command or program like this:

echo 0  /sys/class/backlight/dcon-bl/brightness

or

echo 0  /sys/devices/platform/dcon/backlight/dcon-bl/brightness

Change the 0 to 15 for full brightness.  With the backlight off, the
screen image should still be visible.

You can manually turn off the screen and hide the screen image with this
shell command:

echo 1  /sys/devices/platform/dcon/sleep

But it doesn't turn back on automatically.  You can appear to lose
control this way; you can restore it to normal with this:

echo 0  /sys/devices/platform/dcon/sleep

The text console does idle blank after a while, though without turning
off the backlight.

It is possible to initiate screen blanking manually using code that
calls ioctl with TIOCLINUX and TIOCL_BLANKSCREEN but like the idle
console blanking it leaves square brackets on screen.  The other three
modes of VESA blanking that the kernel can do (TIOCL_SETVESABLANK) don't
fare any better than the default.  Two of the modes do the bit rot melt down
effect on the display.

It is also possible to manipulate the blanking timers using escape
sequences sent to /dev/tty1 ... but again, we haven't integrated the
VESA blanking feature of the kernel with our DCON and backlight.

-- 
James Cameron
http://quozl.linux.org.au/
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel