28/10/2021

Gentoo xorg.conf

Read Time:27 Second

Gentoo我的xorg.conf配置文档,双显卡:INTEL核显+NVIDIA独显

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "01:00:0"
    Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "00:02:0"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

设置xorg.conf后使用sddm启动不一定能启动桌面,设置另一配置文档,

//修改startx或DM的启动脚本
//用的DM是SDDM,需要修改/usr/share/sddm/scripts/Xsetup文件,在该文件末尾添加以下内容:
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

//如果用的是startx,在~/.xinitrc中启动DE或WM的命令之前添加

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

 

 

 

About Post Author

Hye

天法道,道法自然。 闲逸庭前,花开花落。
administrator
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

发表评论

Previous post Linux Virtualbox install MacOS
Next post Gentoo make.conf