LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-16-2004, 09:47 PM   #1
misterflibble
Member
 
Registered: Feb 2004
Distribution: Debian UnStaBle
Posts: 123

Rep: Reputation: 15
Can't create new XF86Config-4 in Debian


For some reason 'dpkg-reconfigure xserver-xfree86' won't overwrite (or create a new) /etc/X11/XF86Config-4 file for me anymore. I've been using the old XF86Config for some months now since I was able to set that one up (basically) with xf86config and then muddle through editing it by hand, changing options for the nvidia driver, etc. I tried the directions at the top of the XF86Config-4 file (with md5sums and stuff) but that doesn't make any difference. Neither does using 'dpkg-reconfigure -plow xserver-xfree86' as someone suggested. Should I just learn how to write my own XF86Config-4 file, then? Any guides on this a little more helpful than the man page (nvidia-specific especially)?
 
Old 08-17-2004, 12:35 AM   #2
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
what's the option you want to change?
it's not hard to change this file to your needs without using dpkg-reconfigure (afaik dpkg won't override your config because you made any changes in it? maybe there is an switch to cange that..)

sl mritch.
 
Old 08-17-2004, 01:22 AM   #3
binidiot
Member
 
Registered: May 2004
Location: Spain
Distribution: Debian Woody, FreeBSD 5.2.1
Posts: 106

Rep: Reputation: 15
At the end of the dpkg reconfigure, I believe it shows the default to where it is going to write the config file. What does that say and can you just change it to read ...config-4 instead of XF86Config???
 
Old 08-17-2004, 02:38 AM   #4
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
if you're using X version >=4 (you definitely are..) the configuration-file is called XF86Config-4. earlier versions of the xserver named it just XF86Config.
see "man XF86Config-4" for syntax/options of that file & "man nv" for infos 'bout nvidia's driver-options in this file.

sl mritch.
 
Old 08-17-2004, 05:59 AM   #5
rickenbacherus
Member
 
Registered: Mar 2003
Location: colorado springs. colorado
Distribution: Debian-Sid 2.6.24-rt1
Posts: 290

Rep: Reputation: 30
Re: Can't create new XF86Config-4 in Debian

Quote:
Originally posted by misterflibble
For some reason 'dpkg-reconfigure xserver-xfree86' won't overwrite (or create a new) /etc/X11/XF86Config-4 file for me anymore. I've been using the old XF86Config for some months now since I was able to set that one up (basically) with xf86config and then muddle through editing it by hand, changing options for the nvidia driver, etc. I tried the directions at the top of the XF86Config-4 file (with md5sums and stuff) but that doesn't make any difference. Neither does using 'dpkg-reconfigure -plow xserver-xfree86' as someone suggested. Should I just learn how to write my own XF86Config-4 file, then? Any guides on this a little more helpful than the man page (nvidia-specific especially)?
You can simply run xf86config to regenerate an XF86Config file for you then just use mv like so:

Code:
xf86config
At the end of configuration you get this:

Code:
I am going to write the XF86Config file now. Make sure you don't accidently
overwrite a previously configured one.

Shall I write it to /etc/X11/XF86Config? n

Please answer the following question with either 'y' or 'n'.
Shall I write it to the default location, /usr/X11R6/etc/X11/XF86Config? n

Do you want it written to the current directory as 'XF86Config'? n

Please give a filename to write to:
Let's say you called it /etc/X11/XF86Config

Then just move the original out of the way and put your new one into place.

Code:
mv /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.old
mv /etc/X11/XF86Config /etc/X11/XF86Config-4
Simple!

Last edited by rickenbacherus; 08-17-2004 at 06:04 AM.
 
Old 08-17-2004, 08:37 AM   #6
misterflibble
Member
 
Registered: Feb 2004
Distribution: Debian UnStaBle
Posts: 123

Original Poster
Rep: Reputation: 15
>>what's the option you want to change? >>
All of them I'm just frustrated that Debian won't create a new config file, and I would rather use the newer XF86Config-4 than the XF86Config file, since someday that won't be used anymore.

>>At the end of the dpkg reconfigure, I believe it shows the default to where it is going to write the config file. What does that say and can you just change it to read ...config-4 instead of XF86Config???>>
It doesn't say where it's going to write to, it doesn't even say if it fails to write the file at all.

>>if you're using X version >=4 (you definitely are..) the configuration-file is called XF86Config-4. earlier versions of the xserver named it just XF86Config.
see "man XF86Config-4" for syntax/options of that file & "man nv" for infos 'bout nvidia's driver-options in this file.>>
I already knew this (did you read what I posted?)

Finally, richenbacharus: I already did use xf86config to generate the old 3.x XF86Config file. XFree86 4.x uses the old file if you don't have XF86Config-4, so I moved that out of the way. I don't think renaming the 3.x version file to the 4.x version would work very well though. Isn't the reason they gave them different names because the syntax changed significantly?
 
Old 08-17-2004, 08:42 AM   #7
BaptismOfFire
Member
 
Registered: Aug 2004
Posts: 107

Rep: Reputation: 15
just a note, I finally managed to get my nvidia drivers installed the other day, and am now running kde. I pulled up XF86config-4 in Kedit, and there was a thing at the top about auto updateing being turned off if you manually edit the file, yet it also gave instructions of how to turn it back on. it may be worth while just reading the #comments at the top of the config file.

hope that helps
 
Old 08-17-2004, 09:26 AM   #8
misterflibble
Member
 
Registered: Feb 2004
Distribution: Debian UnStaBle
Posts: 123

Original Poster
Rep: Reputation: 15
I probably wan't clear about this on my first post, but I followed the directions at the top of the XF86Config-4 file and Debian still won't replace the file.
 
Old 08-17-2004, 10:33 AM   #9
Marc A
Member
 
Registered: Mar 2004
Location: Bxl Europe
Distribution: Debian/Ubuntu
Posts: 84

Rep: Reputation: 15
Hi,

I've had that type of problem. when you chenge you Xf86Config-4 file by éditing it, it changes the md5sum than Dpkg-reconfigure won't ovewrite it.

You can type # md5sum /etc/X11/XF86Config-4 > /var/lib/sfree86/XF86Config-4.md5sum

It's written here http://www.bxlug.be/articles/197 but in french (sorry for that ; )

Hope this helps
 
Old 08-17-2004, 04:08 PM   #10
misterflibble
Member
 
Registered: Feb 2004
Distribution: Debian UnStaBle
Posts: 123

Original Poster
Rep: Reputation: 15
Thanks everybody, turns out I was backing up the md5sum to the wrong directory
 
  


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
KDE,Debian and XF86Config-4 timgerr Linux - Software 3 11-18-2005 03:35 PM
XF86Config-4, Debian, nVidia Drivers WiteOut Linux - Newbie 6 11-02-2005 11:04 PM
Help with XF86Config-4 on Debian killerwh Debian 7 08-22-2004 06:48 PM
Moving XF86Config-4 from Knoppix to Debian? majesticsock Debian 3 07-28-2004 08:05 PM
Debian xf86config darin3200 Linux - Hardware 1 05-17-2003 05:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:09 PM.

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