How to reset the screen through command?

Michael Zanetti lists at follefuder.org
Wed Feb 9 23:09:26 CET 2011


On Sunday, February 06, 2011 09:44:48 dukelec wrote:
> I tried many distributions of openmoko(current is FSR on FreeRunner), the
> same problem is : There was nothing display but white when resume from black
> screen sometimes.
> 
> I consider to write a shell, and bind it to aux button... but I need the
> command which can reset & init screen(How To?)...
> 
> It's better for me if you guys to put the actions to kernel...

try this script:

#!/bin/sh
export DISPLAY=:0
echo "qvga-normal" > /sys/bus/spi/devices/spi2.0/state
echo "normal" > /sys/bus/spi/devices/spi2.0/state
xrandr -s 480x640

To run it automatically on every wakeup put the script to 
/etc/apm/resume.d/01display

Don't forget to make it executable!


Cheers,
Michael



More information about the support mailing list