Trying to use Radeon driver on Apple eMac

Alex Deucher alexdeucher at gmail.com
Tue Dec 9 13:23:41 PST 2008


On Tue, Dec 9, 2008 at 1:25 PM, Joseph Adams <joeyadams3.14159 at gmail.com> wrote:
> Yay!  I modified my xorg.conf to add the modelines and use the
> ConnectorTable, and it displays fine (though there is a bit of
> flickering whenever xrandr is called)  See
> http://www.funsitelots.com/pub/xorg_emacG4_working for logs,
> screenshots, etc.
>

Excellent!  I'll add a MacModel entry for the emac and hopefully
auto-detect code based on the info in /proc/cpuinfo.  One last thing
we need to figure out it the ddc line for the vga connector.  If you
have a chance to test with another monitor try the various
ConnectorTable option until you are able to get an edid from the
external monitor.  You will only need to adjust 'j' in the
connectortable option. Once that's done you should be able to use
dualhead, etc.

> My xorg.conf is as follows:
>
> # 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"
>        #Driver      "fbdev"
>        #Option     "UseFBDev" "true"
>        Option      "ConnectorTable" "96,1,0,1,100,2,0,1"
>        #Option      "MacModel" "powerbook-internal"
> EndSection
>
> #Both of these xrandr modes worked:
> #xrandr --newmode  "1024x768j" 99.198 1024 1072 1168 1376 768 769 772
> 810 +HSync +VSync
> #xrandr --newmode "1280x960j" 124.54  1280 1368 1504 1728  960 961 964
> 1001  +HSync +Vsync
> # $ gtf 1280 960 72
> # 1280x960 @ 72.00 Hz (GTF) hsync: 72.07 kHz; pclk: 124.54 MHz
> # Modeline "1280x960_72.00"  124.54  1280 1368 1504 1728  960 961 964
> 1001  -HSync +Vsync
> # (note that -HSync should be +HSync, or the image is about 70% over
> to the left (according to my test)

Do you know if all emacs use these modes or if they are specific to
certain ones?  It they are common, I can have the driver add these
modes automatically.

>
>
> Section "Monitor"
>        Identifier "eMac Monitor"
>        #HorizSync 71-73
>        Modeline "1280x960" 124.54  1280 1368 1504 1728  960 961 964 1001
> +HSync +VSync
> EndSection
>
> Section "Screen"
>        Identifier "Screen0"
>        Device     "Videocard0"
>        Monitor    "eMac Monitor"
>        DefaultDepth     24
>        SubSection "Display"
>                Viewport   0 0
>                Depth     24
>        EndSubSection
> EndSection
>
>
> I went ahead and tested 3D and video playing.  3D works fine until I
> VT out and back in (then 3D programs like glxgears and neverball lock
> up).  Playing an ogg vorbis through Epiphany works fine.  Playing an
> flv or an ogg in mplayer displays a garbled image (see screenshots).
> Video playing does not seem to be affected by VT switching.

Please file a bug for these: https://bugs.freedesktop.org

Alex



More information about the xorg mailing list