[ltp] T30:Projector resolution hassles

James Hawtin linux-thinkpad@linux-thinkpad.org
Tue, 27 Apr 2004 02:11:09 +0000


On Mon, Apr 26, 2004 at 10:25:50AM -0700, Humberto Nanni wrote:
> Update:
> 
> Damn! First hang...
> The xserver just frozen... (xmms keep running in the
> background). I was just doing a remote session with
> ddd trough ssh -Y...
> Now I just dont know how to proceed as I cant unistall
> ati-drivers as then I wont have an external display,
> but I cant work just waiting for an unwanted hang...

Ok I am not sure about the freeze up, but using the Xorg server. I found
that the were the options in the ati driver.

    Option "crt_screen"

and

    Option "panel_display"

I use a small script that first runs the server with 

/usr/Xserver/bin/X -probeonly -verbose 1

This allows me to do the following

test=`/usr/Xserver/bin/X -probeonly -verbose 1 2>&1 | grep "Monitor name" | cut -c28-100`
echo -n "Starting XDM: "
case "A$test" in
"Ahp 7550") config=/var/xdm/xdm-config1280 ;;
A) config=/var/xdm/xdm-config ;;
*) config=/var/xdm/xdm-config1600 ;;
esac
/usr/X11R6/bin/xdm -config $config

The different xdm configs reference different Xserver files.

DisplayManager.servers:         /var/xdm/Xservers1280

Each of the server files have different layouts in the XF86Config (So I keep
one config file for the Xserver)

:0 local /usr/Xserver/bin/X -layout crt1280 

An example layouts section from my XF86Config

Section "ServerLayout"
    Identifier  "dusk"
    Screen      "lcd"
    InputDevice "ps2" "CorePointer"
    InputDevice "usbmouse" "SendCoreEvents"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

Section "ServerLayout"
    Identifier  "crt1280"
    Screen      "crt1280
    InputDevice "ps2" "CorePointer"
    InputDevice "usbmouse" "SendCoreEvents"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

My XF86Config has different screen setting for diffent monitors its
encounters (assumption is 1600x1200 on crt). Personally I find an LCD ghost
very distracting so its rather nice to turn it off completely.

So Anyway how does this help you, using this you could write a detection
system for your Projector and switch you Xserver into an appropriate display
size and depth for it. If the LCD gets in the way, you can avoid that
problem by turning it "off", in which case the Xserver only looks at the
seting the of CRT (projector).

James