You are not logged in.

#1 2023-02-22 15:22:01

equalizer
Member
Registered: 2023-02-22
Posts: 1

nvidia-prime not working on a new fresh install

Hello! First, please forgive my English.

I've done this morning a new fresh installation of arch linux. I have a hybrid omen 16 laptop. But when I want to test prime-run using prime-run glxinfo | grep "OpenGL renderer", I got this error:

 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: 24 (X_GLXCreateNewContext)Value in failed request: 0x0Serial number of failed request: 50Current serial number in output stream: 51 

Here is some data:

- xrandr --listproviders output:

Providers: number : 2
Provider 0: id: 0x49 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 7 associated providers: 1 name:modesetting
Provider 1: id: 0x102 cap: 0x2, Sink Output crtcs: 4 outputs: 3 associated providers: 1 name:modesetting

Why is there twice modesetting and nvidia is not there?

- lspci -k | grep -A 2 -E "(VGA|3D)" output:

0000:00:02.0 VGA compatible controller: Intel Corporation TigerLake-H GT1 [UHD Graphics] (rev 01)DeviceName: Onboard IGDSubsystem: Hewlett-Packard Company Device 88f4

--

0000:01:00.0 VGA compatible controller: NVIDIA Corporation GA104M [GeForce RTX 3070 Mobile / Max-Q] (rev a1)DeviceName: NVIDIA Graphics DeviceSubsystem: Hewlett-Packard Company Device 88f4

- nvidia-smi output: NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

My xorg.conf & xorg.conf.d are empty, and I use nvidia-lts (bcs lts kernel)


Thank you very much for your future answers! Good evening!

Offline

#2 2023-02-22 15:35:18

seth
Member
Registered: 2012-09-03
Posts: 49,986

Re: nvidia-prime not working on a new fresh install

lspci -k | grep -A 2 -E "(VGA|3D)"

Is useless, but everything says that the nvidia driver isn't correctly installed.

Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Online

#3 2023-02-22 16:26:29

kitchen_ace
Member
Registered: 2021-08-10
Posts: 7

Re: nvidia-prime not working on a new fresh install

I think a recent update broke NVIDIA drivers, I am also using LTS and after updating today they no longer work. Rolling back to my previous update fixed things. Won't be able to investigate which packages are responsible until later today.

Offline

#4 2023-02-22 16:35:44

seth
Member
Registered: 2012-09-03
Posts: 49,986

Re: nvidia-prime not working on a new fresh install

If your investigation doesn't bear fruit, post the journal.

Online

#5 2023-02-22 21:48:35

kitchen_ace
Member
Registered: 2021-08-10
Posts: 7

Re: nvidia-prime not working on a new fresh install

Something not working with latest nvidia-lts and linux-lts updates. linux-lts is a new major version so likely something significant changed.

Latest versions that work for me are linux-lts* 5.15.94-1 and nvidia-lts 1:525.89.02-3

Journal of latest nonworking updates here in case it helps someone smarter than me fix the packages smile
http://0x0.st/HsOj.txt

Last edited by kitchen_ace (2023-02-22 21:49:02)

Offline

#6 2023-02-22 21:55:11

seth
Member
Registered: 2012-09-03
Posts: 49,986

Re: nvidia-prime not working on a new fresh install

The module doesn't exist.

pacman -Qs 'linux|nvidia'

Edit: also search for linux, you're booting 6.1.12-1-lts which is slightly dated and does not fit the latest nvidia-lts build.

Last edited by seth (2023-02-22 21:57:01)

Online

#7 2023-02-22 21:56:20

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,427

Re: nvidia-prime not working on a new fresh install

You are simply not loading the nvidia modules at all here. Do a complete and proper system update, linux-lts should be 6.1.13 and nvidia-lts 1:525.89.02-5. That's for the baseline. The "other" issues you might  experience after that are long documented and will amount to ibt=off and/or blacklisting internal GPUs: https://bbs.archlinux.org/viewtopic.php?id=283753

Last edited by V1del (2023-02-22 21:56:43)

Offline

#8 2023-02-22 22:35:24

kitchen_ace
Member
Registered: 2021-08-10
Posts: 7

Re: nvidia-prime not working on a new fresh install

Huh, I had added ibt=off previously but I guess at some point I removed it. Anyhow with that and switching mirrors to one that was properly synced, things work for me with the actual latest versions of linux-lts and nvidia-lts, hopefully that works for OP's problems too.

Offline

Board footer

Powered by FluxBB