Saturday, January 31, 2009

ThinkPad T400 Xorg tweak on Ubuntu Intrepid 8.10

Getting Ubuntu 8.10 working on my ThinkPad T400 (with Intel 4500HD) is a dream. One area that I found to be quite annoying is the extra "Unknown" screen that shows up when I launch the "Gnome Monitor Resolution Settings" utility. Usually I get my laptop screen and another "Unknown" screen. This is fine with one exception.

I have an advanced mini docking station with a DVI powering my LG 24" LCD. Usually, I like to use the Gnome Monitor Resolution Settings utility to turn off the laptop screen and keep the LG 24" on instead. The problem is when I want to take my laptop out of the docking station, I need to turn off the LG screen and turn on the laptop screen. When I do that, X crashes and I lose all my open windows. This sucks because I have lots of those windows open with files and such and it is a a pain to do that. After some researching, I figured out that if I tell Xorg to turn off this "Unknown" screen, turning things on and off does't cause a crash.

To do that, I added the following to my Xorg.conf (found in /etc/X11/):


Section "Monitor"
Identifier "HDMI-1"
Option "Ignore" "True"
EndSection


and Added:
Option "monitor-HDMI-1" "HDMI-1"
to the device section of my file.

Now when I run the Gnome Monitor Resolution Settings Utility, I get:

Saturday, January 3, 2009

Scan with Brother MFC7820 with Ubuntu Intrepid

I have lots of receipts and docs that I wish to scan and my Brother MFC 7820 didn't work due to permissions problems. Here is how I got it working.


  1. Install the libsane-extras package since it isn't installed by default

  2. Download and install the Brother scanner driver. Brother providers .deb packages, although they are not great. Get it here

  3. Edit "/etc/udev/rules.d/50-libsane-extras.rules" and add the following file to it:(2 lines)

    #Brother|MFC-640CW

    SYSFS{idVendor}=="04f9", SYSFS{idProduct}=="0181", MODE="664", GROUP="scanner"

  4. logout and log back in and you should be good to go



If you don't have the same exact model, you can replace the idVendor and idProduct by using the command "sane-find-scanner" and it will list your scanner with all the ids in there. Copy the numbers but ignore the "0x".