[Share Experiences] deepin和uos deepin-wine应用无法打开以及双屏显示器使用的方案
Tofloor
poster avatar
shiter007
deepin
2022-07-24 21:39
Author

我的系统环境如下:
Linux *** 5.10.0-amd64-desktop #20.00.50.22-cve SMP Thu Mar 31 11:02:50 CST 2022 x86_64 GNU/Linux
uos家庭版21.3 64位 内核版本5.10.0-amd64-desktop (deepin系统也可参考)
deepin和uos上述问题的根源可能来自nvidia的显卡驱动问题。
deepin-wine应用无法打开的时候切换至NVIDIA显卡模式(INTEL+NVIDIA双显卡)即可。主要切换方法可参考
https://github.com/zty199/dde-dock-switch_graphics_card/releases/ 以及
https://bbs.deepin.org/post/213969
双屏显示的问题主要可参考/etc/X11/xorg.conf文件,内容如下:
# dde-dock-graphics-plugin: X configuration file generated by dde-dock-plugins

# dde-dock-graphics-plugin: version 1.8.2

Section "ServerLayout"

    Identifier     "Layout0"

    Screen      0  "DGPU" 0 0

    Option         "AllowNVIDIAGPUScreens"

EndSection

Section "Module"

        Load "modesetting"

EndSection

Section "Device"

    Identifier     "GFX0"

    Driver         "modesetting"

    VendorName     "Intel Corporation"

    BusID          "PCI:0:2:0"

EndSection

Section "Device"

    Identifier     "PEGP"

    Driver         "nvidia"

    VendorName     "NVIDIA Corporation"

    BusID          "PCI:1:0:0"

EndSection

Section "Screen"

    Identifier     "IGPU"

    Device         "GFX0"

    DefaultDepth    24

    SubSection     "Display"

        Depth       24

    EndSubSection

EndSection

Section "Screen"

    Identifier     "DGPU"

    Device         "PEGP"

    DefaultDepth    24

    Option         "AllowEmptyInitialConfiguration"

    SubSection     "Display"

        Depth       24

    EndSubSection

    Option         "Coolbits" "28"

EndSection

修改 /etc/lightdm/lightdm.confdisplay-setup-script=/etc/lightdm/display_setup.sh
新建 /etc/lightdm/display_setup.sh

内容如下:
#!/bin/sh

xrandr --setprovideroutputsource modesetting NVIDIA-0

xrandr --auto

xrandr --dpi 96

#主要针对的问题解决方法如上所示。

Reply Favorite View the author
All Replies
xuqi
deepin testing team
2022-08-09 18:30
#1

kissing_heart

Reply View the author