View previous topic :: View next topic |
Author |
Message |
FrancisGreaves n00b
Joined: 31 Oct 2014 Posts: 61 Location: Ireland
|
Posted: Tue Jun 19, 2018 1:31 pm Post subject: How to replace uvesafb in the kernel for console resolution |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54208 Location: 56N 3W
|
Posted: Tue Jun 19, 2018 1:45 pm Post subject: |
|
|
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 |
|
|
FrancisGreaves n00b
Joined: 31 Oct 2014 Posts: 61 Location: Ireland
|
Posted: Tue Jun 19, 2018 5:02 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54208 Location: 56N 3W
|
Posted: Tue Jun 19, 2018 5:23 pm Post subject: |
|
|
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 |
|
|
FrancisGreaves n00b
Joined: 31 Oct 2014 Posts: 61 Location: Ireland
|
Posted: Tue Jun 19, 2018 5:39 pm Post subject: |
|
|
yes, I did. _________________ Perfect in every way, Modest and Misunderstood! |
|
Back to top |
|
|
FrancisGreaves n00b
Joined: 31 Oct 2014 Posts: 61 Location: Ireland
|
Posted: Tue Jun 19, 2018 5:42 pm Post subject: |
|
|
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 |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Tue Jun 19, 2018 8:36 pm Post subject: |
|
|
Compile in a larger kernel font instead? |
|
Back to top |
|
|
|