LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 04-08-2006, 12:17 AM   #1
hsimah
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Slackware 12.1
Posts: 173

Rep: Reputation: 30
Console Resolution: VGA Values


This has been bugging me for ages, since I started using Linux in fact.

VGA Values to get the console resolution. I use Lilo, but I have used GRUB too. Anyway, you put vga = *** to call a resolution at boot.

Is there a list anywhere where you can see what number correlates to what resolution? In the Slackware install of lilo.conf it gives you a few values for 1024x786 and 800x600 etc. I run my console on my desktop at 1280x1024, which is vga = 794. I got that by counting up from 773.

Now I have a widescreen laptop and I want to run the console (and X) at 1366x786. Google has given me the magic number 872 for 1280x800, which is the "next step" from what I wanted. So I counted down and tried 868 and then 870. My console now uses the entire laptop screen (yay).

Thing is I don't know how to find the current resolution to see if it is right. Is there a command to return the current screen resolution? The manual pages say something about vga_something commands but they are for use in programming (as far as I can tell).

I am keeping all the resolutions I have tried written down so I can keep a list, just in case it might help someone else with this problem.
 
Old 04-08-2006, 02:36 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Well, I'm not sure if you mean for console or X, but for X, from a term, X server running
Code:
xrandr
 
Old 04-08-2006, 02:57 AM   #3
hsimah
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Slackware 12.1
Posts: 173

Original Poster
Rep: Reputation: 30
I meant for console. In the various X servers I have tried they usually have some sort of screen res config.

I saw a glimpse of a screen resolution rush by during startup, syaing I am running 1360x768x8. So my guess work paid off, slightly. I dunno if its better to run the console at like 256 colours or higher, or whether 8 is enough. I'm not onto psyching myself up for a kernel upgrade from 2.4.31 to 2.6. I have gotten so much working today I don't wanna have to reinstall
 
Old 04-08-2006, 03:37 AM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
For console issue "dmesg | grep vesafb" to get the values.
I run console at 1024x768x8 though X is at 1280x1024x24.
Otherwise, console is just white on black, eh?

In the 2.6.x.y kernel you can set a 224-color Linux logo.

When you're ready to get a shiny, new Linux kernel; d/l
the source from Kernel.org and this is about the best
Kernel Rebuild Guide you'll find. Well, Linus put great
instructions in ./linux-x.x.x.x/README ;-)

Last edited by Bruce Hill; 04-08-2006 at 03:38 AM.
 
Old 04-08-2006, 04:14 AM   #5
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
Quote:
Colours 640x400 | 640x480 | 800x600 | 1024x768 | 1152x864 | 1280x1024 | 1600x1200
--------+--------------------------------------------------------------
4 bits | ? | ? | 0x302 | ? | ? | ? | ?
8 bits | 0x300 | 0x301 | 0x303 | 0x305 | 0x161 | 0x307 | 0x31C
15 bits | ? | 0x310 | 0x313 | 0x316 | 0x162 | 0x319 | 0x31D
16 bits | ? | 0x311 | 0x314 | 0x317 | 0x163 | 0x31A | 0x31E
24 bits | ? | 0x312 | 0x315 | 0x318 | ? | 0x31B | 0x31F
32 bits | ? | ? | ? | ? | 0x164 | ?


Key: 8 bits = 256 colours, 15 bits = 32,768 colours, 16 bits = 65,536 colours, 24 bits = 16.8 million colours, 32 bits - same as 24 bits, but the extra 8 bits can be used for other things, and fits perfectly with a 32 bit PCI/VLB/EISA bus.
If you have kernel source installed, you will also find the above information in /usr/src/linux/Documentation/fb/vesafb.txt. Also, take a look into /usr/src/linux/Documentation/svga.txt

Last edited by kevkim55; 04-08-2006 at 04:22 AM.
 
Old 04-08-2006, 07:20 AM   #6
hsimah
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Slackware 12.1
Posts: 173

Original Poster
Rep: Reputation: 30
Yeah, I looked in those text files, but unfortunately they don't have anything to do with widescreen resolutions. But now I know where to look for standard 4:3 resolutions
 
Old 04-30-2006, 07:47 AM   #7
gliss
LQ Newbie
 
Registered: Sep 2004
Posts: 7

Rep: Reputation: 0
I'd like to run my console at a widescreen resolution of 1600x1024. But I can't find the vga number for this. Do I just keep plugging in values into vga= for my /boot/grub/menu.lst?
So far, everything around 872 has given me an invalid vga mode.
 
Old 04-30-2006, 07:57 AM   #8
hsimah
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Slackware 12.1
Posts: 173

Original Poster
Rep: Reputation: 30
872 is 1366x768, its what I run my laptop on. I got that by trial and error, sorry.
 
Old 04-30-2006, 08:35 AM   #9
gliss
LQ Newbie
 
Registered: Sep 2004
Posts: 7

Rep: Reputation: 0
I think the only way to do this is with kernel upgrade to 2.6?
Then I can specify: video=radeonfb:1600x1024-32@60 as a kernel option.
With my 2.4 kernel passing params like that isn't working.

Otherwise I can't sit here all day punching in numbers and rebooting.
The thing I dont understand is why isn't there a list of these modes somewhere?
 
Old 04-30-2006, 11:21 PM   #10
hsimah
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Slackware 12.1
Posts: 173

Original Poster
Rep: Reputation: 30
Thats why I made this thread lol.

There is a list of all the 4:3 ratios (see above), but I couldnt find any for widescreen (16:9) ratios.
 
Old 07-07-2008, 09:15 AM   #11
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Code:
Colours   640x400 | 640x480 | 800x600 | 1024x768 | 1152x864 | 1280x1024 | 1600x1200
--------+--------------------------------------------------------------
 4 bits |    ?    |    ?    | 0x302   |   ?      |   ?      |   ?       |   ?
 8 bits |  0x300  |  0x301  | 0x303   | 0x305    | 0x161    | 0x307     | 0x31C
15 bits |    ?    |  0x310  | 0x313   | 0x316    | 0x162    | 0x319     | 0x31D
16 bits |    ?    |  0x311  | 0x314   | 0x317    | 0x163    | 0x31A     | 0x31E
24 bits |    ?    |  0x312  | 0x315   | 0x318    |   ?      | 0x31B     | 0x31F
32 bits |    ?    |    ?    |   ?     |   ?      | 0x164    |   ?
That better readable?



<edit>
Better readable only on the screen, not in the printable version . Why?

Last edited by JZL240I-U; 07-07-2008 at 09:20 AM.
 
Old 07-08-2008, 08:55 AM   #12
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
fbset with no options will print the current framebuffer resolution/timing/depth info.

edit: Some widescreen(16:10 anyway) vga= codes are listed here. and info on 2 possibilities(only 1 if you're using 64bit) for obtaining the vga= codes applicable to your system can be found here, taken from previous link. vbetest and hwinfo --vbe are what the 2nd link briefly details.

Last edited by lurko; 07-08-2008 at 09:31 AM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
BASH Script: variable values referencing for console arguments sadarax Programming 1 11-14-2005 05:23 PM
Resolution - all values correct Kane2002 Slackware 14 02-14-2005 03:58 PM
VGA console ---> bulliver Linux - General 3 03-11-2004 04:51 PM
XFree86 keeps deleting resolution values , can any one help me fix this??? ehdwuld Red Hat 10 11-24-2003 12:04 PM
boot to vga console Smithy Linux - General 2 04-25-2003 12:42 PM

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

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