My xorg.conf is replaced with a default xorg.conf after reboot
Hello forum,
I have installed Kubuntu 8.04.2 on a USB stick with persistence to keep any changes I make after a reboot and it works fine. I then installed the 185 Nvidia driver to give me higher resolutions and it works fine. But each time I reboot, my updated xorg.conf is replaced with the default xorg.conf that ships with that version of Kubuntu and a backup is made of my updated xorg.conf (the correct one) which looks like xorg.conf.20100409135913. I have to put the backup xorg.conf back in place to get my Nvidia driver to work with the correct screen resolutions again. Otherwise my screen resolution is too low. What could be causing this behavor? I'm sure it not the persistence feature of the USB stick failing since a backup is made of my original xorg.conf. Any pointers or suggestions? Regards, Roy I might add more information. The xorg.conf that gets changed after a reboot says "This file was generated by dexconf, the Debian X Configuration tool, using # values from the debconf database." # |
dexconf seems to be running at startup. Stop it from doing so. Or find a way to make it read your current file.
|
Can't Solve Yet
Hello again,
I still can not solve it. I commented out the debconf.conf file in the /etc directory but debconf still overwrote my xorg.conf on the next reboot. I also noticed there is not a startup script in the /etc/init.d directory that I could keep from starting. I can not find much help from Googling either. Or from the debconf man pages. I use nvidia-xconfig to create the correct xorg.conf and it works when I log out and log back in but it fails when I reboot because debconf overwrites the xorg.conf once again. How can I let debconf know that I already have a display driver properly configured and I do not need it to give me a generic display driver? Can anybody help me? Thanks much, Roy |
Apparently you can edit the /usr/bin/dexconf script.
This script generates xorg.conf automatically in liveCD session according to the booted machine. I suggest you make a backup before you change anything. https://help.ubuntu.com/community/LiveCDCustomization |
Hello again,
I am a newbee when it comes to certain things in Linux and I do not know how to edit scripts such as the script in /usr/bin/dexconf. Instead, I just renamed it in order to disable it and now my problem is solved. My xorg.conf is not overwritten on reboot so I can boot up to proper screen resolutions. If anybody can think of a better way to accomplish this I will be very greatful. Cheers, Roy |
If you have renamed it then you will find errors showing up in your logs. If you don't know how to edit it properly, you may be causing other problems. (edit - I've found what looks like a copy and the script only deals with the xorg config so renaming it won't break anything but may cause error messages - see below on how to deal with that)
You could add the word exit on a new line just after the beginning of the script to avoid "script not found" errors Code:
#!/bin/sh Obviously you would have to rename it back to the original name. If you don't care about the errors, then don't worry about editing the file. If you want to post it here, we can work through it properly. |
Thank you smoker. I prefer to do it the right way.
Below is the dexconf script. Code:
#!/bin/sh |
Heh, my edited post actually deals with it, but anyway,
edit the script and make the first two lines look like the following : Code:
#!/bin/sh You will probably have to be root to edit this file. Rename it back to its original name. |
Thanks
Thanks smoker. That did the trick.
I ordered a USB stick from On.disk.com with the latest version of Kubuntu pre-installed on it and it will not overwrite the xorg.conf on each reboot, thus allowing me to keep my display driver intact with high resolutions. I guess somebody re-wrote the dexconf script just for that purpose. Thanks again, Roy PS - I am really a Gentoo fan. I'm just using Kubuntu since a Debian based OS is the most popular for booting from a USB stick. |
No problem.
We could probably also have disabled it by finding where it gets called and disabling that, but this was the most straight forward way IMHO. Easy to change, and easy to change back. I've never used Gentoo, but I guess we can't all be perfect ! Cheers |
All times are GMT -5. The time now is 05:48 AM. |