LinuxQuestions.org
Visit Jeremy's Blog.
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 05-01-2006, 11:38 PM   #1
djeikyb
Member
 
Registered: Nov 2005
Location: California
Distribution: ubuntu 10
Posts: 162

Rep: Reputation: 33
Choosing resolution at boot time.


Problem: Here is my boot process, step by step.
  • bios checks itself
  • lilo prompt
  • i choose appropriate option
  • before mounting things and starting linux, it prompts me to choose a resolution
  • i choose, everything boots

I'd really like to not have to choose a resolution every single time. When I use a 2.4 series kernel, I can just have vga=778, and it works great. Not so for 2.6, where I only get a really small screen unless I set vga=ask and input 315 when prompted.

Experience level: I've been a linux user for several years now, but am still mostly a semi-competent curious newbie who likes to rtfm. I am comfortable compiling the kernel.

Caveats: My linux box is a wreck, and has been since January (the withdrawal symptoms still haven't dissipated). I'm forced to use this winbox for anything more productive than experimenting with different resolutions at boot time. This means any screen output you want to see has to be captured by camera and uploaded via my dial-up connection. I've got the time if you've got the time.
 
Old 05-02-2006, 12:55 AM   #2
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 922

Rep: Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710
Add
Code:
vga = 315
to /etc/lilo.conf near the top (at least above the first image = ... line)

Then run
Code:
# /sbin/lilo
 
Old 05-02-2006, 03:30 AM   #3
djeikyb
Member
 
Registered: Nov 2005
Location: California
Distribution: ubuntu 10
Posts: 162

Original Poster
Rep: Reputation: 33
Heh, that's too easy of an answer. Imitation as a form of experiential learning I can do.

Switching to vga=315 makes the monitor display nothing but blackness.

Maybe 315 is an invalid value? But then what sorts of values are valid? I remember reading through various Linux-HOWTOs and deducing that 315 is the value wanted. But why will it only work when fed through vga=ask and not vga=$value ?

Last edited by djeikyb; 05-02-2006 at 03:56 AM.
 
Old 05-02-2006, 04:32 AM   #4
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
try the decimal equivalent in lilo.conf
eg: 0x0315 == 789
 
Old 05-02-2006, 09:16 AM   #5
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 922

Rep: Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710
Likewise you coulde just use 0x0315 in lilo.conf. I thought 315 was awfully low. Now it makes sense.
 
Old 05-02-2006, 12:22 PM   #6
djeikyb
Member
 
Registered: Nov 2005
Location: California
Distribution: ubuntu 10
Posts: 162

Original Poster
Rep: Reputation: 33
It works! Such a little thing, but all the little things wrong with my poor computer add up.. Thank you, drumz and kodon.

So how did you make the leap from 0x0315 to 789? And why are the values different between the two kernel series?
 
Old 05-02-2006, 01:06 PM   #7
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 922

Rep: Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710
Numbers starting with "0x" are in base 16. So 0x0315 = 0*16^3 + 3*16^2 + 1*16 + 5. Base 16 is really conveniant when working with computers, because it is very easy to go between binary and hexadecimal, and a number like 789 only needs 3 digits (0x315) instead of the 10 you need for binary (0b1100010101).
 
Old 05-02-2006, 01:27 PM   #8
djeikyb
Member
 
Registered: Nov 2005
Location: California
Distribution: ubuntu 10
Posts: 162

Original Poster
Rep: Reputation: 33
Neat. Are there more base identifiers? I'm assuming 0b identifies binary. Where did these come from? Or rather, point me to a manual so I don't bug you all : )
 
Old 05-02-2006, 01:42 PM   #9
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 922

Rep: Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710
Wikipedia is probably a good spot to catch up on binary and hex: http://en.wikipedia.org/wiki/Binary_numeral_system
http://en.wikipedia.org/wiki/Hexadecimal
 
Old 05-02-2006, 02:40 PM   #10
djeikyb
Member
 
Registered: Nov 2005
Location: California
Distribution: ubuntu 10
Posts: 162

Original Poster
Rep: Reputation: 33
I've already got a feel for working in different bases, I was just wondering if there were more standardised identifiers like "0b" and "0x"; say for base 9. I see from the hexadecimal article that these are used in C.

Since googling hasn't turned up much, I guess I could just assume that these prefixes are not standards, just C conventions, and that since usually only binary, decimal, and hexadecimal numbers are needed, there aren't any more prefixes.
 
Old 05-02-2006, 02:57 PM   #11
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 922

Rep: Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710
I don't think there's a standard. The closest thing to a standard would be including a trailing subscript for the base. "0b" and "0x" are pretty well recognized, so everyone should know what you're talking about, but I don't think there are prefixes for other bases. I think the reason those are well knows is because that's what C uses. I doubt there are prefixes for other bases in C (could be wrong), and that's why there aren't any other well known, established prefixes.
 
Old 05-02-2006, 03:25 PM   #12
avinash_127
LQ Newbie
 
Registered: Mar 2006
Posts: 1

Rep: Reputation: 0
is there any rule to partition harddisk in linux
 
  


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
CPU consumed time with millisecond resolution. lofrbo Linux - General 4 12-20-2005 01:08 PM
CPU consumed time with millisecond resolution. lofrbo Linux - Software 2 11-18-2005 11:46 AM
Slackware IP resolution time period problem phoenixx Linux - Distributions 5 05-11-2005 08:36 PM
Choosing network at boot ElPuello Debian 3 09-09-2004 10:09 AM
Updated Kernel - Choosing at boot link1305 Linux - General 5 11-25-2003 08:38 PM

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

All times are GMT -5. The time now is 10:42 AM.

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