You are not logged in.
Hello, this is the problem:
$ optirun glxgears
[ 456.851581] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) No devices detected.
[ 456.851626] [ERROR]Aborting because fallback start is disabled.I already check some info on the web (e.g. arch wiki) but I couldn't make it work.
Here some further information:
# systemctl status bumblebeed
● bumblebeed.service - Bumblebee C Daemon
Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2020-09-03 13:02:02 -03; 17min ago
Main PID: 472 (bumblebeed)
Tasks: 1 (limit: 19055)
Memory: 15.3M
CGroup: /system.slice/bumblebeed.service
└─472 /usr/bin/bumblebeed
Sep 03 13:09:27 primavera bumblebeed[472]: [ 456.851412] [WARN][XORG] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
Sep 03 13:09:27 primavera bumblebeed[472]: [ 456.851525] [WARN][XORG] (WW) Warning, couldn't open module mouse
Sep 03 13:09:27 primavera bumblebeed[472]: [ 456.851534] [ERROR][XORG] (EE) No devices detected.
Sep 03 13:09:27 primavera bumblebeed[472]: [ 456.851537] [ERROR][XORG] (EE)
Sep 03 13:09:27 primavera bumblebeed[472]: [ 456.851540] [ERROR][XORG] (EE) no screens found(EE)
Sep 03 13:09:27 primavera bumblebeed[472]: [ 456.851543] [ERROR][XORG] (EE)
Sep 03 13:09:27 primavera bumblebeed[472]: [ 456.851546] [ERROR][XORG] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
Sep 03 13:09:27 primavera bumblebeed[472]: [ 456.851548] [ERROR][XORG] (EE)
Sep 03 13:09:27 primavera bumblebeed[472]: [ 456.851551] [ERROR][XORG] (EE) Server terminated with error (1). Closing log file.
Sep 03 13:09:27 primavera bumblebeed[472]: [ 456.851554] [ERROR]X did not start properly
# lspci -k | grep -A 2 -E "(VGA|3D)"
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
Subsystem: ASUSTeK Computer Inc. Device 185d
Kernel driver in use: i915
--
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
Subsystem: ASUSTeK Computer Inc. Device 185d
Kernel driver in use: nvidia
# ls /etc/X11/*
/etc/X11/xinit:
xinitrc xinitrc.d xserverrc
/etc/X11/xorg.conf.d:
/etc/X11/Xsession.d:
60xbrlapi
# ls /usr/share/X11/xorg.conf.d/
10-nvidia-drm-outputclass.conf 10-quirks.conf 40-libinput.conf
# pacman -Qo /usr/share/X11/xorg.conf.d/*
/usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf is owned by nvidia-utils 450.66-1
/usr/share/X11/xorg.conf.d/10-quirks.conf is owned by xorg-server 1.20.9-2
/usr/share/X11/xorg.conf.d/40-libinput.conf is owned by xf86-input-libinput 0.30.0-1
# pacman -Qs nvidia
local/bumblebee 3.2.1-21
NVIDIA Optimus support for Linux through VirtualGL
local/egl-wayland 1.1.5-1
EGLStream-based Wayland external platform
local/libvdpau 1.4-1
Nvidia VDPAU library
local/nvidia 450.66-16
NVIDIA drivers for linux
local/nvidia-utils 450.66-1
NVIDIA drivers utilities
# pacman -Qs intel
local/intel-ucode 20200616-1
Microcode update files for Intel CPUs
local/libmfx 20.2.1-1
Intel Media SDK dispatcher library
local/tbb 2020.3-1
High level abstract threading library
local/xf86-video-intel 1:2.99.917+908+g7181c5a4-1 (xorg-drivers)
X.org Intel i810/i830/i915/945G/G965+ video drivers
# uname -a
Linux primavera 5.8.5-arch1-1 #1 SMP PREEMPT Thu, 27 Aug 2020 18:53:02 +0000 x86_64 GNU/Linux
$ echo $XDG_SESSION_TYPE
x11BTW, I had some strange problems with system files permissions in this computed before (see this post). So I just also check this (as root):
# umask
0077
# ls -l /usr/share/X11/xorg.conf.d/
total 12
-rw-r--r-- 1 root root 227 Aug 21 20:15 10-nvidia-drm-outputclass.conf
-rw-r--r-- 1 root root 1350 Sep 2 03:17 10-quirks.conf
-rw-r--r-- 1 root root 1429 May 19 06:45 40-libinput.confAre those outputs OK? In another computer the umask for root is 0022. Should I change it to 0022 too?? I can't find in where/when umask is being changed.
# grep umask /root/.*
grep: /root/.: Is a directory
grep: /root/..: Is a directory
grep: /root/.cache: Is a directory
grep: /root/.config: Is a directory
grep: /root/.gnupg: Is a directory
grep: /root/.local: Is a directory
grep: /root/.nv: Is a directory
grep: /root/.vim: Is a directoryI appreciate any help. Thank you.
Last edited by alexispaz (2020-09-03 16:52:19)
Offline
Please also check the log file at "/var/log/Xorg.8.log" for additional information.
Offline
$ sudo cat /var/log/Xorg.8.log
[ 456.845]
X.Org X Server 1.20.9
X Protocol Version 11, Revision 0
[ 456.845] Build Operating System: Linux Arch Linux
[ 456.845] Current Operating System: Linux primavera 5.8.5-arch1-1 #1 SMP PREEMPT Thu, 27 Aug 2020 18:53:02 +0000 x86_64
[ 456.845] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=25b78331-58a6-4c89-97ff-84725d15dbbb rw loglevel=3 quiet
[ 456.845] Build Date: 02 September 2020 06:17:44AM
[ 456.845]
[ 456.845] Current version of pixman: 0.40.0
[ 456.845] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 456.845] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 456.845] (==) Log file: "/var/log/Xorg.8.log", Time: Thu Sep 3 13:09:27 2020
[ 456.845] (++) Using config file: "/etc/bumblebee/xorg.conf.nvidia"
[ 456.845] (++) Using config directory: "/etc/bumblebee/xorg.conf.d"
[ 456.845] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 456.845] (==) ServerLayout "Layout0"
[ 456.845] (==) No screen section available. Using defaults.
[ 456.845] (**) |-->Screen "Default Screen Section" (0)
[ 456.845] (**) | |-->Monitor "<default monitor>"
[ 456.845] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 456.845] (**) | |-->Device "DiscreteNvidia"
[ 456.845] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 456.845] (**) Option "AutoAddDevices" "false"
[ 456.845] (**) Option "AutoAddGPU" "false"
[ 456.845] (**) Not automatically adding devices
[ 456.845] (==) Automatically enabling devices
[ 456.845] (**) Not automatically adding GPU devices
[ 456.845] (==) Automatically binding GPU devices
[ 456.845] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 456.845] (WW) The directory "/usr/share/fonts/misc" does not exist.
[ 456.845] Entry deleted from font path.
[ 456.845] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 456.845] Entry deleted from font path.
[ 456.845] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 456.845] Entry deleted from font path.
[ 456.845] (==) FontPath set to:
/usr/share/fonts/TTF,
/usr/share/fonts/100dpi,
/usr/share/fonts/75dpi
[ 456.845] (++) ModulePath set to "/usr/lib/nvidia/xorg,/usr/lib/xorg/modules"
[ 456.845] (==) |-->Input Device "<default pointer>"
[ 456.845] (==) |-->Input Device "<default keyboard>"
[ 456.845] (==) The core pointer device wasn't specified explicitly in the layout.
Using the default mouse configuration.
[ 456.845] (==) The core keyboard device wasn't specified explicitly in the layout.
Using the default keyboard configuration.
[ 456.845] (II) Module ABI versions:
[ 456.845] X.Org ANSI C Emulation: 0.4
[ 456.845] X.Org Video Driver: 24.1
[ 456.845] X.Org XInput driver : 24.1
[ 456.845] X.Org Server Extension : 10.0
[ 456.846] (--) using VT number 2
[ 456.846] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 456.847] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 456.847] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[ 456.849] (--) PCI: (1@0:0:0) 10de:139b:1043:185d rev 162, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[ 456.849] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 456.849] (II) LoadModule: "glx"
[ 456.849] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 456.850] (II) Module glx: vendor="X.Org Foundation"
[ 456.850] compiled for 1.20.9, module version = 1.0.0
[ 456.850] ABI class: X.Org Server Extension, version 10.0
[ 456.850] (II) LoadModule: "nvidia"
[ 456.850] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 456.850] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 456.850] compiled for 1.6.99.901, module version = 1.0.0
[ 456.850] Module class: X.Org Video Driver
[ 456.850] (II) LoadModule: "mouse"
[ 456.850] (WW) Warning, couldn't open module mouse
[ 456.850] (EE) Failed to load module "mouse" (module does not exist, 0)
[ 456.850] (II) LoadModule: "kbd"
[ 456.850] (WW) Warning, couldn't open module kbd
[ 456.850] (EE) Failed to load module "kbd" (module does not exist, 0)
[ 456.850] (II) NVIDIA dlloader X Driver 450.66 Wed Aug 12 19:44:12 UTC 2020
[ 456.850] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 456.850] (EE) No devices detected.
[ 456.850] (EE)
Fatal server error:
[ 456.850] (EE) no screens found(EE)
[ 456.850] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 456.850] (EE) Please also check the log file at "/var/log/Xorg.8.log" for additional information.
[ 456.850] (EE)
[ 456.850] (EE) Server terminated with error (1). Closing log file.Offline
…
[ 456.847] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[ 456.849] (--) PCI: (1@0:0:0) 10de:139b:1043:185d rev 162, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[ 456.849] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
…The device is there, possibly powered down and not brought up?
How did you approach the power management?
What's the power state and can you bring it up?
Search https://wiki.archlinux.org/index.php/Bumblebee for "power" to read on pot. issues and pitfalls and options and what not.
Offline
Thanks. I have tried
# tee /proc/acpi/bbswitch <<< ON`but optirun still not working. I also tested changing /etc/bumblebee/bumblebee.conf:
[driver-nvidia]
PMMethod=bbswitchreboot, and optirun not working.
About the root umask 0077... I just realized that when I log into root with `sudo su` from my user account, my user umask (i.e. 0077) is kept in the root session. This is expected according to https://wiki.archlinux.org/index.php/Su … sive_umask.
I am thinking to reinstall all packages after adding
Defaults umask = 0022
Defaults umask_override
with visudo.
Last edited by alexispaz (2020-09-04 15:46:51)
Offline
umask is relevant when creating files and should™ be 022, certainly not 077
https://wiki.archlinux.org/index.php/Umask
There's no permission error and you're not running X11 "rootless" so I'm not sure why a bad umask could cause this particular problem.
Fix it regardless and see what happens.
Offline
You are right, I have fixed the umask and reinstalled all native packages and nothing... still optirun not working.
Offline
Does the bbswitch power state actually change?
Does nvidia-smi then detect the GPU?
Offline
I have pretty much the same issue with bumblebee. I have been using intel-virtual-output according to the setup described in https://wiki.archlinux.org/index.php/Bu … VIDIA_chip for a while and a recent xorg-server (and xorg-server-common) update from 1.20.8-3 to 1.20.9-1 broke it.
My /var/log/Xorg.8.log: https://pastebin.com/U4KH7XtJ
It has been reported at the bugtracker already: https://bugs.archlinux.org/task/67762
Last edited by philippleclercq (2020-09-05 14:18:03)
Offline
Sorry for the dealy. Here the answers to seth questions:
$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
$ cat /proc/acpi/bbswitch
0000:01:00.0 OFF
$ sudo tee /proc/acpi/bbswitch <<<ON
ON
$ cat /proc/acpi/bbswitch
0000:01:00.0 OFFOffline
Well, bbswitch doesn't get the GPU up.
https://wiki.archlinux.org/index.php/Bu … kernel_4.8
https://wiki.archlinux.org/index.php/Hy … _acpi_call
@philippleclercq the linked bug states that nvidia-smi detects the GPU and is apparently "only" about the bus probing issue.
Offline
Ok... I have following the first link.
After adding
pcie_port_pm=offto the kernel parameters, I was able to turn on the device but then I can not turn off it again (without rebooting):
$ sudo cat /proc/acpi/bbswitch
0000:01:00.0 OFF
$ sudo tee /proc/acpi/bbswitch <<<ON
$ sudo cat /proc/acpi/bbswitch
0000:01:00.0 ON
$ nvidia-smi
Mon Sep 14 10:35:04 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.66 Driver Version: 450.66 CUDA Version: 11.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 GeForce GTX 960M Off | 00000000:01:00.0 Off | N/A |
| N/A 40C P0 N/A / N/A | 0MiB / 2004MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
$ optirun glxgears
[ 741.246214] [ERROR]Cannot access secondary GPU - error: [XORG] (EE) No devices detected.
[ 741.246250] [ERROR]Aborting because fallback start is disabled.
$ sudo tee /proc/acpi/bbswitch <<< OFF
OFF
$ sudo cat /proc/acpi/bbswitch
0000:01:00.0 ONFor the second link... it seems that I will turn off the device but then I will not able to bring it back on again right? In that case I think I prefer to have it down and turn it on with bumblebee and then just reboot....
Last edited by alexispaz (2020-09-14 13:49:42)
Offline