LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   SAX2 - How to add a custom modeline? (https://www.linuxquestions.org/questions/suse-opensuse-60/sax2-how-to-add-a-custom-modeline-463498/)

mr_r 07-12-2006 08:36 PM

SAX2 - How to add a custom modeline?
 
Hi,

I have a custom modeline I want to add to /etc/X11/xorg.conf to make suse work with my projector. I have all the settings from a previous xorg.conf that I used in Fedora. The problem is, I can't see anywhere to put in custom resolutions & monitors in SAX2 - and sax2 automatically generates xorg.conf.

So, how do I disable sax2 OR put custom modelines in without it overwriting xorg.conf ???

DaneM 07-13-2006 01:49 AM

I haven't used SuSE a whole lot, but I'll take a stab at it.

The last time I had to mess with X video settings in SuSE, I found that as long as you don't mess with SAX2 (i.e. reconfigure using SAX2), it won't overwrite your xorg.conf file. Since I rarely use GUI tools to mess with my configuration files anyway, it didn't really bother me, but chances are, there's a better solution.

Here's what I would do. Make the changes you want to your /etc/X11/xorg.conf and back it up to something like /etc/X11/my.xorg.conf. Then find your "local" startup script/settings (try /etc/rc.d/boot.local) and add the following line:

Code:

cp -vf /etc/X11/my.xorg.conf /etc/X11/xorg.conf
This will copy your customized my.xorg.conf over the SAX2-overwritable xorg.conf every time the computer boots. Just make sure to make all your changes to the my.xorg.conf from now on.

Like I said, this probably isn't the best way to do it (I'm really much more of a Slackware/Gentoo guy), but I think it'll work. If anybody else has a better idea, please feel free to chime in!

Hope that helps.

--Dane

mr_r 07-13-2006 07:03 AM

Dane, Thanks for that! I'll give it a try :)


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