Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

To get the tri-monitor setup I want, I am using the libXinerama hack that allows me fake my layout.

In order to use this, I use a patched version of libXinerama and put it in /usr/lib and then change the symbolic link to point to it:

[kbrandt@alpine: /usr/lib] ls -l libXinerama.*
-rw-r--r-- 1 root root  7286 2010-05-18 07:57 libXinerama.a
lrwxrwxrwx 1 root root    20 2011-02-27 19:59 ->
lrwxrwxrwx 1 root root    20 2011-05-06 11:31 ->
-rw-r--r-- 1 root root  8659 2011-04-11 09:40
-rw-r--r-- 1 root root 10432 2011-02-27 20:01

This work fine, except on reboot it rewrites the link and points it to which breaks my setup. What process is doing this, and how can I stop it from doing it?

share|improve this question
I think you can change the attribute of the symbolic link so it won't be overwrited. ' sudo chattr +i' – desgua May 9 '11 at 14:21
up vote 1 down vote accepted

Presumably ldconfig is being called somewhere, and sorts after so it is being selected as the newest version of the library.

Why exactly do you need to patch the Xinerama extension's client library in the first place?

share|improve this answer
K, I have just removed the back version from the folder, seems to have stopped happening. As to why, 3 headed display kind of sucks unless I have two as TwinView and then a standalone X session for the third. Since my monitors are not the same size for the TwinView, I need to fake it:… – Kyle Brandt May 9 '11 at 20:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.