[ 求助 ] 安装 Bumblebee 时那人源里的 DKMS 报错

这个好像是我打开YaST读取软件信息进都条很慢 我强制退出的缘故。

现在已经执行了

sudo zypper in Mesa-demo-x

~> glxinfo | grep render
direct rendering: Yes
OpenGL renderer string: Mesa DRI Intel(R) Ironlake Mobile 
    GL_NV_conditional_render, GL_ARB_ES2_compatibility, GL_ARB_debug_output, 

但还是

~> primusrun glxinfo | grep render
primus: fatal: Bumblebee daemon reported: error: Could not load GPU driver

~> optirun  glxinfo | grep render
  215.878094] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

  215.878139] [ERROR]Aborting because fallback start is disabled.

没有执行 sudo zypper in Mesa-demo-x 之前

开机

~> su
# lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 18)
02:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 540M] (rev ff)

执行 sudo zypper in Mesa-demo-x 之后
开机

~> su
# lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 18)
02:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 540M] (rev a1)

(rev ff )表示独显已经关闭了吧
实在不行还是回到 sudo zypper in Mesa-demo-x 这条命令执行前的状态好了
只要独显关闭就好了
等您明天回复。接着折腾。

那是因为你的 openSUSE 系统更新精灵正在后台检查有无更新。 :joy:

其它我明天再看。

已回到了 sudo zypper in Mesa-demo-x 这条命令执行前的状态

开机后

~> su
# lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 18)
02:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 540M] (rev ff)

开机用一段时间后, 再

~> su
# lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 18)
02:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 540M] (rev a1)

(rev ff ) 又变成 (rev a1) 了

亲,ff 不是 off。

它就跟 RGB 色彩一样,范围是 0 - F,那是 16 进制表示法啊。那不代表显卡已经关了吧。

另外 Mesa-demo-x 和你那个毫无关系,这个软件包的作用就是提供 glxinfo 这个显卡测试的工具。

你的问题是这个。

我现在需要

sudo systemctl status bumblebee.service

的结果和 /var/log/Xorg.0.log 里标记为 [EE] 的输出。

~> sudo systemctl status bumblebee.service
bumblebee.service
          Loaded: error (Reason: No such file or directory)
          Active: inactive (dead)

~> cat  /var/log/Xorg.0.log | grep EE
    23.462] Current Operating System: Linux linux-c3vi.site 3.7.10-1.11-desktop #1 SMP PREEMPT Thu May 16 20:27:27 UTC 2013 (adf31bb) x86_64
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    24.585] Initializing built-in extension MIT-SCREEN-SAVER

sorry, 看 bumblebeed.service

第二个你给我的是各种 Xorg 系统消息类型的说明。继续往下找。

“sorry, 看 bumblebeed.service” ?? 什么意思?

    32.228] Current Operating System: Linux linux-c3vi.site 3.7.10-1.11-desktop #1 SMP PREEMPT Thu May 16 20:27:27 UTC 2013 (adf31bb) x86_64
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    32.230] Initializing built-in extension MIT-SCREEN-SAVER
   422.625] Current Operating System: Linux linux-c3vi.site 3.7.10-1.11-desktop #1 SMP PREEMPT Thu May 16 20:27:27 UTC 2013 (adf31bb) x86_64
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
   422.627] Initializing built-in extension MIT-SCREEN-SAVER
   422.650] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:2:0:0.  Please
   422.650] (EE) NVIDIA(0):     check your system's kernel log for additional error
   422.650] (EE) NVIDIA(0):     messages and refer to Chapter 8: Common Problems in the
   422.650] (EE) NVIDIA(0):     README for additional information.
   422.650] (EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device!
   422.650] (EE) NVIDIA(0): Failing initialization of X screen 0
   422.650] (EE) Screen(s) found, but none have a usable configuration.
   422.650] (EE) 
   422.650] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
   422.650] (EE) 
   385.017] Current Operating System: Linux linux-c3vi.site 3.7.10-1.11-desktop #1 SMP PREEMPT Thu May 16 20:27:27 UTC 2013 (adf31bb) x86_64
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
   385.019] Initializing built-in extension MIT-SCREEN-SAVER
   385.046] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:2:0:0.  Please
   385.046] (EE) NVIDIA(0):     check your system's kernel log for additional error
   385.046] (EE) NVIDIA(0):     messages and refer to Chapter 8: Common Problems in the
   385.046] (EE) NVIDIA(0):     README for additional information.
   385.046] (EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device!
   385.046] (EE) NVIDIA(0): Failing initialization of X screen 0
   385.046] (EE) Screen(s) found, but none have a usable configuration.
   385.046] (EE) 
   385.046] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
   385.046] (EE)
  1. 把我给你的命令里的 bumblebee.service 替换为 bumblebeed.service

  2. /etc/X11/xorg.conf 你有吗?没有最好,有的话贴下内容。

  3. 你的 Xorg.0.log 提示最好再看下 Xorg.8.log,你也贴一下。

  4. 你的那个问题,我在 wiki 里似乎有写过,你试试

zh.opensuse.org/SDB:Bumblebee#.5BERROR.5DCannot_access_secondary_GPU

  1. 请用 code 贴代码。
2赞

1
~> sudo systemctl status bumblebeed.service
root’s password:
bumblebeed.service - Bumblebee C Daemon
Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled)
Active: active (running) since Sun, 2013-06-02 09:15:14 CST; 5h 9min ago
Main PID: 652 (bumblebeed)
CGroup: name=systemd:/system/bumblebeed.service
└ 652 /usr/sbin/bumblebeed

Jun 02 09:15:14 linux-c3vi.site systemd[1]: Starting Bumblebee C Daemon...
Jun 02 09:15:14 linux-c3vi.site systemd[1]: Started Bumblebee C Daemon.
Jun 02 09:15:24 linux-c3vi.site bumblebeed[652]:    33.373665] [ERROR]Module bbswitch could not be loaded (timeout?)
Jun 02 09:15:24 linux-c3vi.site bumblebeed[652]:    33.373692] [WARN]No switching method available. The dedicated card will al...be on.
Jun 02 09:15:24 linux-c3vi.site bumblebeed[652]:    33.375872] [INFO]/usr/sbin/bumblebeed 3.2.1 started

2
~> cat /etc/X11/xorg.conf
cat: /etc/X11/xorg.conf: No such file or directory

3

~> cat /var/log/Xorg.8.log | grep EE
   422.625] Current Operating System: Linux linux-c3vi.site 3.7.10-1.11-desktop #1 SMP PREEMPT Thu May 16 20:27:27 UTC 2013 (adf31bb) x86_64
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
   422.627] Initializing built-in extension MIT-SCREEN-SAVER
   422.650] (EE) NVIDIA(0): Failed to initialize the NVIDIA GPU at PCI:2:0:0.  Please
   422.650] (EE) NVIDIA(0):     check your system's kernel log for additional error
   422.650] (EE) NVIDIA(0):     messages and refer to Chapter 8: Common Problems in the
   422.650] (EE) NVIDIA(0):     README for additional information.
   422.650] (EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device!
   422.650] (EE) NVIDIA(0): Failing initialization of X screen 0
   422.650] (EE) Screen(s) found, but none have a usable configuration.
   422.650] (EE) 
   422.650] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
   422.650] (EE) 

4

~> ls /etc/X11/xorg.conf.d/20-intel.conf 
ls: cannot access /etc/X11/xorg.conf.d/20-intel.conf: No such file or directory

你没 bbswitch?

Sent from my Galaxy Note 2 using Tapatalk 2

在 YaST 中搜 bbswitch

bbswitch-kmp-desktop - ACPI module 这一项是打勾的.

dkms-bbswitch - “Kernel module allowing to switch dedicated graphics on Optimus laptops”
这一项没打勾, 但介绍看起来好像是我缺少的?

没 bbswitch 怎么 bumblebee 啊。你之前那个 bumbleed.service 的运行状态里面说你没 bbswitch。

哦我明白了,你是不是看到收尾操作 5 里面写了「如果 DKMS 则不用」于是给略过了(可能我写的时间长解释错了):

lsmod | grep bbswitch

看一下,没有要弄上的。

" 哦我明白了,你是不是看到收尾操作 5 里面写了「如果 DKMS 则不用」于是给略过了(可能我写的时间长解释错了):"

正是啊!!

/tmp> lsmod | grep bbswitch
没有输出 

要做操作 5
还是 YaST 里的 dkms-bbswitch - “Kernel module allowing to switch dedicated graphics on Optimus laptops” 打勾就好?

操作 5

/tmp> sudo modprobe bbswitch
root's password:
sudo: modprobe: command not found

YaST 中也搜不到 modprobe

su
modprobe bbswitch
lsmod | grep bbswitch

然后重新跑分

执行了楼上的命令
重启

~> primusrun glxinfo | grep render
primus: fatal: Bumblebee daemon reported: error: Could not load GPU driver

~> optirun  glxinfo | grep render
  266.591902] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

  266.591973] [ERROR]Aborting because fallback start is disabled.



~> sudo systemctl status bumblebeed.service
root's password:
bumblebeed.service - Bumblebee C Daemon
          Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled)
          Active: active (running) since Sun, 2013-06-02 20:18:51 CST; 16min ago
        Main PID: 553 (bumblebeed)
          CGroup: name=systemd:/system/bumblebeed.service
                  └ 553 /usr/sbin/bumblebeed

Jun 02 20:18:51 linux-c3vi.site systemd[1]: Starting Bumblebee C Daemon...
Jun 02 20:18:51 linux-c3vi.site systemd[1]: Started Bumblebee C Daemon.
Jun 02 20:18:54 linux-c3vi.site bumblebeed[553]:    32.779344] [INFO]/usr/sbin/bumblebeed 3.2.1 started
Jun 02 20:21:41 linux-c3vi.site bumblebeed[553]: FATAL: Error inserting nvidia (/lib/modules/3.7.10-1.11-desktop/updates/nvidia...device
Jun 02 20:21:41 linux-c3vi.site bumblebeed[553]:   200.428573] [ERROR]Module nvidia could not be loaded (timeout?)
Jun 02 20:21:41 linux-c3vi.site bumblebeed[553]:   200.428596] [ERROR]Could not load GPU driver
Jun 02 20:22:47 linux-c3vi.site bumblebeed[553]: FATAL: Error inserting nvidia (/lib/modules/3.7.10-1.11-desktop/updates/nvidia...device
Jun 02 20:22:47 linux-c3vi.site bumblebeed[553]:   266.591812] [ERROR]Module nvidia could not be loaded (timeout?)
Jun 02 20:22:47 linux-c3vi.site bumblebeed[553]:   266.591841] [ERROR]Could not load GPU driver

YaST中
dkms-bbswitch - "Kernel module allowing to switch dedicated graphics on Optimus laptops"
这一项没打勾,要打勾安装上吗?

bbswitch-kmp 和 dkms-bbswitch 提供的都是 bbswitch,你愿意装两份吗?

其它的回头再看。

FATAL: Error inserting nvidia (/lib/modules/3.7.10-1.11-desktop/updates/nvidia.ko: No such device

那个路径下有那个文件吗?