Bug 28540 - Radeon X300 analog VGA is broken
Summary: Radeon X300 analog VGA is broken
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium blocker
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-14 13:30 UTC by Hans
Modified: 2016-02-25 21:35 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (52.82 KB, text/plain)
2010-06-16 12:24 UTC, Hans
no flags Details
Xorg.0.log (84.28 KB, patch)
2010-06-16 12:25 UTC, Hans
no flags Details | Splinter Review
dmesg.20100704 (55.19 KB, text/plain)
2010-07-04 04:40 UTC, Hans
no flags Details
Xorg.0.log.20100704 (53.41 KB, text/plain)
2010-07-04 04:40 UTC, Hans
no flags Details
xrandr.20100704 (831 bytes, text/plain)
2010-07-04 04:41 UTC, Hans
no flags Details

Description Hans 2010-06-14 13:30:33 UTC
Thinkpad Z60m with ATI Technologies Inc M22 [Mobility Radeon X300] rev 0 ,
Ubuntu 10.04 , stock /usr/lib/xorg/modules/drivers/radeon_drv.so compiled for 1.7.6, module version = 6.13.0

Analog VGA connected to a Philips Brilliance 220C (wants 1680x1050@60Hz) or a Samsung 2443BW (wants 1920x1200@60Hz) is not usable.
This limits the driver to the LVDS laptop screen.

My goal is to disable LVDS and only use VGA-0.

No xorg.conf used, from the Xorg.0.log : 
...
(II) RADEON(0): Printing DDC gathered Modelines:
(II) RADEON(0): Modeline "1680x1050"x0.0  146.25  1680 1784 1960 2240 1050 1053 1059 1089 +hsync +vsync (65.3 kHz)
(II) RADEON(0): Not using mode "1680x1050" (bad mode clock/interlace/doublescan)

The "1680x1050"x0.0 looks suspicious to me. 0 Hz ? Is this the monitor's EDID at fault ?

...
(II) RADEON(0): Printing probed modes for output VGA-0
(II) RADEON(0): Modeline "1680x1050"x60.0  146.25  1680 1784 1960 2240 1050 1053 1059 1089 +hsync +vsync (65.3 kHz)

Looks promising.

...
(II) RADEON(0): Output VGA-0 using initial mode 1680x1050
(II) RADEON(0): Output DVI-0 using initial mode 1360x768
(II) RADEON(0): Output LVDS using initial mode 1280x800

The VGA-0 and LVDS lines look perfect. Just nothing is shown on the VGA-0 port, the screen stays blank.
The DVI-0 line is just weird; this laptop does not have a DVI port.

I tried both gnome and kde monitor configuration to no success.

After lots of hacking in a hand-written xorg.conf file (I succesfully edited NVidia configs before) I managed to get something shown on the VGA-0 port, it was however in the 1360x768 resolution of the non-existent DVI-0 port ! This at least shows that the VGA-0 port is working to some level.

-- Hans
Comment 1 Alex Deucher 2010-06-14 14:14:00 UTC
The DVI port is on the docking station.  It should not be detected as connected; I'm not sure why it is. You should be able to force the DVI port off in the interim as a workaround:

xrandr --output VGA-0 --off
xrandr --output DVI-0 --off
xrandr --output VGA-0 --auto

Please attach your xorg log and dmesg.
Comment 2 Hans 2010-06-16 12:24:24 UTC
Created attachment 36320 [details]
dmesg

dmesg
Comment 3 Hans 2010-06-16 12:25:37 UTC
Created attachment 36321 [details] [review]
Xorg.0.log

Xorg.0.log . The samsung screen was attached after the system booted up. (booting with it attached won't help)
Comment 4 Hans 2010-06-16 12:26:05 UTC
(In reply to comment #1)
> The DVI port is on the docking station.

Ah, ok. (I don't have the docking station).

> Please attach your xorg log and dmesg.

Both are attached. I rebooted the laptop and had no xorg.conf, so all should be clean.

I'm curious to what you might find.

-- Hans
Comment 5 Alex Deucher 2010-06-16 13:07:03 UTC
I see the problem.  You need to load the drm before starting X, otherwise you end up having both the drm and the ddx trying to control the hardware.  Make sure the radeon kernel modules is loaded before starting X.
Comment 6 Hans 2010-06-18 09:09:08 UTC
(In reply to comment #5)
> I see the problem.  You need to load the drm before starting X, otherwise you
> end up having both the drm and the ddx trying to control the hardware.  Make
> sure the radeon kernel modules is loaded before starting X.

OK, like this ? :

I've used 'text' on the kernel command line to prevent gdm from starting. Then typed this :

sudo rmmod radeon
sudo rmmod ttm
sudo rmmod drm

to make sure the driver is not loaded (it was not).

started it :
sudo modprobe agpgart radeon

and started gdm :

sudo /etc/init.d/gdm start

Sadly this does not help much. I tried this with the 1920x1200 screen, which was recognized correctly. So that's good :) However I failed to get it to work at 1920x1200.
Need a little more help.
Comment 7 Alex Deucher 2010-06-22 22:46:40 UTC
(In reply to comment #6)
> Sadly this does not help much. I tried this with the 1920x1200 screen, which
> was recognized correctly. So that's good :) However I failed to get it to work
> at 1920x1200.
> Need a little more help.

Can you attach your xorg log, dmesg and xrandr output?
Comment 8 Hans 2010-07-04 04:39:05 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > Sadly this does not help much. I tried this with the 1920x1200 screen, which
> > was recognized correctly. So that's good :) However I failed to get it to work
> > at 1920x1200.
> > Need a little more help.
> 
> Can you attach your xorg log, dmesg and xrandr output?

Sorry for the delay. I've made sure there was no xorg.conf and rebooted freshly with the 1920x1200 screen attached.

The screen was not properly recognized this time, as if 1360x768 were its max resolution.

I've tried the gnome monitor preferences to detect all screens, and see what its max resolution was. This shows in the dmesg as follows :

[  252.852216] [drm] 1: conflicting encoders switching off VGA-1
[  252.852223] [drm] in favor of DVI-I-1
[  252.885330] [drm] 1: conflicting encoders switching off DVI-I-1
[  252.885334] [drm] in favor of VGA-1

I hope you find the issue in the 3 logs i'll attach next.
Thanks for your time.
Comment 9 Hans 2010-07-04 04:40:17 UTC
Created attachment 36735 [details]
dmesg.20100704
Comment 10 Hans 2010-07-04 04:40:46 UTC
Created attachment 36736 [details]
Xorg.0.log.20100704
Comment 11 Hans 2010-07-04 04:41:19 UTC
Created attachment 36737 [details]
xrandr.20100704
Comment 12 Alex Deucher 2010-10-19 19:47:38 UTC
Is this still an issue with a newer kernel?
Comment 13 Hans 2010-10-29 09:18:41 UTC
Yes, the issue remains. I've tested with 2.6.35-22-generic-pae #35-Ubuntu
Comment 14 Alex Deucher 2011-02-16 11:25:28 UTC
Is this still an issue with 2.6.37 or 2.6.38-rc5?
Comment 15 Hans 2011-05-22 03:25:21 UTC
The issue remains. I've tested with 2.6.38-8-generic #42-Ubuntu (Ubuntu 11.04).

Pity that Linux can't be used for presentations on this laptop, there's still the XP partition it came with that gets used for presentations because of the VGA output issue.
Comment 16 Christopher M. Penalver 2016-02-25 21:35:50 UTC
Hans, Ubuntu 11.04 reached EOL on October 28, 2012. For more on this, please see https://wiki.ubuntu.com/Releases .

If this is reproducible in a supported release, it will help immensely if you filed a new report with Ubuntu by ensuring you have the package xdiagnose installed, and that you click the Yes button for attaching additional debugging information running the following from a terminal:
ubuntu-bug xorg

Also, please feel free to subscribe me to it.

For more on why this is helpful, please see https://wiki.ubuntu.com/ReportingBugs.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.