Solved

Setting Default color depth/resolution for XF86

Posted on 2000-03-06
7
454 Views
Last Modified: 2008-03-06
How do I set the color/depth resolution used by XF86 at startup?  XF86Config contains all the correct modes, but it starts in 6490x480x8bpp every time.  I can use teh keyboard shortcut to changes resolution (what is the shortcut to change color depth?) but would like it to start up in 1024x768x16bpp.


Using Slackware 7.0, kernel 2.2.13,  XF86 3.3.6
0
Comment
Question by:syzygy
7 Comments
 
LVL 4

Expert Comment

by:swwelsh
ID: 2589961
startx -- -bpp 16 should give you 16bit color, you can go through the various resolutions by using cntl-alt-+ In XF86Config there is line that says something like 'default color depth' which you should be able to change.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2590027
You could also just configure the server to only have your preferred resolution/depth via xf86config or Xconfigurator. If it only has one resolution to pick from then that's the one it has to start with,
0
 
LVL 1

Author Comment

by:syzygy
ID: 2590029
I tired that, it just says something like  "no mode for color depth: 8" when I start it
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 1

Author Comment

by:syzygy
ID: 2590032
Edited text of question.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 2590196
What card do you have and how much memory is on the card? If you don't have enough ram on the video card (4mb would be needed for 1024x768x16) the server can't run in that mode.
0
 
LVL 1

Accepted Solution

by:
fmartin092599 earned 10 total points
ID: 2622199
The configuration if found in the file ?etc/X11/XF86Config (note the uppercase C in Config. The lowercase version is a program used to generate this file.)

This file is automatically generated by a number of programs (XF86config, Xconfigurator, ...)
but they all put the resolutions in order of increasing resolution.  You can edit this file by hand but back it up first.

find the lines near the end of the file that look like this:# **********************************************************************
# Screen sections
# **********************************************************************

# The Colour SVGA server

Section "Screen"
    Driver      "svga"
    # Use Device "Generic VGA" for Standard VGA 320x200x256
    #Device      "Generic VGA"
    Device      "S3 Inc.|ViRGE/DX or /GX"
    Monitor     "Generic Monitor"
    Subsection "Display"
        Depth       8
        # Omit the Modes line for the "Generic VGA" device
        Modes       "640x480"
        ViewPort    0 0
    EndSubsection
EndSection
     
# The 16-color VGA server
   
Section "Screen"
    Driver      "vga16"
    Device      "Generic VGA"
    Monitor     "Generic Monitor"
    Subsection "Display"
        Modes       "640x480" "800x600"
        ViewPort    0 0
    EndSubsection
EndSection

# The Mono server
   
Section "Screen"
    Driver      "vga2"
    Device      "Generic VGA"
    Monitor     "Generic Monitor"
    Subsection "Display"
        Modes       "640x480" "800x600"
        ViewPort    0 0
    EndSubsection
EndSection


this continues with different sections for different displays.  
chang the order of the resolutions to have the 1024X768 first and a depth line of 16 in the right section for your display.
0
 
LVL 1

Author Comment

by:syzygy
ID: 2622211
I'll try that over the weekend, thanks.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Ubuntu Apache Webserver - File Permissions 5 60
LogmeIn using Linux Ubuntu 16.04 6 66
HOw To Install Docker on VMware Workstation 19 187
rsyslog raw message 4 15
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question