Nvidia GPU driver (bumblebee) doesn't install correctly

Hello!
New to manjaro, trying to install nvidia drivers with bumblebee on an Asus laptop with nvidia mx150, to work with suported steam games (like CS:GO).
From this tutorial I did

sudo pacman -S virtualgl lib32-virtualgl lib32-primus primus
sudo mhwd -f -i pci video-hybrid-intel-nvidia-bumblebee
sudo systemctl enable bumblebeed

Note that systemctl doesn't print anything to the console, not sure if intended

After reboot I ran the next comands in the tutorial and I get the following

[edward@edward-pc ~]$ optirun -b none nvidia-settings -c :8
[   72.200796] [ERROR]You've no permission to communicate with the Bumblebee daemon. Try adding yourself to the 'bumblebee' group
[   72.200883] [ERROR]Could not connect to bumblebee daemon - is it running?
[edward@edward-pc ~]$ sudo optirun -b none nvidia-settings -c :8
[sudo] password for edward: 
[   84.054749] [ERROR]Cannot access secondary GPU - error: Could not load GPU driver

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


[edward@edward-pc ~]$ primusrun glxspheres64
primus: fatal: failed to connect to Bumblebee daemon: Permission denied
[edward@edward-pc ~]$ sudo primusrun glxspheres64
primus: fatal: Bumblebee daemon reported: error: Could not load GPU driver

After that I started troubleshooting and I found that I clearly have some problems, that I can't find a way to fix, screenfetch not seeing my GPU and inxi -G not seeing any drivers

edward@edward-pc ~]$ screenfetch

 ██████████████████  ████████     edward@edward-pc
 ██████████████████  ████████     OS: Manjaro 18.0.2 Illyria
 ██████████████████  ████████     Kernel: x86_64 Linux 4.19.14-1-MANJARO
 ██████████████████  ████████     Uptime: 4m
 ████████            ████████     Packages: 1105
 ████████  ████████  ████████     Shell: bash 4.4.23
 ████████  ████████  ████████     Resolution: 1920x1080
 ████████  ████████  ████████     DE: KDE 5.53.0 / Plasma 5.14.5
 ████████  ████████  ████████     WM: KWin
 ████████  ████████  ████████     GTK Theme: Breath [GTK2/3]
 ████████  ████████  ████████     Icon Theme: maia
 ████████  ████████  ████████     Font: Noto Sans Regular
 ████████  ████████  ████████     CPU: Intel Core i7-8550U @ 8x 4GHz [51.0°C]
 ████████  ████████  ████████     GPU: Unknown
                                  RAM: 1220MiB / 7858MiB                            
edward@edward-pc ~]$ inxi -G
Graphics:  Device-1: Intel UHD Graphics 620 driver: i915 v: kernel 
           Device-2: NVIDIA GP108M [GeForce MX150] driver: N/A 
           Display: x11 server: X.Org 1.20.3 driver: intel resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel UHD Graphics 620 (Kabylake GT2) v: 4.5 Mesa 18.3.1

More info:

[edward@edward-pc ~]$ inxi -Fxz
System:    Host: edward-pc Kernel: 4.19.14-1-MANJARO x86_64 bits: 64 compiler: gcc v: 8.2.1 Desktop: KDE Plasma 5.14.5 
           Distro: Manjaro Linux 
Machine:   Type: Laptop System: ASUSTeK product: X510UNR v: 1.0 serial: <filter> 
           Mobo: ASUSTeK model: X510UNR v: 1.0 serial: <filter> UEFI [Legacy]: American Megatrends v: X510UNR.301 
           date: 09/25/2017 
Battery:   ID-1: BAT0 charge: 36.6 Wh condition: 37.6/42.1 Wh (89%) model: ASUSTeK ASUS Battery status: Not charging 
CPU:       Topology: Quad Core model: Intel Core i7-8550U bits: 64 type: MT MCP arch: Kaby Lake rev: A L2 cache: 8192 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 31880 
           Speed: 1908 MHz min/max: 400/4000 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 
Graphics:  Device-1: Intel UHD Graphics 620 vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0 
           Device-2: NVIDIA GP108M [GeForce MX150] vendor: ASUSTeK driver: N/A bus ID: 01:00.0 
           Display: x11 server: X.Org 1.20.3 driver: intel resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel UHD Graphics 620 (Kabylake GT2) v: 4.5 Mesa 18.3.1 direct render: Yes 
Audio:     Device-1: Intel Sunrise Point-LP HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
           Sound Server: ALSA v: k4.19.14-1-MANJARO 
Network:   Device-1: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel port: e000 bus ID: 02:00.0 
           IF: wlp2s0 state: up mac: <filter> 
Drives:    Local Storage: total: 1.03 TiB used: 20.43 GiB (1.9%) 
           ID-1: /dev/sda vendor: Toshiba model: MQ04ABF100 size: 931.51 GiB 
           ID-2: /dev/sdb vendor: Toshiba model: THNSNK128GVN8 size: 119.24 GiB 
Partition: ID-1: / size: 116.87 GiB used: 7.78 GiB (6.7%) fs: ext4 dev: /dev/sdb1 
           ID-2: /home size: 908.01 GiB used: 12.65 GiB (1.4%) fs: ext4 dev: /dev/sda2 
           ID-3: swap-1 size: 8.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda1 
Sensors:   System Temperatures: cpu: 51.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Info:      Processes: 207 Uptime: 19m Memory: 7.67 GiB used: 1.42 GiB (18.5%) Init: systemd Compilers: gcc: 8.2.1 Shell: bash 
           v: 4.4.23 inxi: 3.0.28

hardware configuration

How can I fix my drivers ?

Did you add your user account to the bumblebee group and logout/login?

1 Like

I think I tried it once and it failed, not sure, if you could give me the comand to try again that would be great

EDIT: I think you mean this gpasswd -a $USER bumblebee

[edward@edward-pc ~]$ sudo gpasswd -a $USER bumblebee
[sudo] password for edward: 
Adding user edward to group bumblebee
[edward@edward-pc ~]$ optirun -b none nvidia-settings -c :8
[ 2162.819498] [ERROR]You've no permission to communicate with the Bumblebee daemon. Try adding yourself to the 'bumblebee' group
[ 2162.819590] [ERROR]Could not connect to bumblebee daemon - is it running?
[edward@edward-pc ~]$ 

logout/login?

1 Like

How would I do that ?

you can also just reboot.

1 Like

added user account with: sudo gpasswd -a $USER bumblebee, rebooted and when I run: optirun -b none nvidia-settings -c :8 I get the same could not connect to bumblebee... error

make sure bumblebeed is enabled/running
sudo systemctl enable bumblebeed
sudo systemctl start bumblebeed

try again. if not here is bumblebee troubleshooting tutorial, your answer is likely to be there.

1 Like

I am so sick of this...I am trying for 3 days to get drivers to work, no wiki, forum or blog managed to get me more than 30 fps in CS:GO. I tried everything

intel-nvidia: doesn't work
video-linxu: black screen
just nvidia: black screen
optirun steam nothing
primusrun steam Failed to load steamui.so - dlerror()
optirun %command% in launch options some VirtualGL BS

I looked in every god damn guide1 2 3 4 5...
errors over errors and other errors and then some more errors that came from trying to fix the other errors.

The only thing I managed to get is 800fps instead of 60 in glxgears

I'm done

So bumblebee works, but not at expected rate?


Note: For ranting and complains, you should better use the Off Topic or General Discussion categories.

1 Like

So bumblebee works, but not at expected rate?

I guess it does, but I'm still uncertain. The only performance boost I got was in glxgears WITH OPTIRUN, primusrun doesn't improve anything in glxgears. CS:GO doesn't open with optirun and primusrun doesn't change the performance comped to intel. I think any GPU should give better performance than integrated graphics from intel, also I know for sure my GPU is capable since in Windows I was able to play CS at 120+ fps no problem.

I did notice that when I use primusrun my GPU's fans start making noise, indicating that it's working, but the FPS is still not there.

Something else I noticed, if I do: inxi -G while not having anything open with primusrun or optirun I get this:

Graphics:
  Device-1: Intel UHD Graphics 620 driver: i915 v: kernel 
  Device-2: NVIDIA GP108M [GeForce MX150] driver: N/A 
  Display: x11 server: X.Org 1.20.3 driver: intel 
  resolution: 1920x1080~60Hz, 1920x1080~60Hz 
  OpenGL: renderer: Mesa DRI Intel UHD Graphics 620 (Kabylake GT2) 
  v: 4.5 Mesa 18.3.2 

The driver is N/A, I don't know if that's inteded, but whatever, kind of makes sense since I'm not using the GPU, BUT if I open a program with optirun, let's say glxgears and leave it the background, I then open another terminal and do inxi -G i get:

Graphics:
  Device-1: Intel UHD Graphics 620 driver: i915 v: kernel 
  Device-2: NVIDIA GP108M [GeForce MX150] driver: nvidia v: 415.27 
  Display: x11 server: X.Org 1.20.3 driver: intel 
  resolution: 1920x1080~60Hz, 1920x1080~60Hz 
  OpenGL: renderer: Mesa DRI Intel UHD Graphics 620 (Kabylake GT2) 
  v: 4.5 Mesa 18.3.2

Notice how the driver is now there, BUT the openGL renderer stayed the same... INTEL RENDERER.
Could this be the problem ? Is intel graphics doing the rendering instead of the GPU even if it shouldn't ?

Anyway... optirun seems to improve FPS, so I'm trying to make that work with CS:GO, maybe that will do it

can you post output of:
mhwd
mhwd -li
lspci | grep -E "VGA|3D"
cat /etc/default/tlp | grep RUNTIME_PM_BLACKLIST

just so you know, bumblebee will never perform as well as PRIME. if performance is whats most important than i suggest you look into prime, heres a tutorial. samie one i use to set up my optimus lappy.

there is also links to optimus-manager info/tutorial on that thread.

2 Likes
[edward@edward-pc Desktop]$ mhwd
> 0000:01:00.0 (0302:10de:1d10) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-bumblebee            2018.08.09               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2018.08.09               false            PCI
          video-nvidia            2018.08.09               false            PCI
    video-nvidia-390xx            2018.08.09               false            PCI
           video-linux            2018.05.04                true            PCI


> 0000:00:02.0 (0300:8086:5917) Display controller Intel Corporation:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-bumblebee            2018.08.09               false            PCI
video-hybrid-intel-nvidia-390xx-bumblebee            2018.08.09               false            PCI
           video-linux            2018.05.04                true            PCI
            video-vesa            2017.03.12                true            PCI


[edward@edward-pc Desktop]$ mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-bumblebee            2018.08.09               false            PCI


Warning: No installed USB configs!
[edward@edward-pc Desktop]$ lspci | grep -E "VGA|3D"
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)
01:00.0 3D controller: NVIDIA Corporation GP108M [GeForce MX150] (rev ff)
[edward@edward-pc Desktop]$ cat /etc/default/tlp | grep RUNTIME_PM_BLACKLIST
#RUNTIME_PM_BLACKLIST="bb:dd.f 11:22.3 44:55.6"

if performance is whats most important than i suggest you look into prime, heres a tutorial. samie one i use to set up my optimus lappy.

I will look into it, but last time I tried running only on nvidia I couldn't even boot into manjaro and had to use timeshift to get back.

im guessing you just installed video-nvidia and all you got was a black screen?
the easiest way (if you have the option) is to disable the intel gpu in bios and install just the video-nvidia drivers. if you dont have the option to disable it then your options are bumblebee,PRIME, and optimus-manager.

prime works by using the nvidia to do all rendering and then the intel gpu just outputs to the display/s . both card are always on but performance wise it's the best. no need for optirun/primusrun, it just works. if battery life is a concern you can look into optimus-manager which i dont know very well, im happy with prime. read up and decide what fits you best.

1 Like

The inxi output is normal for a hybrid-bumblebee setup.

Not all hardware respond/behave the same with optirun/primusrun.
You might want to experiment/test several options and settings, to find the best for your expectations. Check this and the complete article, to better understand your options.

1 Like

Following that tutorial I managed to get my game working. Thanks!

2 Likes

your welcome, glad it worked out for you.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by