[FSO] "WSOD" fixed - automatic script execution on resume?

Yaroslav Halchenko site-openmoko.org at onerussian.com
Sun Feb 15 23:27:59 CET 2009


please correct me if I am wrong but without exporting DISPLAY variable
it is of no effect within any of the called commands (ie xrandr), unless
apm itself exports DISPLAY while running  those scripts (not sure why it
should though) so you better off replacing

DISPLAY=:0.0
to
export DISPLAY=:0.0


On Sun, 15 Feb 2009, John Sullivan wrote:

> #!/bin/sh

> # Temporary fix to bring the display back after resume

> DISPLAY=:0.0
> echo "qvga-normal" > /sys/bus/spi/devices/spi2.0/state
> echo "normal" > /sys/bus/spi/devices/spi2.0/state
> xrandr -s 480x640
-- 
                                  .-.
=------------------------------   /v\  ----------------------------=
Keep in touch                    // \\     (yoh@|www.)onerussian.com
Yaroslav Halchenko              /(   )\               ICQ#: 60653192
                   Linux User    ^^-^^    [175555]





More information about the devel mailing list