[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Action disabled: register

Welcome to the Slackware Documentation Project

Monitores duales

Se sabe que funciona en Slackware 14.1 y XFCE

Si está ejecutando XFCE y su monitor secundario no funciona, verifique y asegúrese de que esté habilitado en la CONFIGURACIÓN de XFCE:

CONFIGURACIÓN> ADMINISTRADOR DE CONFIGURACIÓN> PANTALLA> mostrar nombre en columna a la izquierda> USAR ESTA SALIDA

Monitores espejo

Por defecto, XFCE (el WM que uso) parece hacer esto por defecto.

Extender el escritorio al segundo monitor

Para extender el escritorio a un segundo monitor (en lugar de duplicar el escritorio), debe usar xrandr para mover el escritorio sobre X número de píxeles. Donde X = la resolución X de su monitor IZQUIERDO.

1) Asegúrese de que el sistema esté 'viendo' la salida de su tarjeta de video y obtenga los nombres de salida:

 xrandr -q 

(Tome nota del nombre de su monitor secundario).

2) Mueva el monitor secundario hacia la derecha

 xrandr --output HDMI-0 --pos 1024x0 # to move the VGA screen 1024 pixels to the right. 

EJEMPLO: Aquí está mi máquina. DVI-I-2 es mi monitor IZQUIERDO y HDMI-0 es mi monitor DERECHO.

[arfon@darkstar ~]$ xrandr -q
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
DVI-I-2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
   1920x1080      60.0*+
   1680x1050      60.0  
   1440x900       59.9  
   1280x1024      75.0     60.0  
   1280x960       60.0  
   1280x800       59.8  
   1280x720       60.0  
   1152x864       75.0  
   1024x768       75.0     70.1     60.0  
   800x600        75.0     72.2     60.3     56.2  
   640x480        75.0     72.8     59.9  
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 521mm x 293mm
   1920x1080      60.0*+   59.9     60.1     60.0  
   1440x480       60.1  
   1280x720       60.0     59.9  
   1024x768       75.0     70.1     60.0  
   800x600        75.0     60.3  
   720x480        59.9     60.1  
   640x480        75.0     59.9     59.9  
DVI-I-3 disconnected (normal left inverted right x axis y axis)
[arfon@darkstar ~]$ xrandr --output HDMI-0 --pos 1920x0

Un buen Scripts de cambio

Aquí hay un script que escribí para alternar entre monitores duales extendidos y un solo monitor:

#!/bin/bash
vPRIMARYMONITOR="DVI-I-0" # <--- CHANGE THIS.  Find using "xrandr -q"
vLOC="--right" # <--- Change this if you want the second monitor in another position. CHOICES: --above  --below  --left  --right
vEXT=$(xrandr -q | grep " connected" | grep -v $vPRIMARYMONITOR | awk '{print $1}' | head -n 1 )
vOnOff=$(xrandr -q | grep $vEXT | sed 's/primary//g' | awk '{print $3}'| sed 's/[0-9]*x[0-9]*+[0-9]*+[0-9]*/ON/g' )
[ "$vOnOff" != "ON" ] && vOnOff="OFF"
if [ "$vOnOff" = "OFF" ]; then
        /usr/bin/xrandr --output $vEXT --auto $vLOC $vPRIMARYMONITOR
        else
        /usr/bin/xrandr --output $vEXT --off
        fi

Script para alternar un monitor espejo

#!/bin/bash
vPRIMARYMONITOR="DVI-I-0" # <--- CHANGE THIS.  Find using "xrandr -q"
vEXT=$(xrandr -q | grep " connected" | grep -v $vPRIMARYMONITOR | awk '{print $1}' | head -n 1 )
vOnOff=$(xrandr -q | grep $vEXT | sed 's/primary//g' | awk '{print $3}'| sed 's/[0-9]*x[0-9]*+[0-9]*+[0-9]*/ON/g' )
[ "$vOnOff" != "ON" ] && vOnOff="OFF"
if [ "$vOnOff" = "OFF" ]; then
	/usr/bin/xrandr --output $vEXT --auto
	else
	/usr/bin/xrandr --output $vEXT --off
	fi

Funetes

  • Originalmente escrito por arfon

  • Traducido por: Victor 2019/02/19 20:02 (UTC)

 es:howtos:window_managers:dual_monitors ()