sudo zypper ar -f http://download.opensuse.org/repositories/home:/Overman79:/Laptop/openSUSE_12.3/ bumblebee
sudo zypper ref
sudo zypper in dkms dkms-nvidia bbswitch-kmp-3.7.10-1.4-desktop bumblebee primus x11-video-nvidia VirtualGL
第三条语句执行到最后屏幕最后显示:
DKMS: uninstall completed.
Error! Problems with mkinitrd detected. Automatically uninstalling this module.
DKMS: Install Failed (mkinitrd problems). Module rolled back to built state.
这个错误是否表示命令没成功?
sudo zypper in primus-32bit, x11-video-nvidia-32bit
加源安装是否上面 4 条命令执行后就直接跳到 “收尾工作”了?
收尾工作 2. 安装相应的显卡驱动
sudo zypper in libdrm_intel1, xf86-video-intel, vaapi-intel-driver
提示:
Reading installed packages...
'vaapi-intel-driver' is already installed.
No update candidate for 'vaapi-intel-driver-1.0.19-2.1.1.x86_64'. The highest available version is already installed.
'libdrm_intel1,' not found in package names. Trying capabilities.
No provider of 'libdrm_intel1,' found.
'xf86-video-intel,' not found in package names. Trying capabilities.
No provider of 'xf86-video-intel,' found.
Resolving package dependencies...
Nothing to do.
这些提示表示这一步成功了没有?
sudo zypper in libdrm_intel1-32bit xf86-video-intel-32bit
那么 Nvidia 如下三条语句要不要执行?
sudo zypper ar -f ftp://download.nvidia.com/opensuse/12.3/ nvidia
sudo zypper ref
sudo zypper in nvidia-computeG03, nvidia-gfxG03-kmp-<kernel-flavor>,x11-video-nvidiaG03, vdpau-video
sudo zypper in dkms dkms-nvidia bbswitch-kmp-3.7.10-1.11-desktop bumblebee primus x11-video-nvidia VirtualGL
暂停
第 3) 条命令执行后最后显示:
DKMS: add completed.
+ /usr/sbin/dkms build -m nvidia -v 319.17-2.1
Error! echo
Your kernel headers for kernel 3.7.10-1.11-desktop cannot be found at
/lib/modules/3.7.10-1.11-desktop/build or /lib/modules/3.7.10-1.11-desktop/source.
+ /usr/sbin/dkms install -m nvidia -v 319.17-2.1
Error! echo
Your kernel headers for kernel 3.7.10-1.11-desktop cannot be found at
/lib/modules/3.7.10-1.11-desktop/build or /lib/modules/3.7.10-1.11-desktop/source.
+ popd
Your kernel headers for kernel 3.7.10-1.11-desktop cannot be found at
/lib/modules/3.7.10-1.11-desktop/build or /lib/modules/3.7.10-1.11-desktop/source.
你没装内核的头文件,dkms 是个动态制作内核模块的工具,所以需要一些内核函数的定义文件。
sudo zypper in kernel-desktop-devel kernel-source kernel-devel
补充执行 sudo zypper in kernel-desktop-devel kernel-source kernel-devel #过
重新执行3) sudo zypper in dkms dkms-nvidia bbswitch-kmp-3.7.10-1.11-desktop bumblebee primus x11-video-nvidia VirtualGL #过
4) sudo zypper in primus-32bit, x11-video-nvidia-32bit #64 位系统需要 #过
5) sudo zypper in libdrm_intel1, xf86-video-intel, vaapi-intel-driver
提示:
Loading repository data…
Reading installed packages…
‘vaapi-intel-driver’ is already installed.
No update candidate for ‘vaapi-intel-driver-1.0.19-2.1.1.x86_64’. The highest available version is already installed.
‘libdrm_intel1,’ not found in package names. Trying capabilities.
No provider of ‘libdrm_intel1,’ found.
‘xf86-video-intel,’ not found in package names. Trying capabilities.
No provider of ‘xf86-video-intel,’ found.
Resolving package dependencies…