Posted on April 22nd, 2008 by Jim
Category: Code, Linux
Tags: ubuntu
Last night I decided on a whim to upgrade to the latest RC (release candidate) of Ubuntu called Hardy Heron (8.x). It’s due to officially be released in a few days so I figured it should be fairly stable and I thought I’d beat the rush and upgrade now. Usually I do these sort of things with little planning and last night was no exception!
- No backup (rsync is sooo easy but really, what could go wrong?)
- Started the upgrade right about the time a huge thunderstorm was overhead (computers love lightening!)
- Forgot once again to backup my xorg.conf file (just in case)
The upgrade took about an hour. Soon it rebooted my system and of course my monitors were all a mess. Seems the NVidia drivers either didn’t get upgrade or got hosed. Sigh. Then I go to hit the Ubuntu forums (a great resource) and they are down for maintenance or something. Ooops.
But I did find one post on the web that suggested trying Envy to load the latest NVidia drivers. I did that and things still weren’t right so I loaded up the package manager, uninstalled EVERYTHING NVidia related and tried Envy again. This time I got nvidia-settings to run and from there it was just a simple matter of setting things up again and tweaking my xorg.conf file. The only other thing that didn’t work was my sound for some reason but a quick search on the web and I found a few suggestions and after fiddling a bit I got it working as well.
I didn’t really have time afterwards to dig around and find out what’s new with the latest release but will hopefully have time to do that tonight after the TACFUG meeting! Overall I’ve been very happy with Ubuntu but I do wish they could spend some time fixing the monitor setup issues. That has been an issue during the last 2-3 upgrades.
Posted on January 22nd, 2008 by Jim
Category: Code, Linux
Tags: Linux, ubuntu
Ever since I’ve been using two monitors at work I’ve wanted to setup two monitors at home but finances are tight and I just can’t afford another flat screen. But this weekend I did dust off my daughters old 17″ CRT and tried to get it working with my Dell widescreen. I knew the latest Ubuntu had made advances in setting up monitors but I was also familiar with hacking on xorg.conf so I wasn’t too concerned with screwing anything up. I backed up my xorg.conf and started tinkering.
I originally messed with Ubuntu’s native screen controls but they were having no effect. After a bit of digging I discovered if you are using the ‘restricted’ NVIDIA drivers (which I was) there is another application for tweaking settings - nvidia-settings. This was a bit confusing. Which one to use? (Ubuntu should check to see if the NVIDIA drivers are installed and if so disable the native screen tools.) The NVIDIA application provided a nice dialog - both screens were showing - but at incorrect resolutions. I tweaked a few things - saved, restarted my session. Nothing happened. The CRT was working but my Dell widescreen was doing nothing. I tried a few more things and got frustrated so I hit the Ubuntu forums. Lots of threads on there about running dual head but no real silver bullet solutions. One suggestion did mention running the settings application as sudo. I tried that and things started to work. After a bit more experimentation I got the following modes to work.
Twinview - this is a NVIDIA setting. It basically takes your current desktop and ’stretches’ it across both monitors. This would probably work OK if both monitors were the same size and resolution but since mine were different - it was a bit odd to work with. I could also not ‘contain’ my applications to one screen. If I maximized a window - it would stretch across both monitors. Not ideal.
Next I turned off Twinview and enabled Xinerama.
Xinerama is an extension to the X Window System which enables multi-headed X: applications and window managers which use two (or more) physical displays as one large virtual display.
This worked but oddly enough some applications (like terminal and Gnome Do) would not start. After tinkering a bit I discovered the fancy new compositing window manager Compiz wasn’t running. Why? I have no idea. But overall this was the most “Windows” like setup. I could drag running applications between screens but if I maximized an application it would contain itself to one monitor. But without Compiz running the system was unusable. If I can get Compiz running in this mode I’ll be happy.
Finally I removed the Xinerama setting and just set configured two X sessions. This gave me two independent desktops. I had two taskbars, two desktops and while I could drag and drop icons and files between the two screens I could not open an application on one desktop and move it to the other. This works and is what I’m using now but obviously it is not ideal.
I’m going to tinker with the ‘restricted’ NVIDIA drivers a bit more. If I can’t make any progress I may try the drivers from the NVIDIA site itself and see if anything improves. The other alternative is to figure out why Compiz isn’t running and fix that.
I’ve been so happy running Ubuntu it is a shame that getting this setup is so difficult. While I’m happy tweaking things I could easily see others hitting this roadblock and giving up. Hopefully the Ubuntu team will make some progress on tightening up the integration between native Ubuntu apps, restricted drivers and Compiz.