LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-22-2023, 04:31 PM   #1
swapjim
Member
 
Registered: Aug 2015
Posts: 30

Rep: Reputation: Disabled
How do I set the framebuffer to 80x25?


This is my lilo.conf:

Code:
append = " "

boot = /dev/sda
compact

prompt
timeout = 10
change-rules
reset
vga = normal

image = /boot/vmlinuz
  root = /dev/sda1
  label = Slackware15
  read-only
In case it matters I'm running Slackware inside VirtualBox.

I thought that by setting vga = normal I would get a 80x25 terminal but instead I get something that's has a lot more lines and columns.

I know that I can set a larger font but I'd like to know first if there is way to change the resolution.
 
Old 10-22-2023, 08:21 PM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,374

Rep: Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752
I suggest commenting out "vga = normal" and adding "vga = ask", then booting and experimenting with the modes available on your system. Once you find a mode you like, then you can set it as the default.
Some examples:
Code:
# Normal VGA console
vga = normal
# Ask for video mode at boot (time out to normal in 30s)
# vga = ask
# VESA framebuffer console @ 1280x1024x64k
#vga=795
# VESA framebuffer console @ 1024x768x64k
#vga=791
# VESA framebuffer console @ 1024x768x32k
#vga=790
# VESA framebuffer console @ 1024x768x256
#vga=773
# VESA framebuffer console @ 800x600x64k
#vga=788
# VESA framebuffer console @ 800x600x32k
#vga=787
# VESA framebuffer console @ 800x600x256
#vga=771
# VESA framebuffer console @ 640x480x64k
#vga=785
# VESA framebuffer console @ 640x480x32k
#vga=784
# VESA framebuffer console @ 640x480x256
#vga=769
You can also add a kernel parameter to specify the screen resolution once the kernel takes control with something like:
Code:
append = " video=VGA-1:1920x1080@60"
For further details see /usr/src/linux//Documentation/fb/modedb.rst
To discover the names of outputs being used by the kernel look at the output of 'ls /sys/class/drm'.

BTW - I suggest also including " vt.default_utf8=1" in the append line.
Code:
append = " vt.default_utf8=1 video=VGA-1:1920x1080@60"
Note that the space character at the start of the quoted string is necessary.

Also I suggest adding the large-memory option in your lilo.conf
Code:
compact
large-memory

Last edited by allend; 10-22-2023 at 08:22 PM.
 
1 members found this post helpful.
Old 10-24-2023, 04:03 PM   #3
swapjim
Member
 
Registered: Aug 2015
Posts: 30

Original Poster
Rep: Reputation: Disabled
Thanks for your reply!

I played a bit with the modes using vga = ask and what I found is that I can indeed change the resolution (and I can see the pengiun logo at the top left of the screen), but as the kernel keeps scrolling lines, a few seconds later, resolution changes to something that seems to remain fixed no matter what resolution I pick. Also, tux stops appearing. Does that give any hint to what's happening?

Adding append = " video=VGA-1:1920x1080@60" didn't made a difference with this. I haven't looked at the /usr/src/linux//Documentation/fb/modedb.rst and /sys/class/drm yet, but I will in the following days.

I added large-memory and vt.default_utf8=1. Thanks for the tips!

If you have any more things I can try then please do.
 
Old 10-24-2023, 06:26 PM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,374

Rep: Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752
Quote:
but as the kernel keeps scrolling lines, a few seconds later, resolution changes to something that seems to remain fixed no matter what resolution I pick. Also, tux stops appearing. Does that give any hint to what's happening?
This is when the kernel DRM takes over.

You will need the correct graphics output name for the video= option.
Perhaps you could post the output of ‘ls /sys/class/drm’?
 
Old 10-25-2023, 01:42 PM   #5
swapjim
Member
 
Registered: Aug 2015
Posts: 30

Original Poster
Rep: Reputation: Disabled
Code:
$ ls  -l /sys/class/drm
lrwxrwxrwx 1 root root    0 Oct 25 18:31 card0 -> ../../devices/pci0000:00/0000:00:02.0/drm/card0/
lrwxrwxrwx 1 root root    0 Oct 25 18:31 card0-Virtual-1 -> ../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-Virtual-1/
lrwxrwxrwx 1 root root    0 Oct 25 18:31 card0-Virtual-2 -> ../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-Virtual-2/
lrwxrwxrwx 1 root root    0 Oct 25 18:31 card0-Virtual-3 -> ../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-Virtual-3/
lrwxrwxrwx 1 root root    0 Oct 25 18:31 card0-Virtual-4 -> ../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-Virtual-4/
lrwxrwxrwx 1 root root    0 Oct 25 18:31 card0-Virtual-5 -> ../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-Virtual-5/
lrwxrwxrwx 1 root root    0 Oct 25 18:31 card0-Virtual-6 -> ../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-Virtual-6/
lrwxrwxrwx 1 root root    0 Oct 25 18:31 card0-Virtual-7 -> ../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-Virtual-7/
lrwxrwxrwx 1 root root    0 Oct 25 18:31 card0-Virtual-8 -> ../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-Virtual-8/
lrwxrwxrwx 1 root root    0 Oct 25 18:31 renderD128 -> ../../devices/pci0000:00/0000:00:02.0/drm/renderD128/
-r--r--r-- 1 root root 4096 Oct 25 18:31 version

$ cat /sys/class/drm/card0/card0-Virtual-1/modes
800x600
1920x1440
1856x1392
1792x1344
1920x1200
1920x1080
1600x1200
1680x1050
1400x1050
1280x1024
1440x900
1280x960
1360x768
1280x800
1152x864
1280x768
1280x720
1024x768
800x600
640x480
 
Old 10-26-2023, 12:29 AM   #6
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Rep: Reputation: Disabled
use
Quote:
fbset
to get actual video mode. If you want to go beyond vga=795, probably you would need to append
GRUB_GFXMODE:

Quote:
GRUB_GFXMODE=1920x1440x24
GRUB_GFXPAYLOAD_LINUX=keep
if would not work, your setup may be limited to
Quote:
vga=795
 
Old 10-26-2023, 08:17 AM   #7
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,374

Rep: Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752
Thanks for the listing.
It shows multiple graphic output names, Virtual-1 to Virtual-8.
I suggest trying an append line with VGA-1 replaced with Virtual-1.

PS - The OP appears to be using LILO. GRUB parameters are not relevant.

Last edited by allend; 10-26-2023 at 08:20 AM.
 
Old 10-26-2023, 08:44 AM   #8
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Rep: Reputation: Disabled
Quote:
Originally Posted by allend View Post
Thanks for the listing.
It shows multiple graphic output names, Virtual-1 to Virtual-8.
I suggest trying an append line with VGA-1 replaced with Virtual-1.

PS - The OP appears to be using LILO. GRUB parameters are not relevant.
I am sorry for my mistake. Unfortunately, this may be argument for grub and against lilo/elilo. Unless your suggestion will work of course.
 
Old 10-26-2023, 09:03 AM   #9
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,374

Rep: Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752Reputation: 2752
The OP is booting Slackware in VirtualBox.
There is no need to emulate a UEFI system. LILO is sufficient, saving disk space and complexity.
 
Old 10-27-2023, 11:50 PM   #10
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,456
Blog Entries: 7

Rep: Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560
I tested this today. It only works if you disable EFI booting, and use LILO to boot from the MBR.

All you need to do is append "nomodeset" to your kernel command line. In your /etc/lilo.conf file, you'd do it like so:
Code:
append = " "

boot = /dev/sda
compact

prompt
timeout = 10
change-rules
reset
vga = normal

image = /boot/vmlinuz
  root = /dev/sda1
  label = Slackware15
  append = "nomodeset"
  read-only
Leave the quote marks there, exactly like that. Run lilo after editing the file and reboot. It should start in 80x25 text mode.
 
Old 10-29-2023, 05:12 PM   #11
swapjim
Member
 
Registered: Aug 2015
Posts: 30

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rkelsen View Post
Code:
append = " "

boot = /dev/sda
compact

prompt
timeout = 10
change-rules
reset
vga = normal

image = /boot/vmlinuz
  root = /dev/sda1
  label = Slackware15
  append = "nomodeset"
  read-only
Hey, that did the trick! Thanks a lot!

I have a follow up question. Apparently I have configured things with MBR, which I didn't remember. Is this configured during installation? Or in the BIOS settings of VirtualBox? Where can I learn more about this?
 
Old 10-29-2023, 05:44 PM   #12
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,456
Blog Entries: 7

Rep: Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560
Quote:
Originally Posted by swapjim View Post
Apparently I have configured things with MBR, which I didn't remember. Is this configured during installation? Or in the BIOS settings of VirtualBox? Where can I learn more about this?
It's the default setting in VirtualBox, and I think (but I may be wrong) that it's because work on virtualising EFI booting is not quite complete. At this stage you can use it and it should work. A VM is the ideal place to learn how EFI booting works.

Beware that 80x25 text mode will not work if you switch to EFI booting. This is because UEFI doesn't support text or VGA modes.
 
2 members found this post helpful.
Old 10-31-2023, 05:47 PM   #13
swapjim
Member
 
Registered: Aug 2015
Posts: 30

Original Poster
Rep: Reputation: Disabled
Thank you and thanks everyone who posted!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I force 2.6.14 kernel to use 80x25 textmode in console? rylan76 Linux - Newbie 3 11-26-2005 03:24 PM
How-To Set Terminal to 80x25? longtex SUSE / openSUSE 4 10-01-2005 01:03 PM
80x25 256 color? coldsalmon Linux - General 2 03-24-2005 02:56 PM
80x25 and Greater... SpEcIeS Debian 4 02-07-2005 11:10 AM
text runs off-screen in 80x25 resolution pafrica Linux - Newbie 0 12-25-2004 01:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration