VectorLinux
April 23, 2014, 12:48:01 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: How to Configure X with Text-Mode Tools  (Read 3536 times)
JohnB316
Administrator
Vectorian
*****
Posts: 1346


Registered Linux User #386728


« on: November 25, 2006, 01:48:44 pm »

With the VL 5.0 series, many users have found issues with the automated X configuration routines at installation time. The questions raised go like this:

Quote
I want to be able to use 1280x1024 resolution with 24 bit color depth. But VL only gives me 640x480 at 8 bit color depth. How the #$%$# do I fix this?[-/quote]

Here are two alternative methods for configuring X for those who don't have the desire or the know-how to edit their xorg.conf file directly. Both solutions will require you to open a terminal in the GUI, su to the root user account, and restart X when you're done. They will also require you to know some basic information about your hardware, as you will be creating a fresh X configuration. Or, you can use them in console/text mode (run level 2 or 3).

Method 1: Use xorgcfg

After you have become root, type at the prompt:

Code:
xorgcfg -textmode

If, by some odd chance, you get an error message that xorgcfg can't be found (you shouldn't, but...), then cd to /usr/X11R6/bin and type at the prompt:

Code:
./xorgcfg -textmode

Go through the configuration options and set them appropriately for your computer. If you see your graphics card in the xorgcfg database (ATI cards are NOT included in this database), then configure it. Otherwise, abort this by pressing Ctrl-C and go to method 2. Assuming you were able to configure everything successfully, let xorgcfg write a fresh /etc/X11/xorg.conf file.

Method 2: Use xorgconfig

After you have become root, type at the prompt:

Code:
xorgconfig

If, by some odd chance, you get an error message that xorgconfig can't be found (you shouldn't, but...), then cd to /usr/X11R6/bin and type at the prompt:

Code:
./xorgconfig

Go through the configuration options and set them appropriately for your computer. Xorgconfig seems to have more cards in its database than does xorgconfig - go figure because I can't.  Shocked Assuming you were able to configure everything successfully, let xorgconfig write a fresh /etc/X11/xorg.conf file.

NOTE: With either method for configuring X, it is safer to use conservative values for configuring the horizontal and vertical refresh rates, as well as display resolutions. Otherwise, you risk frying your monitor. You have been warned!  Angry

Now that X is configured, you will need to restart X if you were using an xterm to run xorgcfg or xorgconfig. If you are using KDE as your window manager, click on the VL logo -> Log Out -> End Current Session. When the login manager appears, click on the Menu button, then select Restart X Server. Doing this will read your new xorg.conf file and will hopefully give you the video attributes you desire.

If you're using another window manager, you can force X to restart by pressing Ctrl-Alt-Backspace.

Hope this helps.

John
Logged

VL 6.0 SOHO latest alpha on one box, VL 5.9 Lite on the other.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!