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

/lib/modules/3.7.10-1.11-desktop/updates/nvidia.ko 这个文件是有的.

~> ls -l /lib/modules/3.7.10-1.11-desktop/updates/nvidia.ko
-rw-r--r-- 1 root root 12805912 May 31 15:49 /lib/modules/3.7.10-1.11-desktop/updates/nvidia.ko

嗯,config 问题。贴一下 /etc/bumblebee.conf。具体位置我也忘了。

可以:

cd /etc
find . -name "bumblebee.conf"

找一下。

linux-c3vi:/etc # find . -name "bumblebee.conf"
./bumblebee/bumblebee.conf
linux-c3vi:/etc # cat ./bumblebee/bumblebee.conf > ~/bumblebee.conf.txt

bumblebee.conf.txt (2.83 KB)

你的 /usr/lib64/nvidia/ 和 /usr/lib64/nvidia/xorg/ 下面有东西吗?

ls 列一下。

/tmp> ls  /usr/lib64/nvidia/  /usr/lib64/nvidia/xorg/ 
/usr/lib64/nvidia/:
libGL.so.1  libGL.so.319.17  libGL.so.319.23  libOpenCL.so  libOpenCL.so.1.0.0  xorg

/usr/lib64/nvidia/xorg/:
modules
ll /usr/lib64/nvidia
ll /usr/lib64/nvidia/xorg/modules

感觉这里不太对的样子,你看你的 GL 彼此版本都不一样。你去 YaST 检查下你的 Nvidia 相关软件包的版本情况吧

Sent from my Galaxy Note 2 using Tapatalk 2

ll /usr/lib64/nvidia
ll /usr/lib64/nvidia/xorg/modules

感觉这里不太对的样子,你看你的 GL 彼此版本都不一样。你去 YaST 检查下你的 Nvidia 相关软件包的版本情况吧

Sent from my Galaxy Note 2 using Tapatalk 2

~> ll /usr/lib64/nvidia
total 2268
lrwxrwxrwx 1 root users 33 May 30 19:53 libGL.so.1 -> /usr/lib64/nvidia/libGL.so.319.23
-rwxr-xr-x 1 root users 1144560 May 29 20:26 libGL.so.319.17
-rwxr-xr-x 1 root users 1144560 May 30 19:53 libGL.so.319.23
lrwxrwxrwx 1 root users 36 May 30 19:53 libOpenCL.so -> /usr/lib64/nvidia/libOpenCL.so.1.0.0
-rwxr-xr-x 1 root users 21296 May 30 19:53 libOpenCL.so.1.0.0
drwxr-xr-x 3 root users 4096 May 29 20:26 xorg
~> ll /usr/lib64/nvidia/xorg/modules
total 4
drwxr-xr-x 2 root users 4096 May 30 19:53 extensions
lrwxrwxrwx 1 root users 33 May 30 19:53 libwfb.so -> /usr/lib64/xorg/modules/libwfb.so
caozhijie@linux-c3vi:~>
截了个图你看看.


rpm -qf /usr/lib64/nvidia/libGL.so.319.17

看下它是哪个包?感觉像是多余的。另外

lsmod | grep nvidia

有 nvidia 的内核驱动挂着?

再贴一下

/etc/bumblebee/xorg.conf.nvidia

的结果,没有就自己 find 一下。

~> rpm -qf /usr/lib64/nvidia/libGL.so.319.17
file /usr/lib64/nvidia/libGL.so.319.17 is not owned by any package


~> lsmod | grep nvidia
nvidia               9429239  0


~> cat /etc/bumblebee/xorg.conf.nvidia
Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddDevices" "false"
    Option      "AutoAddGPU" "false"
EndSection

Section "Device"
    Identifier  "DiscreteNvidia"
    Driver      "nvidia"
    VendorName  "NVIDIA Corporation"

#   If the X server does not automatically detect your VGA device,
#   you can manually set it here.
#   To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
#   as you see in the commented example.
#   This Setting may be needed in some platforms with more than one
#   nvidia card, which may confuse the proprietary driver (e.g.,
#   trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
#   BusID "PCI:01:00:0"

#   Setting ProbeAllGpus to false prevents the new proprietary driver
#   instance spawned to try to control the integrated graphics card,
#   which is already being managed outside bumblebee.
#   This option doesn't hurt and it is required on platforms running
#   more than one nvidia graphics card with the proprietary driver.
#   (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
#   If this option is not set, the new Xorg may blacken the screen and
#   render it unusable (unless you have some way to run killall Xorg).
    Option "ProbeAllGpus" "false"

    Option "NoLogo" "true"
    Option "UseEDID" "false"
    Option "UseDisplayDevice" "none"
EndSection
sudo rm -rf /usr/lib64/nvidia/libGL.so.319.17

这个没用的。

  1. 给下

dmesg | grep -i nvidia

的结果和你的 /var/log/Xorg.8.log

lsmod | grep nouveau

有吗?

1赞
~> dmesg | grep -i nvidia
    2.396357] nvidia: module license 'NVIDIA' taints kernel.
    2.411511] nvidia 0000:02:00.0: enabling device (0104 -> 0107)
    2.411679] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  319.23  Thu May 16 19:36:02 PDT 2013


~> cat  /var/log/Xorg.8.log
   310.536] 
X.Org X Server 1.13.2
Release Date: 2013-01-24
   310.536] X Protocol Version 11, Revision 0
   310.536] Build Operating System: openSUSE SUSE LINUX
   310.536] 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
   310.536] Kernel command line: BOOT_IMAGE=/vmlinuz-3.7.10-1.11-desktop root=UUID=73dcb74e-471b-4520-91c5-a7471bdb8d07 resume=/dev/disk/by-id/ata-Hitachi_HTS545050B9A300_101126PBN4031711HEBE-part5 splash=silent quiet showopts
   310.536] Build Date: 30 April 2013  08:24:17AM
   310.536]  
   310.536] Current version of pixman: 0.28.2
   310.536]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
   310.536] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
   310.536] (==) Log file: "/var/log/Xorg.8.log", Time: Sun Jun  2 20:15:50 2013
   310.537] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
   310.537] (++) Using config directory: "/etc/bumblebee/xorg.conf.d"
   310.537] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
   310.537] (==) ServerLayout "Layout0"
   310.537] (==) No screen section available. Using defaults.
   310.537] (**) |-->Screen "Default Screen Section" (0)
   310.537] (**) |   |-->Monitor "<default monitor>"
   310.537] (==) No device specified for screen "Default Screen Section".
        Using the first device section listed.
   310.537] (**) |   |-->Device "DiscreteNvidia"
   310.537] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
   310.537] (**) Option "AutoAddDevices" "false"
   310.537] (**) Option "AutoAddGPU" "false"
   310.537] (**) Not automatically adding devices
   310.537] (==) Automatically enabling devices
   310.537] (**) Not automatically adding GPU devices
   310.537] (WW) The directory "/usr/share/fonts/misc/sgi" does not exist.
   310.537]    Entry deleted from font path.
   310.537] (==) FontPath set to:
        /usr/share/fonts/misc:unscaled,
        /usr/share/fonts/Type1/,
        /usr/share/fonts/100dpi:unscaled,
        /usr/share/fonts/75dpi:unscaled,
        /usr/share/fonts/ghostscript/,
        /usr/share/fonts/cyrillic:unscaled,
        /usr/share/fonts/truetype/,
        built-ins
   310.537] (++) ModulePath set to "/usr/lib64/nvidia/xorg/,/usr/lib64/xorg/modules"
   310.537] (==) |-->Input Device "<default pointer>"
   310.537] (==) |-->Input Device "<default keyboard>"
   310.537] (==) The core pointer device wasn't specified explicitly in the layout.
        Using the default mouse configuration.
   310.537] (==) The core keyboard device wasn't specified explicitly in the layout.
        Using the default keyboard configuration.
   310.537] (II) Loader magic: 0x801c20
   310.537] (II) Module ABI versions:
   310.537]    X.Org ANSI C Emulation: 0.4
   310.537]    X.Org Video Driver: 13.1
   310.537]    X.Org XInput driver : 18.0
   310.537]    X.Org Server Extension : 7.0
   310.537] (II) config/udev: Adding drm device (/dev/dri/card0)
   310.537] setversion 1.4 failed
   310.538] (--) PCI:*(0:2:0:0) 10de:0df4:1025:0371 rev 161, Mem @ 0xac000000/16777216, 0xb0000000/268435456, 0xae000000/33554432, I/O @ 0x00002000/128
   310.538] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
   310.538] Initializing built-in extension Generic Event Extension
   310.538] Initializing built-in extension SHAPE
   310.538] Initializing built-in extension MIT-SHM
   310.538] Initializing built-in extension XInputExtension
   310.538] Initializing built-in extension XTEST
   310.538] Initializing built-in extension BIG-REQUESTS
   310.538] Initializing built-in extension SYNC
   310.538] Initializing built-in extension XKEYBOARD
   310.538] Initializing built-in extension XC-MISC
   310.538] Initializing built-in extension SECURITY
   310.538] Initializing built-in extension XINERAMA
   310.538] Initializing built-in extension XFIXES
   310.538] Initializing built-in extension RENDER
   310.538] Initializing built-in extension RANDR
   310.538] Initializing built-in extension COMPOSITE
   310.538] Initializing built-in extension DAMAGE
   310.538] Initializing built-in extension MIT-SCREEN-SAVER
   310.538] Initializing built-in extension DOUBLE-BUFFER
   310.538] Initializing built-in extension RECORD
   310.538] Initializing built-in extension DPMS
   310.538] Initializing built-in extension X-Resource
   310.538] Initializing built-in extension XVideo
   310.538] Initializing built-in extension XVideo-MotionCompensation
   310.538] Initializing built-in extension XFree86-VidModeExtension
   310.539] Initializing built-in extension XFree86-DGA
   310.539] Initializing built-in extension XFree86-DRI
   310.539] Initializing built-in extension DRI2
   310.539] (II) LoadModule: "glx"
   310.539] (II) Loading /usr/lib64/nvidia/xorg/modules/extensions/libglx.so
   310.550] (II) Module glx: vendor="NVIDIA Corporation"
   310.550]    compiled for 4.0.2, module version = 1.0.0
   310.550]    Module class: X.Org Server Extension
   310.550] (II) NVIDIA GLX Module  319.23  Thu May 16 19:23:10 PDT 2013
   310.550] Loading extension GLX
   310.550] (II) LoadModule: "nvidia"
   310.550] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
   310.551] (II) Module nvidia: vendor="NVIDIA Corporation"
   310.551]    compiled for 4.0.2, module version = 1.0.0
   310.551]    Module class: X.Org Video Driver
   310.551] (II) LoadModule: "mouse"
   310.551] (II) Loading /usr/lib64/xorg/modules/input/mouse_drv.so
   310.551] (II) Module mouse: vendor="X.Org Foundation"
   310.551]    compiled for 1.13.1, module version = 1.8.1
   310.551]    Module class: X.Org XInput Driver
   310.551]    ABI class: X.Org XInput driver, version 18.0
   310.551] (II) LoadModule: "kbd"
   310.552] (II) Loading /usr/lib64/xorg/modules/input/kbd_drv.so
   310.552] (II) Module kbd: vendor="X.Org Foundation"
   310.552]    compiled for 1.13.1, module version = 1.6.2
   310.552]    Module class: X.Org XInput Driver
   310.552]    ABI class: X.Org XInput driver, version 18.0
   310.552] (II) NVIDIA dlloader X Driver  319.23  Thu May 16 19:02:20 PDT 2013
   310.552] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
   310.552] (--) using VT number 7

   310.552] (II) Loading sub module "fb"
   310.552] (II) LoadModule: "fb"
   310.552] (II) Loading /usr/lib64/xorg/modules/libfb.so
   310.552] (II) Module fb: vendor="X.Org Foundation"
   310.552]    compiled for 1.13.2, module version = 1.0.0
   310.552]    ABI class: X.Org ANSI C Emulation, version 0.4
   310.552] (WW) Unresolved symbol: fbGetGCPrivateKey
   310.552] (II) Loading sub module "wfb"
   310.552] (II) LoadModule: "wfb"
   310.552] (II) Loading /usr/lib64/nvidia/xorg/modules/libwfb.so
   310.552] (II) Module wfb: vendor="X.Org Foundation"
   310.552]    compiled for 1.13.2, module version = 1.0.0
   310.552]    ABI class: X.Org ANSI C Emulation, version 0.4
   310.552] (II) Loading sub module "shadow"
   310.552] (II) LoadModule: "shadow"
   310.552] (II) Loading /usr/lib64/xorg/modules/libshadow.so
   310.553] (II) Module shadow: vendor="X.Org Foundation"
   310.553]    compiled for 1.13.2, module version = 1.1.0
   310.553]    ABI class: X.Org ANSI C Emulation, version 0.4
   310.553] (II) Loading sub module "ramdac"
   310.553] (II) LoadModule: "ramdac"
   310.553] (II) Module "ramdac" already built-in
   310.553] (II) NVIDIA(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
   310.553] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
   310.553] (==) NVIDIA(0): RGB weight 888
   310.553] (==) NVIDIA(0): Default visual is TrueColor
   310.553] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
   310.553] (**) NVIDIA(0): Option "NoLogo" "true"
   310.553] (**) NVIDIA(0): Option "ProbeAllGpus" "false"
   310.553] (**) NVIDIA(0): Option "UseEDID" "false"
   310.553] (**) NVIDIA(0): Option "UseDisplayDevice" "none"
   310.553] (**) NVIDIA(0): Enabling 2D acceleration
   310.553] (**) NVIDIA(0): Ignoring EDIDs
   310.553] (**) NVIDIA(0): Option "UseDisplayDevice" set to "none"; enabling NoScanout
   310.553] (**) NVIDIA(0):     mode


~> lsmod | grep nouveau
#没有输出

Xorg.8.log 不全。

Xorg.8.log 的内容都贴出来了呀.

你再仔细看看。我怎么觉得最后一行是半途截断的。

cat /proc/acpi/bbswitch

Xorg.8.log 的最后一行就是这样的

~> cat /proc/acpi/bbswitch 
cat: /proc/acpi/bbswitch: No such file or directory

报告个情况
刚才执行

primusrun firefox

发现发是可以启动 firefox 的, 什么情况.

/proc 下 find 一下 bbswitch。方法这个帖子里就说过

Sent from my Desire HD using Tapatalk 2

linux-c3vi:/proc # find . -name "bbswitch"
linux-c3vi:/proc #     没有输出

我明白了,又看了下前面。你 modprobe 过了 bbswitch 后,重启了。于是这个内核模块重启后又掉了。我以为它还在的。

你参照前面的方法再挂载一次。就会有 /proc/acpi/bbswitch 了。

Sent from my Desire HD using Tapatalk 2

1赞