Trying to use Radeon driver on Apple eMac
Joseph Adams
joeyadams3.14159 at gmail.com
Mon Dec 8 11:01:26 PST 2008
I'm struggling to get the Radeon driver to work on my eMac G4's Radeon
7500 card (the fbdev driver works fine at 1024x768 with no
acceleration). On both Fedora 8 and Fedora 10 with default xorg.conf,
the screen is blank (the CRT doesn't glow or anything). I have a CRT
monitor that supports up to 1280x960. The eMac also has a video out
port. I suspect that video may show up on an external monitor, but I
can't test that until my adapter arrives.
With an unmodified configuration, Xorg accepts clients and the
/var/log/Xorg.0.log looks good. However, the screen is blank. I
suspect this may be bogus modelines. I tried a modeline I grabbed
from fbset in the working radeonfb Linux terminal:
$ fbset -x
Mode "1024x768"
# D: 99.197 MHz, H: 72.090 kHz, V: 89.001 Hz
DotClock 99.198
HTimings 1024 1072 1168 1376
VTimings 768 769 772 810
Flags "+HSync" "+VSync"
EndMode
I tried adding this mode through xrandr as follows:
$ xrandr --newmode "1024x768j" 99.198 1024 1072 1168 1376 768 769 772
810 +HSync +VSync
$ xrandr --addmode DVI-0 1024x768j
$ xrandr
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 2048 x 1024
DVI-1 disconnected (normal left inverted right x axis y axis)
DVI-0 connected 1024x768+0+0 (normal left inverted right x axis y
axis) 0mm x 0mm
1024x768 59.9*+
800x600 60.3
640x480 59.9
1024x768j 89.0
S-video disconnected (normal left inverted right x axis y axis)
$ xrandr --output DVI-0 --mode 1024x768j
xrandr: Configure crtc 0 failed
Just trying to xrandr to a different resolution fails:
$ xrandr -s 800x600
Failed to change the screen configuration!
And VT-switching to 7 (where Xorg is running) results in Xorg
segfaulting whether I do any of the above or not:
xauth: creating new authority file /home/joey/.serverauth.19680
X.Org X Server 1.5.3
Release Date: 5 November 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.18-92.1.10.el5 ppc
Current Operating System: Linux cello 2.6.27.5-117.fc10.ppc #1 Tue Nov
18 11:50:30 EST 2008 ppc
Build Date: 16 November 2008 08:30:07PM
Build ID: xorg-x11-server 1.5.3-5.fc10
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: Mon Dec 8 13:33:24 2008
(==) Using config file: "/etc/X11/xorg.conf"
** snip **
Leaving Restore TV
** Message: another SSH agent is running at: /tmp/ssh-igRxa19911/agent.19911
Window manager warning: Failed to read saved session file
/home/joey/.config/metacity/sessions/1042b409dc9a775ef7122876120873685600000199110021.ms:
Failed to open file
'/home/joey/.config/metacity/sessions/1042b409dc9a775ef7122876120873685600000199110021.ms':
No such file or directory
Backtrace:
0: /usr/bin/X(xorg_backtrace+0x50) [0x100ffb90]
1: /usr/bin/X(xf86SigHandler+0x68) [0x10082ec8]
2: [0x100364]
3: [0x48002000]
4: /usr/lib/xorg/modules/drivers//radeon_drv.so(radeon_update_dri_buffers+0x8c)
[0xe815ffc]
5: /usr/lib/xorg/modules/drivers//radeon_drv.so(RADEONEnterVT+0xb4) [0xe7e4d94]
6: /usr/lib/xorg/modules//libxaa.so [0xe6e2dc8]
7: /usr/bin/X [0x1009cf70]
8: /usr/bin/X [0x1008cf68]
9: /usr/bin/X(xf86Wakeup+0x4dc) [0x10083e2c]
10: /usr/bin/X(WakeupHandler+0x84) [0x10045d44]
11: /usr/bin/X(WaitForSomething+0x210) [0x100fc570]
12: /usr/bin/X(Dispatch+0xf8) [0x100412e8]
13: /usr/bin/X(main+0x43c) [0x1002261c]
14: /lib/libc.so.6 [0xfe0ebc4]
15: /lib/libc.so.6 [0xfe0ed80]
Fatal server error:
Caught signal 11. Server aborting
** snip **
waiting for X server to shut down
I tried adding my magic modeline via xorg.conf, but Xorg doesn't seem
to be taking it. Here is my xorg.conf:
# Xorg configuration created by system-config-display
Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
Option "XkbVariant" "dvorak"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "radeon"
#Option "Accel" "off"
Option "AccelMethod" "XAA"
Option "AccelDFS" "0"
Option "AGPMode" "4"
Option "AGPFastWrite" "0"
Option "GARTSize" "64"
Option "EnablePageFlip" "1"
Option "ColorTiling" "1"
#Option "TVDACLoadDetect" "TRUE"
#Option "TVStandard" "ntsc"
#Option "monitor-S-video" "TV-monitor"
#Option "DPMS" "0"
#Option "UseFBDev" "true"
EndSection
Section "Monitor"
Identifier "eMac Monitor"
Option "DDC" "False"
HorizSync 71-73
VertRefresh 78-80
#Modeline "1024x768_89.00" 99.07 1024 1088 1200 1376 768 769 772
809 -HSync +Vsync
Modeline "1024x768" 99.198 1024 1072 1168 1376 768 769 772 810 +HSync +VSync
#This is the magic modeline I got from fbset -x
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "eMac Monitor"
DefaultDepth 16
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1024x768"
EndSubSection
EndSection
This time, xrandr says:
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 2048 x 1024
DVI-1 disconnected (normal left inverted right x axis y axis)
DVI-0 connected 1024x768+0+0 (normal left inverted right x axis y
axis) 0mm x 0mm
1024x768 59.9*+
800x600 60.3
640x480 59.9
S-video disconnected (normal left inverted right x axis y axis)
(note that my modeline is missing)
My Xorg.0.log for this attempt is at
http://www.funsitelots.com/pub/Xorg.0.log_emacG4
How can I get Xorg to accept my modeline so I can see if this one will work?
More information about the xorg
mailing list