Contribute
Register

Sapphire 5850 Xtreme 1GB + Lion

Status
Not open for further replies.
Joined
May 31, 2011
Messages
50
Motherboard
pc
CPU
intel
Graphics
amd
Mac
  1. 0
Classic Mac
  1. 0
Mobile Phone
  1. 0
Sapphire 5850 Xtreme 1GB + Lion [SOLVED]

Hi All,

I bought a second hand Sapphire 5850 Xtreme 1GB

radeonhd5850-2b.jpg


it has the following config:

Graphics processor AMD Radeon HD 5850, 725MHz
Outputs/Inputs DVI, HDMI, DisplayPort, 1 x CrossFire

I installed the card with my existing install of Lion 10.7.5. Here is some of the issue I need help with:


Scenario 1
- GraphicsEnabler=NO This allows the card to be detected natively
- System Profiler sees the card as 5000 and not 5850
- RadeonFramebuffer is loaded
- All 3 ports are detected in IOREG
- I have only connected to DVI port and I get the native res for my display (1600x1050)

Issue
- DVD Crashes

----------------------------

Scenario 2
- GraphicsEnabler=YES This allows the card to be detected natively
- System Profiler sees the card as 5850
- Uakari framebuffer is loaded

Issues
- Phantom/Ghost VGA display is detected as the primary display with 800x600 resolution
- DVI port is now the secondary display and I get the native res for my display (1600x1050)
- 4 ports are detected in IOREG


Is there any resolution to the DVD or phantom VGA?

Many thanks
 
Problem solved.. here is what works and how I did it..

5850.png



==================
WORKS
==================

- System Profiler sees the card as 5850
- No Ghost / Phantom display
- No Black Screen after boot
- DisplayPort -> VGA -> Monitor
- DVI -> Monitor
- Native res for both displays (1680x1050)


==================
UNTESTED
==================
- HDMI Video
- HDMI Audio



==================
Get the tools
==================

- Download HexEdit http://hexedit.en.softonic.com/mac/download - Makes life a LOT easier later ;)

- Dump GPU BIOS from Windows using GPU-Z
link http://www.techpowerup.com/downloads/2181/mirrors.php

- Download radeon_bios_decode



==================
Prepare to mod
==================

- copy /System/Library/Extensions/ATI5000Controller.kext to desktop

- Decode BIOS with radeon_bios_decode (you need this to check what ports are active)

Code:
./radeon_bios_decode < /Users/dakku/Desktop/5850.rom

ATOM BIOS Rom: 
	SubsystemVendorID: 0x174b SubsystemID: 0x174b
	IOBaseAddress: 0x0000
	Filename: 174P0306.S4I
	BIOS Bootup Message: 
CYPRESS PRO GDDR5 BIOS UCODEv:126                                           

PCI ID: 1002:6899
Connector at index 0
	Type [@offset 44342]: DisplayPort (10)
	Encoder [@offset 44346]: INTERNAL_UNIPHY2 (0x21)
	i2cid [@offset 44434]: 0x90, OSX senseid: 0x1
Connector at index 1
	Type [@offset 44352]: HDMI-A (11)
	Encoder [@offset 44356]: INTERNAL_UNIPHY2 (0x21)
	i2cid [@offset 44461]: 0x93, OSX senseid: 0x4
Connector at index 2
	Type [@offset 44362]: DVI-I (2)
	Encoder [@offset 44366]: INTERNAL_UNIPHY (0x1e)
	i2cid [@offset 44498]: 0x94, OSX senseid: 0x5
Connector at index 3
	Type [@offset 44372]: DVI-I (2)
	Encoder [@offset 44376]: INTERNAL_KLDSCP_DAC1 (0x15)
	i2cid [@offset 44498]: 0x94, OSX senseid: 0x5


- Extract the ATI Personality List
Code:
perl ati-personality.pl > ati-personality_x64.txt



==================
The fun part
==================

- Phantom Display:
Since ATI 5850 uses Uakari profile, this profile has 4 ports and the card only has 3 - resulting in Phantom VGA display. To get rid of the VGA, you have to create a custom personality with the correct number of ports.

- Create a custom personality
open the ati-personality_x64.txt file in your fav text editor and look for line Kext /System/Library/Extensions/ATI5000Controller.kext/Contents/MacOS/ATI5000Controller

- copy the Uakari personality into another text doc (this will serve as the basis for the mod)
Code:
Personality: Uakari
ConnectorInfo count in decimal: 4
Disk offset in decimal 168480
0000000    00  04  00  00  00  04  00  00  00  71  00  00  12  04  04  01
0000010    04  00  00  00  14  00  00  00  00  71  00  00  01  12  01  03
0000020    00  02  00  00  14  00  00  00  00  71  00  00  00  00  06  05
0000030    00  08  00  00  00  02  00  00  00  71  00  00  22  05  05  04
0000040

- We will hijack Hoolock personality and replace the default values with our modified Uakari values, go ahead and copy the default Hoolock personality into a text doc
Code:
Personality: Hoolock
ConnectorInfo count in decimal: 3
Disk offset in decimal 168704
0000000    00  04  00  00  04  06  00  00  00  01  00  00  21  03  05  01
0000010    00  04  00  00  04  06  00  00  00  01  00  00  11  02  04  02
0000020    04  00  00  00  14  02  00  00  00  01  00  00  02  04  01  03
0000030

- Modify the Hoolock with Uakari values, we will be using this for hex editing in the next step
Code:
0000000    00  02  00  00  14  00  00  00  00  71  00  00  00  00  06  05
0000010    00  04  00  00  00  04  00  00  00  71  00  00  12  04  04  01
0000020    00  08  00  00  00  02  00  00  00  71  00  00  22  05  05  04
0000030

- Noticed we removed the "04 00 00 00 14 00 00 00 00 71 00 00 01 12 01 03" value and moved the order of ports too?

- Open ATI5000Controller.kext/Contents/MacOS/ATI5000Controller (from the version copied to your desktop) using HexEdit http://hexedit.en.softonic.com/mac/download


===========================
HEX Edit ATI5000Controller
===========================

- Find original Hoolock value (there are 2 of them, 32 and 64bit)
00 04 00 00 04 06 00 00 00 01 00 00 21 03 05 01

and replace with moded entry from above
00 02 00 00 14 00 00 00 00 71 00 00 00 00 06 05

do the same for remaining 2 lines and save the ATI5000Controller file.


===========================
Making it all work
===========================

- edit boot.plist in extra and add
Code:
	<key>GraphicsEnabler</key>
	<string>Yes</string>

	<key>AtiConfig</key>
	<string>Hoolock</string>

- using Kext_Utility.app, install the modded ATI5000Controller.kext

- Reboot and enjoy
 

Attachments

  • ATI5000Controller.kext.zip
    217.3 KB · Views: 167
A simple solution for you without modify any KEXT.
My build is also Sapphire 5850 Xtreme 1GB.

Just modify your DSDT to set ATY framebuffer to 'Zonalis' and let GraphicEnabler=No.
 
And another problem, how about your GPU temperature?
My GPU temperature seems a little high.
 
A simple solution for you without modify any KEXT.
My build is also Sapphire 5850 Xtreme 1GB.

Just modify your DSDT to set ATY framebuffer to 'Zonalis' and let GraphicEnabler=No.
Would you elaborate on this, please? Where to look for and what to change in dsdt?
Thanks!
 
A simple solution for you without modify any KEXT.
My build is also Sapphire 5850 Xtreme 1GB.

Just modify your DSDT to set ATY framebuffer to 'Zonalis' and let GraphicEnabler=No.


Thanks for your reply. I noticed you have ATI 5850. What make and model is that card? Is it the same Sapphire 5850 Xtreme that this thread is about?

I am not certain how this will work since my Graphics Card outputs are not the same as Zonalis personality but will do some more digging around and test.
EDIT: Found this thread with same suggestion but I am not sure if it works for everyone http://www.tonymacx86.com/mountain-...82-radeon-5850-recognized-hd-5000-series.html

Based on comments in various threads and it seems Uakari is a better profile for this card, however you do have to fix the ghost display issue by making a custom personality like I showed in the thread above.

I like the idea of keeping the DSDT kinda clean so I can simply download an updated one from this site and not have to hack/patch it manually!
 
And another problem, how about your GPU temperature?
My GPU temperature seems a little high.


In windows it idles at around 35-38C. I have not measured the temp in OSX, but judging by the GPU fan speed it is around the same. What tool can I use to measure GPU temp in OSX?
 
Might be worth mentioning that most users on this forum have a XFX 5850 - this card seems to work without problems.

XFX 5850
14-150-454-03.jpg




The one being discussed here is the Sapphire 5850 XTREME - this one only as 3 ports and needs a custom personality based on Uakari to fix the ghost monitor issues.

Sapphire 5850 XTREME
radeonhd5850-2b.jpg
 
@dakku
Nice work but, your attached kext is kinda old 7.xx version..do you happen to have a fixed 10.8.2 kext? ;)
 
@dakku
Nice work but, your attached kext is kinda old 7.xx version..do you happen to have a fixed 10.8.2 kext? ;)

I am running Lion, so this kext is for 10.7.5.

Provided the kext in ML is similar, it should be the same process to patch the kext. Give it a go..
 
Status
Not open for further replies.
Back
Top