Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proprietary drivers: Unable to locate/open config directory: "/etc/bumblebee/xorg.conf.d" #1082

Open
CyberPingU opened this issue Dec 13, 2021 · 10 comments

Comments

@CyberPingU
Copy link

Hello,
I'm facing this issue when I try to run optirun , occurring if I set the ondemand policy for the card from nvidia-settings:

# optirun glxgears -info
[ 3298.266257] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) Unable to locate/open config directory: "/etc/bumblebee/xorg.conf.d"

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

root@altair:/etc/bumblebee# tree
.
├── bumblebee.conf
├── xorg.conf.d
├── xorg.conf.nouveau
└── xorg.conf.nvidia

1 directory, 3 files

Here is my card:

# lspci | egrep 'VGA|3D'
0000:00:02.0 VGA compatible controller: Intel Corporation TigerLake-H GT1 [UHD Graphics] (rev 01)
0000:01:00.0 3D controller: NVIDIA Corporation TU117GLM [T600 Mobile] (rev a1)

Still the module is loaded:

# lsmod | grep nvidia
nvidia_uvm           1052672  0
nvidia_drm             61440  1
nvidia_modeset       1200128  1 nvidia_drm
nvidia              35311616  2 nvidia_uvm,nvidia_modeset
drm_kms_helper        262144  2 nvidia_drm,i915
drm                   561152  22 drm_kms_helper,nvidia,nvidia_drm,i915

but

Dec 13 08:38:10 altair bumblebeed[1080]: [    7.062338] [INFO]/usr/sbin/bumblebeed 3.2.1 started
Dec 13 09:24:17 altair bumblebeed[1080]: [    8.696562] [WARN]Unable to disable discrete card.[ 2778.131804] [ERROR][XORG] (EE) Unable to locate/open config directory: "/etc/bumblebee/xorg.conf.d"
Dec 13 09:24:17 altair bumblebeed[1080]: [ 2778.131954] [WARN][XORG] (WW) Warning, couldn't open module nvidia
Dec 13 09:24:17 altair bumblebeed[1080]: [ 2778.131969] [ERROR][XORG] (EE) Failed to load module "nvidia" (module does not exist, 0)
Dec 13 09:24:17 altair bumblebeed[1080]: [ 2778.132010] [WARN][XORG] (WW) Falling back to old probe method for modesetting
Dec 13 09:24:17 altair bumblebeed[1080]: [ 2778.132022] [WARN][XORG] (WW) Falling back to old probe method for fbdev
Dec 13 09:24:17 altair bumblebeed[1080]: [ 2778.132143] [ERROR][XORG] (EE) modeset(0): drmSetMaster failed: Device or resource busy
Dec 13 09:24:17 altair bumblebeed[1080]: [ 2778.132155] [ERROR][XORG] (EE)
Dec 13 09:24:17 altair bumblebeed[1080]: [ 2778.132166] [ERROR][XORG] (EE) AddScreen/ScreenInit failed for driver 0
Dec 13 09:24:17 altair bumblebeed[1080]: [ 2778.132175] [ERROR][XORG] (EE)
Dec 13 09:24:17 altair bumblebeed[1080]: [ 2778.132185] [ERROR][XORG] (EE)
Dec 13 09:24:17 altair bumblebeed[1080]: [ 2778.132198] [ERROR][XORG] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
Dec 13 09:24:17 altair bumblebeed[1080]: [ 2778.132208] [ERROR][XORG] (EE)
Dec 13 09:24:17 altair bumblebeed[1080]: [ 2778.132218] [ERROR][XORG] (EE) Server terminated with error (1). Closing log file.
Dec 13 09:24:17 altair bumblebeed[1080]: [ 2778.138855] [ERROR]X did not start properly

Here is my /etc/bumblebee/bumblebee.conf

[bumblebeed]
VirtualDisplay=:8
KeepUnusedXServer=false
ServerGroup=bumblebee
TurnCardOffAtExit=false
NoEcoModeOverride=false
Driver=
XorgConfDir=/etc/bumblebee/xorg.conf.d
XorgBinary=/usr/lib/xorg/Xorg

[optirun]
Bridge=auto
VGLTransport=proxy
PrimusLibraryPath=/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus
AllowFallbackToIGC=false

[driver-nvidia]
KernelDriver=nvidia
PMMethod=auto
LibraryPath=/usr/lib/nvidia-current:/usr/lib32/nvidia-current:/usr/lib/x86_64-linux-gnu:/usr/lib/i386-linux-gnu
XorgModulePath=/usr/lib/nvidia-current/xorg,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia
AlwaysUnloadKernelDriver=false

[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau

And the xorg.conf.nvidia

root@altair:/etc/bumblebee# cat /etc/bumblebee/xorg.conf.nvidia | grep -v "^#" | uniq
Section "ServerLayout"
    Identifier  "Layout0"
    Option      "AutoAddDevices" "false"
    Option      "AutoAddGPU" "false"
EndSection

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

    BusID "PCI:0000:01:00:0"
    Option "ProbeAllGpus" "false"

    Option "NoLogo" "true"
    Option "UseEDID" "false"
    Option "UseDisplayDevice" "none"
    Option "HardDPMS" "false"
EndSection
Section "Screen"
    Identifier "Default Screen"
    Device "DiscreteNvidia"
EndSection

This is an ubuntu fresh install

# uname -a
Linux altair 5.13.0-22-generic #22-Ubuntu SMP Fri Nov 5 13:21:36 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Is there any kind of problem in my installation or is it the driver not working properly?

Thanks

@werdahias
Copy link

I have the same issue with a gtx 1060M, debian testing as OS and the nouveau driver.

@raniaamina
Copy link

I face same issue with GTX 1650 Mobile / Max-Q in Debian Sid

@IceM4nn
Copy link

IceM4nn commented Mar 3, 2022

Anyone have solution for this issue?

@IceM4nn
Copy link

IceM4nn commented Mar 3, 2022

I got the solution for this issue. First, make sure the folder /etc/bumblebee/xorg.conf.d exist. In my case, the directory exist but it is empty. Create a blank file 10-dummy.conf

sudo touch /etc/bumblebee/xorg.conf.d/10-dummy.conf

And then, restart the service:

sudo systemctl restart bumblebeed.service

Also in my case I have an error about No devices detected referring the wiki - troubleshooting will help you resolve the issue.

@drew-parsons
Copy link

I tried the solution suggested here (create a dummy entry, restart bumblebee). It just moved to a different error then:

$ primusrun glxgears
primus: fatal: Bumblebee daemon reported: error: [XORG] (EE) Failed to load module "mouse" (module does not exist, 0)

@IceM4nn
Copy link

IceM4nn commented Mar 27, 2022

If someone has the similar problem like whatever module is missing, you have to install the missing module. Look up the package name from apt and install the relevance module.

apt search xserver-xorg-input

In your case, it missing the "mouse" module, so install the mouse module.

sudo apt install -y xserver-xorg-input-mouse

That problem should be solved.

@drew-parsons
Copy link

drew-parsons commented Mar 27, 2022

You're right, xserver-xorg-input-mouse and xserver-xorg-input-kbd helped fix that problem. But there are many other problems (now stuck on "Could not load GPU driver" [NVRM: fallen off the bus], even with kernel option rcutree.rcu_idle_gp_delay=2 )

@lupine
Copy link

lupine commented Mar 3, 2023

Ran into this issue while on an upgrade to Debian Bookworm. The solution, though, is listed here: https://wiki.debian.org/Bumblebee#Common_issues

You may have to set the BusID manually, in /etc/bumblebee/xorg.conf.nvidia

This solved it for me.

@deveee
Copy link

deveee commented May 28, 2023

I upgraded to Debian 12 on laptop and I had the same issue. I think that these config dirs errors or missing mouse/keyboard modules don't matter. I think that modern linux uses libinput anyway.

What helped me is that I uninstalled nonglvnd version and then I installed default version (IIRC nvidia-driver-libs) and rhen it started working.

@gabriellopes
Copy link

Well, Idk if it still can help someone, but I was facing

Bumblebee daemon reported: error: [XORG] (EE) Failed to load module "nvidia" (module does not exist, 0)

because my nvidia module (nvidia_drv.so) was not listed in the default folders from /etc/bumblebee/bumblebee.conf , so, i needed to find where the driver was and add it.

Summing up, I've added the last part of the following, restarted the service (sudo systemctl restart bumblebeed.service) and it worked ... FINALLY.

before:
XorgModulePath=/usr/lib/nvidia-current/xorg,/usr/lib/xorg/modules

after:

XorgModulePath=/usr/lib/nvidia-current/xorg,/usr/lib/xorg/modules,/usr/lib/x86_64-linux-gnu/nvidia/xorg/

... Of course ...

You need to have nvidia-driver installed (try checking nvidia-smi or apt search xserver-xorg-video-nvidia )

Or finally, try adding manually the BusID in the xorg.conf.nvidia file, by searching for it through lspci | grep VGA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants