Re: text-mode : console : resolution : vga 80x25 : how to set?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Oct 06, 2017 at 05:45:07PM +0530, Mayuresh Kathe wrote: > On 2017-10-06 05:30 PM, Darac Marjal wrote: > >On Fri, Oct 06, 2017 at 03:00:50PM +0530, Mayuresh Kathe wrote: > >>i tried my level best to do it, but have failed. > >>i used 'dpkg-reconfigure console-setup' and followed the > >>appropriate steps, but yet my console's screen resolution > >>is way to high. not that it's a big problem, just an > >>irritant, the text is usually too tiring to read. > >> > >>can i be helped? > > > >Yes. Presumably your system is using "kernel mode setting", wherein > >the kernel is able to set the resolution of the screen. This results, > >as you note, in a high-resolution console. > > would there be any simple way (instead of recompiling the kernel) to > disable that kernel mode setting for the resolution? This should be possible from the Linux kernel "command line", which you can append in the boot loader line. Try appending "nomodeset" to the boot line in grub (go into grub menu, press "e" on the entry you are going to boot, go one down for the kernel line, press "e" again to edit, append the "nomodeset", with space separator. Then ENTER to close the edit and "b" to boot). Depending on your video module you have to append other incantations, see e.g. [1]. Once you know it is working you can add it to the grub config to make it permanent. Cheers [1] https://wiki.archlinux.org/index.php/Kernel_mode_setting#Disabling_modesetting - -- t -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlnXdswACgkQBcgs9XrR2kZbiQCfWZtMOuLuvoemJ9V8yvHk1wpK QJAAn2lCrx1KPfqQ8vuzNkhdxKokWxsY =LvW8 -END PGP SIGNATURE-
Re: text-mode : console : resolution : vga 80x25 : how to set?
Mayuresh Kathe composed on 2017-10-06 15:00 (UTC+0530): > i tried my level best to do it, but have failed. > i used 'dpkg-reconfigure console-setup' and followed the > appropriate steps, but yet my console's screen resolution > is way to high. not that it's a big problem, just an > irritant, the text is usually too tiring to read. > can i be helped? A rather simpler method than Darac suggested is to make the vttys use a lower density mode, accepting the default size 16 font. Include the mode you want on the kernel cmdline, either directly in the kernel: e.g. video=1280x800@60 or vga=normal, or indirectly using native Grub2 commands, according to the man page using /etc/default/grub's GRUB_GFXMODE_LINUX= and/or GRUB_GFXMODE=. If Plymouth is installed, purging it might also be of use. -- "Wisdom is supreme; therefore get wisdom. Whatever else you get, get wisdom." Proverbs 4:7 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/
Re: text-mode : console : resolution : vga 80x25 : how to set?
On 2017-10-06 05:30 PM, Darac Marjal wrote: On Fri, Oct 06, 2017 at 03:00:50PM +0530, Mayuresh Kathe wrote: i tried my level best to do it, but have failed. i used 'dpkg-reconfigure console-setup' and followed the appropriate steps, but yet my console's screen resolution is way to high. not that it's a big problem, just an irritant, the text is usually too tiring to read. can i be helped? Yes. Presumably your system is using "kernel mode setting", wherein the kernel is able to set the resolution of the screen. This results, as you note, in a high-resolution console. would there be any simple way (instead of recompiling the kernel) to disable that kernel mode setting for the resolution? thanks, ~mayuresh
Re: text-mode : console : resolution : vga 80x25 : how to set?
On Fri, Oct 06, 2017 at 03:00:50PM +0530, Mayuresh Kathe wrote: i tried my level best to do it, but have failed. i used 'dpkg-reconfigure console-setup' and followed the appropriate steps, but yet my console's screen resolution is way to high. not that it's a big problem, just an irritant, the text is usually too tiring to read. can i be helped? Yes. Presumably your system is using "kernel mode setting", wherein the kernel is able to set the resolution of the screen. This results, as you note, in a high-resolution console. You want to display 25 rows of 80 columns in your console, however, console-setup doesn't allow you to set that directly. Instead, you need to choose a font size. I *think* that the sizes here are listed in terms of pixels. So, you need to find an appropriate size. Let's assume that you have a WUXGA screen (1920x1080). Starting with the vertical resolution, you have 1080 pixels and you want to fit 25 rows of pixels in there. That's 1080/25=43.2 pixels. Let's round that down to 40. Horizontally, you have 1920 pixels and want to fit 80 characters there. That's 1920/80=24. So you're looking for a font that's 24x40 pixels. Next up, you'll notice that console-setup doesn't offer fonts that go that large, so you'll have to make your own. Start with an OpenType font of your choice and install the 'otf2bdf' and 'bdf2psf' packages. Finally, this page[1] suggests the following incantations (24 point font at 120 dpi should result in a font 40 dots high): otf2bdf -r 120 -p 24 -c C /path/to/OpenType.otf | sed -e \ "s/AVERAGE_WIDTH.*/AVERAGE_WIDTH 80/" > NewFont.bdf bdf2psf NewFont.bdf /usr/share/bdf2psf/standard.equivalents \ /usr/share/bdf2psf/required.set+/usr/share/bdf2psf/useful.set 256 \ NewFont.psf Finally, gzip this to, say /usr/share/consolefonts/Lat15-NewFont-24x40.psf.gz and you should be able to select it with debconf (If not, you may have to manually play with the 'setfont' command) [1] https://unix.stackexchange.com/questions/161890/how-can-i-make-a-psf-font-for-the-console-from-a-otf-one thanks, ~mayuresh -- For more information, please reread. signature.asc Description: PGP signature
text-mode : console : resolution : vga 80x25 : how to set?
i tried my level best to do it, but have failed. i used 'dpkg-reconfigure console-setup' and followed the appropriate steps, but yet my console's screen resolution is way to high. not that it's a big problem, just an irritant, the text is usually too tiring to read. can i be helped? thanks, ~mayuresh