我目前在我的筆記型電腦上運行帶有 GTX 780m gpu 的 Ubuntu 14.04,並使用帶有 bumblebee 的 nvidia-331 驅動程式。
我無法控制螢幕的亮度,但後來我決定遵循互聯網上的一些提示,並將以下幾行添加到文件中/usr/share/X11/xorg.conf.d/20-intel.conf:
Section "Device"
Identifier "card0"
Driver "intel"
Option "Backlight" "intel_backlight"
BusID "PCI:0:2:0"
EndSection
之後我就能夠控制亮度了,一切都很好。問題是,在那之後,bumblebee 不起作用,例如,嘗試使用 primusrun 打開 Steam 會給出以下訊息:
Running Steam on ubuntu 14.04 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1409240101_client)
primus: fatal: Bumblebee daemon reported: error: [XORG] (EE) Server terminated successfully (0). Closing log file.
[2014-09-24 21:08:10] Startup - updater built Aug 28 2014 03:23:49
Installing bootstrap /home/cabeca/.local/share/Steam/bootstrap.tar.xz
Reset complete!
Restarting Steam by request...
Running Steam on ubuntu 14.04 64-bit
STEAM_RUNTIME has been set by the user to: /home/cabeca/.local/share/Steam/ubuntu12_32/steam-runtime
Installing breakpad exception handler for appid(steam)/version(1409240101_client)
primus: fatal: Bumblebee daemon reported: error: [XORG] (EE) Server terminated successfully (0). Closing log file.
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
[2014-09-24 21:08:15] Startup - updater built Aug 26 2014 15:35:42
如果我嘗試 optirun steam,則會出現以下內容:
[ 6051.673074] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Server terminated successfully (0). Closing log file.
[ 6051.673179] [ERROR]Aborting because fallback start is disabled.
查了一下互聯網,有人指出,通過添加以下代碼:
Section "Screen"
Identifier "Default Screen"
Device "DiscreteNvidia"
EndSection
到文件頭/etc/bumblebee/xorg.conf.nvidia會起作用,但沒有。應用此修改後,當我嘗試普里默斯運行蒸汽,這就是我得到的:
Running Steam on ubuntu 14.04 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1411443970)
libGL error: failed to load driver: swrast
libGL error: failed to load driver: swrast
Installing breakpad exception handler for appid(steam)/version(1411443970)
Installing breakpad exception handler for appid(steam)/version(1411443970)
Gtk-Message: Failed to load module "overlay-scrollbar"
Gtk-Message: Failed to load module "unity-gtk-module"
(steam:21527): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
(steam:21527): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
/usr/share/themes/Orchis/gtk-2.0/gtkrc:1137: error: unexpected identifier `direction', expected character `}'
Gtk-Message: Failed to load module "overlay-scrollbar"
Gtk-Message: Failed to load module "unity-gtk-module"
(steamwebhelper:21549): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
(steamwebhelper:21549): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
/usr/share/themes/Orchis/gtk-2.0/gtkrc:1137: error: unexpected identifier `direction', expected character `}'
Installing breakpad exception handler for appid(steamwebhelper)/version(20140922201705)
Installing breakpad exception handler for appid(steamwebhelper)/version(1411417025)
Installing breakpad exception handler for appid(steamwebhelper)/version(20140922201705)
Installing breakpad exception handler for appid(steamwebhelper)/version(1411417025)
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
[0924/211753:ERROR:nss_util.cc(1018)] Failed to load NSS libraries.
libGL error: failed to load driver: swrast
Installing breakpad exception handler for appid(steam)/version(1411443970)
Installing breakpad exception handler for appid(steam)/version(1411443970)
Installing breakpad exception handler for appid(steam)/version(1411443970)
Installing breakpad exception handler for appid(steam)/version(1411443970)
Installing breakpad exception handler for appid(steam)/version(1411443970)
[0924/211753:ERROR:renderer_main.cc(227)] Running without renderer sandbox
[0924/211753:ERROR:renderer_main.cc(227)] Running without renderer sandbox
libGL error: failed to load driver: swrast
primus: fatal: failed to acquire direct rendering context for display thread
Assert( Assertion Failed: Bad thread local ):/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/tier0/threadtools.cpp:2671
Installing breakpad exception handler for appid(steam)/version(1411443970)
Uploading dump (out-of-process) [proxy '']
/tmp/dumps/assert_20140924211754_10.dmp
/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/clientdll/../common/steamservice.cpp (54) : Assertion Failed: m_hServiceLib == NULL
Assert( Assertion Failed: m_hServiceLib == NULL ):/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/clientdll/../common/steamservice.cpp:54
Installing breakpad exception handler for appid(steam)/version(1411443970)
Uploading dump (out-of-process) [proxy '']
/tmp/dumps/crash_20140924211754_12.dmp
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
Uploading dump (out-of-process) [proxy '']
/tmp/dumps/assert_20140924211751_1.dmp
/home/cabeca/.local/share/Steam/steam.sh: line 729: 21527 Segmentation fault $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"
Requested Force create but SharedObjectMutex already created
Forced create but already created for SharedObjectEvent
Forced create but already created for SharedObjectEvent
Finished uploading minidump (out-of-process): success = yes
response: CrashID=bp-0337ce69-7d86-40c6-8e26-2dd562140924
Finished uploading minidump (out-of-process): success = yes
response: CrashID=bp-14f176ea-917c-45e7-914e-7e8292140924
Finished uploading minidump (out-of-process): success = yes
response: CrashID=bp-6464b83a-8099-41ff-9416-6bdb52140924
和優化蒸汽:
Running Steam on ubuntu 14.04 64-bit
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1411443970)
libGL error: failed to load driver: swrast
libGL error: failed to load driver: swrast
Installing breakpad exception handler for appid(steam)/version(1411443970)
Installing breakpad exception handler for appid(steam)/version(1411443970)
Gtk-Message: Failed to load module "overlay-scrollbar"
Gtk-Message: Failed to load module "unity-gtk-module"
(steam:22013): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
(steam:22013): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
/usr/share/themes/Orchis/gtk-2.0/gtkrc:1137: error: unexpected identifier `direction', expected character `}'
Gtk-Message: Failed to load module "overlay-scrollbar"
Gtk-Message: Failed to load module "unity-gtk-module"
(steamwebhelper:22069): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
(steamwebhelper:22069): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita",
/usr/share/themes/Orchis/gtk-2.0/gtkrc:1137: error: unexpected identifier `direction', expected character `}'
Installing breakpad exception handler for appid(steamwebhelper)/version(20140922201705)
Installing breakpad exception handler for appid(steamwebhelper)/version(1411417025)
Installing breakpad exception handler for appid(steamwebhelper)/version(20140922201705)
Installing breakpad exception handler for appid(steamwebhelper)/version(1411417025)
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
[0924/212102:ERROR:nss_util.cc(1018)] Failed to load NSS libraries.
libGL error: failed to load driver: swrast
Installing breakpad exception handler for appid(steam)/version(1411443970)
Installing breakpad exception handler for appid(steam)/version(1411443970)
Installing breakpad exception handler for appid(steam)/version(1411443970)
Installing breakpad exception handler for appid(steam)/version(1411443970)
Installing breakpad exception handler for appid(steam)/version(1411443970)
[0924/212103:ERROR:renderer_main.cc(227)] Running without renderer sandbox
[0924/212103:ERROR:renderer_main.cc(227)] Running without renderer sandbox
libGL error: failed to load driver: swrast
primus: fatal: failed to acquire direct rendering context for display thread
Assert( Assertion Failed: Bad thread local ):/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/tier0/threadtools.cpp:2671
Installing breakpad exception handler for appid(steam)/version(1411443970)
Uploading dump (out-of-process) [proxy '']
/tmp/dumps/assert_20140924212103_10.dmp
/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/clientdll/../common/steamservice.cpp (54) : Assertion Failed: m_hServiceLib == NULL
Assert( Assertion Failed: m_hServiceLib == NULL ):/home/buildbot/buildslave_steam/steam_rel_client_ubuntu12_linux/build/src/clientdll/../common/steamservice.cpp:54
Installing breakpad exception handler for appid(steam)/version(1411443970)
Uploading dump (out-of-process) [proxy '']
/tmp/dumps/crash_20140924212104_12.dmp
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
Uploading dump (out-of-process) [proxy '']
/tmp/dumps/assert_20140924212100_1.dmp
/home/cabeca/.local/share/Steam/steam.sh: line 729: 22013 Segmentation fault $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"
Requested Force create but SharedObjectMutex already created
Forced create but already created for SharedObjectEvent
Forced create but already created for SharedObjectEvent
Finished uploading minidump (out-of-process): success = yes
response: CrashID=bp-9d3792c9-ea19-470b-866f-3c1152140924
Finished uploading minidump (out-of-process): success = yes
response: CrashID=bp-c98bd198-6010-477d-84aa-017282140924
Finished uploading minidump (out-of-process): success = yes
response: CrashID=bp-d1f0996b-3068-4766-9534-e5ffe2140924
那麼,您知道如何讓亮度控制和大黃蜂同時工作嗎?
先感謝您!