Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
About Nvidia 340, KMS, framebuffer
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
augustin
Guru
Guru


Joined: 23 Feb 2015
Posts: 318

PostPosted: Sat Oct 15, 2016 8:23 am    Post subject: About Nvidia 340, KMS, framebuffer Reply with quote

When I woke up this morning I didn't know anything about KMS, framebuffer, UEFI, etc.
I've spent most of the day pouring over wiki documentation, searching this forum and the web.
I still can't figure out how I am supposed to configure nvidia and X Server.

I'm following this:
https://wiki.gentoo.org/wiki/NVidia/nvidia-drivers
My graphic card is GeForce 9600 GSO 512, a legacy card supported in the 340.xx drivers, as per
http://www.nvidia.com/object/IO_32667.html
Thus I already set:
Code:
$ cat /etc/portage/package.mask/nvidia
# https://wiki.gentoo.org/wiki/NVidia/nvidia-drivers
>=x11-drivers/nvidia-drivers-341


Given the version of the driver (340), I am confused by what the wiki says next, and despite my best effort, I am still unsure what I am supposed to install, and what kernel options I'm supposed to set/unset.

The wiki says:

Quote:
Important
For x86 and AMD64 processors, the in-kernel framebuffer driver conflicts with the binary driver provided by nVidia. When compiling the kernel for these CPUs, completely remove support for the in-kernel driver as shown:
KERNEL Disable support for the in-kernel driver
Code:
Device Drivers --->
    Graphics support --->
        Frame buffer Devices --->
            <*> Support for frame buffer devices --->
            < >   nVidia Framebuffer Support
            < >   nVidia Riva support

But then it says:

Quote:
A framebuffer alternative is uvesafb, which can be installed parallel to x11-drivers/nvidia-drivers.
Important
For x86 and AMD64 processors, the uvesafb driver conflicts with the binary driver provided by nVidia above 361.28 versions.


Again, I'll be using nVidia 340.xx.
So:

1) In the kernel, are the following settings the right one for me?
Code:
Device Drivers --->
    Graphics support --->
        Frame buffer Devices --->
            <*> Support for frame buffer devices --->
            < >   nVidia Framebuffer Support
            < >   nVidia Riva support


2) Should I emerge uvesafb? Will it be installed automatically (pulled by the rest, when I emerge xord and nvidia-drivers?

3) If I understand the following page correctly, I must compile the kernel twice, once before emerging uvesafb, and once after:
https://wiki.gentoo.org/wiki/Uvesafb
Back to top
View user's profile Send private message
augustin
Guru
Guru


Joined: 23 Feb 2015
Posts: 318

PostPosted: Sat Oct 15, 2016 8:46 am    Post subject: Reply with quote

https://bbs.archlinux.org/viewtopic.php?id=197016
says:

"To get a high res console with the Nvidia driver requires using vesafb/uvesafb (when booting in BIOS mode) or efifb (when booting in UEFI mode). But this limits you to resolutions in the VBIOS of the GPU, and very often widescreen resolutions aren't there."

So I guess I somehow have to install uvesafb, although I'm not yet sure how to get the supported resolutions from the VBIOS...

(I'll use BIOS. my motherboard does not support UEFI).
Back to top
View user's profile Send private message
augustin
Guru
Guru


Joined: 23 Feb 2015
Posts: 318

PostPosted: Sat Oct 15, 2016 9:04 am    Post subject: Reply with quote

Cool! Archlinux has a different package for different versions of nvidia drivers, according to what's required by the graphic card, e.g.: nvidia , nvidia-340xx , nvidia-304xx ...
https://wiki.archlinux.org/index.php/NVIDIA#Installation
It makes for easier installation and configuration.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 3587
Location: Germany

PostPosted: Sat Oct 15, 2016 1:52 pm    Post subject: Reply with quote

augustin wrote:
[...] So I guess I somehow have to install uvesafb, although I'm not yet sure how to get the supported resolutions from the VBIOS...

The from the VBIOS (your Graphic Card) supported modes should listed in
Code:
cat /sys/bus/platform/drivers/uvesafb/uvesafb.0/vbe_modes

See in /usr/src/linux/Documentation/fb/uvesafb.txt
Back to top
View user's profile Send private message
augustin
Guru
Guru


Joined: 23 Feb 2015
Posts: 318

PostPosted: Sun Oct 16, 2016 12:23 am    Post subject: Reply with quote

Danke Josef.
I'll check that out.
:)
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