Bug 120424

Summary: Radeon mobility X700 graphics card does not work
Product: [openSUSE] SUSE Linux 10.1 Reporter: Thomas Renninger <trenn>
Component: X.OrgAssignee: Marcus Schaefer <ms>
Status: RESOLVED FIXED QA Contact: Stefan Dirsch <sndirsch>
Severity: Normal    
Priority: P5 - None CC: sndirsch
Version: Alpha 2plus   
Target Milestone: ---   
Hardware: x86-64   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: hwinfo --gfxcard of Ferrari F-4000 X700 graphics card
xorg.conf from sax2 -r -a
SaX.log from sax2 -r -a
xorg.conf from sax2 -r and setting the correct resolution
SaX.log from sax2 -r and setting the correct resolution
xorg.conf as created by YaST during installation

Description Thomas Renninger 2005-10-05 16:58:07 UTC
Starting sax2 -> screen gets and stays black.
Machine is *bax*.
Do on it what you want. Don't delete files, please. If reboot is needed please
tell me.
Setting severity to major as we have to send this laptop back in some days.
Comment 1 Stefan Dirsch 2005-10-05 17:49:21 UTC
Matthias, we should try the latest X.Org CVS radeon driver first. STABLE is 
already updated to current X.Org CVS. 
Comment 2 Thomas Renninger 2005-10-06 07:23:36 UTC
Shall I install an Open Suse Alpha 1 snapshot and update the Xorg package to
stable, or shall I just leave the machine as it is?
Comment 3 Stefan Dirsch 2005-10-06 08:14:10 UTC
Alpha1 won't help. Updating to current X.Org packages from STABLE is not trivial. 
Matthias will take care of this ASAP.
Comment 4 Stefan Dirsch 2005-10-08 08:43:39 UTC
Assigning to Matthias. IIRC  
 
  Option "MonitorLayout" "LVDS" 
 
needs to specified, because "CRT" seems to be the default on this machine. :-( 
Matthias knows the details. 
Comment 5 Matthias Hopf 2005-10-10 09:41:21 UTC
Right now there is no possibility to detect the default monitor. We cannot even
detect whether the system has an LVDS panel, if it is *not* forced by MonitorLayout.

Maybe the radeon Superpatch changes something WRT this problem (if it works at all).
Comment 6 Stefan Dirsch 2005-10-10 09:55:00 UTC
We might set this option only for exactly this chipset (by using
SubVendor/Subdevice information).
Comment 7 Matthias Hopf 2005-10-10 10:45:48 UTC
I doubt very much this is a *chipset* issue. It's a problem of this particular
laptop.
Comment 8 Stefan Dirsch 2005-10-10 10:53:38 UTC
But there is hope that this chipset (Vendor ^ Devic ^ Subvendor ^ Subdevice) is
only used in this laptop.
Comment 9 Thomas Renninger 2005-10-10 11:05:15 UTC
AFAIK we have contact to ACER/AMD for this laptop (Ferrari F-4000).
What do they need to provide or modify?
Comment 10 Thomas Renninger 2005-10-11 07:21:34 UTC
According to Bodo we won't be able to convience them to do any changes to their
BIOS or whatever, right?
Could we then at least do it as supposed by Stefan in comment #8?
Comment 11 Stefan Dirsch 2005-10-11 07:46:18 UTC
> Could we then at least do it as supposed by Stefan in comment #8? 
At least we should add this information to this bugreport, before we return 
this notebook! 
Comment 12 Thomas Renninger 2005-10-11 08:17:16 UTC
Created attachment 53603 [details]
hwinfo --gfxcard of Ferrari F-4000 X700 graphics card
Comment 13 Stefan Dirsch 2005-10-11 08:19:46 UTC
Thanks. BTW, when do we need to return the notebook again?
Comment 14 Matthias Hopf 2005-10-11 09:20:27 UTC
(In reply to comment #10)
> According to Bodo we won't be able to convience them to do any changes to their
> BIOS or whatever, right?

I doubt that this is the BIOS' fault, anyway. It is some combination of output
drivers connected to the radeon chip the current driver cannot handle.
I'd like to test the radeon superpatch today, and decide afterwards.
Comment 15 Matthias Hopf 2005-10-11 10:16:11 UTC
Alan wrote in Xorg bugzilla #3621:

> I've also got a laptop (Acer Ferrari 4000 with Radeon Mobility X700) which can't
> find it's display unless you force it to use LVDS, and then it crashes.   The
> superpatch doesn't seem to make any difference with it. I've put log files and 
> a simple fix for the crash in bug #4001.


So the superpatch won't help.
Stefan, the only possibility I see so far is to add

  Option "MonitorLayout" "LVDS,CRT"

for this Laptop only. This works for both configurations, single head and dual head.
Comment 16 Stefan Dirsch 2005-10-11 10:37:56 UTC
Ok. I've added this information now to to our x11DB. Should work with 10.1 (Alpha2).
Comment 17 Thomas Renninger 2005-11-08 08:30:31 UTC
Tested Alpha2plus: Does not run out of the box.
Coping modified xorg.conf from mhopf that worked, also makes it work on 10.1 Alpha2plus.
Any special options I have to set?
Comment 18 Matthias Hopf 2005-11-08 14:55:06 UTC
Did you do a 'sax2 -r'? The information from the database is only used when sax is creating a fresh configuration.
Comment 19 Thomas Renninger 2005-11-09 09:09:57 UTC
I moved /etc/X11/xorg.conf to /etc/X11/xorg.conf.bak
Then I did a init 3, sax2 -r  --> machine hangs hard (no keystrokes - NUM Leds, nothing). Last output:
SaX: no X-Server is running
SaX: will start own server if needed

Why is this sax2 -r needed, I hoped it could work by just clicking through the installation dialogs, of course with a bad resolution, but at least it should come up with something?
Comment 20 Matthias Hopf 2005-11-10 18:20:15 UTC
Wow.
sax2 -r is needed because only in this case /etc/X11/xorg.conf is *not* read in and discarded.
Can you open the machine's sshd in the firewall?
Comment 21 Stefan Dirsch 2005-11-29 15:35:20 UTC
No feedback since a long time --> WONTFIX.
Comment 22 Thomas Renninger 2005-12-06 14:39:14 UTC
-> three weeks holidays.
The machine is now up as hammer18.
Comment 23 Thomas Renninger 2006-01-17 14:01:33 UTC
The option:
 Option "MonitorLayout" "LVDS,CRT"
still is not set automatically in NLD10...
Comment 24 Stefan Dirsch 2006-01-17 14:29:12 UTC
Please post the Device section of our xorg.conf.
Comment 25 Stefan Dirsch 2006-01-17 14:29:36 UTC
s/our/your
Comment 26 Bodo Bauer 2006-01-17 14:39:20 UTC
Section "Device"
  BoardName    "Ferrari F-4000 X700"
  BusID        "PCI:1@0:0:0"
  Driver       "radeon"
  Identifier   "Device[0]"
  Option       "SWcursor"
  VendorName   "ATI"
  Option       "MonitorLayout" "LVDS"
EndSection



Comment 27 Stefan Dirsch 2006-01-17 14:45:16 UTC
Some strange things happen in CDB (export). I've added 

  Option "MonitorLayout" "LVDS,CRT"

but 
  
  Option       "MonitorLayout" "LVDS"

is the result of th export. :-(

# ATI Technologies Inc: Ferrari F-4000 X700
1002 5653 1025 007e

Comment 28 Bodo Bauer 2006-01-17 15:05:08 UTC
I don't understand...

The SAX generated xorg.conf contained either value for MonitorLayout. The Option line in Comment #26 was manually added to make this beast work.
Comment 29 Stefan Dirsch 2006-01-17 15:07:55 UTC
But then the export is broken as well or SaX2 ignores the options. :-(
Comment 30 Stefan Dirsch 2006-01-17 15:10:19 UTC
Just checked, the export looks ok.

NAME=ATI§DEVICE= Ferrari F-4000 X700\
§VID=0x1002§DID=0x5653§SERVER=radeon\
§EXT=§OPT=§RAW=Option "MonitorLayout" "LVDS,CRT"\
§PROFILE=§SCRIPT3D=§PACKAGE3D=§FLAG=DEFAULT§SUBVENDOR=0x1025§SUBDEVICE=0x007e
Comment 31 Matthias Hopf 2006-01-17 15:22:31 UTC
cdb/Cards has the correct export option as well.
Investigating.
Comment 32 Marcus Schaefer 2006-01-17 15:39:43 UTC
Are you sure this static option isn't overwritten by some kind
of profile mechanism ? It would be usefull if someone could call

  sax2 -r -a

and have a look into the automatically written file /etc/X11/xorg.conf
The output on the console as well as the log file /var/log/SaX.log
is needed as well

Thanks
Comment 33 Matthias Hopf 2006-01-17 15:51:22 UTC
Marcus, the MonitorLayout option from the database gets nuked as soon as you try to configure something in SaX2. Additionally, I have to check what actually happens to the option so its value is truncated (and the closing " is missing).

Also the configured resolution got switched back to 1024x768 when I read in an old configuration with higher resolution.

One additional problem:
If *only* Monitorlayout is set to "LVDS,CRT" and *no* secondary monitor configuration is issued, the driver defaults its external maximum resolution to 640x480, and as no Metamodes are given, it creates an internal one for 640x480,640x480, disabling all higher resolutions.
-> We are only allowed to set MonitorLayout with two output devices for radeon if we have a valid configuration.

One sidenote: all options in xorg.conf are case insensitive. Except for the contents of MonitorLayout of the radeon driver. Tried lvds,crt once, it complained about 'crt' (not about 'lvds'...) and - no signal. "LVDS,CRT" works like a charme.

Gee, this is getting crapier with every single test :-(((
Comment 34 Matthias Hopf 2006-01-17 15:53:20 UTC
Created attachment 63639 [details]
xorg.conf from sax2 -r -a

This is still NLD10 preview. If I should test newer sax packages, please tell me.
Comment 35 Matthias Hopf 2006-01-17 15:53:42 UTC
Created attachment 63640 [details]
SaX.log from sax2 -r -a
Comment 36 Marcus Schaefer 2006-01-17 15:55:09 UTC
Am I able to login to the machine ?
Comment 37 Matthias Hopf 2006-01-17 15:56:18 UTC
Created attachment 63641 [details]
xorg.conf from sax2 -r and setting the correct resolution

This config works fine after adding
Option "MonitorLayout" "LVDS"
Comment 38 Matthias Hopf 2006-01-17 15:56:47 UTC
Created attachment 63642 [details]
SaX.log from sax2 -r and setting the correct resolution
Comment 39 Marcus Schaefer 2006-01-19 11:30:47 UTC
fixed and tested. I hate to say but for this device a special handling
within the GUI is needed. I added that into a function named fixBrokenCards()
Comment 40 Bodo Bauer 2006-01-24 13:24:10 UTC
I testes NLD-10 x86_64 Beta1, and it's still going wrong. Looks like something with the database export went wrong:
...
  Identifier   "Device[0]"
  Option       "CRT2HSync" "31-48"
  OptionCRT"   ,Option  "MonitorLayout" "LVDS
  Option       "SaXDualMonitorVendor" "--> VESA"
  Option       "SaXDualOrientation" "LeftOf"
...

Full xorg.conf is attached...
Comment 41 Bodo Bauer 2006-01-24 13:25:29 UTC
Created attachment 64731 [details]
xorg.conf as created by YaST during installation
Comment 42 Marcus Schaefer 2006-01-24 13:26:19 UTC
It is fixed ! This patch was checked in by the autobuild team after beta1

-------------------------------------------------------------------
Tue Jan 17 16:45:59 CET 2006 - ms@suse.de
...
- fixed RawDef option handling from Identity map RAW entries