在 15.10 上安装 bumblebee 后无法更改为 NVIDIA 卡(我想回到 nvidia-prime)

在 15.10 上安装 bumblebee 后无法更改为 NVIDIA 卡(我想回到 nvidia-prime)

我有两块显卡,一块是英特尔的,另一块是 NVIDIA 的。我想看看是否可以让特定程序使用 NVIDIA 卡,所以在读到 Bumblebee 可以做到这一点后,我安装了 Bumblebee。好吧,这是一个错误,因为现在,即使卸载了 Bumblebee,我也无法再使用 prime-select 切换到 NVIDIA 卡。

我尝试重新安装nvidia-primenvidia 驱动程序。但这并没有解决问题。

我的机器是 Dell Precision M3800

主选择查询

返回“未知”

/var/log/gpu-manager.log 的内容:

log_file: /var/log/gpu-manager.log
last_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
new_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
grep dmesg status 256
dmesg status 256 == 0? No
grep dmesg status 256
dmesg status 256 == 0? No
Is nvidia loaded? no
Was nvidia unloaded? no
Is nvidia blacklisted? yes
Is fglrx loaded? no
Was fglrx unloaded? no
Is fglrx blacklisted? no
Is intel loaded? yes
Is radeon loaded? no
Is radeon blacklisted? no
Is nouveau loaded? no
Is nouveau blacklisted? yes
Is fglrx kernel module available? no
Is nvidia kernel module available? yes
Vendor/Device Id: 8086:416
BusID "PCI:0@0:2:0"
Is boot vga? yes
Vendor/Device Id: 10de:ff6
BusID "PCI:2@0:0:0"
Is boot vga? no
Error: can't access /sys/bus/pci/devices/0000:02:00.0/driver
The device is not bound to any driver. Skipping...
Skipping "/dev/dri/card0", driven by "i915"
Skipping "/dev/dri/card0", driven by "i915"
Found "/dev/dri/card0", driven by "i915"
output 0:
    eDP connector
Number of connected outputs for /dev/dri/card0: 1
Does it require offloading? yes
last cards number = 1
Has amd? no
Has intel? yes
Has nvidia? no
How many cards? 1
Has the system changed? No
main_arch_path x86_64-linux-gnu, other_arch_path i386-linux-gnu
Current alternative: /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf
Current core alternative: (null)
Is nvidia enabled? no
Is fglrx enabled? no
Is mesa enabled? yes
Is pxpress enabled? no
Is prime enabled? no
Is nvidia available? yes
Is fglrx available? no
Is fglrx-core available? no
Is mesa available? yes
Is pxpress available? no
Is prime available? yes
Single card detected
Nothing to do
No change - nothing to do

ubuntu-drivers 列表的输出:

nvidia-352
nvidia-340
nvidia-340-updates
nvidia-352-updates
bcmwl-kernel-source

ubuntu-drivers 设备的输出:

== /sys/devices/pci0000:00/0000:00:01.0/0000:02:00.0 ==
model    : GK107GLM [Quadro K1100M]
modalias : pci:v000010DEd00000FF6sv00001028sd0000060Dbc03sc02i00
vendor   : NVIDIA Corporation
driver   : nvidia-340 - distro non-free
driver   : nvidia-340-updates - distro non-free
driver   : nvidia-352-updates - distro non-free
driver   : nvidia-352 - distro non-free recommended
driver   : xserver-xorg-video-nouveau - distro free builtin

== cpu-microcode.py ==
driver   : intel-microcode - distro non-free

== /sys/devices/pci0000:00/0000:00:1c.2/0000:06:00.0 ==
model    : BCM4352 802.11ac Wireless Network Adapter
modalias : pci:v000014E4d000043B1sv00001028sd00000019bc02sc80i00
vendor   : Broadcom Corporation
driver   : bcmwl-kernel-source - distro non-free

/var/log/apt/history.log:

Start-Date: 2015-11-25  11:41:00
Commandline: apt-get install bumblebee
Install: primus-libs-ia32:i386 (0~20150328-1, automatic), primus-libs:amd64 (0~20150328-1, automatic), primus-libs:i386 (0~20150328-1, automatic), bumblebee:amd64 (3.2.1-9), primus:amd64 (0~20150328-1, automatic)
End-Date: 2015-11-25  11:41:19

Start-Date: 2015-11-25  11:52:16
Commandline: apt-get remove bumblebee primus primus-libs primus-libs:i386 primus-libs-ia32:i386
Remove: primus-libs-ia32:i386 (0~20150328-1), primus-libs:amd64 (0~20150328-1), primus-libs:i386 (0~20150328-1), bumblebee:amd64 (3.2.1-9), primus:amd64 (0~20150328-1)
End-Date: 2015-11-25  11:52:24

谢谢你提供的所有帮助!

编辑:我的机器使用 Intel 显卡运行时似乎比平时更热,电池寿命只有平时的一半。似乎 NVIDIA 显卡一直在供电,即使它没有被使用。

答案1

实际上,bumblebee 是常见的解决方案,只要正确安装,就可以将其与 optirun 命令(如 optirun gimp)一起使用。我建议您再试一次 bumblebee。

答案2

我找到了答案。原来卸载 bumblebee 时遗留了一些配置文件。要删除它们,只需使用 apt-get 清除软件包即可:

sudo apt-get purge bumblebee-nvidia primus-libs-ia32:i386 primus-libs:amd64 primus-libs:i386 bumblebee primus

现在prime-select又能工作了。

相关内容