Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to replace uvesafb in the kernel for console 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
FrancisGreaves
n00b
n00b


Joined: 31 Oct 2014
Posts: 61
Location: Ireland

PostPosted: Tue Jun 19, 2018 1:31 pm    Post subject: How to replace uvesafb in the kernel for console resolution Reply with quote

Now that uvesafb has gone I am trying to get my console to be a particular resolution of 2560x1440 and have a theme.
One of my old Viewsonic dual Monitors died, so I got a nice Samsung monitor with a maximum resolution of 3840x2160 which gives unbelievably small text!
I use Lilo as the boot loader
My Grahpiocs card is an AMD Radeon RX470 and I am using the amdgpu drivers in the kernel
I used to have a kernel 4.12.12 with the command of
Code:
video=uvesafb:1024x768-32,mtrr:3,ywrap splash=verbose,fadein,theme:emergence console=tty1

to set up the old monitor.
This of course does not work now.
I use xranrd to set the resolution for Openbox, which works perefectly.
If I use the vga command to set the resolution in /etc/lilo.conf that is quickly overridden as the kernel loads and uses the maximum resolution it can at 3840x2160.
I have searched the Forum, and looked here http://distro.ibiblio.org/fatdog/web/faqs/boot-options.html and here https://www.kernel.org/doc/Documentation/fb/
I have tried
Code:
video=DVI-D:2560x1440-32@59 console=tty1

on the kernel command line, but it does not set the correct resolution, and there is nothing in dmesg about it.
If I try and set the theme from the command line as in:
Code:
splash_manager -c set --theme=natural_gentoo --tty=1
Error: Theme 'natural_gentoo' doesn't seem to provide a config file for the current resolution (3840x2160).


Does anyone know how I can set the resolution, so I can then add the theme?

Regards
_________________
Perfect in every way, Modest and Misunderstood!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54208
Location: 56N 3W

PostPosted: Tue Jun 19, 2018 1:45 pm    Post subject: Reply with quote

FrancisGreaves,

Try
Code:
video=amdgpudrmfb:1024x768-32,mtrr:3,ywrap splash=verbose,fadein,theme:emergence console=tty1


amdgpudrmfb is the name of the framebuffer you want the video statement to apply to.
My dmesg says
Code:
[    2.417567] Console: switching to colour frame buffer device 480x135
[    2.450317] amdgpu 0000:01:00.0: fb0: amdgpudrmfb frame buffer device

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
FrancisGreaves
n00b
n00b


Joined: 31 Oct 2014
Posts: 61
Location: Ireland

PostPosted: Tue Jun 19, 2018 5:02 pm    Post subject: Reply with quote

Thanks for the prompt reply, NeddySeagoon.
I am not having much luck. Have tried your suggestion, and my console is still at 3840x2160
Code:
dmesg | grep frame
[    2.512524] vesafb: framebuffer at 0xe0000000, mapped to 0xffffc90000400000, using 3072k, total 49152k
[    2.528026] Console: switching to colour frame buffer device 128x48
[    2.543720] fb0: VESA VGA frame buffer device
[    4.016589] Console: switching to colour frame buffer device 480x135
[    4.341892] amdgpu 0000:01:00.0: fb0: amdgpudrmfb frame buffer device
[    9.031786] r8169 0000:03:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]

I have set vga=791 in my /etc/lilo.conf file and the video= in the append section
What can I look for now?
Thanks
_________________
Perfect in every way, Modest and Misunderstood!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54208
Location: 56N 3W

PostPosted: Tue Jun 19, 2018 5:23 pm    Post subject: Reply with quote

FrancisGreaves,

Did you mount boot and run /sbin/lilo ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
FrancisGreaves
n00b
n00b


Joined: 31 Oct 2014
Posts: 61
Location: Ireland

PostPosted: Tue Jun 19, 2018 5:39 pm    Post subject: Reply with quote

yes, I did.
_________________
Perfect in every way, Modest and Misunderstood!
Back to top
View user's profile Send private message
FrancisGreaves
n00b
n00b


Joined: 31 Oct 2014
Posts: 61
Location: Ireland

PostPosted: Tue Jun 19, 2018 5:42 pm    Post subject: Reply with quote

here is the kernel command line
Code:
cat /proc/cmdline
auto BOOT_IMAGE=4.14.8-gentoo ro root=UUID=6f5fbc46-7a5b-4354-8649-706e7728160f nodmraid domdadm real_root=UUID=6f5fbc46-7a5b-4354-8649-706e7728160f rootfstype=ext4 video=amdgpudrmfb:1024x768-32,mtrr:3,ywrap splash=verbose,fadein,theme:emergence console=tty1 crashkernel=64M nokaslr

_________________
Perfect in every way, Modest and Misunderstood!
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Tue Jun 19, 2018 8:36 pm    Post subject: Reply with quote

Compile in a larger kernel font instead?
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