Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
efifb - set resolution
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
Marcih
Tux's lil' helper
Tux's lil' helper


Joined: 19 Feb 2018
Posts: 147

PostPosted: Sun Mar 31, 2019 11:04 am    Post subject: efifb - set resolution Reply with quote

On my UEFI machine, I've switched from booting using GRUB2 to EFI stub kernel. Everything went swimmingly except for the console resolution. I'm using the proprietary nvidia-drivers, which don't set the console resolution automagically like nouveau does. When using GRUB2, I've worked around this using the GRUB config file.
In "/etc/default/grub":
Code:
# The resolution used on graphical terminal.
# Note that you can use only modes which your graphic card supports via VBE.
# You can see them in real GRUB with the command `vbeinfo'.
GRUB_GFXMODE=1920x1080x32,640x480x32,auto

If I understood correctly, this set the efifb resolution. Is there a way to achieve this without GRUB?
My current attempt:
Code:
$ dmesg | grep efifb
[    0.000000] Kernel command line: root=PARTUUID=[REDACTED] video=efifb:1920x1080x32
[    0.199859] efifb: probing for efifb
[    0.199867] efifb: framebuffer at 0xe0000000, mapped to 0xffffc90000400000, using 3072k, total 3072k
[    0.199871] efifb: mode is 1024x768x32, linelength=4096, pages=1
[    0.199944] efifb: scrolling: redraw
[    0.199947] efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0

_________________
Bones McCracker wrote:
It wouldn't be so bad, if it didn't suck.

===
I refuse to move on from GTK+2.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5302

PostPosted: Sun Mar 31, 2019 5:03 pm    Post subject: Re: efifb - set resolution Reply with quote

Marcih wrote:
On my UEFI machine, I've switched from booting using GRUB2 to EFI stub kernel. Everything went swimmingly except for the console resolution. I'm using the proprietary nvidia-drivers, which don't set the console resolution automagically like nouveau does. When using GRUB2, I've worked around this using the GRUB config file.
In "/etc/default/grub":
Code:
# The resolution used on graphical terminal.
# Note that you can use only modes which your graphic card supports via VBE.
# You can see them in real GRUB with the command `vbeinfo'.
GRUB_GFXMODE=1920x1080x32,640x480x32,auto

If I understood correctly, this set the efifb resolution. Is there a way to achieve this without GRUB?
My current attempt:
Code:
$ dmesg | grep efifb
[    0.000000] Kernel command line: root=PARTUUID=[REDACTED] video=efifb:1920x1080x32
[    0.199859] efifb: probing for efifb
[    0.199867] efifb: framebuffer at 0xe0000000, mapped to 0xffffc90000400000, using 3072k, total 3072k
[    0.199871] efifb: mode is 1024x768x32, linelength=4096, pages=1
[    0.199944] efifb: scrolling: redraw
[    0.199947] efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0

create an efi app that sets the proper mode you want and boot the kernel afterwards and use efibootmgr to set it as the first boot entry
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
bammbamm808
Guru
Guru


Joined: 08 Dec 2002
Posts: 485
Location: Hawaii

PostPosted: Sun Mar 31, 2019 10:33 pm    Post subject: Reply with quote

Or use the boot manager rEFInd which allows you set the efifb resolution via configuration file. I use it to select efi stub kernels or Windows.
_________________
Asrock X470 Taichi
Ryzen 2700x
32Gb Samsung B-die (16GB dual rank x2) DDR4
Geforce GTX 1060 6GB
Samsung Evo 840 500Gb +Seagate 1TB HDD
Etc....
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