it'd be really cool if the xdm script would check the runlevel and use a different config file if it existed so if i boot with softlevel=fooie, xdm would look to see if xorg.conf.fooie existed, and if so, use that ... if it didnt exist, it should drop back to xorg.conf you should have access to this via $SOFTLEVEL in my case, i often need to turn on my laptop into "dual head presentation mode" and since stupid nvidia drivers dont allow this on the fly, i need to use a diff xorg.conf ... which means i need to log out, log in as root, swap xorg.conf, restart xdm, blah blah blah
or a better idea as spyderous said is to have the SOFTLEVEL select the ServerLayout used
So, what's a good way to go about this? If SOFTLEVEL is set, then assume the layout name will be the same as the softlevel name? Or do we want to allow people to have arbitrary layout names with a way to configure based on softlevel (PITA)?
something like ${LAYOUT:-${SOFTLEVEL}} people could create /etc/conf.d/xdm.$SOFTLEVEL and change the LAYOUT value if they so choose
A practical/minimal solution would be to have /etc/init.d/xdm accepting parameters from /etc/conf.d/xdm.<RUNLEVEL> I use it to start different X layouts. One with multi head support, the other for multi seat.
Created attachment 106125 [details, diff] xdm_init.patch Make /etc/init.d/xdm accepting params for DM
Created attachment 106127 [details, diff] xdm_conf.patch A line with params to pass
Created attachment 106129 [details, diff] startDM.sh.patch Let startDM.sh pass the params on the dm call
Does anyone still care about this? Thanks
i do for the same reason quoted originally ...
The problem is that the xdm init script doesn't start the X process. It's GDM, KDM or whatever that starts it. The only thing we can do is what Thomas did in his patch, ie having various conf.d/xdm.${SOFTLEVEL}. So if that's all you need, I'll commit Thomas's patches. If not, well, patches are welcome. :) Thanks
it's better than nothing
The patches no longer apply and I'm completely lost with baselayout stuff. So if anyone wants this, please send patches on top of xinit-9999 in the x11 overlay. Thanks