You are not logged in.

#1 2009-05-22 00:25:16

keegan
Member
Registered: 2009-05-12
Posts: 54

Console resolution and X on dual screen

I'm using a laptop with an external display.
The laptop max resolution is 1024x600 and the external's is 1680x1050.
I've got xorg running this script on login:

# If an external monitor is connected, place it with xrandr
 
# External output may be "VGA" or "VGA-0" or "DVI-0" or "TMDS-1"
EXTERNAL_OUTPUT="VGA"
INTERNAL_OUTPUT="LVDS"
 
xrandr |grep $EXTERNAL_OUTPUT | grep " connected "
if [ $? -eq 0 ]; then
    xrandr --output $INTERNAL_OUTPUT --off --output $EXTERNAL_OUTPUT --auto
else
    xrandr --output $INTERNAL_OUTPUT --auto --output $EXTERNAL_OUTPUT --off
fi

Then when I close my window manager, this script runs:

#/bin/sh
xrandr --output VGA --off --output LVDS --auto
fluxbox-remote "Exit"

The only time the console resolution is correct is after i've closed my window manager and this script has run.
I'm using hal and don't have an xorg.conf. Is this the issue? I also have VGA=790 in my grub config. I guess my question is, what am I missing, and would there be a better way to do this?

Edit: if it helps, im using an intel gma945 in an msi wind

Last edited by keegan (2009-05-22 00:43:39)

Offline

#2 2009-05-22 21:57:01

keegan
Member
Registered: 2009-05-12
Posts: 54

Re: Console resolution and X on dual screen

Okay, I got the console to work from bootup using vga=normal. Now the only time my console is unusable is after leaving xorg when I had been using the external screen and didn't run my script at logout. So when i reboot/shutdown, kill x, crash x or switch to a vt (ctrl-alt-Fx) the screen is jacked up. If I never startx, or make sure to use my script to close x, everything is okay.

Offline

Board footer

Powered by FluxBB