Я ищу способ использовать мою настройку двойного экрана. У меня есть два монитора, клавиатуры и мыши (один из них - встроенный ноутбук, другой - внешний, соединенный кабелями USB/VGA). Я хотел бы установить терминал на встроенной периферии ноутбука и использовать внешнюю клавиатуру / мышь для нормальной работы. Как это можно решить? Я использую Debian и запускаю среду рабочего стола Trinity.
1 ответ
У вас есть два варианта. Настройте все вручную в xorg.conf - то есть укажите два монитора и два устройства - или вы можете надеяться, что все работает из коробки.
Первый вариант хорошо работает для меня. Ниже приведена конфигурация xorg, которая работает на аналогичном оборудовании. После того, как вы правильно настроили сервер, вы можете управлять макетом с помощью xrandr . Под манипулированием я имею в виду включение или отключение мониторов, указание их расположения относительно друг друга и даже поворот их.
Например
xrandr \
--output LVDS1 --auto --pos 0x0 \
--output VGA1 --auto \
--right-of LVDS1 &
sleep 2
xrandr --output VGA1 --mode 1024x768 &
Важной частью здесь является выяснить, как настроить графическое устройство. Драйвер, который вы используете, обычно (надеюсь) будет сопровождаться страницей руководства. Я не могу вспомнить синтаксис apt-cache для поиска файлов в пакетах, но вы, вероятно, найдете страницу руководства под:
/usr/share/man/man4/intel.4.bz2
Это означает, что вы можете отобразить его, используя man intel в терминале. Прочтите его, и вы получите лучшее представление о том, как может быть настроен ваш графический процессор.
PATH: /etc/X11/xorg.conf.d/
ФАЙЛ: xorg.conf
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
#InputDevice "touchpad" "CorePointer"
#InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/artwiz-latin1"
FontPath "/usr/share/fonts/dejavu"
FontPath "/usr/share/fonts/corefonts"
FontPath "/usr/share/fonts/cyrillic"
FontPath "/usr/share/fonts/encodings"
FontPath "/usr/share/fonts/freefont-ttf"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/proggy-fonts"
FontPath "/usr/share/fonts/terminus"
FontPath "/usr/share/fonts/ttf-bitstream-vera"
EndSection
Section "Module"
Load "dbe"
Load "glx"
Load "dri"
Load "record"
Load "extmod"
Load "dri2"
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
Section "ServerFlags"
Option "blank time" "5" # Blank the screen after 5 minutes (Fake)
Option "standby time" "10" # Turn off screen after 10 minutes (DPMS)
Option "suspend time" "15" # Full suspend after 20 minutes
Option "off time" "20" # Turn off after half an hour
EndSection
Section "Monitor"
Identifier "internalMonitor"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
Option "DPMS"
EndSection
Section "Screen"
Identifier "Screen0"
Device "internal"
Monitor "internalMonitor"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
ФАЙЛ: synaptics.conf
Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Option "TapButton1" "1
Option "TapButton2" "2"
Option "TapButton3" "3"
Option "VertScrollDelta" "150"
Option "AccelFactor" "0.00695223"
Option "MaxSpeed" "0.7"
Option "MinSpeed" "0.3"
EndSection
ФАЙЛ: intel-945gme
Section "Device"
### Available Driver options are:-
### Values: : integer, : float, : "True"/"False",
### : "String", : " Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # []
#Option "SWcursor" # []
#Option "ColorKey" #
#Option "CacheLines" #
#Option "Dac6Bit" # []
#Option "DRI" # []
#Option "NoDDC" # []
#Option "ShowCache" # []
#Option "XvMCSurfaces" #
#Option "PageFlip" # []
Identifier "internal"
Driver "intel"
Option "monitor-VGA1" "externalMonitor"
Option "monitor-LVDS1" "internalMonitor"
VendorName "Intel Corporation"
BoardName "Mobile 945GME Express Integrated Graphics Controller"
Option "FramebufferCompression" "on"
Option "AccelMethod" "EXA"
Option "Tiling" "on"
BusID "PCI:0:2:0"
EndSection
ФАЙЛ: внешний экран
Section "Monitor"
Identifier "externalMonitor"
VendorName "some"
ModelName "some"
Option "DPMS"
Option "above" "internalMonitor"
EndSection
Section "Screen"
Identifier "externalScreen"
Device "vgaport"
Monitor "externalMonitor"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
