xrandr - Display Auflösung hinzufügen

Konfigurationen zu Systemfunktionen von Betriebssystemen. Also alles was nicht in die Kategorie Anwendungsprogramme passt aber zur Softwarekategorie gehört. In der Regel CPU Architektur Übergreifend (ARM, PPC, x86, x64)
Post Reply
User avatar
h3rb3rn
Administrator
Posts: 189
Joined: Mon 9. Feb 2015, 23:29

xrandr - Display Auflösung hinzufügen

Post by h3rb3rn »

Fassung vom 26.01.2018

Fehlende Display Auflösung hinzufügen. Hier im Beispiel eine Auflösung von 1360x768 Pixel.

Quelle: https://wiki.ubuntuusers.de/RandR/



Anschluss ermitteln

Code: Select all

sudo bash
xrandr
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
DVI-0 disconnected (normal left inverted right x axis y axis)
VGA-0 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 60.00*
800x600 60.32 56.25
848x480 60.00
640x480 59.94


Monitor Frequenz zur Auflösung ermitteln

Code: Select all

cvt 1360 768
# 1360x768 59.80 Hz (CVT) hsync: 47.72 kHz; pclk: 84.75 MHz
Modeline "1360x768_60.00" 84.75 1360 1432 1568 1776 768 771 781 798 -hsync +vsync


Auflösung und Frequenzwerte anlegen

Code: Select all

xrandr --newmode "1360x768_60.00"   84.75  1360 1432 1568 1776  768 771 781 798 -hsync +vsync
exit
xrandr --addmode VGA-0 "1360x768_60.00"


Für Neustart automatisch anlegen

Code: Select all

sudo echo "xrandr --newmode \"1360x768_60.00\"   84.75  1360 1432 1568 1776  768 771 781 798 -hsync +vsync" >> /etc/rc.local
Link: /etc/rc.local aktivieren

Code: Select all

sudo echo "xrandr --addmode VGA-0 \"1360x768_60.00\"" >> ~/.profile


Alternativ ohne /etc/rc.local

Code: Select all

cd ~
vim display.sh
Code einfügen und ggf. anpassen

Code: Select all

#!/bin/bash
sudo xrandr --newmode "1360x768_60.00"   84.75  1360 1432 1568 1776  768 771 781 798 -hsync +vsync
xrandr --addmode VGA-0 "1360x768_60.00"
xrandr --output VGA-0 --mode "1360x768_60.00"
exit 0
Ausführen nach dem Neustart

Code: Select all

sh display.sh
Post Reply