Xorg semi-autoconfiguration?
Is there a way how to make Xorg configure the devices and screens based on the HW scenario (ie. without need to manually prepare whole xorg.conf) and automatically switch between them? We are using USB Displaylink devices and in case this device is not available it breaks the prepared configuration and user has to manually switch the xorg.conf for non-USBDP scenario and restart Xorg. It would be also great if we can prepare some "rule-them-all" configuration as user's are running on machines with different graphic cards.
Do we really need to script all this manually before we start the X server or do Xorg have some mechanism how to build xorg.conf file with respect to specified requirements eg. when USBDP is connected then add the Xinerama support into ServerLayout section etc?
Attachments
Responses
I saw a beginning of a discussion in this discussion. Looks like more might be posted later.
Just curious, do you have more than one manufacturer's graphics cards? The USB Display Link looks interesting but have not tried it's use with Linux yet. I did some searches but did not find much on this topic. Here's a small tiny bit from Fedora. Do you have support with displaylink? and also see this link, archlinux and displaylink.
Perhaps you could copy each of the working xorg.conf files once you had this configured in each of your scenarios to a safe and separate location. Then script the switch before restarting X. You could make this available to a non-privileged user by making a directory with a script that watches the directory (like once a minute). Then have a simple file touched in there and if the script detects the file (named after whatever scenario you have), it flips the xorg.conf and restarts X. You could have an ACL on that directory so only specific people could touch a file in it.
Wish you well with this. Perhaps someone here in the community might have some more info...
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
