Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 138643 - x11-apps/xinit: add support for per-runlevel xorg.conf to init.d/xdm
Summary: x11-apps/xinit: add support for per-runlevel xorg.conf to init.d/xdm
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-30 17:12 UTC by SpanKY
Modified: 2009-11-05 19:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
xdm_init.patch (xdm_init.patch,552 bytes, patch)
2007-01-08 23:00 UTC, Thomas Bettler
Details | Diff
xdm_conf.patch (xdm_conf.patch,425 bytes, patch)
2007-01-08 23:03 UTC, Thomas Bettler
Details | Diff
startDM.sh.patch (startDM.sh.patch,545 bytes, patch)
2007-01-08 23:04 UTC, Thomas Bettler
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2006-06-30 17:12:07 UTC
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
Comment 1 SpanKY gentoo-dev 2006-06-30 17:15:54 UTC
or a better idea as spyderous said is to have the SOFTLEVEL select the ServerLayout used
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2006-10-29 21:28:40 UTC
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)?
Comment 3 SpanKY gentoo-dev 2006-10-29 22:08:19 UTC
something like ${LAYOUT:-${SOFTLEVEL}}

people could create /etc/conf.d/xdm.$SOFTLEVEL and change the LAYOUT value if they so choose
Comment 4 Thomas Bettler 2007-01-08 22:56:54 UTC
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.
Comment 5 Thomas Bettler 2007-01-08 23:00:49 UTC
Created attachment 106125 [details, diff]
xdm_init.patch

Make /etc/init.d/xdm accepting params for DM
Comment 6 Thomas Bettler 2007-01-08 23:03:06 UTC
Created attachment 106127 [details, diff]
xdm_conf.patch

A line with params to pass
Comment 7 Thomas Bettler 2007-01-08 23:04:17 UTC
Created attachment 106129 [details, diff]
startDM.sh.patch

Let startDM.sh pass the params on the dm call
Comment 8 Rémi Cardona (RETIRED) gentoo-dev 2009-06-19 15:27:22 UTC
Does anyone still care about this?

Thanks
Comment 9 SpanKY gentoo-dev 2009-06-19 21:47:09 UTC
i do for the same reason quoted originally ...
Comment 10 Rémi Cardona (RETIRED) gentoo-dev 2009-11-04 10:08:28 UTC
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
Comment 11 SpanKY gentoo-dev 2009-11-04 10:53:54 UTC
it's better than nothing
Comment 12 Rémi Cardona (RETIRED) gentoo-dev 2009-11-05 19:06:17 UTC
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