LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-25-2003, 03:01 PM   #1
My_World
LQ Newbie
 
Registered: Apr 2003
Location: South Africa - Kalahari desert
Distribution: Mandrake, Slackware
Posts: 16

Rep: Reputation: 0
Question Configuring XFree86


This is propably as n00b a quiestion as one gets, but here goes:
First, the senario-
Install new Nvdidia drivers, right everything peachy...
Now, reboot to find that Xfree86 must be configured again (also explained in Read-Me), no prob, except I dont know how to do this from console...then reinstall Mandrake...EISH!!!!

So the obvious n00b quiestion...how do I configure Xfree86 (or any other file) from console?
 
Old 04-25-2003, 03:05 PM   #2
Unknown_User
Member
 
Registered: Jan 2003
Location: EU (UK)
Distribution: Ubuntu 14.x, Raspbian, Kali
Posts: 226

Rep: Reputation: 30
Still a Windoze convert noob myself but I've just been playing with this one myself.

From a console you should be able to type and run xf86config

I believe that there is also xf86config4 which is a simpler version.....
 
Old 04-25-2003, 04:08 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
The information that you are changing is in /etc/X11/XF86Config.
The programs xf86config and xf86config4 modify /etc/X11/XF86Config.
So does the SuSE program sax2.
You can also modify the file using your favorite text editor.
You can safely ignore all the people who are about to jump in here and tell you to use vi.
 
Old 04-25-2003, 04:08 PM   #4
n00x
LQ Newbie
 
Registered: Dec 2002
Posts: 10

Rep: Reputation: 0
u can....

ehlo,


Go to /etc/X11 directory in it u will find file called "XF86Config" this file contains all ur xfree86 server configurations divided in sections like this:

Section "Device"

Section "Display"

etc etc...........

U can make changes to ur xfree86 server by modifying this file.

command my_world gave u works aswell !
 
Old 04-26-2003, 03:04 PM   #5
My_World
LQ Newbie
 
Registered: Apr 2003
Location: South Africa - Kalahari desert
Distribution: Mandrake, Slackware
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by jailbait
The information that you are changing is in /etc/X11/XF86Config.
The programs xf86config and xf86config4 modify /etc/X11/XF86Config.
So does the SuSE program sax2.
You can also modify the file using your favorite text editor.
You can safely ignore all the people who are about to jump in here and tell you to use vi.
I can't get into Xserver to use a text editor, so I must know how to do this from outside of X, what commands to type, etc.

I know the location of the config files, but to edit them as root outside of X is the real hick-up...
 
Old 04-26-2003, 03:20 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Try mp

You need an editor that works from the command line. I use mp for all of my
command line editing.

http://www.triptico.com/software/mp.html
 
Old 04-26-2003, 04:33 PM   #7
Womandrake
Member
 
Registered: Apr 2003
Distribution: Mandrake 9.1 (Bamboo)
Posts: 46

Rep: Reputation: 15
I had that problem myself.
From console just type: xf86config
And then follow the instructions, like Unknown said. It's pretty self explanatory from there. As for editors, vi will work from command mode, just type: vi <name of file you want to edit>
Best of luck
 
Old 04-26-2003, 06:11 PM   #8
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
If you had a working xfree86 before you installed the nvidia drivers you will only need to change a few lines to get them working, doing xf86config again will not help as xfree86 does not know about the nvidia driver.

Do the following to edit your X config from the command line,
Code:
mcedit /etc/X11/XF86Config
Note: If you have the file XF86Config-4 you will need to edit that instead of the file XF86Config.
 
Old 04-28-2003, 09:17 AM   #9
aherm
Member
 
Registered: Jan 2003
Location: upNorth
Distribution: openSuSE/uBuntu
Posts: 410

Rep: Reputation: 30
My favourite console text editor is mc . It's a Swiss-Army-Knives and a simple browser too. Press F4 to edit the file.

Other basic file editors are: pico, jedit, ed.

This is mine:
Code:
# /.../
# XFree86 config file
# This is my comments:
# My video card driver is changed from nv to nvidia

Section "Files"
# I cut these: include your nice font directories here, don't forget this one
  FontPath     "/usr/X11R6/lib/X11/fonts/truetype"
  FontPath     "/usr/X11R6/lib/X11/fonts/mywindowsfontdir"
# Bla bla bla
# I cut these lines also: guess this are my input devices
  InputDevices "/dev/ttyS0"
  InputDevices "/dev/usbmouse"
EndSection

Section "ServerFlags"
  Option       "AllowMouseOpenFail"
  Option       "RandR" "on"
EndSection

Section "Module"
  Load         "v4l"
  Load         "extmod"
  Load         "type1"
  Load         "freetype"
  Load         "dbe"
  Load         "speedo"
# this is an important part: to enable 3D 
  Load         "glx"
EndSection

Section "InputDevice"
  Driver       "Keyboard"
  Identifier   "Keyboard[0]"
  Option       "LeftAlt" "Standard Keyboard [ pc104 ]"
  Option       "Protocol" "Standard"
  Option       "RightAlt" "none"
  Option       "RightCtl" "none"
  Option       "ScrollLock" "xfree86"
  Option       "XkbLayout" "xfree86"
  Option       "XkbModel" "Standard"
  Option       "XkbOptions" "us"
  Option       "XkbRules" "xfree86"
  Option       "XkbVariant" "pc104"
EndSection

Section "InputDevice"
  Driver       "mouse"
  Identifier   "Mouse[1]"
  Option       "ButtonNumber" "5"
  Option       "Device" "/dev/mouse"
  Option       "Name" "Autodetection"
  Option       "Protocol" "imps/2"
  Option       "Vendor" "Sysp"
  Option       "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
  DisplaySize  330 250
# below is the horizontal refresh rate (KHz) of my monitor
  HorizSync    30-70
  Identifier   "Monitor[0]"
  ModelName    "My LG 775N Monitor"
  Option       "DPMS"
  VendorName   "LG Studioworks"
# below is the vertical refresh rate (Hz) of my monitor
  VertRefresh  50-160
  UseModes     "Modes[0]"
EndSection

Section "Modes"
  Identifier   "Modes[0]"
  Modeline 	"1152x864" 94.36 1152 1152 1368 1496 864 864 874 902
  Modeline 	"1280x1024" 102.24 1280 1296 1552 1664 1024 1024 1034 1070
  Modeline 	"1024x768" 61.19 1024 1040 1216 1328 768 768 775 802
  Modeline 	"1024x768" 74.45 1024 1040 1216 1328 768 768 776 802
  Modeline 	"1024x768" 84.65 1024 1040 1216 1328 768 768 778 802
  Modeline 	"pal"  50.00  768 832 856 1000  576 590 595 630  -hsync -vsync
EndSection

Section "Screen"
# here is my default color setting (24 bit) wich gives 1152x864 resolution
  DefaultDepth 24
  SubSection "Display"
    Depth      16
    Modes      "1280x1024" "1024x768" "800x600" "640x480"
  EndSubSection
  SubSection "Display"
    Depth      24
    Modes      "1152x864" "1024x768" "800x600" "640x480"
  EndSubSection
  SubSection "Display"
    Depth      32
    Modes      "1280x1024" "1024x768" "800x600" "640x480" 
  EndSubSection
  Device       "Device[0]"
  Identifier   "Screen[0]"
  Monitor      "Monitor[0]"
EndSection

Section "Device"
  BoardName    "GeForce4 MX 420"
  BusID        "1:0:0"
# here is the most important part:
  Driver       "nvidia"
  Identifier   "Device[0]"
  Screen       0
  Option       "Rotate" "off"
  VendorName   "NVidia"
EndSection

Section "ServerLayout"
  Identifier   "Layout[all]"
  InputDevice  "Keyboard[0]" "CoreKeyboard"
  InputDevice  "Mouse[1]" "CorePointer"
  Option       "Clone" "off"
  Option       "Xinerama" "off"
  Screen       "Screen[0]"
EndSection

# Uncomment these lines for ATI card
#Section "DRI"
#    Group      "video"
#    Mode       0660
#EndSection

Have fun :-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble configuring XFree86 lantern Debian 10 09-09-2004 08:28 AM
installing xfree86 and configuring millermt Linux - Software 1 03-23-2004 03:03 PM
Help configuring XFree86 on YDL 2.3 (black screen & failed XFree86 -configure) EnVoy Linux - General 1 11-24-2003 04:32 PM
configuring XFree86 chrismiceli Linux - General 1 07-12-2003 05:52 AM
Configuring XFree86 Tuvok *BSD 2 05-22-2003 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration