This article is part of my series on exploring Linux. In my last article I was quite disappointed at how difficult it was to get my dual monitors configured just the way I wanted; although it sounds like a lot of the fault lay at the feet of ATI and their proprietary drivers.
My multi-phased procedure for getting a perfect monitor configuration made me doubt whether my settings would be permanent. Would my configuration survive an undocking and redocking of my laptop (my 2nd monitor going away and coming back)? It was time to test!
I decided to kill two birds with one stone and test the networking results as well. Up to this point I had been using the internal Wifi features of the laptop and ignoring the wired ethernet port on my docking station. By configuring the laptop to use the wired port, I could see what happens when I undock and leave that port behind.
Talk about another easy process! I connected the dock to the wall via RJ-45 cable - Ubuntu immediately noticed and connected to my wired network. Not only did it start to use the wired network, but it remained connected to my wireless network as well:
Interesting result. Not only does the network drop-down give a wonderful summary of my network status, it also lets me disconnect from my wireless connection if I wish.
Now that I'm using my dock's wired network connection and a desktop spread onto my dock's monitor, it's time to disconnect. I turned off the laptop and took it out of the dock. I powered it back on and everything worked perfectly! My main desktop panels had moved to the small laptop screen (normally they were on the large LCD) and Ubuntu kept my mouse from wondering off the screen realestate. Clearly the desktop occupied only one screen. The networking also worked flawlessly. I was surfing wirelessly with no configuration required.
Satisfied that the test was a success, I was eager to see what would happen once I rejoined my dock. Would the dual-head screen configuration I had worked so hard for be a distant memory? I needn't have worried. When I rejoined my dock, Ubuntu started using my two screens and wired network connection as I had configured previously. This is the kind of professional, smooth experience I expect from my operating system.
BTW, have you noticed the screenshots I've been adding to my articles? These come to you courtesy of GIMP, the graphics program bundled with Ubuntu. GIMP really puts MS Paint to shame. Have you ever seen such pretty icons?![]()
Saturday, January 17, 2009
Docking / Undocking
Posted by
Gordon Martin
at
11:25 PM
0
comments
Wednesday, January 14, 2009
Dueling with my Dual Monitors
This article is part of my series on exploring Linux. In my last article I was astounded at how easily I was able to connect to my network printers with duplex and colour printing supported.
I still haven't tried to figure out why the touch or Wacom tablet features aren't working. I also haven't tested features like the web cam or thumb scanner or card reader... It was all these extras that attracted me to this HP tx2600 series laptop as a testbed for Linux - it certainly wasn't the call of the 1280 x 800 display occupying only 12.1 inches - which reminds me...
Time to fire up the second monitor, a Samsung T220 22" 1680 x 1050 screen - I want to be comfortable when running these experiments after all. I plugged the D-sub VGA connector into the laptop. I tried a few things and got various results, none of them great. Basically, when I boot the system it thinks it has one desktop of 1440 x 900 pixels. It is mirrored on both screens. The laptop screen is forced to pan around a larger desktop, while the second monitor has vertically stretched an image and is doing the ugly "non-native" thing. What I need is a desktop that is spread across two monitors that are each displaying in their proper native resolutions.
Under SystemPreferences I did find the Screen Resolution interface. At some point it did display two boxes that could be used to specify a relative position of two monitors, but it never showed the proper resolutions and when I enabled the feature, my second monitor went black. I know I'm in the right area, but I suspect I have a driver issue. I fear I must tell Ubuntu more about my ATI Mobility Radeon HD 3200. BTW, I should mention that Linux is losing at this point. When I booted into my 64-bit Windows Vista, it came right up and supported a dual monitor configuration beautifully. (Mind you, Vista did come pre-configured, so maybe it wouldn't have worked out-of-the-box in that case either).
I was pleasantly surprised when I did a search on the ATI site. There I found 64-bit Ubuntu drivers for my card and all other supported ATI cards! They also include something called the ATI Catalyst Control Center.
At this point I was in for another pleasant Linux surprise. Before attempting to download and install the driver, I decided to read the documentation. I was instantly able to read the Adobe Acrobat pdf documents. I got no warning about a missing reader and the documents appeared almost instantly - much faster than in Windows. It turns out that an open source Document Viewer was bypassing Adobe's product and just displaying the files - neat.The ATI drivers installed cleanly and I soon found shortcuts to the Catalyst Control Center (CCC) under my Applications menu. The application has a pleasant interface. It provided great system information and accurate information about my attached monitors. It also offers fine-tuning of color and 3D settings. But the part I was interested in was the Display Manager that lets me set my screen resolutions and relative positions. -- This part sucks!
Although CCC knew the native resolutions of my monitors, it would not give them to me. I could get different parts of the desktops on each display now, but one monitor is being forced to pan and the other is displaying in a rather low resolution. Playing with it and rebooting multiple times got me a variety of results, but never the results I was looking for. I only got relief from my frustration once I did more research on the web.
I lost hours to this research and to endless reboots of my system as I tested various solutions. I'll spare you all the details, but I'll share what I learned in the hopes that I save someone else some time. Of course, everyone has a different set of circumstances, but my combination of steps seemed to be a unique solution I had not found elsewhere.
The GUI environment is presented by something called XServer. People just simply refer to it as "X" or "XVideo". As with everything else, the desktop configuration is stored in a config file - xorg.conf in this case. Nowadays drivers/software are supposed to manage this config file for you, but it is obvious that things can go squirly and the file needs to be edited directly. Forums are constantly describing entries for this file and posting the entire text of their files in hopes of troubleshooting things. I'm not entirely convinced that xorg.conf is the only place that stores desktop config information because I was changing resolutions and seeing no changes in the file.
The ATI Catalyst Control Center (CCC) is one of the modern tools that is supposed to manage that file. It clearly didn't work properly for me however. Many forums discussed a more traditional tool called aticonfig that my driver download had also installed. This tool was far more sensible and worked more predictably, but it didn't get me all the way to my solution.
Many forums talk about using an aticonfig --initial option to reset the xorg.conf file so that you can sort of start things off from ground zero. I found I still had pollution in this file that prevented me from being successful.
The best thing I ever did was open the config file and delete all of its contents:
- I opened a terminal window (ApplicationsAccessoriesTerminal).
- I opened the file with the command: gksudo gedit /etc/X11/xorg.conf
- I selected everything and deleted it.
- I saved my changes.
(Notice that sudo command again? I learned about it while fixing my sound.)sudo aticonfig --initial=dual-head --screen-layout=left
The command told Linux to operate each monitor independently and to put my main screen to the left of my secondary (there may be some reverse logic here due to the way my monitors were detected - you may want to try "right" instead).
A quick reboot revealed dual screens but still with the wrong resolutions and some weird behaviour. By the way, rather than going through the entire reboot process, you can just restart the XServer part by hitting CTRL+ALT+Backspace.
The following command fixed a lot of the weirdness I was seeing:
sudo aticonfig --add-pairmode=1680x1050+1280x800But I still wasn't getting my native resolution I was after. At this point I resorted to the usual Screen Resolution interface found under SystemPreferences. It only offered to configure the resolution of my external monitor - but that was what I needed and it let me choose 1680x1050! Yay! (I would have provided a screen shot, but subsequent config steps seem to prevent this interface from appearing anymore.)
There was only one problem left. My mouse could glide between my two screens but I was unable to drag application windows between them. Using the ATI CCC solved this problem. I was able to use it to enable a feature called Xinerama from Display OptionsX ConfigurationXinerama. It's hard to tell, but a grayed out square means it is selected. Xinerama is the feature that gets these applications to glide between the screens.
There. I'm done. I have the screens configured exactly as I wanted. I could tell it was possible, but it was one hell of a horribly long road to get there. I ended up using all the tools I had seen (xorg.conf, aticonfig, CCC, Screen Resolution), but at least I didn't have to manually insert specific values throughout the file.
Obviously, Vista gets a big win in this category. Ubuntu / Linux sucked when it came to my dual monitor config! But apparently this may be largely specific to the ATI drivers and software that ATI provides. It sounds like users with Nvidia graphics cards may fair quite a bit better.
Now because this blog article isn't long enough... I'm going to end with a copy of my xorg.conf file - just like all those other Linux bloggers I found. After that, I'm linking to a number of helpful forums I found in case they can be more helpful than I have been. See you soon!
Section "ServerLayout"(See, no mention of my chosen resolutions.)
Identifier "aticonfig Layout"
Screen 0 "aticonfig-Screen[0]-0" 0 0
Screen "aticonfig-Screen[0]-1" LeftOf "aticonfig-Screen[0]-0"
EndSection
Section "Files"
EndSection
Section "Module"
EndSection
Section "ServerFlags"
Option "Xinerama" "on"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]-0"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Monitor"
Identifier "aticonfig-Monitor[0]-1"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]-0"
Driver "fglrx"
Option "PairModes" ""
BusID "PCI:1:5:0"
EndSection
Section "Device"
Identifier "aticonfig-Device[0]-1"
Driver "fglrx"
BusID "PCI:1:5:0"
Screen 1
EndSection
Section "Screen"
Identifier "aticonfig-Screen[0]-0"
Device "aticonfig-Device[0]-0"
Monitor "aticonfig-Monitor[0]-0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "aticonfig-Screen[0]-1"
Device "aticonfig-Device[0]-1"
Monitor "aticonfig-Monitor[0]-1"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Helpful links:
http://wiki.cchtml.com/index.php/Configuring#Troubleshooting
http://wiki.cchtml.com/index.php/Troubleshooting
http://ubuntuforums.org/showthread.php?t=221174
http://ubuntuforums.org/showthread.php?t=301941
http://ubuntuforums.org/showthread.php?p=1773710
Posted by
Gordon Martin
at
12:09 AM
3
comments
Sunday, January 11, 2009
Printing before writing
This article is part of my series on exploring Linux. In my last article I experienced some of the difficulties of working with a 64-bit OS when there was no Adobe Flash player available. Luckily I found Adobe's beta product that worked beautifully (and just happened to be available for Linux before Windows).
I'm realizing that as I experiment with Ubuntu, I really need to print information I discover. I should setup printing before I try things like handwriting recognition with the touch screen. But I've been dreading this test. I have fairly recent printers (an HP2605dn and HP2600n) and I wonder if there will be drivers to properly support them. To complicate things, these are colour printers - one with a duplexer. They are both acting as print servers over the LAN (one wirelessly). -- see why I'm worried?
Well, my fears were unfounded! This was the easiest setup I have ever done - easier than Vista even. Here's how it unfolded:
- I went to System|Administration|Printing and clicked on "New".
- The system automatically scanned and found my printers (my wireless one didn't respond until the 2nd attempt however).
- Ubuntu recognized my printer and offered to go out and find drivers.
- It found drivers! It clearly stated that they were provided by HP. It gave me all sorts of details so I could have trust in the driver. It told me what features were supported and what testing had been done by Ubuntu, etc.
- It then downloaded them when I was ready, using the package manager I had encountered in the past. No visits to the printer manufacturer site! How cool is that?!
- I was given a chance to nicely identify the printer's name, location, etc. so that I could more easily work with it in the future.
- I was then able to investigate the printer properties. I was able to set default and sharing options. All very clear and pretty. I was able to setup my colour options and duplex printing preferences no problem at all.
- Then it printed!
In truth, there were one or two flow issues. The screens don't hand-hold you very well when downloading the printer drivers. The progress indicator went instantly from 0% to complete. Then I was left at a screen wondering if it was finished - not realizing I needed to click a different button now. Also, the driver for the 2nd printer came in with the first, so there was no need to download it - which the system told me. But the system said I could just continue with the "next" screen but left the "next" button deactivated. It was another flow issue. I just had to cancel the download and choose to use an existing driver.
I am not unhappy with the flow issue at all, and it only lost me 10 seconds or so. But I think this printer installation demonstrated a clear difference between Windows and Linux. I know Windows would never allow a flow issue like that, but there are so many other things wrong with its installation that Linux has licked. Linux provided an end-to-end installation experience (no visiting a manufacturer site). Linux communicated clearly in detail so I knew exactly what I was configuring. At the end, I had a printer published the way I wanted, performing exactly as I expected. No surprises, no mystery. I don't know if this experience can be said about all Linux printer installations, but in my case, I was impressed.
Emboldened, it's time to configure my second monitor for dual-head display! (Actually, I've already started playing, Ubuntu isn't doing so well with this one...)
Posted by
Gordon Martin
at
2:05 AM
6
comments
