归档 | 首页
回到顶部 Back to Top

xorg.conf

目录

双屏显示设置

集显驱动:xf86-video-intel 
独显驱动:nvidia
双屏显示:xrandr
图形化设置:lxrandr

登陆时直接开启双屏显示

~/.xprofile:

$ xrandr --output HDMI-1-0 --left-of eDP1 --auto &

/etc/X11/xorg.conf

Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
#       Screen      1  "Screen1" LeftOf "Screen0"
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection
#复制        Screen      1  "Screen1" Relative "Screen0" 0 0        

Section "Files"
        ModulePath   "/usr/lib/xorg/modules"
        FontPath     "/usr/share/fonts/misc"
        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"
EndSection

Section "Module"
        Load  "glx"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
        Identifier   "eDP1"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
#        Option      "Position" "1920 0"
#        Option       "Primary" "true"
EndSection

Section "Monitor"
        Identifier   "HDMI-1-0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
#        Option       "DPMS"
#        Option      "Position" "0 0"
#        Option       "LeftOf" "eDP1"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "intel"
        BusID       "PCI:0:2:0"

EndSection

Section "Device"
        Identifier  "Card1"
        Driver      "nvidia"
        BusID       "PCI:1:0:0"

EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "eDP1"
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

作者 © YoursAF

最后更新: 2022-09-10 六 18:24

Built with Emacs 29.3 (Org mode 9.7.18)

冀ICP备17032034号-1