LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-12-2010, 10:45 AM   #1
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,135

Rep: Reputation: 45
How do you do "mode con lines=50" in linux?


MSDOS allows you to display 50 lines of text on the screen by typing "mode con lines=50".

How do you do the same in text-only linux?
 
Old 02-12-2010, 11:43 AM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by Ulysses_ View Post
How do you do the same in text-only linux?
Add a "vga=" parameter to your kernel command line in "/boot/grub/menu.lst".
 
Old 02-17-2010, 02:38 PM   #3
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,135

Original Poster
Rep: Reputation: 45
I am having trouble with this. Tried the following at the beginning of /boot/grub/menu.lst and nothing happened:

1. vga=ask
2. vga=EXTENDED_VGA

Also tried these at the command line after login:

3. vidmode -v /dev/hda1 -3
4. vidmode -v /dev/hda1 -2

I am trying these on a computer where the processor is an AMD64 one (AMD Turion 64 mobile at 1.6 GHz). Could this be the problem? I wonder this because the 2nd link you gave says:

"Due to usage of the BIOS, the selection is limited to boot time (before the kernel decompression starts) and _works only on 80X86 machines_."
 
Old 02-17-2010, 04:14 PM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,190

Rep: Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037Reputation: 1037
While booting in Grub, press 'e' to edit the current parameters being used to start up.

Now I am not quite sure as what happens next, as I hardly ever boot my machines...

Press 'c' to get a command line. Enter "help". You'll see a command VBEPROBE. Enter it. You'll get a list of resolutions. Pick one. Add 0x200 to the number. Convert to decimal. Reboot.

While booting in Grub, press 'e' again, and add "vga=decimal_number" to the parameters. decimal_number is what you just found. I use vga=791

My mode is 0x117
0x117 + 0x200 = 0x317 = 791d

jlinkels
 
1 members found this post helpful.
Old 02-17-2010, 04:25 PM   #5
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by Ulysses_ View Post
I am having trouble with this.
Try one of the values in the table in section "5.3 What VESA modes are available to me?" of chapter 5 of the Framebuffer HOWTO. Convert the values to decimal and start with something like "vga=791".

I should have included a link to a table like this in my original reply.
 
Old 02-18-2010, 03:23 PM   #6
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,135

Original Poster
Rep: Reputation: 45
VBEPROBE gives me a list that includes 0x117 ie 0x317 ie 791 in decimal. But adding a line "vga=791" during boot-up using "e" or adding it manually at the beginning of /boot/grub/menu.lst seems to make no difference.

Is there any log file that would say something about the vga=791 line?
 
Old 02-18-2010, 05:36 PM   #7
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by Ulysses_ View Post
But adding a line "vga=791" during boot-up using "e" or adding it manually at the beginning of /boot/grub/menu.lst seems to make no difference.
You are supposed to add "vga=791" to the line that starts with "kernel". You can safely add it to the end of the line without disturbing any existing parameters.

I guess I should mention that "vga=ask" should have been added to the "kernel" line.

Last edited by David1357; 02-18-2010 at 05:37 PM. Reason: Added note about "vga=ask"
 
1 members found this post helpful.
Old 02-19-2010, 10:04 AM   #8
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,135

Original Poster
Rep: Reputation: 45
Thumbs up

Quote:
Originally Posted by David1357 View Post
You are supposed to add "vga=791" to the line that starts with "kernel".
It works now. Thank you.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I "cat" or "grep" a file to ignore lines starting with "#" ??? callagga Linux - Newbie 7 08-16-2013 06:58 AM
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 04:40 AM
bash - how to remove lines from "FILE_A" which presents in "FILE_B" ? Vilmerok Programming 4 03-13-2009 04:27 AM
Why my wireless card "atheros" run only as an acces point in "Master" mode. jardiamj Linux - Wireless Networking 3 11-11-2007 12:12 AM
Lost DHCP Lease when putting computer in "Standby" mode for a "long" time pnellesen Linux - Networking 1 01-06-2005 11:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration