{{tag>Graphique}} = Notes Linux graphique écran Voir **arandr** l'outil graphique pour configurer **xrandr** Pour connaître le dpi d’un écran, il suffit de taper : xdpyinfo | grep resolution xrandr Test graphique apt-get install mesa-utils glxgears __GL_SYNC_TO_VBLANK=0 glxgears Voir * http://us.download.nvidia.com/XFree86/Linux-x86/367.57/README/openglenvvariables.html * https://www.pcsuggest.com/gpu-benchmarking-and-stress-testing-in-linux/ Avez-vous l'accélération 3D glxinfo |grep direct direct rendering: Yes Sous Ubuntu /usr/lib/nux/unity_support_test -p A cause de grsecurity ? apt-get install xresprobe ddcprobe Erreur de segmentation echo $? 139 xrandr Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192 VGA-0 disconnected (normal left inverted right x axis y axis) HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm 1920x1080 60.00*+ 1680x1050 59.95 1280x1024 75.02 60.02 1152x864 75.00 1024x768 75.08 60.00 800x600 75.00 60.32 640x480 75.00 60.00 720x400 70.08 http://doc.ubuntu-fr.org/xrandr === Écran Voir : brightnessctl ou Portable : Changer la luminosité de l'écran # basename -a $(find /sys/devices/pci* -type f -name "*brightness" -not \( -wholename '*/backlight/*' -o -wholename '*/leds/*' \) ) brightness max_brightness actual_brightness # cat $(find /sys/devices/pci* -type f -name "*brightness" -not \( -wholename '*/backlight/*' -o -wholename '*/leds/*' \) ) 70 255 51 # dirname $(find /sys/devices/pci* -type f -name "*brightness" -not \( -wholename '*/backlight/*' -o -wholename '*/leds/*' \) ) | uniq /sys/devices/pci0000:00/0000:00:01.0/drm/card0/card0-LVDS-1/radeon_bl0 # echo 40 > /sys/devices/pci0000:00/0000:00:01.0/drm/card0/card0-LVDS-1/radeon_bl0/brightness A titre d'exemple sur mon portable : ''/etc/rc.local'' #!/bin/sh -e sleep 20 && echo 70 > /sys/devices/pci0000:00/0000:00:01.0/drm/card0/card0-LVDS-1/radeon_bl0/brightness exit 0 !! Attention : rc.local n'est pas lancé par défaut avec systemd == Autres écran EDID apt-get install read-edid get-edid | parse-edid https://wiki.ubuntu.com/X/Config/Resolution OUTPUT=$(xrandr 2>&1|grep --color ' connected primary' | awk '{print $1}') xrandr --output $OUTPUT --mode 1024x768 #xrandr --output $OUTPUT --orientation right --mode 768x1024 Voir arandr Désactiver / Réactiver la mise en veille après x minutes xset s off xset s activate discover --vendor-id --model-id pci | uniq Résolution xrandr -s 1024x768 Voir aussi arandr A tester \\ Source https://gist.github.com/waiting-for-dev/9487493 # Put in /etc/gdm3/Init/Default or ~/.xprofile cvt 1280 720 60 xrandr --newmode "1280x720_60.00" 74.50 1280 1344 1472 1664 720 723 728 748 -hsync +vsync xrandr --addmode VGA-0 1280x720_60.00 Voir aussi arandr === Limineusité Ecran find /sys/devices/pci* -type f -name "*brightness" === Rotation ==== Rotation automatique au démarrage sous Gnome Normalement c'est dans Voir http://bernaerts.dyndns.org/linux/74-ubuntu/309-ubuntu-dual-display-monitor-position-lost NOTE : le fichier pourrait est placé ici : /etc/gnome-settings-daemon/xrandr/monitors.xml ''~/.config/monitors.xml'' no ELO ET1515L-2UWC 0x000084d6 768 1024 60.003841400146484 0 0 right no no yes no Le "OUTPUT" peut être trouvée grâce à DISPLAY=:0 xrandr 2>&1|grep ' connected primary' | awk '{print $1}' Une solution pour les PC en UEFI : Passer au grub : video=efifb fbcon=rotate:1 ===== Solution Install xrandr apt-get x11-xserver-utils ''/usr/local/bin/screenrotated.sh'' #! /bin/bash if [ ! -e /home/user/.config/monitors.xml ] then env DISPLAY=:0 xrandr -o right fi chmod +x /usr/local/bin/screenrotated.sh ''/etc/xdg/autostart/display-rotated.desktop'' [Desktop Entry] Type=Application Name=Hack Display rotated Comment=Display rotated pi/2 #Exec=env DISPLAY=':0' xrandr -o right Exec=/usr/local/bin/screenrotated.sh X-GNOME-Autostart-Phase=Desktop X-GNOME-AutoRestart=false X-GNOME-Autostart-Notify=true ==== Autres notes rotation d'écrans echo 1 |sudo tee /sys/class/graphics/fbcon/rotate # Rotate all virtual framebuffers: echo 1 |sudo tee /sys/class/graphics/fbcon/rotate_all == Autres ''~/.config/autostart/lxrandr-autostart.desktop'' [Desktop Entry] Type=Application Name=Démarrage automatique de LXRandR Comment=Démarrer xrandr avec les paramètres configurés dans LXRandR Exec=sh -c 'xrandr --output HDMI-0 --auto --left-of LVDS --output LVDS --mode 1366x768 --rate 60.00' OnlyShowIn=LXDE Ou ''~/.config/autostart/lxqt-config-monitor-autostart.desktop'' [Desktop Entry] Comment=Autostart monitor settings for LXQt-config-monitor Exec=lxqt-config-monitor -l Name=lxqt-config-monitor-autostart OnlyShowIn=LXQt Type=Application Version=1.0 Conf ici : ''~/.config/lxqt/lxqt-config-monitor.conf''