LinuxQuestions.org
Review your favorite Linux distribution.
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 11-03-2021, 10:31 AM   #1
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Rep: Reputation: 129Reputation: 129
trying to decrease resolution of tty terminal


On a Lenovo T480s laptop (intel graphics) and slackware64-current
the fonts are way too tiny on the tty terminals.

I've been trying to decrease the resolution in the console
with this boot option
Code:
vga=791 video=vesafb:ywrap.mtrr:3
But this had no effect.

In the file /etc/X11/xorg.conf-vesa
I tried to set the DefaultDepth to 16, instead of 24
Code:
...
    Device      "VESA Framebuffer"
...
   DefaultDepth 16
#   DefaultDepth 24
This didn't work either.
 
Old 11-03-2021, 10:54 AM   #2
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
I think you can do this by setting your resolution in /etc/default/grub and another parameter where grub tells linux to keep it... so if no better advice is posted, search for grub tutorials or start playing with that config file...
 
Old 11-03-2021, 11:05 AM   #3
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Original Poster
Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by enigma9o7 View Post
I think you can do this by setting your resolution in /etc/default/grub and another parameter where grub tells linux to keep it... so if no better advice is posted, search for grub tutorials or start playing with that config file...
I am not using grub.
I boot with refind installed in a dedicated partition.
 
Old 11-03-2021, 11:33 AM   #4
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,695

Rep: Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380
You could trying keeping the resolution but enlarging your font size. Try adding this to your kernel boot line...

Code:
fbcon=font:TER16x32
Here is some kernel documentation about it.

Code:
1. fbcon=font:<name>

        Select the initial font to use. The value 'name' can be any of the
        compiled-in fonts: 10x18, 6x10, 7x14, Acorn8x8, MINI4x6,
        PEARL8x8, ProFont6x11, SUN12x22, SUN8x16, TER16x32, VGA8x16, VGA8x8.

	Note, not all drivers can handle font with widths not divisible by 8,
        such as vga16fb.
 
Old 11-03-2021, 11:52 AM   #5
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware
Posts: 259

Rep: Reputation: 33
i had the very same issue with the 4K screen on a Dell laptop. you may manually change the font for the time being till you found the right boot parameters. see here my previous post about another post in the same matter :

https://www.linuxquestions.org/quest...8/#post6279828
 
Old 11-03-2021, 12:50 PM   #6
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,531

Rep: Reputation: 8509Reputation: 8509Reputation: 8509Reputation: 8509Reputation: 8509Reputation: 8509Reputation: 8509Reputation: 8509Reputation: 8509Reputation: 8509Reputation: 8509
On my 4K screen I boot with this kernel parameter:

Quote:
video=1920x1080@60
And load this font in /etc/rc.d/rc.font:

Quote:
setfont -v ter-v22b.psf.gz
 
3 members found this post helpful.
Old 11-03-2021, 01:05 PM   #7
pisti
Member
 
Registered: Jul 2006
Location: Montréal, Canada
Distribution: Slackware
Posts: 259

Rep: Reputation: 33
aha - most helpful - thank you, vielen Dank, Patrick !
 
Old 11-03-2021, 01:48 PM   #8
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Original Poster
Rep: Reputation: 129Reputation: 129
As suggested by P.V. I tried this
in my boot option I added
Code:
video=1368x768@60
(The the resolution I set in xfce is: 1368x768@59.9)
and my /etc/rc.d/rc.font contains these lines
Code:
#setfont -v ter-v18b.psf.gz
setfont -v ter-v20b.psf.gz
#setfont -v ter-v22b.psf.gz
Now the font, still small, is legible. But I can't see the bottom of the screen.
So I logged in in the dark. Then I Ctrl-L to clear the screen.
The tty2 is ok. I can log in (as an ordinary user). I opened a graphic session.
But when I logged out of xfce, I got the same problem as in tty1.
However this time I could clear the screen and see what I was typing.

Thank you all for your input.

I'll try to play with other resolutions (I tried a greater one, that didn't
solve the problem). So I won't mark this as solved yet.
 
Old 11-04-2021, 03:27 AM   #9
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Original Poster
Rep: Reputation: 129Reputation: 129
Tried another config
Relevant excerpts from dmesg:
Code:
Kernel command line: video=1440x810@120 root=/dev/nvme0n1p4 ro
...
efifb: mode is 1920x1080x32, linelength=7680, pages=1
...
fb0: switching to inteldrmfb from EFI VGA
...
Console: switching to colour frame buffer device 240x67
I changed the fontsize in /etc/rc.font from 22 to 18
I still have the same problem. The previous dmesg differs from this one
only in the line 'Kernel command line:'
I have two more resolutions to try: 1600x900@120 and 1920x1080@60
 
Old 11-04-2021, 07:08 AM   #10
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
Quote:
I boot with refind installed in a dedicated partition.
Quote:
efifb: mode is 1920x1080x32, linelength=7680, pages=1
Looking at your other thread, rather than pass a video= kernel parameter, does it help if you specify the resolution in refind.conf?

The Arch wiki has a suggestion for checking framebuffer resolutions.
 
Old 11-04-2021, 07:47 AM   #11
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Original Poster
Rep: Reputation: 129Reputation: 129
I am going to mark this as solved.
Now I can see the entire screen and the reading is comfortable.

This time I picked the highest resolution available (which was the default
when I first launched startx). I increased the console font size.
So in my kernel boot option now I have
Code:
video=1920x1080@
And
Code:
# grep -v '#' /etc/rc.d/rc.font
setfont -v ter-v24b.psf.gz
Since this video mode is the default, I'm wondering if
the video option is necessary. Changing the font size should be enough.
That's going to be my next test.

Quote:
Originally Posted by allend View Post
rather than pass a video= kernel parameter, does it help if you specify the resolution in refind.conf?
No, from what I understand this sets the EFI framebuffer but as soon as
the kernel kicks in it switches to another framebuffer.
 
Old 11-04-2021, 07:54 AM   #12
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
Quote:
No, from what I understand this sets the EFI framebuffer but as soon as
the kernel kicks in it switches to another framebuffer.
Thought that would be the case after posting. Thanks for confirming.
 
Old 11-04-2021, 07:58 AM   #13
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Original Poster
Rep: Reputation: 129Reputation: 129
Yup, I guessed right.
No need to enter the video option.
Just the selection of another font fixes the problem.

Again I'd like to thank all of those who answered my
request, and especially Patrick for pointing me in the right direction.
 
Old 11-04-2021, 08:04 AM   #14
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,065

Rep: Reputation: Disabled
Use fbterm. You will get a font as wide as you want.

I used it in the installer of Slint64-14.1 when possible (checked using checkfb from Sébastien Ballet aka phenixia2003, shipped alongside the SlackBuild), computing the font size to be the biggest that provide at least 27 rows and 88 columns so that the whole dialog boxes be displayed.
 
Old 11-04-2021, 08:42 AM   #15
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Original Poster
Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by Didier Spaier View Post
Use fbterm. You will get a font as wide as you want.

I used it in the installer of Slint64-14.1 when possible (checked using checkfb from Sébastien Ballet aka phenixia2003, shipped alongside the SlackBuild), computing the font size to be the biggest that provide at least 27 rows and 88 columns so that the whole dialog boxes be displayed.
Thanks for the info. I'll check it out.
Right now the font is big enough, I could still increase the size
as my current rc.font shows
Code:
...
#setfont -v ter-v18b.psf.gz
#setfont -v ter-v20b.psf.gz
#setfont -v ter-v22b.psf.gz
setfont -v ter-v24b.psf.gz
#setfont -v ter-v28b.psf.gz
#setfont -v ter-v32b.psf.gz
I take it, this is the bold version as there are
also these fonts present: ter-v18n.psf.gz ...
Still, it's a bit thin and I wonder how the 'normal' version
would look like.
 
  


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
Can I decrease high res display resolution at grub/ login screen jj1 Linux - Newbie 7 11-15-2018 04:06 AM
[SOLVED] how to redirect a terminal/tty out put to other terminal/tty golden_boy615 Linux - General 4 12-18-2010 01:59 AM
Trying to decrease the amount of PCs on home LAN victorbrca Linux - Security 4 08-20-2008 11:42 AM
I it possible to kill a tty or find which tty is being using by which process? geletine Linux - Software 2 01-15-2006 08:40 AM
change tty => system crashes (ati driver/tty resolution) mosca Debian 6 08-05-2004 07:37 AM

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

All times are GMT -5. The time now is 05:09 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