VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: How to Configure X with Text-Mode Tools  (Read 4082 times)

JohnB316

  • Administrator
  • Vectorian
  • *****
  • Posts: 1346
  • Registered Linux User #386728
How to Configure X with Text-Mode Tools
« 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: [Select]
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: [Select]
./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: [Select]
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: [Select]
./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.  :o 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!  >:(

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.