Not going far with Bumblebee

I have an Acer Aspire V 15 Nitro laptop. I bought it to eventually do some work with CUDA on its Gforce 860M.
Anyway, I installed Opensuse 13.2 64 bits and that almost worked.
See the random problems I’m having on this other thread :
https://forums.opensuse.org/showthread.php/507317-Boot-problem-with-Opensuse-13-2-AceV-15-Nitro

It looks like it might be a driver problem with the Optimus cards and that might be resolved by installing Bumblebee.
So, I decided to give it a go. If you have any other suggestions, feel free to let me know.
Keep in mind that I’m not very good at this stuff. Try to be clear in your instructions. Saying “remove driver XYZZ”
won’t be helpful if you don’t tell me how to do it.

I had a look at these two guides for Bublebee:
https://en.opensuse.org/SDB:NVIDIA_Bumblebee
https://forums.opensuse.org/showthread.php/505270-ultimate-tutorial-installing-Bumblebee-driver-for-SUSE

I started by looking at some suggested zypper commands which i assume is some sort of package installer.
The first command I tried didn’t go very well :

zypper se nvidia
Empty destination in URI: hd:///?device=/dev/disk/by-id/scsi-1USB_DISK_2.0-part2

sudo  zypper up --
Empty destination in URI: hd:///?device=/dev/disk/by-id/scsi-1USB_DISK_2.0-part2

sudo  zypper refresh
Repository 'Update Repository (Non-Oss)' is up to date.
Repository 'Main Repository (NON-OSS)' is up to date.
Repository 'Main Repository (OSS)' is up to date.
Repository 'Main Update Repository' is up to date.
Empty destination in URI: hd:///?device=/dev/disk/by-id/scsi-1USB_DISK_2.0-part2

There is clearly something wrong here : I don’t understand the reference to the USB disk. Something to do
with installing from USB stick?
Some commands required sudo but the guides never mention it, increasing the confusion.

One of the guides said to add the Bumblebee repository

zypper ar -f http://download.opensuse.org/repositories/X11:/Bumblebee/openSUSE_13.2
Root privileges are required for modifying system repositories.
sudo zypper ar -f http://download.opensuse.org/repositories/X11:/Bumblebee/openSUSE_13.2
root's password:
If only one argument is used, it must be a URI pointing to a .repo file.
addrepo (ar) [options] <URI> <alias>
addrepo (ar) [options] <file.repo>                                                                                 
                                                                                                                   
Add a repository to the system. The repository can be specified by its URI or can be read from specified .repo file (even remote).  

I looked at the path and changed it to the .repo file there

sudo zypper ar -f http://download.opensuse.org/repositories/X11:/Bumblebee/openSUSE_13.2/X11:Bumblebee.repo
PackageKit is blocking zypper. This happens if you have an updater applet or other software management application using PackageKit running.
Tell PackageKit to quit? [yes/no] (no): yes
PackageKit is still running (probably busy).
Try again? [yes/no] (no): yes
Adding repository 'Bumblebee project (openSUSE_13.2)' .......................................................[done]
Repository 'Bumblebee project (openSUSE_13.2)' successfully added
Enabled     : Yes                                                                    
Autorefresh : Yes                                                                    
GPG check   : Yes                                                                    
URI         : http://download.opensuse.org/repositories/X11:/Bumblebee/openSUSE_13.2/

sudo zypper up --
Retrieving repository 'Bumblebee project (openSUSE_13.2)' metadata ---------------------------------------------\]

New repository or package signing key received:

  Repository:       Bumblebee project (openSUSE_13.2)                           
  Key Name:         X11:Bumblebee OBS Project <X11:Bumblebee@build.opensuse.org>
  Key Fingerprint:  1B36859F EC802523 D1C7C7B3 67486E4C DD15AF4A                
  Key Created:      Sat 31 May 2014 10:03:30 PM AEST                            
  Key Expires:      Mon 08 Aug 2016 10:03:30 PM AEST                            
  Rpm Name:         gpg-pubkey-dd15af4a-5389c512                                


Do you want to reject the key, trust temporarily, or trust always? [r/t/a/? shows all options] (r): a
Retrieving repository 'Bumblebee project (openSUSE_13.2)' metadata ..........................................[done]
Building repository 'Bumblebee project (openSUSE_13.2)' cache ...............................................[done]
Empty destination in URI: hd:///?device=/dev/disk/by-id/scsi-1USB_DISK_2.0-part2

Abort, retry, ignore? [a/r/i/? shows all options] (a): 

All this left me very confused. Thanks in advance for any help.

Did you install via USB? remove the install media which ever you used from the repo list. I always find it easier to deal with these things by using yast. But what ever

See what repos you have using zypper

zypper lr -d

see what repo number is for the install device

zypper rr #

where # is the number of the repo that shows your install media

Or you can just plug in the install media for this operation.

Use the first one of the instruction. If you use 2 or more you will get confused.

First of all, really thank you for your help.

Yes, I did install with a USB stick : new laptops come with no DVD.
Inserting the original USB stick improved things greatly.

sudo zypper up --

Resulted in actual updating. I then used your command

zypper lr -d
#  | Alias                              | Name                               | Enabled | Refresh | Priority | Type   | URI                                                                     | Service
---+------------------------------------+------------------------------------+---------+---------+----------+--------+-------------------------------------------------------------------------+--------
 1 | X11_Bumblebee                      | Bumblebee project (openSUSE_13.2)  | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/X11:/Bumblebee/openSUSE_13.2/ |        
 2 | download.opensuse.org-13.2-non-oss | Update Repository (Non-Oss)        | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.2-non-oss/                       |        
 3 | download.opensuse.org-non-oss      | Main Repository (NON-OSS)          | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/13.2/repo/non-oss/            |        
 4 | download.opensuse.org-oss          | Main Repository (OSS)              | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/13.2/repo/oss/                |        
 5 | download.opensuse.org-update       | Main Update Repository             | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.2/                               |        
 6 | openSUSE-13.2-0                    | openSUSE-13.2-0                    | Yes     | Yes     |   99     | yast2  | hd:///?device=/dev/disk/by-id/scsi-1USB_DISK_2.0-part2                  |        
 7 | repo-debug                         | openSUSE-13.2-Debug                | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/13.2/repo/oss/          |        
 8 | repo-debug-update                  | openSUSE-13.2-Update-Debug         | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/13.2/                         |        
 9 | repo-debug-update-non-oss          | openSUSE-13.2-Update-Debug-Non-Oss | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/13.2-non-oss/                 |        
10 | repo-source                        | openSUSE-13.2-Source               | No      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distribution/13.2/repo/oss/         |   

showed the USB stick depo that I then removed as per your instructions

sudo zypper rr openSUSE-13.2-0 
root's password:
Removing repository 'openSUSE-13.2-0' .......................................................................................................................................................................[done]
Repository 'openSUSE-13.2-0' has been removed.
sudo zypper lr -d
# | Alias                              | Name                               | Enabled | Refresh | Priority | Type   | URI                                                                     | Service
--+------------------------------------+------------------------------------+---------+---------+----------+--------+-------------------------------------------------------------------------+--------
1 | X11_Bumblebee                      | Bumblebee project (openSUSE_13.2)  | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/repositories/X11:/Bumblebee/openSUSE_13.2/ |        
2 | download.opensuse.org-13.2-non-oss | Update Repository (Non-Oss)        | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.2-non-oss/                       |        
3 | download.opensuse.org-non-oss      | Main Repository (NON-OSS)          | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/13.2/repo/non-oss/            |        
4 | download.opensuse.org-oss          | Main Repository (OSS)              | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distribution/13.2/repo/oss/                |        
5 | download.opensuse.org-update       | Main Update Repository             | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.2/                               |        
6 | repo-debug                         | openSUSE-13.2-Debug                | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/distribution/13.2/repo/oss/          |        
7 | repo-debug-update                  | openSUSE-13.2-Update-Debug         | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/13.2/                         |        
8 | repo-debug-update-non-oss          | openSUSE-13.2-Update-Debug-Non-Oss | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/13.2-non-oss/                 |        
9 | repo-source                        | openSUSE-13.2-Source               | No      | Yes     |   99     | NONE   | http://download.opensuse.org/source/distribution/13.2/repo/oss/         |       

This shows that my yesterday’s attempt to add the Bumblebee repository seems to have worked. So far so good.

Now, I tried :

sudo zypper se nvidia
root's password:
Loading repository data...
Reading installed packages...

S | Name                   | Summary                                                                       | Type      
--+------------------------+-------------------------------------------------------------------------------+-----------
  | nvidia-bumblebee       | Installer for the proprietary graphics driver for GeForce 6xxx and newer GPUs | package   
  | nvidia-bumblebee       | Installer for the proprietary graphics driver for GeForce 6xxx and newer GPUs | srcpackage
  | nvidia-bumblebee-32bit | Installer for the proprietary graphics driver for GeForce 6xxx and newer GPUs | package   
  | nvidia-texture-tools   | NVIDIA Texture Tools                                                          | package   

Which is a bit odd : yesterday it only showed nvidia-texture-tools today the list is longer.
Maybe zypper up – did it ?

Anyway, one of the guides says to “Get rid of bumblebee, primus, dkms, dkms-nvidia, dkms-bbswitch if you’ve installed before”
This is a bit vague. Does it mean ?

zypper rm nvidia-bumblebee 
zypper rm nvidia-bumblebee-32bit
zypper rm nvidia-texture-tools

The guide also says “[FONT=宋体]Get rid of all mentions of nvidia in [/FONT]/etc/sysconfig/kernel”

This file does not exist in my system.
I also did :

sudo zypper if xf86-video-intel

And it looks like it’s there.
Subject to the question above on removing nvidia stuff, I plan to follow steps of the second guide :

4. add the line "blacklist nouveau" to /etc/modprobe.d/50-blacklist.conf
add  option "nouveau.modeset=0" to the end of boot loader option from   "Yast-->boot loader-->Boot Loader option-->optional kernel   command line parameter"

*5. [FONT=宋体]*mkinitrd**[/FONT]
6. [FONT=宋体]reboot your system[/FONT]

Any other suggestions ?
Thanks.

Did you install those package if not then you do nothing. It seems pretty clear

Please only follow instruction from here.

https://en.opensuse.org/SDB:NVIDIA_Bumblebee

I’m not sure I can be clearer. Do not follow any other unless you actually understand what you are doing.

Just because you see a package does not mean you should install it. One of the packages is source code the other you can read about here

https://developer.nvidia.com/gpu-accelerated-texture-compression

I did not install the Bublebee packages that appear when I type :

sudo zypper se nvidia
root's password:
Loading repository data...
Reading installed packages...

S | Name                   | Summary                                                                       | Type      
--+------------------------+-------------------------------------------------------------------------------+-----------
  | nvidia-bumblebee       | Installer for the proprietary graphics driver for GeForce 6xxx and newer GPUs | package   
  | nvidia-bumblebee       | Installer for the proprietary graphics driver for GeForce 6xxx and newer GPUs | srcpackage
  | nvidia-bumblebee-32bit | Installer for the proprietary graphics driver for GeForce 6xxx and newer GPUs | package   
  | nvidia-texture-tools   | NVIDIA Texture Tools                                                          | package /CODE]

I looked at the man page for zypper and, if I'm correct -i should list only installed packages. Therefore :

sudo zypper se -i nvidia
root’s password:
Loading repository data…
Reading installed packages…
No packages found.



Implies that no Nvidia packages are instlled and I can continue with the instructions.
Do you agree ?

Yes and if you never installed any you don’t have any they are not installed by default. The important part is that none of the normal NVIDIA stuff is installed before bumblebee. No harm would be done if you install all 4 packages you just don’t need them just install the packages listed in the instruction page. ie just follow the instructions.

Thanks, Bumblebee seems to have fixed this issues. The machine appears to boot fine. I mentioned this in the other thread too.
I will now try to install the Nvidia driver in the optional part of the instructions you sent.

BTW, while booting I notice the following :

[FAILED] Failed to start Load Kernel Modules.
See "systemctl status systemd-modules-load.service"for details

So I did:

systemctl status systemd-modules-load.service
systemd-modules-load.service - Load Kernel Modules
   Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static)
   Active: active (exited) since Wed 2015-05-13 22:03:02 AEST; 13min ago
     Docs: man:systemd-modules-load.service(8)
           man:modules-load.d(5)
  Process: 454 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=0/SUCCESS)
 Main PID: 454 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/systemd-modules-load.service

Anything to worry about ?

Thanks again.