Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Configuring screens on a G5, part two [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 785
Location: Queensland

PostPosted: Wed May 26, 2010 12:15 pm    Post subject: Configuring screens on a G5, part two [SOLVED] Reply with quote

I hope I won't strain the patience of forums users by posting again about video on a G5 but I really can't believe it can be that hard -- after all, Apple manage to do it. The video card is
lspci:
...
 0000:f0:10.0 VGA compatible controller: ATI Technologies Inc RV350 AP [Radeon 9600]
...
The card has two ports. The main one is an ADC connector which combines signal, power and USB and drives a 'cinema' display at 1920x1200. The other is a standard DVI-D which drives a screen at 1600x1200. What happens is that the cinema screen is driven at about 1600x1200 (leaving a strip of blank or random noise down the rightmost edge) and the secondary screen is not driven at all. xdpyinfo reports that it is 1920x1200 so I don't know why there is the strip of noise down the right.

There are some minor quibbles from X. The /var/log/Xorg.0.log file is here: http://www.pastebin.org/283125.

I've played and played with the kernel config but as the Xorg.0.log shows, it's still not quite right. I don't know for example why DRI doesn't work, since it is all set up in the kernel. Kernel .config here: http://www.pastebin.org/283129.

emerge --info output is here: http://www.pastebin.org/283141.

Oh and xac doesn't work for me but I think that's because it can't find any screens:
xac:
Traceback (most recent call last):
  File "/usr/sbin/xac", line 18, in <module>
    c = XAC_Config(version)
  File "/usr/lib/xac/config.py", line 25, in __init__
    self.arch = get_arch()
  File "/usr/lib/xac/arch.py", line 346, in get_arch
    return Arch_ppc()
  File "/usr/lib/xac/arch.py", line 198, in __init__
    Arch.__init__(self)
  File "/usr/lib/xac/arch.py", line 50, in __init__
    self.get_video_cards()
  File "/usr/lib/xac/arch.py", line 131, in get_video_cards
    cards[card].monitors.append(XAC_Monitor(ed))
IndexError: list index out of range


Ideally I would like the two screens arranged as one continuous screen of 2520x1200 with the secondary screen to the left. If anyone can find the needle in this haystack of information, I would be much obliged, needless to say.
_________________
Michael Mounteney


Last edited by mounty1 on Wed Jun 09, 2010 7:06 am; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed May 26, 2010 12:40 pm    Post subject: Reply with quote

Please install x11-apps/xrandr and run it from inside X. It should give a list of screens and connectors that are available to X. Please post the results here.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 785
Location: Queensland

PostPosted: Wed May 26, 2010 1:03 pm    Post subject: Here it is ... Reply with quote

xrandr:
Screen 0: minimum 320 x 200, current 1920 x 1200, maximum 1920 x 1920
DVI-1 connected 1600x1200+0+0 (normal left inverted right x axis y axis) 432mm x 324mm
   1600x1200      60.0*+
   1280x1024      85.0     75.0 
   1280x960       85.0 
   1152x864       75.0 
   1024x768       85.0     75.0     70.1     60.0 
   832x624        74.6 
   800x600        85.1     72.2     75.0     60.3     56.2 
   640x480        85.0     75.0     72.8     66.7     59.9 
   720x400        70.1 
   640x400        70.0 
DVI-0 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 495mm x 310mm
   1920x1200      59.6*+
S-video disconnected (normal left inverted right x axis y axis)
Some of those figures seem a bit wierd, such as maximum 1920 x 1920
_________________
Michael Mounteney
Back to top
View user's profile Send private message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 785
Location: Queensland

PostPosted: Fri May 28, 2010 6:42 pm    Post subject: Reply with quote

JoseJX wrote:
Please install x11-apps/xrandr and run it from inside X. It should give a list of screens and connectors that are available to X. Please post the results here.
OK, I've done that ...
_________________
Michael Mounteney
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri May 28, 2010 8:45 pm    Post subject: Reply with quote

Sorry, I don't check the forums every day, you'll have to be patient with me. :/

It looks like both of the DVI ports are on the same screen. Can you post your Xorg.conf file please?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 785
Location: Queensland

PostPosted: Sat May 29, 2010 2:00 am    Post subject: No xorg.conf Reply with quote

Actually I don't have an Xorg.conf and maybe I should. However:
Xorg -configure:
...
(++) Using config file: "/root/xorg.conf.new"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(II) No DRICreatePCIBusID symbol, no kernel modesetting.
then hangs. Here, kill -9 in another console window doesn't stop it. After a couple of minutes all the fans start to speed up (this sounds quite ominous). At this point, not even halt in another console does anything and I have to hard power off.

That symbol DRICreatePCIBusID does not appear in my 2.6.34 kernel tree. I searched with find | xargs grep -i.

Could it be something to do with the multiple screens ? I tried Xorg +xinerama -configure but that still hangs in the same way, as described above.

(later)
Tried USE=-hal emerge -quDN world but that made no difference. It rebuilt xorg-server but its behaviour is unchanged. Put USE="... -hal ..." in /etc/make.conf.

(later still)
Xorg -showopts:
X.Org X Server 1.8.1
Release Date: 2010-05-11
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.34-gentoo-play ppc64 Gentoo
Current Operating System: Linux alstoe 2.6.34-gentoo-play #16 SMP Sat May 29 12:05:27 EST 2010 ppc64
Kernel command line: root=/dev/sda4 ro video=radeonfb
Build Date: 29 May 2010  01:45:01PM
 
Current version of pixman: 0.18.2
   Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat May 29 15:07:47 2010

Backtrace:
0: X (xorg_backtrace+0x58) [0x100aa2a0]
1: X (0x10000000+0x64dfc) [0x10064dfc]
2: (vdso) (__kernel_sigtramp_rt32+0x0) [0x100350]
3: (vdso) (__kernel_sigtramp_rt32+0xff84f4b8) [0xff94f808]
4: /usr/lib/xorg/modules/drivers/ati_drv.so (0xf962000+0x978) [0xf962978]
5: /usr/lib/xorg/modules/drivers/ati_drv.so (0xf962000+0xca4) [0xf962ca4]
6: X (0x10000000+0x12a630) [0x1012a630]
7: X (xf86LoadModules+0x194) [0x10074eec]
8: X (DoShowOptions+0x78) [0x1007d684]
9: X (InitOutput+0x568) [0x10077128]
10: X (0x10000000+0x1bf74) [0x1001bf74]
11: /lib/libc.so.6 (0xf985000+0x1f6dc) [0xf9a46dc]
12: /lib/libc.so.6 (0xf985000+0x1f870) [0xf9a4870]
Segmentation fault at address (nil)

Fatal server error:
Caught signal 11 (Segmentation fault). Server aborting


Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.
That has to be significant. Unless anyone advises otherwise, I think I'll mask-out a version or two of xf86-video-ati and see what happens. One problem is that CFLAGS includes -fno-frame-pointer and I really don't fancy a mass-rebuild to enable debugging.

(even later)
I tried masking-out a few versions of xf86-video-ati and xorg-server but it either made no difference or aggravated the situation, e.g., but just making X lock up.

(still later)
I managed to set up an xorg.conf which specified a 4000x4000 virtual screen and could then play around with xrandr to try to 'tile' or arrange the displays contiguously but it wouldn't work. Generally, the terminal window or task bar would disappear when 'panned' by the xrandr command, but there was never any output on 1600x1200 monitor, nor was the 'noise band' on the cinema display ever used or erased.
_________________
Michael Mounteney
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat May 29, 2010 6:37 pm    Post subject: Reply with quote

I think it would be best to try getting it working on each screen individually first. Try with the larger display. Do you still get the snow with only one monitor?

As for the backtrace, what version of the ati driver are you using? That's also the latest version of X, and to be honest, I haven't even tried that on ppc32, there may be issues there that haven't been reported otherwise.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 785
Location: Queensland

PostPosted: Sat May 29, 2010 9:43 pm    Post subject: Reply with quote

JoseJX wrote:
I think it would be best to try getting it working on each screen individually first. Try with the larger display. Do you still get the snow with only one monitor?
I've only ever seen any output on the larger monitor. The smaller monitor shows an out of range message but this is generated by the monitor itself, not from the signal input. It's in the same style as the brightness, contrast etc. settings menu. Whatever I've tried with xrandr, the output is consistent in that the smaller monitor never displays anything, and the larger monitor displays in about 1600x1200, leaving the strip of noise down the right.

The snow is present on the larger monitor, but only while booting. It disappears when X starts, and does not return, even when X is closed. In fact, for comfort, I use the command /etc/init.d/xdm start;sleep 10;/etc/init.d/xdm stop, just to make the screen easy to view.
JoseJX wrote:
As for the backtrace, what version of the ati driver are you using? That's also the latest version of X, and to be honest, I haven't even tried that on ppc32, there may be issues there that haven't been reported otherwise.
xorg-server 1.8.1-r1 and xf86-video-ati 6.13.0. I did try masking and going to 1.7.7 and 6.12.5 (in steps) but just obtained worse effects such as hang on start or no response to keyboard or mouse.

Screen dump of krandr at http://www.landcroft.co.uk/postings/krandr.png. I can change the position of DVI-0 but at no time is DVI-1 anything other than out of range.
_________________
Michael Mounteney
Back to top
View user's profile Send private message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 785
Location: Queensland

PostPosted: Sun May 30, 2010 2:52 am    Post subject: Reply with quote

JoseJX wrote:
I think it would be best to try getting it working on each screen individually first. Try with the larger display. Do you still get the snow with only one monitor?
I do, but that's not important. With the 1600x1200 physically unplugged, the 1920x1200 works correctly. So obviously, the second screen is fooling the software at some level.

Frankly, I am happy with that. If you want to get to the bottom of it, I'm very willing to continue to work on it, but if you're just doing it to help me out, then thanks, but this is good enough.
_________________
Michael Mounteney
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Jun 02, 2010 12:51 am    Post subject: Reply with quote

Quote:

I did try masking and going to 1.7.7 and 6.12.5 (in steps) but just obtained worse effects such as hang on start or no response to keyboard or mouse.


I suspect that you need to rebuild the keyboard and mouse drivers for the older version of X, otherwise things won't work.

As for the other problems, what happens if you switch heads? I.e., the larger on DVI-1 and the smaller on DVI-0? Does only the smaller monitor work then? Also, I know that there is a limit of 2048x2048 for the merged screens using MergedFB with the radeon driver and OpenGL, is your window manager using GL to render the screens?
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 785
Location: Queensland

PostPosted: Wed Jun 02, 2010 1:33 am    Post subject: Reply with quote

JoseJX wrote:
I suspect that you need to rebuild the keyboard and mouse drivers for the older version of X, otherwise things won't work.
I am a good boy and always do so, whether going up or down.
JoseJX wrote:
As for the other problems, what happens if you switch heads? I.e., the larger on DVI-1 and the smaller on DVI-0? Does only the smaller monitor work then?
This is very difficult to try as the larger monitor has an Apple ADC plug and DVI-1 is just a standard DVI-D socket. DVI -> ADC convertors do exist but they cost AUD100s because they have to supply power and USB as well as DVI. I haven't actually tried plugging the smaller screen into DVI-0 but as the larger one works in DVI-0, I've no doubt that the smaller one would as well and it wouldn't really demonstrate anything.
JoseJX wrote:
Also, I know that there is a limit of 2048x2048 for the merged screens using MergedFB with the radeon driver and OpenGL, is your window manager using GL to render the screens?
I'm not entirely sure what you're asking here so let me drop all the pertinent facts on the table:
  • eselect opengl list reports xorg-x11 as the only implementation and it is starred (selected).
  • I don't think the 2048x2048 is relevant because during playing, I specified a resolution of 4096x4096 in xorg.conf and and although only the 1920x1200 screen ever showed anything, xrandr seemed to be doing the right thing (the 1600x1200 has always been black when X is running. Throughout this investigation, it has never displayed anything)
  • The window manager is not relevant as the behaviour starts as soon as X does, at the session manager (kdm) login, when no window manager is running.
  • Highly relevant is this line:
    /var/log/Xorg.0.log:
    [   18.458] (EE) RADEON(0): [dri] READEONDRIGetVersion failed to open DRM
    [dri] Disabling DRI
  • Again very significant is that I am still encountering
    Xorg -showopts:
    X.Org X Server 1.8.1
    Release Date: 2010-05-11
    X Protocol Version 11, Revision 0
    Build Operating System: Linux 2.6.34-gentoo-play ppc64 Gentoo
    Current Operating System: Linux alstoe 2.6.34-gentoo-play #20 SMP Mon May 31 14:34:46 EST 2010 ppc64
    Kernel command line: root=/dev/sda4 ro video=radeonfb
    Build Date: 31 May 2010  11:10:51PM
     
    Current version of pixman: 0.18.2
       Before reporting problems, check http://wiki.x.org
       to make sure that you have the latest version.
    Markers: (--) probed, (**) from config file, (==) default setting,
       (++) from command line, (!!) notice, (II) informational,
       (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    (==) Log file: "/var/log/Xorg.0.log", Time: Wed Jun  2 11:27:57 2010

    Backtrace:
    0: Xorg (xorg_backtrace+0x58) [0x100aa2a0]
    1: Xorg (0x10000000+0x64dfc) [0x10064dfc]
    2: (vdso) (__kernel_sigtramp_rt32+0x0) [0x100350]
    3: (vdso) (__kernel_sigtramp_rt32+0xff6fe738) [0xff7fea88]
    4: /usr/lib/xorg/modules/drivers/ati_drv.so (0xf145000+0x978) [0xf145978]
    5: /usr/lib/xorg/modules/drivers/ati_drv.so (0xf145000+0xca4) [0xf145ca4]
    6: Xorg (0x10000000+0x12a630) [0x1012a630]
    7: Xorg (xf86LoadModules+0x194) [0x10074eec]
    8: Xorg (DoShowOptions+0x78) [0x1007d684]
    9: Xorg (InitOutput+0x568) [0x10077128]
    10: Xorg (0x10000000+0x1bf74) [0x1001bf74]
    11: /lib/libc.so.6 (0xfe30000+0x1f6dc) [0xfe4f6dc]
    12: /lib/libc.so.6 (0xfe30000+0x1f870) [0xfe4f870]
    Segmentation fault at address (nil)

    Fatal server error:
    Caught signal 11 (Segmentation fault). Server aborting


    Please consult the The X.Org Foundation support
        at http://wiki.x.org
     for help.
    Please also check the log file at "/var/log/Xorg.0.log" for additional information.
Just in case this is also relevant:
gcc-config -l:
 [1] powerpc-unknown-linux-gnu-4.3.2
 [2] powerpc-unknown-linux-gnu-4.4.3 *
 [3] powerpc64-unknown-linux-gnu-4.1.2 *
 [4] powerpc64-unknown-linux-gnu-4.2.4

_________________
Michael Mounteney
Back to top
View user's profile Send private message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 785
Location: Queensland

PostPosted: Wed Jun 09, 2010 6:40 am    Post subject: fixed Reply with quote

Reverting to a 2.6.32-r7 kernel.
_________________
Michael Mounteney
Back to top
View user's profile Send private message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 785
Location: Queensland

PostPosted: Mon Jun 14, 2010 6:30 am    Post subject: Reverted back Reply with quote

Rerverted back to 2.6.34. The problem is solved by undefining CONFIG_KERNEL_KMS.
_________________
Michael Mounteney
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum