xrandr --listproviders 未检测到 nvidia

xrandr --listproviders 未检测到 nvidia

我正在尝试配置“使用 RandR 1.4 卸载图形显示”,但 xrandr 仅检测到 Intel 显卡:

$ xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x45 cap: 0x2, Sink Output crtcs: 3 outputs: 3 associated providers: 0 name:modesetting

显卡(笔记本电脑 Acer Aspire V3-772G):

# lspci | grep -E 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Haswell Integrated Graphics Controller (rev 06)
01:00.0 3D controller: NVIDIA Corporation GK107M [GeForce GT 750M] (rev a1)

操作系统:

$ cat /etc/slackware-version 
Slackware 14.1
# uname -a
Linux darkstar 3.15.1-big_btz #3 SMP Mon Jul 14 15:56:31 EEST 2014 x86_64 Intel(R) Core(TM) i7-4702MQ CPU @ 2.20GHz GenuineIntel GNU/Linux

X:

$ ls -l /var/log/packages/xorg-server-*
-rw-r--r-- 1 root root 8245 Feb  8 07:52 /var/log/packages/xorg-server-1.14.3-x86_64-3_slack14.1
-rw-r--r-- 1 root root  712 Feb  8 07:52 /var/log/packages/xorg-server-xephyr-1.14.3-x86_64-3_slack14.1
-rw-r--r-- 1 root root  933 Feb  8 07:52 /var/log/packages/xorg-server-xnest-1.14.3-x86_64-3_slack14.1
-rw-r--r-- 1 root root 1027 Feb  8 07:52 /var/log/packages/xorg-server-xvfb-1.14.3-x86_64-3_slack14.1

内核配置(完整配置):

# zcat /proc/config.gz | grep CONFIG_DRM
CONFIG_DRM=m
CONFIG_DRM_KMS_HELPER=m
CONFIG_DRM_KMS_FB_HELPER=y
CONFIG_DRM_LOAD_EDID_FIRMWARE=y
CONFIG_DRM_TTM=m
CONFIG_DRM_I2C_CH7006=m
CONFIG_DRM_I2C_SIL164=m
CONFIG_DRM_I2C_NXP_TDA998X=m
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_NOUVEAU is not set
# CONFIG_DRM_I810 is not set
CONFIG_DRM_I915=m
CONFIG_DRM_I915_KMS=y
CONFIG_DRM_I915_FBDEV=y
CONFIG_DRM_I915_PRELIMINARY_HW_SUPPORT=y
# CONFIG_DRM_I915_UMS is not set
# CONFIG_DRM_MGA is not set
# CONFIG_DRM_SIS is not set
# CONFIG_DRM_VIA is not set
# CONFIG_DRM_SAVAGE is not set
CONFIG_DRM_VMWGFX=m
CONFIG_DRM_VMWGFX_FBCON=y
# CONFIG_DRM_GMA500 is not set
# CONFIG_DRM_UDL is not set
# CONFIG_DRM_AST is not set
# CONFIG_DRM_MGAG200 is not set
# CONFIG_DRM_CIRRUS_QEMU is not set
# CONFIG_DRM_QXL is not set
# CONFIG_DRM_BOCHS is not set
# CONFIG_DRM_PTN3460 is not set

英伟达(安装日志):

$ nvidia-settings -v

nvidia-settings:  version 352.21  (buildmeister@swio-display-x64-rhel04-13)  Tue Jun  9 22:42:41 PDT 2015
  The NVIDIA X Server Settings tool.

  This program is used to configure the NVIDIA Linux graphics driver.
  For more detail, please see the nvidia-settings(1) man page.

兰德尔:

$ xrandr -v
xrandr program version       1.4.1
Server reports RandR version 1.4

PS 我不确定如何检查是否提供了适当的驱动程序接口

o A Linux kernel with CONFIG_DRM enabled and the appropriate driver
     interfaces present:

        o drm_gem_prime_export

        o drm_gem_prime_import

        o gem_prime_pin

        o gem_prime_get_sg_table

        o gem_prime_import_sg_table

        o gem_prime_vmap

        o gem_prime_vunmap

答案1

我在 Slackware 上有类似的设置:

# lspci | grep -E 'VGA|3D'
00:02.0 VGA 兼容控制器:Intel Corporation Haswell 集成图形控制器(rev 06)
01:00.0 VGA 兼容控制器:NVIDIA Corporation GK106M [GeForce GTX 765M](rev ff)}

我的 xrandr 只显示一张卡:

xrandr --listproviders
提供者: 数量: 1
提供商 0:id:0x47 上限:0xb,源输出,接收器输出,接收器卸载 crtcs:4 个输出:4 个关联的提供商:0 名称:Intel

但我的 nVidia 卡似乎仍然可以工作(我使用 bumblebee / optirun)

$ optirun glxinfo | grep“OpenGL渲染器”
OpenGL 渲染器字符串:GeForce GTX 765M/PCIe/SSE2
$ optirun glxgears -info
GL_RENDERER = GeForce GTX 765M/PCIe/SSE2
GL_版本 = 4.5.0 NVIDIA 352.30
GL_VENDOR = NVIDIA 公司

如果我不运行 optirun,则使用 Intel 卡:

$ glxinfo | grep“OpenGL渲染器”
OpenGL 渲染器字符串:Mesa DRI Intel(R) Haswell Mobile
$ glxgears-信息
运行与垂直刷新同步。帧率应该是
与显示器的刷新率大致相同。
GL_RENDERER = Mesa DRI 英特尔(R) Haswell 移动
GL_VERSION = 3.0 梅萨 10.5.4
GL_VENDOR = 英特尔开源技术中心

http://docs.slackware.com/howtos:硬件:nvidia_optimus有关设置说明。

相关内容