Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 311295 - app-admin/eselect-xorgconf
Summary: app-admin/eselect-xorgconf
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://code.google.com/p/krigstasks-s...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-25 12:53 UTC by gtlinuxman
Modified: 2015-03-19 09:52 UTC (History)
5 users (show)

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


Attachments
eselect-xorgconf-0.1.ebuild (eselect-xorgconf-0.1.ebuild,685 bytes, text/plain)
2010-03-25 12:54 UTC, gtlinuxman
Details
metadata.xml (metadata.xml,250 bytes, text/plain)
2010-03-25 12:56 UTC, gtlinuxman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gtlinuxman 2010-03-25 12:53:15 UTC
An eselect module to manage /etc//X11/xorg.conf symlink.
http://code.google.com/p/krigstasks-samling/downloads/list

Reproducible: Always
Comment 1 gtlinuxman 2010-03-25 12:54:40 UTC
Created attachment 225217 [details]
eselect-xorgconf-0.1.ebuild

eselect-xorgconf-0.1.ebuild
Comment 2 gtlinuxman 2010-03-25 12:56:49 UTC
Created attachment 225219 [details]
metadata.xml

metadata.xml
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2010-03-25 13:04:16 UTC
What is it good for?
I mean to eselect xorg.confs?
Comment 4 Doktor Notor 2010-03-25 13:10:49 UTC
(In reply to comment #3)
> What is it good for?
> I mean to eselect xorg.confs?

No idea either :-) X now starts without any xorg.conf for most people.  If you can get this working w/ xorg.conf.d directory structure for the upcoming xorg-server 1.8 w/ udev support [1], then it might eventually be of some use. 

[1] http://who-t.blogspot.com/2010/01/new-configuration-world-order.html
Comment 5 Nikolaj Šujskij 2010-03-25 13:37:14 UTC
Hello guys, I'm the author (for the lack of better word) of this module.

I use this tool to switch between nvidia config with TwinView and Xrandr-based nouveau one (see provided URL).
gtlinuxman might say what does he use it for too.

As for
(In reply to comment #4)
> If you can get this working w/ xorg.conf.d directory structure for the upcoming
> xorg-server 1.8 w/ udev support [1], then it might eventually be of some use. 

I think I will support this too, it doesn't seem very hard (though it'll require two modules, I think). But I'll wait for Xorg 1.8 in ~amd64 to implement and test it. Thanks for link about 1.8, by the way.
Comment 6 Doktor Notor 2010-03-25 13:44:15 UTC
(In reply to comment #5)
> I think I will support this too, it doesn't seem very hard (though it'll
> require two modules, I think). But I'll wait for Xorg 1.8 in ~amd64 to
> implement and test it. Thanks for link about 1.8, by the way.

Well, I imagine that more or less shameless copy of eselect-fontconfig should do the job there, assuming you can work the config files layout out w/ x11 folks. For the former cited use case, very much an overkill.

Comment 7 Justin Lecher (RETIRED) gentoo-dev 2010-03-25 13:52:04 UTC
@gtlinuxman
Please do not change the status of a bug to assigned. It isn't assigned as long no gentoo dev took it.

Comment 8 Tomáš Chvátal (RETIRED) gentoo-dev 2010-03-25 14:08:21 UTC
Future xorg-server supports directory
xorg.conf.d/
where it can be separated into more files.

How would your eselect tool handle that?
Comment 9 Nikolaj Šujskij 2010-03-25 14:16:49 UTC
 I did not really think of it, to be honest, so I would like to ask for advice. I think that most appropriate thing to do is to implement two modules: the first is current module for symlinking main config, and the other , eselect-xorgd or something, working like eselect-fontconfig, enabling/disabling portions in /etc/X11/xorg.d/

(In reply to comment #8)
> Future xorg-server supports directory
> xorg.conf.d/
> where it can be separated into more files.
> 
> How would your eselect tool handle that?
 
Comment 10 Nikolaj Šujskij 2010-04-23 04:50:32 UTC
I need your advice, guys.
I did (as Doktor Notor suggsted) mercilessly hack eselect-fontconfig and came up with this draft: http://code.google.com/p/krigstasks-samling/source/browse/xorg.conf.d.eselect?repo=esel-xconf (yep, still there's room for polishing at least)

As it is, module does take care of symlinking files from /etc/X11/xorg.conf.avail to /etc/X11/xorg.conf.d
So I want some advice from x11 herd andother competent people: should it use other directory for available config pieces? Should it support multiple directories maybe (like fontconfig does)? Some Xorg modules (x11-drivers/xf86-input-wacom, for example, as I was informed) install config piece in /usr/share, should we handle that too? Xorg comes with /etc/X11/xorg.conf.d/10-evdev.conf already in place, so for it to be eselectable user should manually move it to xorg.conf.avail, that's not probably very good too, how could I workaround it?

All the critics and suggestions for improvement are heartly welcome.

By the way, app-admin/eselect-xorgconf-0.2 (still supporting monolythic configs only) is in rion overlay now.
Comment 11 Nikolaj Šujskij 2010-05-07 23:00:15 UTC
Version 0.3 released, with support for modular configs.
Comment 12 Matt Turner gentoo-dev 2015-02-22 21:48:59 UTC
Is there still any interest in adding this to the tree?
Comment 13 Nikolaj Šujskij 2015-03-19 09:52:16 UTC
(In reply to Matt Turner from comment #12)
> Is there still any interest in adding this to the tree?
Seems like there's no much interest, so let it reside in rion-overlay, where I can kind-of-support it on my own :)