LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-31-2020, 05:04 AM   #1
LEXUSRS
LQ Newbie
 
Registered: Jan 2020
Posts: 4

Rep: Reputation: Disabled
set number of lines in framebuffer console


Hi all,
i have some problems in understanding framebuffer conlose settings...
i created some kernel with kernel mode setting (DRM and framebuffer console support) and add video=640x480 option on boot...
when drm deactivaling vga console(80x25) and load framebuffer device driver, console switching to colour frame buffer device 80x30
how can i set 25 lines, instead of 30
no X-server used, so xrandr and resize don't work
stty set 25 lines, but it just cut 5 lines from bottom of the screen
how can i get 25 lines in console on actual screen size?
ps. sorry for bad english
 
Old 01-31-2020, 05:26 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Changing font size is the lazy way.

Terminus fonts go up to 32pt, although that may not work well on all systems. That gives 32 lines, and you should settle for that.

OTOH, setting a font like cp850-8x8 gives zillions of lines.
 
Old 01-31-2020, 05:51 AM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Welcome to LQ!
Have you tried using 'fbset'?
 
Old 01-31-2020, 06:11 AM   #4
LEXUSRS
LQ Newbie
 
Registered: Jan 2020
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
Changing font size is the lazy way.
font size aslo change visible number of columns, so it isn't my way

Quote:
Originally Posted by allend View Post
Welcome to LQ!
Have you tried using 'fbset'?
thx, fbset is not affected when kernel param "video=" is set
if this param isn't set kernel loading in my monitor recommended resolution (read edid), and then fbset resize console window to any mode (800x600,1024x178,1600x1200 and etc.), but he cut window size to that param, resolution is not changing...
 
Old 01-31-2020, 07:13 AM   #5
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
It might help to know some more about your system. Please post the output of 'fbset -i' and 'ls /sys/class/drm'.
 
Old 01-31-2020, 09:14 AM   #6
LEXUSRS
LQ Newbie
 
Registered: Jan 2020
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by allend View Post
It might help to know some more about your system. Please post the output of 'fbset -i' and 'ls /sys/class/drm'.
it's a pxe-boot system, on 5.5 kernel and root-dir based on centos5

dbset output:
Code:
mode "640x480"
    geometry 640 480 640 480 32
    timings 0 0 0 0 0 0 0
    accel true
    rgba 8/16,8/8,8/0,0/0
endmode

Frame buffer device information:
    Name        : i915drmfb
    Address     : (nil)
    Size        : 1228800
    Type        : PACKED PIXELS
    Visual      : TRUECOLOR
    XPanStep    : 1
    YPanStep    : 1
    YWrapStep   : 0
    LineLength  : 2560
    Accelerator : No
"sys" dir is empty, kernel build w\o sysfs support
 
Old 01-31-2020, 09:59 AM   #7
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
Quote:
Name : i915drmfb
Intel graphics.
The output of 'ls /sys/class/drm' would given the names of the graphic outputs on your system.

I am writing from a laptop that I usually use with an external 1920x1080 monitor. I use a kernel append 'video=LVDS-1:d video=VGA-1:1920x1080@60e" ' on this machine (also with Intel graphics) that disables the laptop internal screen (LVDS-1) and enables the external monitor (VGA-1) at boot. The details for that append can be found in modedb.rst in the kerenl documentation.
 
Old 02-03-2020, 12:27 AM   #8
LEXUSRS
LQ Newbie
 
Registered: Jan 2020
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by allend View Post
Intel graphics.
The output of 'ls /sys/class/drm' would given the names of the graphic outputs on your system.

I am writing from a laptop that I usually use with an external 1920x1080 monitor. I use a kernel append 'video=LVDS-1:d video=VGA-1:1920x1080@60e" ' on this machine (also with Intel graphics) that disables the laptop internal screen (LVDS-1) and enables the external monitor (VGA-1) at boot. The details for that append can be found in modedb.rst in the kerenl documentation.
rebuild kernel with sysfs support
Code:
ls /sys/class/drm
card0  card0-DP-1  card0-HDMI-A-1  card0-VGA-1  renderD128  ttm  version
kernel boot parm is "video=card0-VGA-1:640x480", all documentation about modedb, framebuffer and other i read many times...
any my attempt to set LINES=25 is not affected to framebuffer console...
 
Old 02-03-2020, 01:01 PM   #9
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by LEXUSRS View Post
kernel boot parm is "video=card0-VGA-1:640x480",
As 480 / 25 is 19, you would need a 9x19 (pixels) font in the framebuffer.
The standard VGA mode for the console uses a 9x16 one, and thus is the "30 lines" mode of the console in this resolution
I believe a real VGA adaptor used 640x400 for its text mode, 640x480 was only used in graphical ones.
 
Old 02-03-2020, 01:42 PM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
if I remember well: the resolution is given, so you can only play with the [size of the] font. You can only use the full screen, I have never heard about virtual display/desktop or similar when you use a simple console.
Return back to the original question: you need pick a valid resolution and find an appropriate font...
 
Old 02-03-2020, 02:24 PM   #11
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
@pan64: I gave the OP that back in post #2, Terminus 32pt font giving 27 lines but he didn't want it
 
  


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
[SOLVED] [BASH/SHELL] grep/extract/display lines under specific strings (irregular number of lines) czezz Programming 11 01-10-2020 02:54 AM
Grub2/console-setup commands for console mode 132 x 43 without framebuffer LQ123 Debian 0 10-22-2013 09:44 AM
[SOLVED] bash: sort lines in 2 files so that equal lines are at the same line number... masavini Programming 10 06-21-2012 01:58 PM
framebuffer confusion with Hauppauge PVR 350 framebuffer /dev/fb0 tofino_surfer Linux - General 4 09-18-2008 11:36 PM
VESA framebuffer vs Intel framebuffer in Slackware 10.0 with default kernel brancalessio Slackware 3 01-20-2005 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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