How to reset the screen through command?

Michael Zanetti lists at
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:

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 

Don't forget to make it executable!


More information about the support mailing list