You are not logged in.

#1 2021-03-04 05:39:44

legine
Member
Registered: 2021-03-04
Posts: 3

Nvidia not working with linux-lts

Hello all,

I do not know what I miss.
I have an Intel - Nvidia Laptop. And so far I used the linux kernel package with nvidia prime-run.

Because of Issues with Displaylink, which made my Monitors accessible (Great thing is the are plugged through the Nvidia card.)
I had to switch to the linux-lts kernel.
I installed the nvidia-lts drivers, too and uninstalled everything from the linux kernel.
Now the Nvidia car seems not to load at all.

Following packages are installed:

nvidia-lts 1:460.56-2
nvidia-prime 1.0-4
nvidia-settings 460.56-1
nvidia-utils 460.56-1
opencl-nvidia 460.56-1

vulkan-intel 20.3.4-3
xf86-video-intel 1:2.99.917+916+g31486f40-1

I tried to set (no effect):
/etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf

Section "OutputClass"
    Identifier "intel"
    MatchDriver "i915"
    Driver "modesetting"
EndSection

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    Option "PrimaryGPU" "yes"
    ModulePath "/usr/lib/nvidia/xorg"
    ModulePath "/usr/lib/xorg/modules"
EndSection

And here is my lspci:

$ lspci -k | grep -A 2 -E "(VGA|3D)"
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04)
	Subsystem: CLEVO/KAPOK Computer Device 9501
	Kernel driver in use: i915
--
01:00.0 VGA compatible controller: NVIDIA Corporation GP104M [GeForce GTX 1070 Mobile] (rev a1)
	Subsystem: CLEVO/KAPOK Computer GeForce GTX 1070 Max-Q
	Kernel driver in use: nvidia

Any Ideas what I need to do? What am I missing?

Offline

#2 2021-03-04 07:27:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,552

Re: Nvidia not working with linux-lts

I used the linux kernel package with nvidia prime-run.

Section "OutputClass"

    Driver "nvidia"

    Option "PrimaryGPU" "yes"

EndSection

This doesn't add up.
Please read https://wiki.archlinux.org/index.php/NVIDIA_Optimus and explain how you intend to use the nvidia GPU (ie. the scenario - not what you believe to be the solution)
Then post your xorg log and the actual output you're facing on

prime-run glxinfo

Offline

#3 2021-03-05 00:07:47

legine
Member
Registered: 2021-03-04
Posts: 3

Re: Nvidia not working with linux-lts

My goal is that the nvidia is accessible and works in the prime setup.

The Xorg config is copy pasted from https://wiki.archlinux.org/index.php/NVIDIA_Optimus section "Use NVIDIA graphics only".
I am in no position to judge this. It does not work with or without it (means no config)

prime-run glxgears
X Error of failed request:  BadValue (integer parameter out of range for operation)
  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:  26

xorg.log:
X.Org X Server 1.20.10
X Protocol Version 11, Revision 0

[   267.127] Build Operating System: Linux Arch Linux
[   267.127] Current Operating System: Linux Keynix2 5.10.19-1-lts #1 SMP Fri, 26 Feb 2021 11:11:40 +0000 x86_64
[   267.127] Kernel command line: root=/dev/sda2 rw add_efi_memmap initrd=\initramfs-linux-lts.img
[   267.127] Build Date: 14 December 2020  12:10:29PM
[   267.127]  
[   267.127] Current version of pixman: 0.40.0
[   267.127] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   267.127] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   267.127] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Mar  4 18:23:49 2021
[   267.127] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   267.127] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   267.127] (==) No Layout section.  Using the first Screen section.
[   267.127] (==) No screen section available. Using defaults.
[   267.127] (**) |-->Screen "Default Screen Section" (0)
[   267.127] (**) |   |-->Monitor "<default monitor>"
[   267.127] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[   267.127] (==) Automatically adding devices
[   267.127] (==) Automatically enabling devices
[   267.127] (==) Automatically adding GPU devices
[   267.127] (==) Automatically binding GPU devices
[   267.127] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   267.127] (WW) The directory "/usr/share/fonts/misc" does not exist.
[   267.127] 	Entry deleted from font path.
[   267.127] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/TTF".
[   267.127] 	Entry deleted from font path.
[   267.127] 	(Run 'mkfontdir' on "/usr/share/fonts/TTF").
[   267.127] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[   267.127] 	Entry deleted from font path.
[   267.127] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[   267.127] 	Entry deleted from font path.
[   267.127] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[   267.127] 	Entry deleted from font path.
[   267.127] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[   267.127] 	Entry deleted from font path.
[   267.127] (==) FontPath set to:
	
[   267.127] (==) ModulePath set to "/usr/lib/xorg/modules"
[   267.127] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   267.127] (II) Module ABI versions:
[   267.127] 	X.Org ANSI C Emulation: 0.4
[   267.127] 	X.Org Video Driver: 24.1
[   267.127] 	X.Org XInput driver : 24.1
[   267.127] 	X.Org Server Extension : 10.0
[   267.128] (++) using VT number 7

[   267.128] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[   267.128] (II) xfree86: Adding drm device (/dev/dri/card0)
[   267.132] (--) PCI:*(0@0:2:0) 8086:591b:1558:9501 rev 4, Mem @ 0xdd000000/16777216, 0xa0000000/536870912, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[   267.133] (--) PCI: (1@0:0:0) 10de:1ba1:1558:9501 rev 161, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[   267.133] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   267.133] (II) LoadModule: "glx"
[   267.133] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[   267.134] (II) Module glx: vendor="X.Org Foundation"
[   267.134] 	compiled for 1.20.10, module version = 1.0.0
[   267.134] 	ABI class: X.Org Server Extension, version 10.0
[   267.134] (II) Applying OutputClass "intel" to /dev/dri/card0
[   267.134] 	loading driver: modesetting
[   267.134] (==) Matched modesetting as autoconfigured driver 0
[   267.134] (==) Matched intel as autoconfigured driver 1
[   267.134] (==) Matched fbdev as autoconfigured driver 2
[   267.134] (==) Matched vesa as autoconfigured driver 3
[   267.134] (==) Assigned the driver to the xf86ConfigLayout
[   267.134] (II) LoadModule: "modesetting"
[   267.134] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[   267.134] (II) Module modesetting: vendor="X.Org Foundation"
[   267.134] 	compiled for 1.20.10, module version = 1.20.10
[   267.134] 	Module class: X.Org Video Driver
[   267.135] 	ABI class: X.Org Video Driver, version 24.1
[   267.135] (II) LoadModule: "intel"
[   267.135] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[   267.135] (II) Module intel: vendor="X.Org Foundation"
[   267.135] 	compiled for 1.20.10, module version = 2.99.917
[   267.135] 	Module class: X.Org Video Driver
[   267.135] 	ABI class: X.Org Video Driver, version 24.1
[   267.135] (II) LoadModule: "fbdev"
[   267.135] (WW) Warning, couldn't open module fbdev
[   267.135] (EE) Failed to load module "fbdev" (module does not exist, 0)
[   267.135] (II) LoadModule: "vesa"
[   267.135] (WW) Warning, couldn't open module vesa
[   267.135] (EE) Failed to load module "vesa" (module does not exist, 0)
[   267.135] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   267.135] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
	i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
	915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
	Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
	GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[   267.135] (II) intel: Driver for Intel(R) HD Graphics
[   267.135] (II) intel: Driver for Intel(R) Iris(TM) Graphics
[   267.135] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics
[   267.139] (II) modeset(0): using drv /dev/dri/card0
[   267.139] (II) modeset(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[   267.139] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[   267.139] (==) modeset(0): RGB weight 888
[   267.139] (==) modeset(0): Default visual is TrueColor
[   267.139] (II) Loading sub module "glamoregl"
[   267.139] (II) LoadModule: "glamoregl"
[   267.139] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[   267.142] (II) Module glamoregl: vendor="X.Org Foundation"
[   267.142] 	compiled for 1.20.10, module version = 1.0.1
[   267.142] 	ABI class: X.Org ANSI C Emulation, version 0.4
[   267.189] (II) modeset(0): glamor X acceleration enabled on Mesa Intel(R) HD Graphics 630 (KBL GT2)
[   267.189] (II) modeset(0): glamor initialized
[   267.190] (II) modeset(0): Output eDP-1 has no monitor section
[   267.191] (II) modeset(0): EDID for output eDP-1
[   267.191] (II) modeset(0): Manufacturer: AUO  Model: 51ed  Serial#: 4183120191
[   267.191] (II) modeset(0): Year: 2016  Week: 28
[   267.191] (II) modeset(0): EDID Version: 1.4
[   267.191] (II) modeset(0): Digital Display Input
[   267.191] (II) modeset(0): 8 bits per channel
[   267.191] (II) modeset(0): Digital interface is DisplayPort
[   267.191] (II) modeset(0): Max Image Size [cm]: horiz.: 34  vert.: 19
[   267.191] (II) modeset(0): Gamma: 2.20
[   267.191] (II) modeset(0): No DPMS capabilities specified
[   267.191] (II) modeset(0): Supported color encodings: RGB 4:4:4 
[   267.191] (II) modeset(0): First detailed timing is preferred mode
[   267.191] (II) modeset(0): Preferred mode is native pixel format and refresh rate
[   267.191] (II) modeset(0): redX: 0.635 redY: 0.345   greenX: 0.329 greenY: 0.623
[   267.191] (II) modeset(0): blueX: 0.154 blueY: 0.055   whiteX: 0.313 whiteY: 0.329
[   267.191] (II) modeset(0): Manufacturer's mask: 0
[   267.191] (II) modeset(0): Supported detailed timing:
[   267.191] (II) modeset(0): clock: 290.8 MHz   Image Size:  344 x 193 mm
[   267.191] (II) modeset(0): h_active: 1920  h_sync: 2028  h_sync_end 2076 h_blank_end 2120 h_border: 0
[   267.191] (II) modeset(0): v_active: 1080  v_sync: 1090  v_sync_end 1100 v_blanking: 1142 v_border: 0
[   267.191] (II) modeset(0): Supported detailed timing:
[   267.191] (II) modeset(0): clock: 290.8 MHz   Image Size:  344 x 193 mm
[   267.191] (II) modeset(0): h_active: 1920  h_sync: 2028  h_sync_end 2076 h_blank_end 2120 h_border: 0
[   267.191] (II) modeset(0): v_active: 1080  v_sync: 1090  v_sync_end 1100 v_blanking: 2284 v_border: 0
[   267.191] (II) modeset(0):  HPJGKB156HTN
[   267.191] (II) modeset(0): Unknown vendor-specific block 0
[   267.191] (II) modeset(0): EDID (in hex):
[   267.191] (II) modeset(0): 	00ffffffffffff0006afed513f5955f9
[   267.191] (II) modeset(0): 	1c1a0104a5221378029685a258549f27
[   267.191] (II) modeset(0): 	0e505400000001010101010101010101
[   267.191] (II) modeset(0): 	010101010101987180c870383e406c30
[   267.191] (II) modeset(0): 	aa0058c11000001a987180c87038b444
[   267.191] (II) modeset(0): 	6c30aa0058c11000001a000000fe0048
[   267.191] (II) modeset(0): 	504a474b804231353648544e00000000
[   267.191] (II) modeset(0): 	00028102a8001100000b010a202000e5
[   267.191] (II) modeset(0): Printing probed modes for output eDP-1

The xorg log does not contain anything from Nvidia.

Offline

#4 2021-03-05 07:30:28

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,552

Re: Nvidia not working with linux-lts

"Use NVIDIA graphics only" contradicts the explicit invocation, so don't use that config for your use-case.
Can you access the GPU w/ "nvidia-smi"?

The issue is not w/ X11 - there's either a problem w/ the kernel module (installation), the chip is powered down or simply late.
See https://wiki.archlinux.org/index.php/NV … de_setting and add the kernel parameter.

Then please post your system journal journal (sudo journalctl -b) and see https://wiki.archlinux.org/index.php/Ke … _KMS_start
You can easily guess whether it's the last cause by restarting the X11 server without rebooting the system.

Offline

#5 2021-03-06 10:16:35

legine
Member
Registered: 2021-03-04
Posts: 3

Re: Nvidia not working with linux-lts

Seth: Thanks a lot for the pointers. I really had a hard time to understand the wiki here.

I removed the Xorg Configs again. They did not lead anywhere, you are right.

The root cause to my issues is that the nvidia_drm drive is not loading at all at default.
If I enter

sudo modprobe nvidia-drm modeset=1

(see: https://forums.developer.nvidia.com/t/p … tion/44423 )
And restart the X server (logout / login does the trick) my screens can be addressed with

xrandr

and

prime-run glxgears

works again.

Now I need to figure out the early loading. I have added the Kernel parameter, this does not lead that the kernel is loading the nvidia_drm drive, despite I have added the Kernel parameter to my kernel options and I have updated /etc/mkinitcpio.conf.
I think I build even the initramfs again, but I am not sure now.
I will try to build it again, and then test the boot again. I will figure out what went wrong.

I still wonder why the setup worked before without any configuration on my side.

Well whatever. The Thread can be changed to solved. I did not see a way to rename the title. But I will look at it again after I posted. Really thanks for the pointers.

Offline

#6 2021-03-06 13:54:27

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,353

Re: Nvidia not working with linux-lts

I did not see a way to rename the title.

edit first post, then you can change the title


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB