Alternative XF86Configs
I need two different XF86Config files on my SuSE8.1 box - one for normal desktop use and one for games. This is because, with my GeForce2 card, the NVidia drivers don't let me go above 1280x1024 on the desktop, but the nv drivers (which let me use 1600x1200) don't support 3D. How can I switch easily between the two XF86Config files involved? Is it possible to set the file to be used when logging in graphically (e.g. having two different users)? If not, how do I drop out of the graphical login tool to log in without starting X, so I can start it manually with the relevant config file. TiA John -- John Pettigrew Headstrong Games john@headstrong-games.co.uk Fun : Strategy : Price http://www.headstrong-games.co.uk/ Board games that won't break the bank Valley of the Kings: ransack an ancient Egyptian tomb but beware of mummies!
On Tue, 10 Dec 2002 15:03:59 GMT John Pettigrew <john@xl-cambridge.com> wrote:
I need two different XF86Config files on my SuSE8.1 box - one for normal desktop use and one for games. This is because, with my GeForce2 card, the NVidia drivers don't let me go above 1280x1024 on the desktop, but the nv drivers (which let me use 1600x1200) don't support 3D.
How can I switch easily between the two XF86Config files involved? Is it possible to set the file to be used when logging in graphically (e.g. having two different users)? If not, how do I drop out of the graphical login tool to log in without starting X, so I can start it manually with the relevant config file.
To boot without X, go to yast2->system->run-level editor->set default to 3 To change X settings, maybe it would be easiest to start X with a script. Have the script rename the XF86Config file to which one you want. For example, have 2 files, XF86Config-normal and XF86Config-3d. ###################################################### #!/bin/bash if [ $# -ne "1" ] then file='/etc/X11/XF86Config-normal' else file='/etc/X11/XF86Config-3d' fi cp $file /etc/X11/XF86Config startx exit ######################################################## So after you login to a console, type "x" will startx in your noraml mode, while "x 3" will startx in the 3d mode. The script just tests for a $1, so you can put anything after it, like "x 1". -- use Perl; #powerful programmable prestidigitation
On Tuesday 10 December 2002 17.14, zentara wrote:
#!/bin/bash if [ $# -ne "1" ] then file='/etc/X11/XF86Config-normal' else file='/etc/X11/XF86Config-3d' fi cp $file /etc/X11/XF86Config startx exit
I would probably change this to <code> #!/bin/bash if [ $# -ne "1" ] then file='XF86Config-normal' else file='XF86Config-3d' fi startx -- -xf86config $file </code> since you probably don't want to open /etc/X11 for writing by regular user, and you probably also don't want to run as root
In a previous message, Anders Johansson wrote:
I would probably change this to
<code> #!/bin/bash if [ $# -ne "1" ] then file='XF86Config-normal' else file='XF86Config-3d' fi
startx -- -xf86config $file </code>
since you probably don't want to open /etc/X11 for writing by regular user, and you probably also don't want to run as root
Indeed - I prefer this option, I think, because it will also be less likely to foul things up for other users of the box. I also don't want to set the default boot level to 3 - for most users, 5 is best as they can happily use the 2D version for large screenmodes. How would I cause a script to run automatically on login for a certain user, before X has started, to control which XF86Config file is used? It seems best to me to have a separate user for playing games - no need to run certain apps for gaming that I keep running when working and fewer possible problems for my work identity. Thanks, John -- John Pettigrew Headstrong Games john@headstrong-games.co.uk Fun : Strategy : Price http://www.headstrong-games.co.uk/ Board games that won't break the bank Valley of the Kings: ransack an ancient Egyptian tomb but beware of mummies!
On Tue, 10 Dec 2002 17:29:33 GMT John Pettigrew <john@xl-cambridge.com> wrote:
How would I cause a script to run automatically on login for a certain user, before X has started, to control which XF86Config file is used? It seems best to me to have a separate user for playing games - no need to run certain apps for gaming that I keep running when working and fewer possible problems for my work identity.
I havn't messed with it, but yast2->system->profile manager might be what you are looking for. -- use Perl; #powerful programmable prestidigitation
In a previous message, zentara wrote:
On Tue, 10 Dec 2002 17:29:33 GMT John Pettigrew <john@xl-cambridge.com> wrote:
How would I cause a script to run automatically on login for a certain user
I havn't messed with it, but yast2->system->profile manager might be what you are looking for.
I just had a quick look, and the introduction emphasises that it applies to system configurations, not user configurations, so it sounds like it's not really what I'm after (although it could no doubt be persuaded to do something like what I'm after). Thanks, John -- John Pettigrew Headstrong Games john@headstrong-games.co.uk Fun : Strategy : Price http://www.headstrong-games.co.uk/ Board games that won't break the bank Fields of Valour: 2 Norse clans battle on one of 3 different boards
John Pettigrew <john@xl-cambridge.com> writes:
I need two different XF86Config files on my SuSE8.1 box - one for normal desktop use and one for games. ...
How can I switch easily between the two XF86Config files involved?
You can also start second X-server. Some people use it but I don't know if it works well with games. -- Alexandr.Malusek@imv.liu.se
Alle 18:12, martedì 10 dicembre 2002, Alexandr Malusek ha scritto:
John Pettigrew <john@xl-cambridge.com> writes:
I need two different XF86Config files on my SuSE8.1 box - one for normal desktop use and one for games. ...
How can I switch easily between the two XF86Config files involved?
You can also start second X-server. Some people use it but I don't know if it works well with games.
I use it sometimes, and it has no 3D. Praise
On Tuesday 10 December 2002 18.48, Praise wrote:
Alle 18:12, martedì 10 dicembre 2002, Alexandr Malusek ha scritto:
John Pettigrew <john@xl-cambridge.com> writes:
I need two different XF86Config files on my SuSE8.1 box - one for normal desktop use and one for games. ...
How can I switch easily between the two XF86Config files involved?
You can also start second X-server. Some people use it but I don't know if it works well with games.
I use it sometimes, and it has no 3D.
I'm writing this mail on :0 while quake 3 arena is playing on :1. 3D works fine on the second display.
In a previous message, Anders Johansson wrote:
I'm writing this mail on :0 while quake 3 arena is playing on :1. 3D works fine on the second display.
I'd rather keep it separate so that the computer is doing as little work as possible other than playing the game - more fps :-) John -- John Pettigrew Headstrong Games john@headstrong-games.co.uk Fun : Strategy : Price http://www.headstrong-games.co.uk/ Board games that won't break the bank Knossos: escape the ever-changing labyrinth before the Minotaur catches you!
John Pettigrew <john@xl-cambridge.com> writes:
I'd rather keep it separate so that the computer is doing as little work as possible other than playing the game - more fps :-)
I just wonder what the difference in fps is. Can anybody post some numbers? -- Alexandr.Malusek@imv.liu.se
Alle 18:52, martedì 10 dicembre 2002, Anders Johansson ha scritto:
On Tuesday 10 December 2002 18.48, Praise wrote:
Alle 18:12, martedì 10 dicembre 2002, Alexandr Malusek ha scritto:
John Pettigrew <john@xl-cambridge.com> writes:
I need two different XF86Config files on my SuSE8.1 box - one for normal desktop use and one for games. ...
How can I switch easily between the two XF86Config files involved?
You can also start second X-server. Some people use it but I don't know if it works well with games.
I use it sometimes, and it has no 3D.
I'm writing this mail on :0 while quake 3 arena is playing on :1. 3D works fine on the second display.
Well, that's strange. I could not play anything, not even tux race in the :1. What have you done? Praise
participants (5)
-
Alexandr Malusek
-
Anders Johansson
-
John Pettigrew
-
Praise
-
zentara