Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]nvidia-drivers nor nouveau work on RTX 4050 laptop
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
QavaQo
n00b
n00b


Joined: 25 Aug 2024
Posts: 4

PostPosted: Sun Aug 25, 2024 1:37 pm    Post subject: [SOLVED]nvidia-drivers nor nouveau work on RTX 4050 laptop Reply with quote

Hello, so ive been using Gentoo for quite a while and realized that the NVIDIA drivers were not working. I tried nvidia-xconfig and it gave me the following output:
Code:
Using X configuration file: "/etc/X11/xorg.conf".

VALIDATION ERROR: Data incomplete in file /etc/X11/xorg.conf.
                  Device section "Device0" must have a Driver line.


ERROR: Unable to find any GPUs in the system.

Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.nvidia-xconfig-original'
Backed up file '/etc/X11/xorg.conf' as '/etc/X11/xorg.conf.backup'
New X configuration file written to '/etc/X11/xorg.conf'

When i try nvidia-smi i get this:
Code:
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

However when i try modprobe nvidia i get this:
Code:
modprobe: ERROR: could not find module by name='nvidia'
modprobe: ERROR: could not insert 'nvidia': Unknown symbol in module, or unknown parameter (see dmesg)

I reinstalled the drivers but the same keeps happening, disabled nouveau and it still happens and nouveau still doesnt work after removing nvidia-drivers.
Should i just recompile my kernel?


Last edited by QavaQo on Tue Aug 27, 2024 3:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22395

PostPosted: Sun Aug 25, 2024 1:46 pm    Post subject: Re: nvidia-drivers nor nouveau work on RTX 4050 laptop Reply with quote

Welcome to the forums.
QavaQo wrote:
However when i try modprobe nvidia i get this:
Code:
modprobe: ERROR: could not find module by name='nvidia'
modprobe: ERROR: could not insert 'nvidia': Unknown symbol in module, or unknown parameter (see dmesg)
The error output suggests you check dmesg. What does dmesg show after this fails?
QavaQo wrote:
I reinstalled the drivers but the same keeps happening, disabled nouveau and it still happens and nouveau still doesnt work after removing nvidia-drivers.
Should i just recompile my kernel?
I see no reason to expect that recompiling the kernel would help at this time. Do you prefer to fix the nVidia proprietary drivers or do you want to switch to using Nouveau?
Back to top
View user's profile Send private message
QavaQo
n00b
n00b


Joined: 25 Aug 2024
Posts: 4

PostPosted: Sun Aug 25, 2024 1:53 pm    Post subject: Reply with quote

dmesg | grep NVIDIA shows empty output and with dmesg the output is too big to fit in my terminal, i'l try to atleast get nouveau working though
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31175
Location: here

PostPosted: Sun Aug 25, 2024 2:14 pm    Post subject: Reply with quote

QavaQo wrote:
dmesg | grep NVIDIA shows empty output and with dmesg the output is too big to fit in my terminal, i'l try to atleast get nouveau working though

Try with dmesg | grep -i nvidia (-i for case insensitive) command
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1627
Location: Germany

PostPosted: Sun Aug 25, 2024 2:18 pm    Post subject: Reply with quote

QavaQo wrote:
dmesg | grep NVIDIA shows empty output and with dmesg the output is too big to fit in my terminal, i'l try to atleast get nouveau working though


Keep in mind that dmesg | grep NVIDIA works case sensitive. Use the -i matching control for a case insensitive match. https://man7.org/linux/man-pages/man1/grep.1.html

For log output you can use https://wiki.gentoo.org/wiki/Wgetpaste

edit: fedeliallalinea was faster....
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire


Last edited by Banana on Sun Aug 25, 2024 2:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
QavaQo
n00b
n00b


Joined: 25 Aug 2024
Posts: 4

PostPosted: Sun Aug 25, 2024 2:18 pm    Post subject: Reply with quote

with dmesg | grep -i nvidia i get this:
Code:
[    3.663874] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input15
[    3.663898] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input16
[    3.663915] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input17
[    3.663937] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input18

The card shows on lspci tho:
Code:
0000:01:00.0 VGA compatible controller: NVIDIA Corporation AD107M [GeForce RTX 4050 Max-Q / Mobile] (rev a1)
0000:01:00.1 Audio device: NVIDIA Corporation Device 22be (rev a1)

xrandr --listproviders output:
Code:
Providers: number : 1
Provider 0: id: 0x43 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 1 associated providers: 0 name:modesetting
Back to top
View user's profile Send private message
QavaQo
n00b
n00b


Joined: 25 Aug 2024
Posts: 4

PostPosted: Tue Aug 27, 2024 3:06 pm    Post subject: Reply with quote

Solved it, i had two kernels but i was booting with the older kernel and it was installing to the newer kernel
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum