Ubuntu Fan

life with ubuntu on a thinkpad T40

Archive for the ‘xorg’ Category

Remote X Applications

Posted by ubuntufan on August 17, 2007

I know, I know…I’ve disappeared for a while. Summer is busy for me and I had to…..well I really have no excuse, but I’m back again for at least a while.

As you may or probably do not know, my work environment is composed of 29 glorious, non-windows servers. A fair amount of them are Solaris 9 with a dusting of Solaris 10, with the rest being various Linux distros. I wish I could change them all to the same distro but everything works, so I won’t complain too much. I occasionally wander away from the command line and need to run an X application of some sort; usually an installer. No problem right? From a CLI, just type xhost + , ssh to the Solaris box I need, export the display and that’s it…run any X app you like. Wait…what’s this? Error: Can’t open display: ????

This was making me mad….I had to install Oracle and didn’t feel like having to dig around to find out what the problem was. I brought up my Chatzilla window and logged into #ubuntu ( a great place for answers) The solution was simple and I believe it is a new security “feature” in 7.04 ( but I’m not 100% sure) All you have to do is go to the system menu, click on Administration and then click on Login Window. From there, click on the security tab and un-check the “Deny TCP connections to Xserver” check box….that’s it. Everything will work as expected from there.

There is a chance that this could possibly be a security hole but it’s easy enough to toggle on and off when needed if you’re paranoid. Hope this helps.

Dale

Advertisements

Posted in Administration, Networking, ubuntu, xorg | 16 Comments »

Dual Display on Dell Latitude D600

Posted by ubuntufan on April 4, 2007

Most of you know that I have been using a Dell Latitude D600 at my new job. It’s not a bad little system. I do like the 1400×1050 resolution. Anyhoo, I needed to get dual displays working so I could drive an external 19″ LCD as well as use the real estate of the laptops LCD while I’m at my desk. I wrote a previous post on detecting dual displays and switching the xorg.conf but never got around to posting my actual xorg.conf file. Withour further delay, here it is:


# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg


Section "Files"
FontPath "/usr/share/X11/fonts/misc"
FontPath "/usr/share/X11/fonts/cyrillic"
FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/X11/fonts/Type1"
FontPath "/usr/share/X11/fonts/CID"
FontPath "/usr/share/X11/fonts/100dpi"
FontPath "/usr/share/X11/fonts/75dpi"
# paths to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection


Section "Module"
Load "GLcore"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
EndSection


Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
EndSection

Section "Device"
Identifier "ATI Technologies, Inc. Radeon Mobility 9000 M9 (R250 Lf)"
Driver "ati"
BusID "PCI:1:0:0"
Screen 0
Option "DRI" "true"
Option "ColorTilling" "on"
Option "EnablePageFlip" "true"
Option "AccelMethode" "EXA"
Option "XAANoOffscreenPixmaps" "true"
Option "RenderAccel" "true"
Option "AGPMode" "8"
Option "AGPFastWrite" "on"
EndSection

Section "Device"
Identifier "ATI Technologies, Inc. Radeon Mobility 9000 M9 (R250 Lf) 2"
Driver "ati"
BusID "PCI:1:0:0"
Screen 1
EndSection

Section "Monitor"
Identifier "Laptop Monitor"
Option "DPMS"
EndSection

Section "Monitor"
Identifier "Acer Monitor"
VendorName "Acer"
ModelName "SyncMaster 900NF"
HorizSync 30-86
VertRefresh 50-160
Option "DPMS"
EndSection

Section "Screen"
Identifier "Laptop Screen"
Device "ATI Technologies, Inc. Radeon Mobility 9000 M9 (R250 Lf)"
Monitor "Laptop Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1400x1050"
EndSubSection
SubSection "Display"
Depth 4
Modes "1400x1050"
EndSubSection
SubSection "Display"
Depth 8
Modes "1400x1050"
EndSubSection
SubSection "Display"
Depth 15
Modes "1400x1050"
EndSubSection
SubSection "Display"
Depth 16
Modes "1400x1050"
EndSubSection
SubSection "Display"
Depth 24
Modes "1400x1050"
EndSubSection
EndSection

Section "Screen"
Identifier "Acer Screen"
Device "ATI Technologies, Inc. Radeon Mobility 9000 M9 (R250 Lf) 2"
Monitor "Acer Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x1024"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024"
EndSubSection
EndSection

Section "ServerFlags"
Option "Xinerama" "ON"
EndSection

Section "ServerLayout"
Identifier "Dualhead Layout"
Screen 0 "Laptop Screen" 0 0
Screen 1 "Acer Screen" RightOf "Laptop Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
Option "AIGLX" "true"
EndSection

Section "DRI"
Mode 0666
EndSection
Section "Extensions"
Option "Composite" "false"
EndSection

I’m not doing anything fancy here. I do like the fact that I can have the displays running different resolutions and drag windows back and forth. This was a bit troublesome on my old T40. I think it was because I wasn’t using Xinerama but I can’t recall. I’ll have to try this out on my new T40…..pictures of the new laptop soon.

Dale

Posted in displays, General Linux, Laptop, ubuntu, xorg | 4 Comments »

Detecting Dual Displays

Posted by ubuntufan on October 6, 2006

So I installed Ubuntu 5.10 breezy badger because that was the media that I had. It picked up all of the hadware on my Thinkpad T40 by default. I was totally stoked. I tweaked things for a few days before thinking about trying to get dual displays working. I have read that others have done it with a pc but not a laptop. After some googleing, I found some references to folks that had it working on various Thinkpads, so I sat down to try and figure it out.

I will post my xorg.conf file some other time as I want to devote some time to explaining the different sections of the file and what they do. Today I want to go over how to detect if an external display is present and use the correct xorg.conf file and profile. I’m sure that there are many ways to skin this cat but this one works for me.

# determine whether an external display is attached
#cp /etc/X11/xorg.conf /etc/X11/xorg.conf.pre-local
if /usr/sbin/ddcprobe | grep -q "analog signal"; then
echo "External Display attached."
# set external display as exclusive primary
# cat /etc/X11/xorg.conf.pre-local | sed 's#"Single"#"Single,Reverse"#g' > /etc/X11/xorg.conf
cp /etc/X11/xorg.dual.conf /etc/X11/xorg.conf
else
echo "Using build-in LCD."
# set build-in LCD as exclusive primary display
# cat /etc/X11/xorg.conf.pre-local | sed 's#"Single,Reverse"#"Single"#g' > /etc/X11/xorg.conf
cp /etc/X11/xorg.conf.orig /etc/X11/xorg.conf
fi

Copy and past the above code into a file and name it xorg.conf_switcher.sh (or whatever you want). Place it in your /etc/init.d directory. Don’t for get to issue a sudo chmod +x /etc/init.d/xorg.conf_switcher.sh command.

Ok, so what does it do? Well, ddcprobe is a neat little utility that will return cool information about your video chip, monitor(s) etc. What we’re doing here is looking for the term “analog signal” . If it’s there the xorg.dual.conf file gets copied over xorg.conf otherwise xorg.conf.orig gets copied over. I know there’s a way to specify which xorg.conf file to use at launch but this works for me. Hope this helps.

Feel free to let me know what you think and if there are ways to improve on this. I’m really liking my new Ubuntized T40. Oh, I did do a distro upgrade to 6.0.6 and it was flawless.

Dale

Posted in displays, xorg | 2 Comments »