Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Some comments on getting X / Nvidia to work
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 832
Location: Cape Town, South Africa

PostPosted: Wed Aug 04, 2021 10:53 am    Post subject: Some comments on getting X / Nvidia to work Reply with quote

Hi

Just some comments.

Been on Gentoo since 2005. Busy setting up new box, the initial install of base system was not too bad, but had headaches after that.

Could not get X to start and started to feel like total noob. Reading various Gentoo pages about X and Nividia (including wrong advice) got me nowhere.

Search the forums for "no screens found" does not help... the search function decides to only look for "screens", even when I put the phrase in quotes.

So I resorted to Google which first produces an old post referencing HAL.

Luckily another link went to https://forums.gentoo.org/viewtopic-p-8447666.html?sid=30a376e6caf38c78aaa1fa9a50f29134

which mentions to run nvidia-xconfig. That instruction is not on the Nvidia page at https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers

Once I ran it as root, startx immediately worked as user.

So posting this in case someone else has similar issues.

Cheers, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Wed Aug 04, 2021 11:36 am    Post subject: Reply with quote

The conf from Gentoo Wiki works well.
Code:
Section "Device"
   Identifier  "nvidia"
   Driver      "nvidia"
EndSection

I wouldn't run nvidia-xconfig, as it creates a huge bloated unnecessary conf.

The four-line conf is for plain nVidia and won't work with hybrid graphics.

Quote:
Reading various Gentoo pages about X and Nividia (including wrong advice) got me nowhere.


Such remarks are not helpful, and you do not mention what graphics hardware you have. Is it Optimus?
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 832
Location: Cape Town, South Africa

PostPosted: Wed Aug 04, 2021 12:24 pm    Post subject: Reply with quote

Jaglover wrote:
The conf from Gentoo Wiki works well.
Code:
Section "Device"
   Identifier  "nvidia"
   Driver      "nvidia"
EndSection

I wouldn't run nvidia-xconfig, as it creates a huge bloated unnecessary conf.

The four-line conf is for plain nVidia and won't work with hybrid graphics.


Thanks. Last I remember about Xorg was "don't need config file anymore, it just works." So did not set one up.
FWIW the config file it created is very plain vanilla ... none of the old modeline gunk.
-rw-r--r-- 1 root root 1207 Aug 4 12:38 /etc/X11/xorg.conf


Jaglover wrote:

Quote:
Reading various Gentoo pages about X and Nividia (including wrong advice) got me nowhere.


Such remarks are not helpful, and you do not mention what graphics hardware you have. Is it Optimus?


Code:

Edit: I was kind of hoping not to have to (not the best at writing docs / editing wikis and have other things to do), but I've put revamping that page on my TODO (or maybe just remove a few wrong bits at first). The more I look at it, the worse it looks. Much of this seem to date back to >10 years ago and nobody is daring clean it up. Disabling DRM was fine with old drivers for what it's worth, but not now that nvidia has a nvidia-drm module.

https://forums.gentoo.org/viewtopic-p-8642055.html#8642055


Card is VGA compatible controller: NVIDIA Corporation TU117 [GeForce GTX 1650] (rev a1)
Must update my .sig

Thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Wed Aug 04, 2021 1:09 pm    Post subject: Reply with quote

Quote:
Last I remember about Xorg was "don't need config file anymore, it just works." So did not set one up.

This was your mistake. Xorg does not need config with open source drivers, but it needs the four-liner with proprietary nvidia driver.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2719

PostPosted: Wed Aug 04, 2021 1:24 pm    Post subject: Reply with quote

It works out of the box for me (Edit: mostly tested with common gnome/gdm and plasma/sddm), assuming have kms helper enabled in the kernel anyway (the ebuild would complaint if it wasn't). It needs nvidia-drm to work to auto-detect and load the ebuild-installed .conf file.

Manual config should only be needed in case of multiple GPUs / offloading.


Last edited by Ionen on Wed Aug 04, 2021 1:29 pm; edited 2 times in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Wed Aug 04, 2021 1:27 pm    Post subject: Reply with quote

Ionen,

you say this four-liner is no longer needed? Then Gentoo Wiki definitely need to be updated. I have currently no machines with nVidia blob to test how it works.

Edit: I saw your edit, so ebuild installs a conf file now.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2719

PostPosted: Wed Aug 04, 2021 1:35 pm    Post subject: Reply with quote

On my stable systems I use for testing (with gentoo-kernel-bin) where I intentionally configure nothing to test out-of-the-box, I only changed VIDEO_CARDS=nvidia (plus adding video group) and Xorg worked just fine both with my 560ti and 1070.

Not that I test 390.xx often wrt 560ti, that old box isn't faring so well and the card likes falling off the bus :? Think may have bad ram too, need to check that sometime.
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2719

PostPosted: Wed Aug 04, 2021 1:41 pm    Post subject: Reply with quote

For wiki, there's a lot of old advice that would need to test to be sure it's really outdated. It's hard to tell if every obscure issue is still relevant when I don't have the same hardware or every kind of setups people may be using (and I notably never had a optimus laptop, almost every issues I keep seeing people run into seem to be related to these).

Edit: for 390.xx, a custom .conf may also override a workaround that's needed to get GLX working due to its incomplete glvnd support
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Wed Aug 04, 2021 1:59 pm    Post subject: Reply with quote

To conclude, as with everything in Gentoo, user is the one who must make the final decisions and all documentation is just for reference and ideas and examples. I can live with that. 8)
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
flyerone
n00b
n00b


Joined: 19 Nov 2019
Posts: 61
Location: 127 0 0 1

PostPosted: Wed Aug 04, 2021 3:38 pm    Post subject: Reply with quote

Hi, my fresh install has a weird malfunction. The logs tell my drivers are loaded but machine locks up with no trace of starting Xfce. Would someone please answer my post?
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1392
Location: Germany

PostPosted: Wed Aug 04, 2021 4:34 pm    Post subject: Reply with quote

@flyerone
if you are refering to your own topic here: https://forums.gentoo.org/viewtopic-t-1140450-highlight-.html you should stick to it. As soon someone has an answer they will help you. Crossposting does not
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.


Last edited by Banana on Thu Aug 05, 2021 3:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Wed Aug 04, 2021 5:03 pm    Post subject: Reply with quote

Banana wrote:
@flyerone
if you are refering to your own topic here: https://forums.gentoo.org/viewtopic-t-1140450-highlight-.html you should stick to it. As soon someone has an answer they will help you. Crosposting does not


flyerone,

Your thread does not show up as "unanswered", it has less exposure if you reply to your own request. Consider editing instead.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2006

PostPosted: Wed Aug 04, 2021 6:52 pm    Post subject: Re: Some comments on getting X / Nvidia to work Reply with quote

iandoug wrote:
...
Search the forums for "no screens found" does not help... the search function decides to only look for "screens", even when I put the phrase in quotes.
So I resorted to Google which first produces an old post referencing HAL.
...

Sometime soon we should be seeing the new Gentoo forums, which I hope will have a better search engine.
In the meantime, the best way to search the forums is to Google
Code:
site:forums.gentoo.org no screens found

or whatever.

There's probably a way to build a custom search in firefox or whatever, but I don't know it :-(
_________________
Greybeard
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