Nvidia driver + KMS for native boot resolution?
Nvidia's own driver has supported KMS for a while now i believe, and i've tried reading up on a few other Distro's wiki (particularly Arch and Gentoo's), and came to the conclusion that i should add these modules to my initrd:
Quote:
Then rebuilt my initrd using this: Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -m nvidia:nvidia_modeset:nvidia_uvm:nvidia_drm Code:
OK: /lib/modules/4.12.0-rc5/kernel/drivers/usb/host/xhci-hcd.ko added. For instance, when using the nouveau driver, the boot process will have smaller text on a 1920x1080 display for example, quite early in the boot process. I am trying to use the KMS within Nvidia's own driver for the same effect. Does anyone know how to solve this? |
Quote:
To find a suitable VESA code that your hardware supports, first enter some bogus setting e.g. vga = 123 (and run lilo). When you reboot you'll be told that that is an unsupported code and invite you to (amongst other options) hit the ENTER key to see a list of valid codes. Enter (and remember) the code you want and when bootup finishes, enter the new code into lilo.conf and don't forget to run lilo afterward to ensure the new setting takes effect. chris |
And here's a quicker way to find the supported modes (as root):
Code:
/usr/sbin/hwinfo --framebuffer |
Which Slackware package contains this hwinfo of which you speak ?
|
|
Yes I forgot - as phenixia2003 says, it's from the SBo hwinfo package. Sorry about that.
chris |
Hello,
According to this post and this note, it seems that nvidia kms does not support fbdev : Quote:
SeB |
Quote:
As for choosing VGA setting. I'd gotten VGA=792 from years ago using something like hwinfo, and always found that value to be the best approximate fit for a 1920x1080 display. Suppose we still have to wait for nvidia to add proper support. Thanks though. |
Alright, my output on hwinfo contains this:
Code:
# /usr/sbin/hwinfo --framebuffer For instance: Code:
Mode 0x034d: 1920x1080 (+7680), 24 bits Code:
VGA=0x034d |
Quote:
BTW, I think decimal for 0x034d would be 845 (not 792, which would be 0x318 i.e. 1024x768x24) chris |
Thanks, either way works. For some reason though, when booting, the framebuffer has a black border of about an inch or two.
As soon as i "startx" and then switch to a tty, the resolution has changed and my shell prompt now appears at the actual edge of the screen. Not sure why that happens, but it's nicer having a higher resolution however. |
I'm curious as to what advantage you think you get by using anything more complex than nVidia's own installer outside of X in CLI?
|
Quote:
A more common need/desire is for a higher resolution fame buffer than the default while booting (like nouveau driver provides). chris |
Along with the resolution being set correctly, the console output is very sluggish using VGA settings higher than the default, and there's alot of flicker when watching videos with mplayer for example. I would assume that behaviour would go away if you could get the same behaviour as what the nouveau driver does on the console.
|
Quote:
|
All times are GMT -5. The time now is 11:29 PM. |