Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
font size aslo change visible number of columns, so it isn't my way
Quote:
Originally Posted by allend
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...
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.
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...
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.
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.