关于nvidia-settings打不开的问题
Tofloor
poster avatar
ighack
deepin
2020-06-21 01:45
Author
  1. ighack@ighack-PC:~$ nvidia-settings
  2. (nvidia-settings:6349): GLib-GObject-CRITICAL **: 17:38:15.728: g_value_set_boxed: assertion 'G_VALUE_HOLDS_BOXED (value)' failed
  3. ERROR: Unable to load info from any available system
Copy the Code

xorg.conf

Section "Device"
    Identifier     "nvidia"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "CI:1:0:0"
    option         "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
    Identifier     "intel"
    Driver         "intel"
    VendorName     "intel"
    BusID          "CI:0:2:0"
    Driver         "modesetting"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "intel"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

关键就在Screen选项中的device节中的值
如果用nvidia那玩游戏就很卡。不知道是什么问题。但是可以打开nvidia-settings
如果用indel那玩游戏就比较流畅(感觉没使用nvidia)。但是打不开nvidia-settings

Reply Favorite View the author
All Replies
avatar
忘记、过去
deepin
2020-06-21 03:32
#1
Section Screen定义的监视器,里面的Device就是你要调用的显卡,名称是Section Device里面的"Identifier",你现在写的是intel,默认就是使用intel显卡,nvidia-settings肯定不能工作,因为整个xserver不在n卡上跑。只有写n卡的名字(这里是nvidia)才能让xserver跑在n卡上,设置就能打开了。
至于你说的写nvidia玩游戏卡顿我就不清楚了,理论上跑在n卡上应该更流畅才对。只是切换到N卡跑xserver帧数默认锁60,需要进系统设置来回调节一下刷新率才行。
Reply View the author
avatar
ighack
deepin
2020-06-21 06:13
#2
https://bbs.deepin.org/post/196181
Section Screen定义的监视器,里面的Device就是你要调用的显卡,名称是Section Device里面的"Identifier", ...

在那个地方设刷新率啊
Reply View the author
avatar
忘记、过去
deepin
2020-06-21 19:24
#3
https://bbs.deepin.org/post/196181
在那个地方设刷新率啊

系统设置-显示器-刷新率
Reply View the author
avatar
ighack
deepin
2020-06-21 19:55
#4
本帖最后由 ighack 于 2020-6-21 11:57 编辑
https://bbs.deepin.org/post/196181
系统设置-显示器-刷新率

我的是144,但还是很卡。
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 440.82

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "rotocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "nvidia"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "CI:1:0:0"
    option         "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
    Identifier     "intel"
    Driver         "intel"
    VendorName     "intel"
    BusID          "CI:0:2:0"
    Driver         "modesetting"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "intel"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


感觉除了xorg-server在调用独显。游戏根本就没有用独显。玩游戏卡死
Reply View the author