分页: 1 / 2

14.04下用bumblebee只成功了一半。

发表于 : 2014-02-08 17:35
XuQiankun
严格按照bumblebee官网操作,重启后独显确实关了,然后optirun运行不起来,显示错误信息:

代码: 全选

[ 2014.018314] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:1:0:0.  Please

[ 2014.018366] [ERROR]Aborting because fallback start is disabled.
kern.log里面的信息如下:

代码: 全选

Feb  8 17:18:10 xuqiankun-Ubuntu kernel: [ 2016.851965] NVRM: failed to copy vbios to system memory.
Feb  8 17:18:10 xuqiankun-Ubuntu kernel: [ 2016.853546] NVRM: RmInitAdapter failed! (0x30:0xffffffff:867)
Feb  8 17:18:10 xuqiankun-Ubuntu kernel: [ 2016.853554] NVRM: rm_init_adapter(0) failed
内核:

代码: 全选

Linux xuqiankun-Ubuntu 3.13.0-8-generic #27-Ubuntu SMP Fri Feb 7 02:01:37 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
nvidia-current版本为304.117,但是nvidia-settings的版本却是331.20 。为什么会这样。 :em20

Re: 14.04下用bumblebee只成功了一半。

发表于 : 2014-02-08 17:52
poloshiao
你是全新安裝 Ubuntu 14.04 還是 升級而來

Ubuntu 14.04 可以不安裝 bumblebee 了

1. 把已經安裝的 bumblebee 及 nvidia-current 完全移除
https://wiki.ubuntu.com/Bumblebee#Uninstall

2. 安裝 nvidia-prime 5.5
https://launchpad.net/ubuntu/+source/nvidia-prime/0.5.5
參見
2-1. http://www.webupd8.org/2013/12/more-wor ... timus.html
2-2. http://www.webupd8.org/2014/01/prime-in ... witch.html
2-3. http://news.softpedia.com/news/Canonica ... 8044.shtml

3. 也可以把 nvidia-prime 移除 只安裝 Nvidia Graphics Drivers 319.12 Beta
http://www.webupd8.org/2013/04/nvidia-r ... ivers.html

4. 以上文章 可能還不是很完整 細節你再 搜尋看看

補充
nvidia-prime 可以得到 Linux kernel 的預設支援
bumblebee 是第三方軟件 Linux kernel 的不支援

Re: 14.04下用bumblebee只成功了一半。

发表于 : 2014-02-08 18:27
XuQiankun
poloshiao 写了:你是全新安裝 Ubuntu 14.04 還是 升級而來

Ubuntu 14.04 可以不安裝 bumblebee 了

1. 把已經安裝的 bumblebee 及 nvidia-current 完全移除
https://wiki.ubuntu.com/Bumblebee#Uninstall

2. 安裝 nvidia-prime 5.5
https://launchpad.net/ubuntu/+source/nvidia-prime/0.5.5
參見
2-1. http://www.webupd8.org/2013/12/more-wor ... timus.html
2-2. http://www.webupd8.org/2014/01/prime-in ... witch.html
2-3. http://news.softpedia.com/news/Canonica ... 8044.shtml

3. 也可以把 nvidia-prime 移除 只安裝 Nvidia Graphics Drivers 319.12 Beta
http://www.webupd8.org/2013/04/nvidia-r ... ivers.html

4. 以上文章 可能還不是很完整 細節你再 搜尋看看

補充
nvidia-prime 可以得到 Linux kernel 的預設支援
bumblebee 是第三方軟件 Linux kernel 的不支援
多谢,我先研究研究 :em02

Re: 14.04下用bumblebee只成功了一半。

发表于 : 2014-02-08 18:37
photor
:em09

Re: 14.04下用bumblebee只成功了一半。

发表于 : 2014-02-09 12:25
XuQiankun
poloshiao 写了:你是全新安裝 Ubuntu 14.04 還是 升級而來
nvidia-prime 可以得到 Linux kernel 的預設支援
bumblebee 是第三方軟件 Linux kernel 的不支援
我是全新安装的,昨天试了下nvidia-prime,按照文章里所示,先卸载了所有nvidia驱动与bumblebee相关软件包,然后安装了最新的nvidia-331.20 与nvidia-prime。一切顺利,正常运行。
但是在nvidia-settings里面在N卡与集显之间切换就会报错,信息如下:
ERROR: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in
activate_name_owner
return self.get_name_owner(bus_name)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 361, in
get_name_owner
's', (bus_name,), **keywords)
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in
call_blocking
message, timeout)
dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name
'com.ubuntu.ScreenResolution.Mechanism': no such name
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/screen-resolution-extra/nvidia-prime.py", line 55, in
<module>
conf = get_prime_service()
File "/usr/share/screen-resolution-extra/nvidia-prime.py", line 34, in
get_prime_service
service_object = dbus.SystemBus().get_object(SERVICE_NAME, OBJECT_PATH)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 241, in
get_object
follow_name_owner_changes=follow_name_owner_changes)
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 248, in
__init__
self._named_service = conn.activate_name_owner(bus_name)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 180, in
activate_name_owner
self.start_service_by_name(bus_name)
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 278, in
start_service_by_name
'su', (bus_name, flags)))
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in
call_blocking
message, timeout)
dbus.exceptions.DBusException:
org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with
unknown return code 1
然后只能安装prime-indicator来切换显卡,但是每次用prime-indicator切换的时候都要注销重新登录。nvidia-prime暂时还没有像bumblebee那样单独用N卡来运行一个程序的功能吗 :em06

Re: 14.04下用bumblebee只成功了一半。

发表于 : 2014-02-09 13:20
poloshiao
但是在nvidia-settings里面在N卡与集显之间切换就会报错,信息如下:
引言回覆:
ERROR: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 175, in
activate_name_owner
已經被確認爲 Bug
繼續追蹤
https://bugs.launchpad.net/ubuntu/+sour ... ug/1276816
但是每次用prime-indicator切换的时候都要注销重新登录
http://news.softpedia.com/news/Canonica ... 8044.shtml
Also, a prime-select switcher has been added to switch between the integrated and the discrete GPU. This allows users to disable the discrete GPU to save power. Users' settings are now saved and applied on log out and on boot.
從這句話 使用 prime-select switcher 的切換結果 應該是有被保存起來的
但是每次用prime-indicator切换的时候都要注销重新登录
http://www.webupd8.org/2013/12/more-wor ... timus.html
這一篇還附帶提到許多支援的前提
例如
關機前 nVidia 卡 需要 enabled 情況
xorg-server 必須是 1.14.4.901 以上版本
...
等等
請詳細閱讀一下

如果還是沒有保存 使用 root 權限看看
如何使用 root 權限 ? 有問題 請再貼文

Re: 14.04下用bumblebee只成功了一半。

发表于 : 2014-02-09 16:04
XuQiankun
poloshiao 写了:
但是每次用prime-indicator切换的时候都要注销重新登录
http://www.webupd8.org/2013/12/more-wor ... timus.html
這一篇還附帶提到許多支援的前提
例如
關機前 nVidia 卡 需要 enabled 情況
xorg-server 必須是 1.14.4.901 以上版本
...
等等
請詳細閱讀一下
在这篇文章里面第二点最后一句“After changing between the Nvidia and Intel GPUs, you'll need to log out or restart the system to apply the changes.”说明了确实需要注销重新登录,才能使切换显卡生效,看来比起bumblebee在操作上还是有点点不足的,希望到时候有可以为某个程序单独调用N卡的功能了。
非常感谢你的帮助 :em01

Re: 14.04下用bumblebee只成功了一半。

发表于 : 2014-02-09 16:37
poloshiao
在这篇文章里面第二点最后一句“After changing between the Nvidia and Intel GPUs, you'll need to log out or restart the system to apply the changes.”说明了确实需要注销重新登录,才能使切换显卡生效
http://www.webupd8.org/2014/01/prime-in ... witch.html
Using Prime Indicator you can do this easier: a single click will automatically switch the graphics card and log out.
點擊一下 Prime Indicator
它就完成兩個動作
變換顯卡同時登出
你只要重新登入就好了

Re: 14.04下用bumblebee只成功了一半。

发表于 : 2014-02-09 16:41
XuQiankun
poloshiao 写了:
在这篇文章里面第二点最后一句“After changing between the Nvidia and Intel GPUs, you'll need to log out or restart the system to apply the changes.”说明了确实需要注销重新登录,才能使切换显卡生效
http://www.webupd8.org/2014/01/prime-in ... witch.html
Using Prime Indicator you can do this easier: a single click will automatically switch the graphics card and log out.
點擊一下 Prime Indicator
它就完成兩個動作
變換顯卡同時登出
你只要重新登入就好了
这个我知道,可毕竟显卡一换,所有正在X window上的工作又都要重新开始了,要是能像bumblebee那样用个命令单独调用N卡就更好了,希望后续会推出这个功能吧 :em06

Re: 14.04下用bumblebee只成功了一半。

发表于 : 2014-02-09 16:57
poloshiao
要是能像bumblebee那样用个命令单独调用N卡就更好了
可能有一個本質上的不同
1. http://askubuntu.com/a/296178/198920
Using Bumblebee, you can use your NVIDIA card for rendering graphics which will be displayed using the Intel card.
使用 Bumblebee, 使用 nVidia 卡來處理圖形(運算) 但是 從 Intel 顯卡 顯示出來
意思是 還是受到 Intel 開源驅動 顯示能力的限制
2. http://www.webupd8.org/2013/12/more-wor ... timus.html
the latest nvidia-prime, we can also see a change in Nvidia Settings that landed about two weeks ago in Ubuntu 14.04 Trusty Tahr: an additional tab was added, allowing users to switch between GPUs:
nvidia-prime 是允許你切換 Intel 或 nVidia
換句話說 切換到 nVidia 是使用 nVidia 閉源驅動 (nvidia-331.20) 的 顯示能力
2-1. 以上純屬 推測 供你參考
3. nvidia-prime 還很年輕 還有很大的進步空間

Re: 14.04下用bumblebee只成功了一半。

发表于 : 2014-02-16 8:34
iamond
那请问不安装,bumblebee,只安装刚刚说的另外两个,能关闭独显来省电和不高温吗?切换对我来说没有意义啊

来自我的 Nexus 7 上的 Tapatalk

Re: 14.04下用bumblebee只成功了一半。

发表于 : 2014-02-16 9:40
poloshiao
能关闭独显来省电和不高温吗
http://askubuntu.com/questions/363775/w ... idia-prime
需要 3.12 的支援
With kernel 3.12 the automatic switching like in Windows would be implemented.
It seems is will be officialy in Ubuntu 14.04.
意思是
在 Ubuntu 14.04 可以表現得與 Windows 一樣 自動切換 所以可以省電

Re: 14.04下用bumblebee只成功了一半。

发表于 : 2014-02-22 17:49
iamond
poloshiao 写了:
能关闭独显来省电和不高温吗
http://askubuntu.com/questions/363775/w ... idia-prime
需要 3.12 的支援
With kernel 3.12 the automatic switching like in Windows would be implemented.
It seems is will be officialy in Ubuntu 14.04.
意思是
在 Ubuntu 14.04 可以表現得與 Windows 一樣 自動切換 所以可以省電
在安卓4.4出来后,UBUNTU 14.04也要变得完整了

Re: 14.04下用bumblebee只成功了一半。

发表于 : 2014-04-15 11:54
ahwad
这个要学习一下。。。。。

Re: 14.04下用bumblebee只成功了一半。

发表于 : 2014-04-16 19:25
ooinzaghi
明天就要正式发布了,nvidia-prime 完善了么,哪位在用14.04的大大说一声?