I have an acer AL1916W widescreen (1440x900) monitor that I use on my desktop system. Whenever I load it with Porteus it uses 1024x768 resolution, which makes everything look stretched. I did a bit of searching on the web and was finally able to find a solution using xrandr:
Code: Select all
xrandr --newmode "1440x900_75.00" 136.75 1440 1536 1688 1936 900 903 909 942 -hsync +vsync
xrandr --addmode VGA-1 1440x900_75.00
xrandr --output VGA-1 --mode 1440x900_75.00
I would prefer to incorporate this information into my xorg.conf because the xrandr settings don't survive a restart of the xorg server, let alone reboot.
When I run 'xconf', here's the xorg.conf that is generated:
Code: Select all
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib64/xorg/modules"
FontPath "/usr/share/fonts/local"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/CID"
FontPath "/usr/share/fonts/75dpi/:unscaled"
FontPath "/usr/share/fonts/100dpi/:unscaled"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/cyrillic"
EndSection
Section "Module"
Load "dbe"
Load "dri"
Load "dri2"
Load "extmod"
Load "glx"
Load "record"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
Identifier "Card0"
Driver "nouveau"
BusID "PCI:2:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Code: Select all
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib64/xorg/modules"
FontPath "/usr/share/fonts/local"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/CID"
FontPath "/usr/share/fonts/75dpi/:unscaled"
FontPath "/usr/share/fonts/100dpi/:unscaled"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/cyrillic"
EndSection
Section "Module"
Load "dbe"
Load "dri"
Load "dri2"
Load "extmod"
Load "glx"
Load "record"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
# 1440x900 74.98 Hz (CVT 1.30MA) hsync: 70.64 kHz; pclk: 136.75 MHz
Modeline "1440x900_75.00" 136.75 1440 1536 1688 1936 900 903 909 942 -hsync +vsync
EndSection
Section "Device"
Identifier "Card0"
Driver "nouveau"
BusID "PCI:2:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1440x900_75.00"
EndSubSection
EndSection
Code: Select all
[ 11.017] (--) NOUVEAU(0): Chipset: "NVIDIA NV4b"
[ 11.017] (**) NOUVEAU(0): Depth 24, (--) framebuffer bpp 32
[ 11.017] (==) NOUVEAU(0): RGB weight 888
[ 11.017] (==) NOUVEAU(0): Default visual is TrueColor
[ 11.017] (==) NOUVEAU(0): Using HW cursor
[ 11.017] (==) NOUVEAU(0): GLX sync to VBlank disabled.
[ 11.017] (==) NOUVEAU(0): Page flipping enabled
[ 11.017] (==) NOUVEAU(0): Swap limit set to 1 [Max allowed 2]
[ 11.048] (II) NOUVEAU(0): Output DVI-I-1 using monitor section Monitor0
[ 11.062] (II) NOUVEAU(0): Output VGA-1 has no monitor section
[ 11.088] (II) NOUVEAU(0): Output TV-1 has no monitor section
[ 11.118] (II) NOUVEAU(0): EDID for output DVI-I-1
[ 11.132] (II) NOUVEAU(0): EDID for output VGA-1
[ 11.132] (II) NOUVEAU(0): Printing probed modes for output VGA-1
[ 11.132] (II) NOUVEAU(0): Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz)
[ 11.132] (II) NOUVEAU(0): Modeline "800x600"x60.3 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz)
[ 11.132] (II) NOUVEAU(0): Modeline "800x600"x56.2 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz)
[ 11.132] (II) NOUVEAU(0): Modeline "848x480"x60.0 33.75 848 864 976 1088 480 486 494 517 +hsync +vsync (31.0 kHz)
[ 11.132] (II) NOUVEAU(0): Modeline "640x480"x59.9 25.18 640 656 752 800 480 489 492 525 -hsync -vsync (31.5 kHz)
[ 11.158] (II) NOUVEAU(0): EDID for output TV-1
[ 11.158] (II) NOUVEAU(0): Output DVI-I-1 disconnected
[ 11.158] (II) NOUVEAU(0): Output VGA-1 connected
[ 11.158] (II) NOUVEAU(0): Output TV-1 disconnected
[ 11.158] (II) NOUVEAU(0): Using fuzzy aspect match for initial modes
[ 11.158] (II) NOUVEAU(0): Output VGA-1 using initial mode 1024x768
[ 11.158] (II) NOUVEAU(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
[ 11.158] (--) NOUVEAU(0): Virtual size is 1024x768 (pitch 0)
[ 11.158] (**) NOUVEAU(0): Driver mode "1024x768": 65.0 MHz (scaled from 0.0 MHz), 48.4 kHz, 60.0 Hz
[ 11.158] (II) NOUVEAU(0): Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz)
[ 11.158] (**) NOUVEAU(0): Driver mode "800x600": 40.0 MHz (scaled from 0.0 MHz), 37.9 kHz, 60.3 Hz
[ 11.158] (II) NOUVEAU(0): Modeline "800x600"x60.3 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz)
[ 11.158] (**) NOUVEAU(0): Driver mode "800x600": 36.0 MHz (scaled from 0.0 MHz), 35.2 kHz, 56.2 Hz
[ 11.158] (II) NOUVEAU(0): Modeline "800x600"x56.2 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz)
[ 11.158] (**) NOUVEAU(0): Driver mode "848x480": 33.8 MHz (scaled from 0.0 MHz), 31.0 kHz, 60.0 Hz
[ 11.158] (II) NOUVEAU(0): Modeline "848x480"x60.0 33.75 848 864 976 1088 480 486 494 517 +hsync +vsync (31.0 kHz)
[ 11.158] (**) NOUVEAU(0): Driver mode "640x480": 25.2 MHz (scaled from 0.0 MHz), 31.5 kHz, 59.9 Hz
[ 11.158] (II) NOUVEAU(0): Modeline "640x480"x59.9 25.18 640 656 752 800 480 489 492 525 -hsync -vsync (31.5 kHz)
[ 11.158] (==) NOUVEAU(0): DPI set to (96, 96)
[ 11.158] (II) Loading sub module "fb"
[ 11.158] (II) LoadModule: "fb"
As I look through this, perhaps this is a good clue for me:
[ 11.062] (II) NOUVEAU(0): Output VGA-1 has no monitor section
VGA-1 is the monitor that I'm manipulating with xrandr, so why are my changes applied to DVI-I-1 instead of VGA-1? My video card (nVidia GeForce 7600 GS) Has a digital and analog output...maybe I need to force the use of one instead of the other somehow?
Thanks for any guidance you guys can provide.