Linux - GeneralThis 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
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.
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.
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
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.
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
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
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.