venerdì 14 febbraio 2014

Philips 226V4LAB: xrandr settings

Setting up Philips 226V4LAB LCD Monitor under Linux with xrandr



Using OpenSuse 11.4 and an old eeePC 701.

The monitor seems to support a max pixel clock of 138.50:

# xrandr --newmode "1920x1080R"  138.50  1920 1968 2000 2080  1080 1083 1088 1111 +hsync -vsync
# xrandr --addmode VGA1 1920x1080R

# xrandr --output VGA1 --rate 59.9* --mode 1920x1080R
# xrandr --output VGA1 --rate 59.9* --mode 1920x1080R --output LVDS1 --off



Here below a script for automating this:



#!/bin/bash

function VGAConnected {
    ! xrandr | grep "^VGA" | grep disconnected
}

stillthere=`xrandr | grep 1920x1080R`
if [ "x$stillthere" = "x" ]
then
  xrandr --newmode "1920x1080R"  138.50  1920 1968 2000 2080  1080 1083 1088 1111 +hsync -vsync
  xrandr --addmode VGA1 1920x1080R
fi

if VGAConnected
then
  xrandr --output VGA1 --rate 59.9* --mode 1920x1080R
  sleep 1
  xrandr --output VGA1 --rate 59.9* --mode 1920x1080R --output LVDS1 --off
fi

Nessun commento:

Posta un commento