You are not logged in.
Trying to run glxgears with nvidia with the help of optimus-manager:
[ck@arch ~]$ optimus-manager --switch nvidia
A GPU switch from integrated to nvidia is pending.
Log out and log back in to apply.
WARNING : no power management option is currently enabled (this is the default since v1.2). Switching between GPUs will work but you will likely experience poor battery life.
Follow instructions at [url]https://github.com/Askannz/optimus-manager/wiki/A-guide--to-power-management-options[/url] to enable power management.
modinfo: ERROR: Module nvidia not found.
WARNING : the nvidia module does not seem to be available for the current kernel. It is likely the Nvidia driver was not properly installed. GPU switching will probably fail,
continue anyway ? (y/N)
> y
ERROR : cannot get current display manager name : No display-manager.service file found
You are about to switch GPUs. This will forcibly close all graphical sessions and all your applications WILL CLOSE.
(you can pass the --no-confirm option to disable this warning)
Continue ? (y/N)
>
[ck@arch ~]$ pacman -Q | grep nvidia
lib32-nvidia-390xx-utils 390.144-1
nvidia-390xx-dkms 390.144-1
nvidia-390xx-utils 390.144-1
[ck@arch ~]$ pacman -Q | grep xf86
lib32-libxxf86vm 1.1.4-2
libxxf86vm 1.1.4-4
xf86-input-libinput 1.1.0-1
xf86-video-intel 1:2.99.917+916+g31486f40-1
xf86-video-nouveau 1.0.17-1
[ck@arch ~]$ pacman -Q | grep bumblebee
[ck@arch ~]$ pacman -Q | grep prime-run
[ck@arch ~]$
[ck@arch ~]$ lspci -k | grep -A 2 -E "(VGA|3D)"
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
Subsystem: Samsung Electronics Co Ltd Device c0d7
Kernel driver in use: i915
--
01:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] (rev a1)
Subsystem: Samsung Electronics Co Ltd GeForce GT 620M
Kernel modules: nouveau
[ck@arch ~] cat /etc/X11/xorg.conf.d/10-optimus.manager.conf
Section "Device"
Identifier "integrated"
Driver "modesetting"
BusID "PCI:0:2:0"
Option "DRI" "3"
EndSection
[ck@arch ~]$ __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME="nvidia" __VK_LAYER_NV_optimus="NVIDIA_only" __GL_SHOW_GRAPHICS_OSD=1 glxgears
X Error of failed request: BadValue (integer parameter out of range for operatio
Major opcode of failed request: 152 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 25
Current serial number in output stream: 26I am trying to fix the 'module nvidia not found' issue but without avail so far
Last edited by iEatTendies (2021-08-11 23:57:04)
Offline
You need to install the kernel headers package of the kernel you are using for a DKMS package to build the corresponding module. E.g. linux-headers in case of the normal linux package or linux-lts-headers for linux-lts and so forth. Upon doing this you should see a post-installation hook building the nvidia module for the corresponding kernel.
Offline
You need to install the kernel headers package of the kernel you are using for a DKMS package to build the corresponding module. E.g. linux-headers in case of the normal linux package or linux-lts-headers for linux-lts and so forth. Upon doing this you should see a post-installation hook building the nvidia module for the corresponding kernel.
After following these commands, the output was:
[ck@arch ~]$ pacman -S linux-headers
warning: linux-headers-5.13.9.arch1-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) linux-headers-5.13.9.arch1-1
Total Installed Size: 130.65 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [---------------------------] 100%
(1/1) checking package integrity [---------------------------] 100%
(1/1) loading package files [---------------------------] 100%
(1/1) checking for file conflicts [---------------------------] 100%
(1/1) checking available disk space [---------------------------] 100%
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
==> Unable to remove module nvidia/390.144 for kernel 5.13.9-arch1-1: Not found in dkm
s status output.
:: Processing package changes...
(1/1) reinstalling linux-headers [----------------------------------] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating module dependencies...
(3/3) Install DKMS modules
==> Unable to install module nvidia/390.144 for kernel 5.13.9-arch1-1: Missing kernel modules tree.
[ck@arch ~]$ yay -S nvidia-390xx-dkms
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1] nvidia-390xx-utils-390.144-1 (nvidia-390xx-dkms)
1 nvidia-390xx-utils (nvidia-390xx-dkms) (Installed) (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> n
:: PKGBUILD up to date, Skipping (1/1): nvidia-390xx-utils (nvidia-390xx-dkms)
1 nvidia-390xx-utils (nvidia-390xx-dkms) (Installed) (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> n
:: (1/1) Parsing SRCINFO: nvidia-390xx-utils (nvidia-390xx-dkms)
==> Making package: nvidia-390xx-utils 390.144-1 (Wed 11 Aug 2021 03:15:15 PM +06)
==> Retrieving sources...
-> Found nvidia-drm-outputclass.conf
-> Found nvidia-390xx-utils.sysusers
-> Found NVIDIA-Linux-x86_64-390.144-no-compat32.run
-> Found kernel-4.16.patch
==> Validating source files with b2sums...
nvidia-drm-outputclass.conf ... Passed
nvidia-390xx-utils.sysusers ... Passed
NVIDIA-Linux-x86_64-390.144-no-compat32.run ... Passed
kernel-4.16.patch ... Passed
==> Making package: nvidia-390xx-utils 390.144-1 (Wed 11 Aug 2021 03:15:21 PM +06)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found nvidia-drm-outputclass.conf
-> Found nvidia-390xx-utils.sysusers
-> Found NVIDIA-Linux-x86_64-390.144-no-compat32.run
-> Found kernel-4.16.patch
==> Validating source files with b2sums...
nvidia-drm-outputclass.conf ... Passed
nvidia-390xx-utils.sysusers ... Passed
NVIDIA-Linux-x86_64-390.144-no-compat32.run ... Passed
kernel-4.16.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
==> Starting prepare()...
Creating directory NVIDIA-Linux-x86_64-390.144-no-compat32
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 390.144........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
patching file kernel/common/inc/nv-linux.h
patching file kernel/conftest.sh
==> Sources are ready.
==> Making package: nvidia-390xx-utils 390.144-1 (Wed 11 Aug 2021 03:15:40 PM +06)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Sources are ready.
-> nvidia-390xx-utils-390.144-1 already made -- skipping build
[sudo] password for ck:
loading packages...
warning: nvidia-390xx-dkms-390.144-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) nvidia-390xx-dkms-390.144-1
Total Installed Size: 26.95 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [----------------------------------] 100%
(1/1) checking package integrity [----------------------------------] 100%
(1/1) loading package files [----------------------------------] 100%
(1/1) checking for file conflicts [----------------------------------] 100%
(1/1) checking available disk space [----------------------------------] 100%
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
==> Unable to remove module nvidia/390.144 for kernel 5.13.9-arch1-1: Not found in dkms status output.
:: Processing package changes...
(1/1) reinstalling nvidia-390xx-dkms [----------------------------------] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Install DKMS modules
==> Unable to install module nvidia/390.144 for kernel 5.13.9-arch1-1: Missing kernel modules tree.
[ck@arch ~]$ pacman/yay -Qs | grep linux
local/archlinux-keyring 20210802-1
local/lib32-util-linux 2.37.1-1
local/linux 5.13.7.arch1-1
local/linux-api-headers 5.12.3-1
local/linux-firmware 20210716.b7c134f-1
local/linux-headers 5.13.9.arch1-1
local/linux-wifi-hotspot 4.0.3-1
local/ttf-linux-libertine 5.3.0-7
local/util-linux 2.37.1-1
local/util-linux-libs 2.37.1-1
util-linux runtime librariesI feel like I am missing something. Sometimes for the last couple of months I thought I was close
Last edited by iEatTendies (2021-08-11 09:25:36)
Offline
local/linux 5.13.7.arch1-1
....
local/linux-headers 5.13.9.arch1-1Perform a full system upgrade so the kernel and kernel headers have the same version. That should also trigger DKMS to rebuild the nvidia module which should then succeed.
Offline
local/linux 5.13.7.arch1-1 .... local/linux-headers 5.13.9.arch1-1Perform a full system upgrade so the kernel and kernel headers have the same version. That should also trigger DKMS to rebuild the nvidia module which should then succeed.
After pacman -S linux, nvidia dkms driver was built successfully, then I ran:
[ck@arch ~]$ prime-offload
[ck@arch ~]$ glxgears
Error: couldn't get an RGB, Double-buffered visual
[ck@arch ~]$ glxinfo
name of display: :0
Error: couldn't find RGB GLX visual or fbconfig
[ck@arch ~]$ cat /var/log/optimus-manager/switch/switch-20210812T065014.log
[13] INFO: # Xorg pre-start hook
[13] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'hybrid', 'current_mode': 'hybrid'}
[13] INFO: Requested mode is: hybrid
[40] INFO: Writing to /etc/X11/xorg.conf.d/10-optimus-manager.conf
[40] INFO: Writing state {'type': 'pending_post_xorg_start', 'switch_id': '20210812T065014', 'requested_mode': 'hybrid'}
[41] INFO: Xorg pre-start hook completed successfully.
[13] INFO: # Xorg post-start hook
[13] INFO: Running /etc/optimus-manager/xsetup-hybrid.sh
[30] INFO: Writing state {'type': 'done', 'switch_id': '20210812T065014', 'current_mode': 'hybrid'}
[31] INFO: Xorg post-start hook completed successfully.I'm currently working on a solution but this is what I got so far, also I uninstalled xf86-video-nouveau because in some other thread it seems to be conflicting with the proprietary nvidia-390xx-dkms driver.
Performed full system update
[ck@arch ~]$ prime-offload
[ck@arch ~]$ glxgears
Error: couldn't get an RGB, Double-buffered visual
[ck@arch ~]$ glxinfo
name of display: :0
Error: couldn't find RGB GLX visual or fbconfigI searched for these outputs on this forum, but it seems that people that get the errors above have issues that are related to Intel or Bumblebee for some reason
Last edited by iEatTendies (2021-08-12 06:46:56)
Offline
bump
Last edited by iEatTendies (2021-08-12 06:45:20)
Offline
Don't do that: https://wiki.archlinux.org/title/Genera … es#Bumping
If you ran that immediately after the driver finished building then that isn't surprising. In any case, nvidia-prime and similar dynamic offloading methods require a newer driver than 390xx. From a Optimus-manager perspective the only things that make sense here are intel or nvidia-only modes which are determined at the start of the Xorg session. If you want something dynamic during the session your only realistic option is bumblebee.
You might want to post a xorg log and/or a
sudo journalctl -bso we can check what actually happens.
Offline