Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Half-Solved] Nouveau/nvidia_fb drivers not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
superdeez
n00b
n00b


Joined: 10 May 2015
Posts: 14

PostPosted: Wed Apr 10, 2019 1:20 am    Post subject: [Half-Solved] Nouveau/nvidia_fb drivers not working Reply with quote

I'm having an issue with X after re-working my system.

X will work for root, but the display is garbled. I can see that twm is working behind it and it responds to keyboard and mouse inputs. If I run it as my user, it shows this garbled screen briefly and then immediately exits of its own accord. It doesn't crash out, it exits for some reason.

The video card is an nVidia that I initially ran via the nouveau module, but I have since compiled it into the kernel itself. I also put the nVidiafb parameter in the kernel as native. I get the
Code:
/dev/dri/card0: no such file or directory
. I do get the happy penguins upon startup.

Here is the /var/log/Xorg.0.log if I run as root=http://dpaste.com/0P6G7CH

If I run as my normal user, this is the Xorg.0.log=http://dpaste.com/2XSMNBF

My .config is here=http://dpaste.com/06VKEAS

Here is my make.conf=http://dpaste.com/1RT36AC

My user is in the following groups
Code:
tty wheel floppy uucp console audio cdrom video cdrw usb input users dda


I know there's multiple things going on here, a possible permissions issue, I've been through it and through it and through it. Would anyone have an idea what I'm missing here?

Edit:

The output of dmesg is over 65000 lines of:
Code:
nvidia_fb setcoloreg START
nvidia_fb setcoloreg END


Thank you in advance for the help


Last edited by superdeez on Tue Apr 16, 2019 3:10 am; edited 1 time in total
Back to top
View user's profile Send private message
superdeez
n00b
n00b


Joined: 10 May 2015
Posts: 14

PostPosted: Tue Apr 16, 2019 3:08 am    Post subject: Reply with quote

I've partially solved this. I used an old .config file I had for this machine and when I removed both the noveau and nvidia_fb drivers completely from the kernel, X began working. X was quitting for my user with a status of 0 because twm (which I was using for testing) was causing its main xterm to quit.

X (and KDE) are now working fine, but of course in this configuration it is eating CPU time for lunch.

The card is an nVidia NV44A, it may be worth mentioning this is a PCI (as opposed to PCI-e or AGP) card. Other than saving my current config as "safe" and then trying one video driver at a time and rebooting to see what might work, I haven't got any better ideas.

Do I need agpgart in the kernel for a straight PCI card?

The garbled display was because for some reason the nvidia kernel drivers were causing the screen to be drawn and drawn and drawn again on top of itself. X was working, it was just making the screen about 5 times on the same display. Disabling noveau and nvidia_fb got rid of this.

Any suggestions would be appriceiated

Edited to add details about screen being redrawn
Back to top
View user's profile Send private message
axl
Guru
Guru


Joined: 11 Oct 2002
Posts: 507
Location: Romania

PostPosted: Tue Apr 16, 2019 5:41 am    Post subject: Reply with quote

in general, nvidiafb and nouveau and nvidia-drivers are things that will want to use your card exclusively. nvidiafb should never be used. unless you really just want a framebuffer device for console and nothing more fancy. I can't think of a modern nvidia card where you want just that. the only things that will work on your shiny new system with that are things you compiled with fbcon as useflags. NOT the kde/plasma/gnome WM's which require hardware acceleration for 3d stuff, which nvidiafb clearly doesn't provide.

Nouveau does provide that for certain cards. nouveau does both console framebuffer, and X hardware accelerated things, but it doesn't always work with new cards. and finally, with new cards, you may want to or be forced to go with nvidia drivers. the proprietary solution.

a system can have both nouveau AND nvidia drivers at the same time, just as long as you keep track of 2 things.

1. nvidia-drivers cannot be included in the kernel. they are always modules outside of the kernel. so keep nouveau outside of the kernel as well (as a module, not included in the kernel - you can't unload it that way). include just the minimal VGA 16 color graphic support to get boot messages and/or EFI framebuffer interface as Y Yes included in kernel and nouveau as module. You can switch between them at boot via parameter modprobe.blacklist=nouveau or modprobe.blacklist=nvidia. can even make 2 boot entries to switch drivers.

BUT

2. you should also keep track of switching opengl implementation via eselect opengl set. can make a script in local.d to check boot parameter in dmesg and switch before X starts.

One thing I'm certain, you dont want nvidiafb. Good luck. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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