Page brouillon, et ca se voit ;)

cf ca : http://blog.developpez.com/rsharp/p11076/linux/ubuntu_ajout_d_un_mode_d_affichage_non_l voila comment jouer avec les modes

adlp@RBS-ADLP-LNX:/tmp$ xrandr

adlp@RBS-ADLP-LNX:/tmp$ xrandr --delmode VGA1 1280x1024

adlp@RBS-ADLP-LNX:~$ gtf 1280 1024 60.0

  # 1280x1024 @ 60.00 Hz (GTF) hsync: 63.60 kHz; pclk: 108.88 MHz
  Modeline "1280x1024_60.00"  108.88  1280 1360 1496 1712  1024 1025 1028 1060  -HSync +Vsync


******
  # 1280x1024 @ 56.20 Hz (GTF) hsync: 59.46 kHz; pclk: 101.79 MHz
  Modeline "1280x1024_56.20"  101.79  1280 1360 1496 1712  1024 1025 1028 1058  -HSync +Vsync

adlp@RBS-ADLP-LNX:/tmp$ xrandr --newmode *1280x1024*  101.79  1280 1360 1496 1712  1024 1025 1028 1058  -HSync +Vsync
X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  149 (RANDR)
  Minor opcode of failed request:  16 (RRCreateMode)
  Serial number of failed request:  25
  Current serial number in output stream:  25
adlp@RBS-ADLP-LNX:/tmp$ xrandr --addmode VGA1 1280x1024
adlp@RBS-ADLP-LNX:/tmp$ xrandr
Screen 0: minimum 320 x 200, current 1680 x 1050, maximum 8192 x 8192
VGA1 connected (normal left inverted right x axis y axis)
   1360x768       59.8  
   1024x768       60.0  
   800x600        60.3     56.2  
   848x480        60.0  
   640x480        59.9     59.9  
   1280x1024      85.0  
LVDS1 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 331mm x 207mm
   1680x1050      60.1*+   84.9     74.9     69.9     60.0     50.1  
   1600x1024      60.2  
   1400x1050      85.0     74.8     70.0     60.0  
   1280x1024      85.0     75.0     60.0  
   1440x900       59.9  
   1280x960       85.0     60.0  
   1360x768       59.8  
   1152x864      100.0     85.1     85.0     75.0     75.0     70.0     60.0  
   1024x768       85.0     75.0     70.1     60.0  
   832x624        74.6  
   800x600        85.1     72.2     75.0     60.3     56.2  
   640x480        85.0     72.8     75.0     59.9  
   720x400        85.0  
   640x400        85.1  
   640x350        85.1  
DP1 disconnected (normal left inverted right x axis y axis)
  1280x1024_60.00 (0x17d)  108.0MHz
        h: width  1280 start 1360 end 1496 total 1712 skew    0 clock   63.1KHz
        v: height 1024 start 1025 end 1028 total 1060           clock   59.5Hz
  *1280x1024* (0x17e)  108.0MHz
        h: width  1280 start 1360 end 1496 total 1712 skew    0 clock   63.1KHz
        v: height 1024 start 1025 end 1028 total 1060           clock   59.5Hz
adlp@RBS-ADLP-LNX:/tmp$ video buro
Activation VGA1
Sync de l'ecran principal
Placage a droite du second ecran

#!/bin/sh -e

COMMAND="$1"

case $COMMAND in
mono)
    echo "Desactivation ecran VGA1"
    xrandr --output VGA1 --off
    echo "Mode confort de l'ecran principal"
    xrandr --output LVDS1 --mode 1680x1050
    ;;
buro)
    echo "Activation VGA1"
    xrandr --output VGA1 --mode 1280x1024
    echo "Sync de l'ecran principal"
    xrandr --output LVDS1 --mode 1280x1024
    echo "Placage a droite du second ecran"
    xrandr --output VGA1 --right-of LVDS1
    ;;
bd)
    echo "Activation VGA1"
    xrandr --output VGA1 --mode 1280x1024
    echo "Sync de l'ecran principal"
    xrandr --output LVDS1 --mode 1280x1024
    echo "Memes ecrans"
    xrandr --output VGA1 --same-as LVDS1
    ;;
*)
    echo ""
    echo "mono  : Desactivation sortie VGA1 / Mise en mode confort de l'ecran principal"
    echo "buro  : Actication, ecran VGA1, en mode buro, sync des ecrans, mise a droite..."
    echo "bd    : Pareil que buro, sauf que les ecrans sont doubles"
    echo "mais  : Mode maison.... cf bureau en + mieux"
    exit 1
esac

On peut modifier aussi la luminosite en ligne de commande, merci a http://www.commandeslinux.fr/comment-changer-la-luminosite-de-votre-encran-en-ligne-de-commande-avec-xrandr/

xrandr --output $(xrandr|grep ' connected '|awk '{print $1}' ) --brightness 0.9

docs/linuxeries/modification_en_live_du_mode_video.txt · Dernière modification: 2014/03/26 16:15 par adlp
Recent changes RSS feed Debian Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki