Solved

Setting Default color depth/resolution for XF86

Posted on 2000-03-06
7
443 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

705 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now