Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
02-02-2010, 10:52 PM
|
#1
|
Member
Registered: Jan 2010
Location: University City, Mo
Distribution: Salix
Posts: 30
Rep:
|
Changing screen resolution from the command line
I am having an install problem where the distro I am installing, installed at the wrong screen resolution. The display settings menu doesn't offer the correct resolution so I'm using half my screen real estate.
Any help will be greatly appreciated.
Thanks in advance!
Last edited by fbr; 02-03-2010 at 07:32 PM.
|
|
|
02-03-2010, 01:04 AM
|
#2
|
Member
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 611
|
If you are referring to the resolution of the console, and if your distro uses LILO, find this section in /etc/lilo.conf:
Code:
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
Uncomment the "vga=XXX" line for the resolution that you want, run 'lilo' and then reboot. (All of this as root, of course.)
If you mean the resolution while in X, you can set up your /etc/X11/xorg.conf file to define the resolution that you want. This file is well documented. You are looking for the "Screen" section.
|
|
|
02-03-2010, 06:14 AM
|
#3
|
Member
Registered: Jan 2010
Location: University City, Mo
Distribution: Salix
Posts: 30
Original Poster
Rep:
|
Thanks foodown I'm using Zenwalk a Slackware deritive so I am using LILO. I'm not sure whether the problem is LILO or in X but you have given me enough information to do the research.
I'm off to work but anxious to give it a try again this evening.
Many thanks
|
|
|
02-03-2010, 06:46 AM
|
#4
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,974
|
Hi,
Quote:
Originally Posted by fbr
Thanks foodown I'm using Zenwalk a Slackware deritive so I am using LILO. I'm not sure whether the problem is LILO or in X but you have given me enough information to do the research.
I'm off to work but anxious to give it a try again this evening.
Many thanks
|
You should change the thread title to reflect. If it is a 'X' problem, how do you have the hardware configured? You can use '/var/log/Xorg.0.log' to get some useful information that may lead to potential solutions for the warnings or errors. If you are going to use the framebuffer then setup through the global section of '/etc/lilo.conf' but be sure to run 'lilo' again to update the loader.
You can do a ' man xorg.conf' to get some insight on the confguration of 'X'.

|
|
|
02-03-2010, 07:30 PM
|
#5
|
Member
Registered: Jan 2010
Location: University City, Mo
Distribution: Salix
Posts: 30
Original Poster
Rep:
|
Ok after reading the above posts I've done some research and this is what I think I know.
/etc/lilo.conf file the resolution options are exactly as shown in foodown's post. Currently the vga=791 line is currently uncommented. My system resolution should be 1680 x 1050 which is not one of the file options. I assume you could use vi to insert a line but I am not sure how you would determine the vga number or if that is in fact what needs to be done.
/etc/X11/xorg.conf I read the man page and while I don't want to sound dense but I did not get any sense of how you would configure the resolution settings nor did I see anything in the file that looked like a resolution setting.
Section "screen"
SubSection "display"
Depth 24
End SubSection
Device "Device[0]"
Identifier "Screen[0]"
Monitor "Monitor[0]"
End Section
Again being a Linux newbie, I,m not sure, but it doesn't look like much going on here.
/var/log/Xorg.0.log contained the following lines
EE VBoxVideo(0): Failed to initialize the Virtualbox device (rc=22) Make sure the that the VirtualBox additions are properly installed. If you are not sure , try reinstalling them. The X windows graphics drivers will run in in compatibility mode.
This was followed by more output, which suggested to me that it attempted to load a "vboxvideo" module and then failed.
[drm] failed to load module "vboxvideo"
(EE) [drm]Open failed.
So it appears to me the problem is related to the VB GuestAddition not loading properly. However, whenever I attempt to install the Guest Additions package I get a window with the following message "Auto-Run capability detected. Would you like to allow autorunsh to run? The problem is, neither option "allow auto run" or "ignore", appear to do anything. Clicking on either option, results in the window clearing and nothing further, neither a confirmation (that the install succeeded), nor a message indicating that the installation failed.
I apologize for the long post and thank those who took the time to read. I'm hoping somewhere in the detail lies an answer.
|
|
|
02-03-2010, 07:39 PM
|
#6
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,974
|
Hi,
First, setting the framebuffer within the '/etc/lilo.conf' files is for the console not 'X'.
Second, you never stated you were installing as a guest with VB. You need to do the configuration via the VB Guest setup.
' How to Ask Questions the Smart Way' would be a recommended read when you need to formulate a complete query.

|
|
|
All times are GMT -5. The time now is 07:27 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|