You are not logged in.
I mistakenly thought this was wayland specific (see below for another post). I trimmed down this initial post for better reading.
On this fresh laptop I can't seem to activate the dedicated graphics card. I figured running `glxinfo` through `prime-run` would be the way to test out whether all is well.
prime-run glxinfo
name of display: :0
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 150 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 50
Current serial number in output stream: 51`nvidia` cannot be loaded, apparently:
_ modprobe nvidia
modprobe: ERROR: could not insert 'nvidia': No such device
lsmod | grep nvidia
[1] 7511 done lsmod |To get `sway` running I had to add some kernel parameters (nvidia-drm.modeset=1 and ibt=off), otherwise the system would freeze upon calling `sway --unsupported-gpu`.
Below some information:
pacman -Qs | grep nvidia
Alias tip: paclocs | grep nvidia
local/nvidia 515.48.07-7
local/nvidia-prime 1.0-4
local/nvidia-settings 515.48.07-1
local/nvidia-utils 515.48.07-2
pacman -Qs | grep xorg
local/xf86-input-libinput 1.2.1-1 (xorg-drivers)
local/xorg-fonts-encodings 1.0.5-2 (xorg-fonts xorg)
local/xorg-server 21.1.3-7 (xorg)
local/xorg-server-common 21.1.3-7 (xorg)
local/xorg-setxkbmap 1.3.3-1 (xorg-apps xorg)
local/xorg-xhost 1.0.8-3 (xorg-apps xorg)
local/xorg-xkbcomp 1.4.5-1 (xorg-apps xorg)
local/xorg-xrandr 1.5.1-2 (xorg-apps xorg)
local/xorg-xwayland 22.1.2-1 (xorg)
local/xorgproto 2022.1-1
pacman -Qs | grep wayland
local/egl-wayland 2:1.1.9+r3+g582b2d3-1
local/wayland 1.20.0-2
local/xorg-xwayland 22.1.2-1 (xorg)
run X clients under waylandCould it be a power state issue, where the card is stuck in D3cold? Windows handles the card properly.
sudo dmesg | grep nvid
[ 0.000000] Command line: BOOT_IMAGE=/arch/boot/vmlinuz-linux root=UUID=5b09b78a-30b4-4e79-b714-d94fdc3e540c rw rootflags=subvol=arch loglevel=3 quiet nvidia-drm.modeset=1 ibt=off
[ 0.052157] Kernel command line: BOOT_IMAGE=/arch/boot/vmlinuz-linux root=UUID=5b09b78a-30b4-4e79-b714-d94fdc3e540c rw rootflags=subvol=arch loglevel=3 quiet nvidia-drm.modeset=1 ibt=off
[ 2.606586] nvidia: loading out-of-tree module taints kernel.
[ 2.606603] nvidia: module license 'NVIDIA' taints kernel.
[ 2.619995] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[ 2.769185] nvidia-nvlink: Nvlink Core is being initialized, major device number 510
[ 2.769799] nvidia 0000:01:00.0: can't change power state from D3cold to D0 (config space inaccessible)
[ 2.769974] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[ 2.770073] nvidia: probe of 0000:01:00.0 failed with error -1
[ 2.770268] nvidia-nvlink: Unregistered Nvlink Core, major device number 510 lspci -k | grep -A 5 -E "(VGA|3D)"
00:02.0 VGA compatible controller: Intel Corporation TigerLake-H GT1 [UHD Graphics] (rev 01)
DeviceName: Onboard IGD
Subsystem: Hewlett-Packard Company Device 8873
Kernel driver in use: i915
Kernel modules: i915
--
01:00.0 VGA compatible controller: NVIDIA Corporation GA107GLM [RTX A2000 Mobile] (rev a1)
Subsystem: Hewlett-Packard Company Device 8873
Kernel modules: nouveau, nvidia_drm, nvidiaNot sure how to proceed from here. There was a related topic: https://bbs.archlinux.org/viewtopic.php?id=275393. I seem to be using the right driver (https://www.nvidia.com/Download/driverResults.aspx/189746/en-us - 515 for A2000). I have also tried `aur:nvidia-beta` to no avail.
Last edited by CountZukula (2022-06-24 08:46:19)
Offline
Pretty sure the entire PRIME run concepts still have quite incomplete support on Wayland, even with FOSS drivers
Offline
Arch
I might have muddied the waters by mentioning wayland here, as the driver doesn't load in terminal either. Currently attempted to boot:
local/nvidia-open-dkms 515.48.07-3
local/linux 5.18.2.arch1-1
local/linux-headers 5.18.2.arch1-1Modprobe gives:
_ modprobe nvidia
modprobe: ERROR: could not insert 'nvidia': No such deviceDmesg still shows similar errors (I removed ibt=off from the kernel parameters as I read that for nvidia-open on the latest kernel that should be functioning)
_ dmesg | grep nvid
[ 0.000000] Command line: BOOT_IMAGE=/arch/boot/vmlinuz-linux root=UUID=5b09b78a-30b4-4e79-b714-d94fdc3e540c rw rootflags=subvol=arch nvidia-drm.modeset=1 loglevel=3 quiet
[ 0.051929] Kernel command line: BOOT_IMAGE=/arch/boot/vmlinuz-linux root=UUID=5b09b78a-30b4-4e79-b714-d94fdc3e540c rw rootflags=subvol=arch nvidia-drm.modeset=1 loglevel=3 quiet
[ 1.500337] nvidia: loading out-of-tree module taints kernel.
[ 1.501894] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[ 1.521071] nvidia-nvlink: Nvlink Core is being initialized, major device number 236
[ 1.521364] nvidia 0000:01:00.0: can't change power state from D3cold to D0 (config space inaccessible)
[ 1.521573] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=noneSome other things I tried:
- downgraded nvidia to 510.45-1 (didn't work on kernel 5.18.2)
Manjaro
I assumed this was a model issue but to check that hypothesis I ran Manjaro Live (proprietary drivers). This seems to load the nvidia module correctly:
~ sudo dmesg | grep nvid -i INT ✘
[ 13.724556] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input15
[ 13.758816] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input16
[ 13.801770] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input17
[ 13.801871] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input18
[ 13.802080] input: HDA NVidia HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input19
[ 13.802152] input: HDA NVidia HDMI/DP,pcm=11 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input20
[ 46.920049] nvidia: loading out-of-tree module taints kernel.
[ 46.920057] nvidia: module license 'NVIDIA' taints kernel.
[ 46.927653] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[ 46.936883] nvidia-nvlink: Nvlink Core is being initialized, major device number 508
[ 46.937626] nvidia 0000:01:00.0: enabling device (0006 -> 0007)
[ 46.937806] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[ 46.982861] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 510.60.02 Wed Mar 16 11:24:05 UTC 2022
[ 47.010102] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 510.60.02 Wed Mar 16 11:17:28 UTC 2022
[ 47.030235] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[ 47.030240] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1
[ 55.110835] nvidia_uvm: module uses symbols from proprietary module nvidia, inheriting taint.
[ 55.118503] nvidia-uvm: Loaded the UVM driver, major device number 506.
~ uname -a ✔
Linux manjaro-gnome 5.15.32-1-MANJARO #1 SMP PREEMPT Mon Mar 28 09:16:36 UTC 2022 x86_64 GNU/Linux
~ lsmod | grep nvi ✔
nvidia_uvm 2641920 0
nvidia_drm 73728 2
nvidia_modeset 1163264 3 nvidia_drm
nvidia 39161856 99 nvidia_uvm,nvidia_modeset
~ prime-run glxinfo | grep OpenGL ✔
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA RTX A2000 Laptop GPU/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 510.60.02
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6.0 NVIDIA 510.60.02
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 510.60.02
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:The used nvidia/linux packages:
local/lib32-nvidia-utils 510.60.02-1
local/linux-api-headers 5.16.8-1
local/linux-firmware 20220309.cd01f85-1
local/linux-firmware-whence 20220309.cd01f85-1
local/linux515 5.15.32-1
local/linux515-nvidia 510.60.02-3 (linux515-extramodules)
local/mhwd-nvidia 510.60.02-1
local/mhwd-nvidia-390xx 390.147-2
local/mhwd-nvidia-470xx 470.103.01-1
local/nvidia-prime 1.0-4
local/nvidia-utils 510.60.02-1
local/util-linux 2.38-1
local/util-linux-libs 2.38-1/proc/cmdline
driver=nonfree nouveau.modeset=0 i915.modeset=1 radeon.modeset=1After a fresh try I saw the same error occurring for nouveau:
nouveau: detected PR support, will not use DSM
nouveau ... can't change power state from D3cold to D0 (config space inaccessible)
nouveau ... unknown chipset (ffffffffff)I'm a bit at a loss right now, good to know that the GPU is usable under linux, but my experience with dual-graphics laptops is limited. I have no idea which differences between the two distros lead to the different behaviour.
Last edited by CountZukula (2022-06-10 07:20:39)
Offline
It seems I made a mistake while trying out the various options. `nvidia-dkms` + `linux-lts` works properly, where `linux` doesn't (as indicated on the wiki, for the current kernel). I think I forgot to run `mkinitcpio -P` to make sure the `nvidia` module was included. I'll leave my experience and shame for anyone that might experience the same issue!
Offline
Hi!!
you have been very kind in sharing your experience. It is not clear to me, however, how you solved it? If I understand correctly then installing an updated manjaro or Endevour os should work out of the box?
Offline
No, they used Arch Linux and followed https://wiki.archlinux.org/title/NVIDIA#Installation and https://wiki.archlinux.org/title/NVIDIA … de_setting appropriately
Please open a new thread if you need further help with this.
Last edited by V1del (2023-10-31 13:16:29)
Offline