You are not logged in.
I have 2 xorg.confs and want to startx with one of them? Now what I do is replacing /etc/X11/xorg.conf with one of them when startx. I think there is a better idea and come for help.
Last edited by cricketlong (2014-03-19 20:56:16)
Offline
Offline
thanks, I will try it
Last edited by cricketlong (2014-03-19 21:58:50)
Offline
It's the same - just use the -xf86config flag
(edit: nevermind - cross posted with your edit).
Last edited by Trilby (2014-03-19 21:59:43)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
it works, but not perfect. I don't have sound now. alsamixer dosen't work now: cannot open mixer: No such file or directory. totaly no sound.
If I copy my_org.conf to /etc/X11/xorg.conf and simply "startx", all work perfect.
Offline
Exactly what command do you use to start X when you speficy the config file? Do you also specify the vt#? If not, that would explain the lack of sound.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
My X looks like this in the ps output:
/usr/bin/X -nolisten tcp :0 -auth /tmp/serverauth.tVhtAWxsGU vt1Offline
All that is needed is the following:
xinit -- -xf86config /path/to/file vt1
# or
xinit -- -xf86config /path/to/file vt$XDG_VTNRThe first is specifically for starting from tty 1, the second is the general form. Startx includes the XDG_VTNR, which is why you see the difference. I think you could also use `startx -- -xf86config /path/to/file` but I never use starts, so I'm not sure if it passes parameters to X in the same way.
EDIT: startx does take arguments for X in the same way. So the following would also work:
startx -- -xf86config /path/to/fileThis would be the same as startx, just with the new config file.
(edit: added vt prefix as noted below)
Last edited by Trilby (2014-03-20 11:14:56)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I think it should be 'vt$XDG_VTNR'
$ echo $XDG_VTNR
1Offline
I think the default /etc/X11/xinit/xserverrc handles the $XDG_VTNR, so you don't normally need to do that.
Last edited by Raynman (2014-03-20 12:08:07)
Offline
Raynman, you do need to if you use xinit. Startx uses the xserverrc, xinit does not (unless you specifically call it from xinitrc).
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I think the default /etc/X11/xinit/xserverrc handles the $XDG_VTNR, so you don't normally need to do that.
'Normally' i.e. when you're using 'startx', not just 'xinit'.
Offline
Yes, sorry, I was just going to edit my post after doing some checking, but you guys are too quick ![]()
Offline
Exactly what command do you use to start X when you speficy the config file? Do you also specify the vt#? If not, that would explain the lack of sound.
I satrtx like this: startx -- -xf86config my_xorg.conf
Offline
It works: startx -- -xf86config my_xorg.conf vt1
thanks to all!
Offline
Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309
Offline