LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-09-2024, 03:30 AM   #1
usr345
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 209
Blog Entries: 1

Rep: Reputation: Disabled
How to increase number of rows in tty


I have a laptop with Slackware 14.2 installed. The laptop screen is a rectangle recently I have attached a better monitor to the laptop and is using it now. The new monitor is bigger and has a shape of a square.

Unfortunately, when I launch the terminal (Ctrl-F2), the number of rows stays the same as it was for the old monitor, which leads to the loss of horizontals space in vim.

I tried:

Code:
# tput lines
46
# tput cols
126

# stty rows 60
stty: 'standard input': Invalid argument
The lilo.conf:

Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:
append=" vt.default_utf8=1"
default=Linux
boot = /dev/sda
lba32

#compact        # faster, but won't work on all systems.

# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
  bitmap = /boot/slack.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
  bmp-colors = 255,0,255,0,255,0
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used.  We don't specify it here, as there's just one column.
  bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
  bmp-timer = 65,27,0,255

# Standard menu.
# Or, you can comment out the bitmap menu above and 
# use a boot message with the standard menu:
#message = /boot/boot_message.txt

# Wait until the timeout to boot (if commented out, boot the
# first entry immediately):
prompt
# Timeout before the first entry boots.
# This is given in tenths of a second, so 600 for every minute:
timeout = 30
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
# Normal VGA console
vga = normal
# Ask for video mode at boot (time out to normal in 30s)
#vga = ask
# 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
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
  initrd = /boot/initrd.gz
  root = /dev/sda3
  label = Linux 
  vga=normal
  read-only

image = /boot/vmlinuz-huge-smp
  root = /dev/sda3
  label = Linux_huge
  read-only

other=/dev/sda2
    label=Windows
# Linux bootable partition config ends
What should I do to increase the number of rows for the terminal emulator, so it fit the bigger monitor?
 
Old 06-09-2024, 09:35 AM   #2
v8dave
LQ Newbie
 
Registered: Dec 2004
Location: UK, London
Distribution: Slackware-14.1 and Slackware64-14.2rc1
Posts: 26

Rep: Reputation: 2
You have vga=normal which I believe will be forcing the console to 80x25 characters.
 
Old 06-09-2024, 10:05 AM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,388

Rep: Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764
My suggestions for your /etc/lilo.conf are to delete the line in red and add the lines in blue that will add support for a monitor capable of 1280x1024 resolution.
The video port names LVDS-1 and VGA-1 suit my system. You can check what is in use on your system by looking at the output of 'ls /sys/class/drm'.
I also suggest uncommenting the line in green.

Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:
append=" vt.default_utf8=1"
default=Linux
boot = /dev/sda
lba32

#compact        # faster, but won't work on all systems.

# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
  bitmap = /boot/slack.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
  bmp-colors = 255,0,255,0,255,0
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used.  We don't specify it here, as there's just one column.
  bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
  bmp-timer = 65,27,0,255

# Standard menu.
# Or, you can comment out the bitmap menu above and 
# use a boot message with the standard menu:
#message = /boot/boot_message.txt

# Wait until the timeout to boot (if commented out, boot the
# first entry immediately):
prompt
# Timeout before the first entry boots.
# This is given in tenths of a second, so 600 for every minute:
timeout = 30
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
# Normal VGA console
vga = normal
# Ask for video mode at boot (time out to normal in 30s)
#vga = ask
# 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
## VESA framebuffer console @ 1280x1024x64k
#vga=0x31B
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
  initrd = /boot/initrd.gz
  append = " vt.default_utf8=1 video=LVDS-1:d video=VGA-1:1920x1080@60e"
  vga=0x31B 
  #root = /dev/sda3 ## Not required as specified in initrd
  label = Linux 
  vga=normal
  read-only

image = /boot/vmlinuz-huge-smp
  append=" vt.default_utf8=1"
  root = /dev/sda3
  label = Linux_huge
  read-only

other=/dev/sda2
    label=Windows
# Linux bootable partition config ends

Last edited by allend; 06-09-2024 at 10:21 AM.
 
Old Yesterday, 06:41 PM   #4
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,078

Rep: Reputation: 153Reputation: 153
I'm pretty sure there's no such thing as a square (1:1) monitor except on experimental/historical systems just used at schools and corporations, maybe in the early days of television. Don't confuse a fullscreen (4:3) monitor with a square because it's another rectangle.
        You can use 'vga=ask' and find a resolution that works.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 to increase number of TTY (SystemD)? patrick295767 Linux - General 3 09-21-2017 07:12 AM
The maximum number of characters and rows in a database? puppymagic Linux - Newbie 1 04-18-2010 10:14 PM
Compare two fields on consecutive rows and print the two rows aditi_borkar Linux - Newbie 3 04-09-2009 05:49 AM
adding constant (number) to a number in all rows skuz_ball Programming 2 05-20-2008 09:57 PM
data with same number of rows and coloumns C/C++ fs11 Programming 2 04-29-2008 10:17 PM

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

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