LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 11-19-2012, 04:26 PM   #1
jtwdyp
Member
 
Registered: Apr 2011
Distribution: antiX, Bodhi, OpenSuSE, Sabayon, etc... I multi-boot
Posts: 33

Rep: Reputation: 0
info needed about kms kernel arg "video=VGA-1:1280x1024-24@75"


I'm a multi-booter running several different linux distribution on multiple computers. I also have trouble remembering how I solved something before. especially when it seems that the method needed changes depending on the distro and/or hardware involved. So I'm trying to build myself a visual aid for designating screen resolution and/or text font size on the {tty} consoles.

I can never read the default. I miss using vga=normal...


there is a method I've heard of for kms where the kernel argument to set 1280x1024 resolution using 24 bps {kbps?} at 75Hz is supposed to be
Code:
video=VGA-1:1280x1024-24@75
I can easily put up with the default long enough to peek inside E17's video resolution module to check the available resolution and Hz settings.But that wouldn't tell me the bps, {Or is it really kbps? I mean the 24bps I got from the example I saw in some wiki sounds awful slow to me.} So since I'm usualy setting up linux on some salvaged computer with zero documentation, I would need either to be able to omit the bps value:
Code:
video=VGA-1:1280x1024@75
Or have a reliable method of determining what it is.

Can I omit the "-25" as in the 2nd code example?

How can I extract the bps value from the info Linux detects for use with the resolution settings inside the desktop environment?
 
Old 11-20-2012, 08:18 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Quote:
Originally Posted by https://wiki.archlinux.org/index.php/Kernel_Mode_Setting

At first, note that for any method you use, you should always disable:

Any "vga=" options in your bootloader as these will conflict with the native resolution enabled by KMS.
Any "video=" lines that enable a framebuffer that conflicts with the driver.
Any other framebuffer drivers
bps? are you referring to the depth? bits per pixel
 
Old 11-22-2012, 02:30 PM   #3
jtwdyp
Member
 
Registered: Apr 2011
Distribution: antiX, Bodhi, OpenSuSE, Sabayon, etc... I multi-boot
Posts: 33

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by andrewthomas View Post
bps? are you referring to the depth? bits per pixel
Don't really know... I just found the method via google search


Quote:
Originally Posted by http://en.gentoo-wiki.com/wiki/Kernel_Mode_Setting
Forcing a Resolution

If you get a black screen, an incorrect resolution or want to specify the resolution to use, you can force a resolution on the kernel command-line. This can be useful if KMS auto detection fails with rare/incorrect EDID from the monitor.

When using a driver utilizing Kernel Mode Setting, you do not specify any driver name in the video= parameter. For example, setting the screen resolution to 1280x1024, 24bps at 75Hz would be just:
video=1280x1024-24@75


If it doesn't seem to have any effect, you may need to specify the output interface explictly:
video=VGA-1:1280x1024-24@75
The gentoo wiki seems to expect people to know what 24bps is...
 
Old 11-22-2012, 05:03 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo, Slackware
Posts: 14,903
Blog Entries: 2

Rep: Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812Reputation: 3812
That must be a typo, usually it is referred to as 24 bpp, not 24 bps. bpp is the short form for bits per pixel and defines the color depth (~16,7 million colors in the case of 24bpp).
 
Old 11-23-2012, 11:35 AM   #5
jtwdyp
Member
 
Registered: Apr 2011
Distribution: antiX, Bodhi, OpenSuSE, Sabayon, etc... I multi-boot
Posts: 33

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
That must be a typo, usually it is referred to as 24 bpp, not 24 bps. bpp is the short form for bits per pixel and defines the color depth (~16,7 million colors in the case of 24bpp).
so then using this chart as a guide:

Quote:
Originally Posted by http://forums.gentoo.org/viewtopic.php?t=49036
| 640x480 800x600 1024x768 1280x1024
----+-------------------------------------
256 | 0x301 0x303 0x305 0x307
32k | 0x310 0x313 0x316 0x319
64k | 0x311 0x314 0x317 0x31A
16M | 0x312 0x315 0x318 0x31B
video=1280x1024-24@75 is roughly equivelent to vga=0x31B...

Though I had no idea how 16M resolved to 24... untill your description led me to a google search for:
Code:
"bits per pixel" "color depth"
Which led me to: https://en.wikipedia.org/wiki/Color_depth
From which I extracted that 16M is roughly equivelent to 2^24... And if I understand it that should mean that:
video=1024x768-16@75 is roughly equivelent to vga=0x317
video=800x600-15@75 is roughly equivelent to vga=0x315
video=640x480-8@75 is roughly equivelent to vga=0x301[/code]
All of which indicate a 75Hz refresh rate though so on my laptop where the available refresh rate for it is 60Hz, the equivelent of vga=0x305 would be:
Code:
video=1024x768-8@60
Is that right?
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors when make install kernel "cannot get info for device" GlennsPref Linux - Kernel 7 01-06-2009 11:31 PM
nvidia tvout twimview "tv: 1024x768 crt: 1280x1024" behmjoe Linux - Hardware 3 01-20-2006 10:28 PM
how can i change my vga driver from "vesa" to "savage" mojarron Slackware - Installation 1 03-24-2005 11:03 PM
how can i change my vga driver from "vesa" to "savage" mojarron Slackware 1 03-24-2005 07:16 AM
Custom kernel supporting "vga=791" hellblade Linux - Software 7 09-16-2004 08:39 PM


All times are GMT -5. The time now is 06:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration