Advertisement

05.08.2008 at 04:56PM PDT, ID: 23388068
[x]
Attachment Details

How do I set the default virtual display resolution in X server without editing xorg.conf?

Asked by asp123 in Slax / Slackware Linux, Linux Administration, Linux Setup

Tags: Slax, Slax 6.06 LiveCD

I have created a customized Slax 6.06 LiveCD that loads X server and then launches firefox.  I need a way to set the default virtual display resolution to 1024x768 (or at least have X server try that resolution first).  Is there a way to do this in the .xinitrc file or even in rc.2?

I was thinking of trying the following steps:
In rc.2,

1.) run Xorg -configure (supposedly spits out a file called xorg.conf.new in home directory, yet i can't find it)
2.) run cp xorg.conf.new to /etc/X11/xorg.conf
3.) use grep and a fancy regex to find all values where "Modes" is not followed by "1024x764"
4.) use a replacement tool (sed?), to prepend the "1024x768" after the "Modes" in the xorg.conf file

Allow rc.3 to load which will startx, read the generated xorg.conf file.
.xinitrc will then launch firefox.

Is this the best way to do this?  Is there an easier way in setting the preferred resolution on all computers.   I want X server to generate the xorg.conf file because not all the computers we are running it on will support VESA.  VGA doesn't have the correct depths.  Should I use svga?  Can I specify "xga" in the xorg.conf file?Start Free Trial
[+][-]05.15.2008 at 04:07AM PDT, ID: 21572259

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 04:07AM PDT, ID: 21572264

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Slax / Slackware Linux, Linux Administration, Linux Setup
Tags: Slax, Slax 6.06 LiveCD
Sign Up Now!
Solution Provided By: Toraif
Participating Experts: 1
Solution Grade: A
 
 
[+][-]06.04.2008 at 01:55AM PDT, ID: 21708050

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06.08.2008 at 07:57AM PDT, ID: 21738554

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06.12.2008 at 08:44PM PDT, ID: 21775816

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628