Setting up Eizo Flexscan EV2316W LCD Monitor under Linux with xrandr
Using OpenSuse 11.4 and a DELL d820 laptop.
The monitor supports a max pixel clock of 148.50:
# xrandr --newmode "1920x1080" 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
# xrandr --addmode VGA 1920x1080
# xrandr --output LVDS --off
# xrandr --output VGA --mode 1920x1080
If you are using KDE4 you may experiment a "mouse disappear" problem after changing screen resolution as shown; the only workaroud I found is the following (needs sudo):
# sudo /bin/chvt 1; sudo /bin/chvt 7
Here below a script for automating this:
#!/bin/bash
function VGAConnected {
! xrandr | grep "^VGA" | grep disconnected
}
stillthere=`xrandr | grep 1920x1080`
if [ "x$stillthere" = "x" ]
then
xrandr --newmode "1920x1080" 148.50 1920 2008 2052 2200 1080 1084 1089 1125 +hsync +vsync
xrandr --addmode VGA 1920x1080
fi
if VGAConnected
then
xrandr --output LVDS --off
xrandr --output VGA --mode 1920x1080
# workaround for mouse disappear (needs sudo)
sudo /bin/chvt 1; sudo /bin/chvt 7
else
xrandr --output LVDS --mode 1680x1050 --primary --same-as VGA --output VGA --off
fi
Nessun commento:
Posta un commento