Gentoo and Xorg 7.4

(EDIT 1 [10-03-08]: I was able to find a way to get the synaptics touchpad to work :). So I changed the section where I talked about the touchpad.)

(EDIT 2 [12-19-08]: Updated package.keywords for xorg-server-1.5.2 and added a small section talking about a small problem I encountered.)

So today I was trying to get dual monitor support to work with my laptop and an external CRT I have laying around my house. Sadly though… somewhere between xorg-xserver- and xorg-xserver- support for mergedfb was dropped. This was particularly problematic for me since that is what I use to do dual screens. I accidentally received the upgrade when installing OpenOffice a week or so ago. Apparently versions of xserver less than are no longer in portage.  So… I figured if I was going to run an “unstable” version of X I might as well try out Xorg 7.4. To do this I had to add the following to package.keywords


########## Xorg 7.4 #################

Then I simply ran:

emerge -av xorg-x11

Then I let the magic begin. This will probably not work for everyone and certainly if you aren’t running at least modular X already you will have many issues because you need to follow the modular X migration guide.

Anyway so far it has been running very well, and I love having the use of xrandr. Especially on my laptop where I do a lot of moving around and switching of external monitors. I had several problems this week getting my laptop to work with projectors and I am hoping that this will help solve some of those problems as well. It really is quite amazing how far along X has come since I first started running Linux about 4 years ago.The one problem is that the synaptics driver does not compile against Xorg 7.4. I can still use the touchpad and as long as I can disable tap to click all will be well 🙂 . However I did find a synaptics driver. To install it I had to add the follow to /etc/portage/package.keywords:


Then I emerged it:

emerge -av xf86-input-synaptics

Another problem I encountered was that during the upgrade has to do with an ABI change that occurred. If you read those friendly messages at the end of the emerge there is one that goes like this:

You must rebuild all drivers if upgrading from xorg-server 1.4.1
or earlier, because the ABI changed. If you cannot start X because
of module version mismatch errors, this is your problem.
You can generate a list of all installed packages in the x11-drivers
category using this command:

emerge portage-utils; qlist -I -C x11-drivers/

That happened to me, but in a more subtle way. Everything was working except for a USB mouse I had hooked up. All I had to do was re-emerge the mouse driver. If you are not sure which driver to re-compile the quick and dirty way to compile them all at once is:

qlist -C -I x11-drivers/ | xargs emerge -v 

At this point you should be all set to restart X and hope that it works right :).

On another note, I am starting to think my “only update every 6 months” policy needs some refining. Once I am done with college hopefully I will be able to afford updating more often. At present I don’t enjoy dealing with the potential breakages that can occur with upgrades when I need to get work done. Luckily this problem occurred at the beginning of my fall break so I had some extra time to mess around with it 🙂 . Hopefully I can get in another blog entry or two in this time as well!


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: