PDA

View Full Version : [ubuntu] Dell latitude - CRT/LCD switch function is gone in 8.10


johnylwo
October 31st, 2008, 09:51 PM
Hello,

I'm using Dell Latitude X300, lscpi shows:
00:02.0 VGA compatible controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
00:02.1 Display controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02)
I have the following drivers installed:
xserver-xorg-video-i810
xserver-xorg-video-intel


I just updated Ubuntu 8.04 to 8.10, and I'm having a problem:
In 8.04 I used this xorg.conf:
# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by failsafeDexconf, using
# values from the debconf database and some overrides to use vesa mode.
#
# You should use dexconf or another such tool for creating a "real" xorg.conf
# For example:
# sudo dpkg-reconfigure -phigh xserver-xorg
Section "Files"
EndSection

Section "Module"
Load "glx"
Load "GLcore"
Load "dri"
Load "v4l"
EndSection

# commented out by update-manager, HAL is now used
#Section "InputDevice"
# Identifier "Generic Keyboard"
# Driver "kbd"
# Option "CoreKeyboard"
# Option "XkbRules" "xorg"
# Option "XkbModel" "pc105"
# Option "XkbLayout" "us"
#EndSection

# commented out by update-manager, HAL is now used
#Section "InputDevice"
# Identifier "Configured Mouse"
# Driver "mouse"
# Option "CorePointer"
# Option "Device" "/dev/input/mice"
# Option "Protocol" "ImPS/2"
# Option "ZAxisMapping" "4 5"
# Option "Emulate3Buttons" "true"
#EndSection


# commented out by update-manager, HAL is now used
#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 "Failsafe Device"
Driver "vesa"
EndSection

Section "Monitor"
Identifier "Failsafe Monitor"
Option "DPMS"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Failsafe Device"
Monitor "Failsafe Monitor"
Defaultdepth 16
SubSection "Display"
Depth 16
Modes "800x600"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Default Layout"
screen 0 "screen1" 0 0
# commented out by update-manager, HAL is now used
# Inputdevice "Generic Keyboard"
# commented out by update-manager, HAL is now used
# Inputdevice "Configured Mouse"
# commented out by update-manager, HAL is now used
# Inputdevice "Synaptics Touchpad"
EndSection
Section "device" #
Identifier "device1"
Boardname "Intel 85x"
Busid "PCI:0:2:0"
Driver "i810"
Screen 0
Vendorname "Intel"
Option "MonitorLayout" "CRT,LFP"
Option "Clone" "on"
Option "CloneRefresh" "60"
EndSection
Section "screen" #
Identifier "screen1"
Device "device1"
Defaultdepth 24
Monitor "monitor1"
SubSection "Display"
Depth 24
Virtual 1024 768
Modes "1024x768@60" "800x600@60" "800x600@75" "800x600@72" "640x480@75" "640x480@72" "640x480@60"
EndSubSection
EndSection
Section "monitor" #
Identifier "monitor1"
Vendorname "Dell"
Modelname "Dell 1024x768 Laptop Display Panel"
Horizsync 31.5-48.5
Vertrefresh 59.0-75.0
modeline "640x480@60" 25.2 640 656 752 800 480 490 492 525 -vsync -hsync
modeline "640x480@72" 31.5 640 664 704 832 480 489 491 520 -vsync -hsync
modeline "640x480@75" 31.5 640 656 720 840 480 481 484 500 -vsync -hsync
modeline "800x600@72" 50.0 800 856 976 1040 600 637 643 666 +hsync +vsync
modeline "800x600@75" 49.5 800 816 896 1056 600 601 604 625 +hsync +vsync
modeline "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
modeline "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -vsync -hsync
Gamma 1.0
EndSection
Section "device" #
Identifier "device2"
Boardname "Intel 85x"
Busid "PCI:0:2:1"
Driver "i810"
Screen 0
Vendorname "Intel"
EndSection
Section "screen" #
Identifier "screen2"
Device "device2"
Defaultdepth 24
Monitor "monitor2"
SubSection "Display"
Depth 24
Modes "1024x768@75" "1024x768@70" "832x624@75" "1024x768@60" "800x600@60" "1024x768@43" "800x600@85" "1280x960@60" "800x600@75" "800x600@72" "800x600@56" "640x480@85" "640x480@75" "640x480@72" "640x480@60"
EndSubSection
EndSection
Section "monitor" #
Identifier "monitor2"
Vendorname "Plug 'n' Play"
Modelname "Plug 'n' Play"
modeline "640x480@60" 25.2 640 656 752 800 480 490 492 525 -vsync -hsync
modeline "640x480@72" 31.5 640 664 704 832 480 489 491 520 -vsync -hsync
modeline "640x480@75" 31.5 640 656 720 840 480 481 484 500 -vsync -hsync
modeline "640x480@85" 36.0 640 696 752 832 480 481 484 509 -vsync -hsync
modeline "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
modeline "800x600@72" 50.0 800 856 976 1040 600 637 643 666 +hsync +vsync
modeline "800x600@75" 49.5 800 816 896 1056 600 601 604 625 +hsync +vsync
modeline "800x600@85" 56.3 800 832 896 1048 600 601 604 631 +hsync +vsync
modeline "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
modeline "832x624@75" 57.284 832 864 928 1152 624 625 628 667 -vsync -hsync
modeline "1024x768@75" 78.8 1024 1040 1136 1312 768 769 772 800 +hsync +vsync
modeline "1024x768@70" 75.0 1024 1048 1184 1328 768 771 777 806 -vsync -hsync
modeline "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -vsync -hsync
modeline "1024x768@43" 44.9 1024 1032 1208 1264 768 768 776 817 +hsync interlace +vsync
modeline "1280x960@60" 102.1 1280 1360 1496 1712 960 961 964 994 -hsync +vsync
Gamma 1.0
EndSection
Section "ServerFlags"
EndSection
Section "device" #
Identifier "device3"
Boardname "Intel 85x"
Busid "PCI:0:2:0"
Driver "i810"
Screen 1
Vendorname "Intel"
Option "MonitorLayout" "CRT,LFP"
Option "Clone" "on"
Option "CloneRefresh" "60"
EndSection
Section "screen" #
Identifier "screen3"
Device "device3"
Defaultdepth 24
Monitor "monitor3"
SubSection "Display"
Depth 24
Modes "1024x768@75" "1024x768@70" "832x624@75" "1024x768@60" "800x600@60" "1024x768@43" "800x600@85" "1280x960@60" "800x600@75" "800x600@72" "800x600@56" "640x480@85" "640x480@75" "640x480@72" "640x480@60"
EndSubSection
EndSection
Section "monitor" #
Identifier "monitor3"
Vendorname "Samsung"
Modelname "Samsung SyncMaster 550(M)s"
Horizsync 30-61
Vertrefresh 50-120
modeline "640x480@60" 25.2 640 656 752 800 480 490 492 525 -vsync -hsync
modeline "640x480@72" 31.5 640 664 704 832 480 489 491 520 -vsync -hsync
modeline "640x480@75" 31.5 640 656 720 840 480 481 484 500 -vsync -hsync
modeline "640x480@85" 36.0 640 696 752 832 480 481 484 509 -vsync -hsync
modeline "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
modeline "800x600@72" 50.0 800 856 976 1040 600 637 643 666 +hsync +vsync
modeline "800x600@75" 49.5 800 816 896 1056 600 601 604 625 +hsync +vsync
modeline "800x600@85" 56.3 800 832 896 1048 600 601 604 631 +hsync +vsync
modeline "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
modeline "832x624@75" 57.284 832 864 928 1152 624 625 628 667 -vsync -hsync
modeline "1024x768@75" 78.8 1024 1040 1136 1312 768 769 772 800 +hsync +vsync
modeline "1024x768@70" 75.0 1024 1048 1184 1328 768 771 777 806 -vsync -hsync
modeline "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -vsync -hsync
modeline "1024x768@43" 44.9 1024 1032 1208 1264 768 768 776 817 +hsync interlace +vsync
modeline "1280x960@60" 102.1 1280 1360 1496 1712 960 961 964 994 -hsync +vsync
Gamma 1.0
EndSection
(as you can see - the i810 driver is used)
The Fn+F8 (CRT/LCD switch) worked fine (on 8.04) - I used to connect monitor to my laptop, and switch the LCD to CRT.

After updating Ubuntu to 8.10 something with X was wrong, and I ordered Ubuntu to fix it. New xorg looks like this:
Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
SubSection "Display"
Virtual 2048 768
EndSubSection
EndSection

Section "Device"
Identifier "Configured Video Device"
EndSection
I get this xorg also by using the tool System>Preferences>Resolution.
(I remember when it came out and replaced the old one - when I tried to use it it broke my xorg.conf too, so I just left the old one)

With a new xorg.conf X are working, but I can't switch between CRT and LCD - the video is cloned on both, and Fn+F8 just can't do anything. I installed i810switch - it works (for example: i810switch lcd off), but it still don't solves my problem. (I have also another - messed up look of logging in screen on CRT - flattened and cut in half, but I'm hoping it'll be gone after solving this one)

I understand that xserver-xorg-intel contains new version of xserver-xorg-i810?

- I can add to the Section "Device" line: Driver "intel", and it's still the same situation, when I tried to add Driver "i810" error appears when loading X-server. (no devices found)

- If I change Driver "i810" to Driver "intel" in old xorg.conf - it's the same situation as with the new xorg.conf, so it seems to be a problem with CRT/LCD switch (Fn+F8) in new "intel" driver. I would be happy to change it to "i810" but the error appears.

Xorg.0.log: http://phpfi.com/372236

Why "i810" isn't working on Ubuntu 8.10? I read a lot of bug reports, and running i810 should solve my problem. Or how can I repair the CRT/LCD switch in the "intel" driver? It's possible that I'm wrong somewhere - I'm not an expert in Ubunutu. What would you do?

Thank you for your replies in advance. :) I have so much trouble with xorg.conf since I'm using Linux. It's just making me angry. :( Any help will be appreciated.



------ FOUND A WORKAROUND ------

edit:

I use my old xorg.conf, but with Driver "intel" instead "i810".

i810switch is too simple, and not working well (for example mplayer).

I added these lines to ~/.bashrc (creating aliases):
alias both='xrandr --output LVDS --auto --output VGA --auto'
alias lcd='xrandr --output LVDS --auto --output VGA --off'
alias monitor='xrandr --output LVDS --off --output VGA --auto'

And created new bash script:
if xrandr -q | grep "VGA connected"
then
xrandr --output LVDS --off
fi
source: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/145501

Gave it ability to run (chmod), and added it to System>Preferences>Sessions

Now I can use both, lcd, monitor commands, and my laptop LCD is turning off, when I'm logging in, and if a monitor is plugged.

jdcharlton
December 4th, 2008, 03:23 PM
Thank you. Your work around solution worked for me. I have a dell latitude d620 which I mostly use in a docking station with a TMDS-1 Dell monitor attached. I was able to use it without too much problem in kubuntu 8.04 but when I upgraded to 8.10, both the TMDS-1 and LVDS monitors were active simultaneously. I implemented your work around changing VGA to TMDS-1 and that fixed the problem. I would like it to switch automatically when the laptop is closed so I can undock and redock without logging out or running a script but this is a workable solution.

I added the xrandr -q check to my .bash_profile. How do you add it to System>Preferences>Session?

--John