jak podłączyć drugi monitor do laptopa pod Xfce4 lub Lxde:
w konsoli dajemy
Kod: Zaznacz cały
xrandr
Kod: Zaznacz cały
ddd@laptop1mdm:~$ xrandr
Screen 0: minimum 320 x 200, current 2560 x 1024, maximum 8192 x 8192
LVDS1 connected 1280x800+1280+0 (normal left inverted right x axis y axis) 331mm x 207mm
1280x800 60.0*+
1024x768 60.0
800x600 60.3 56.2
640x480 59.9
VGA1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 338mm x 270mm
1280x1024 60.0*+ 75.0
1280x960 60.0
1152x864 75.0
1024x768 75.1 70.1 60.0
832x624 74.6
800x600 72.2 75.0 60.3 56.2
640x480 72.8 75.0 66.7 60.0
720x400 70.1
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
Kod: Zaznacz cały
#!/bin/bash
# RESOLUTION SETTINGS
# This sets your VGA1 monitor to its best resolution.
xrandr --output VGA1 --mode 1280x1024 --rate 60
# This sets your laptop monitor to its best resolution.
xrandr --output LVDS1 --mode 1280x800 --rate 60
# MONITOR ORDER
# Put the Laptop right, VGA1 monitor left
# xrandr --output VGA1 --left-of LVDS1
# Put the Laptop left, VGA1 monitor right
xrandr --output LVDS1 --right-of VGA1
# PRIMARY MONITOR
# This sets your laptop monitor as your primary monitor.
xrandr --output LVDS1 --primary
# This sets your VGA monitor as your primary monitor.
# xrandr --output VGA1 --primary
Następnie by cieszyc się rozszeżonym pulpitem od startu xfce/lxde toworzymy w katalogu domowym plik dual i wklejamy tam:
Kod: Zaznacz cały
#!/bin/bash
sleep 15 && /home/ddd/dual.sh
Wchodzimy w ustawienia i w sesja i uruchamianie w zakładce Automatyczne uruchamianie wpisujemu dual i wskazujemy nasz plik dual który 15 sec po starcie xów podzieli nam obraz na 2 monitory.
Pozdrawiam.