Jump to content

ATI HD framebuffer driver (10.5/10.6) with source code


  • Please log in to reply
900 replies to this topic

#101
deybdeybdeyb

deybdeybdeyb

    InsanelyMac Protégé

  • Members
  • Pip
  • 27 posts
  • Gender:Male
Holy {censored}! it worked. no QE/CI yet but this is so GREAT!

Here's the link of my screenshot... a freshly installed OSX86 from Kalyway 10.5.2 (sorry failed installing from iAtkos v7). Now trying SL from thumb drive.

ATI Mobility Radeon HD 3470 @ 1600x900

Hi dong,

Great job man! Really appreciated all your efforts and brains on this. :)

P.S.
I tried to restart as well without the -v seems to be fine. FYI.

#102
existation

existation

    InsanelyMac Protégé

  • Members
  • PipPip
  • 63 posts

Did you try with backlight option as false?

NO. I will try.

#103
GP1138

GP1138

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 126 posts
  • Gender:Male
  • Location:Dayton, OH
  • Interests:Cars, computers, and VIDEO EDITING/PHOTOJOURNALISM.
Watching this with great interest. This would be a great birthday present, as I just acquired this Dell Studio 17 and while I was initially so excited that it surprised me with a dedicated ATi graphics chip, I was then totally let down when I found out that OS X is nearly unusable with the graphics.

If I could just have native resolution, I would be very pleased. Watching with bated breath.

#104
GP1138

GP1138

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 126 posts
  • Gender:Male
  • Location:Dayton, OH
  • Interests:Cars, computers, and VIDEO EDITING/PHOTOJOURNALISM.
I HAVE NATIVE RES!!!

THANK YOU VERY MUCH!!

#105
ole2

ole2

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 180 posts
  • Gender:Male
  • Location:Grenoble, France

Hi,
ATI Mobility Radeon HD3470 still not working?


ASUS F5SL with ATI Mobility Radeon HD3470 (PCIID: 1002:95C4)
osx version 10.5.8 iDeneb 1.4->upgrade to 10.5.8 vanilla (with ATY_Init.kext not present)
more details about configuration could be found here

applied RadeonHD.kext version "10/17/2009 update"
original ATIRadeonX2000.kext was not starting due to absence PCIID for HD3470 in it
rebooted, initially resolution hasn't changed and remained 1024x768, but when
lunched System Preference -> Display, discovered 4 available resolutions, selected right one 1280x1024 and it's working!

note: absence of ATY_Init.kext showed up no need for "-f" flag for each boot. going to re-verify with HD3650 also.

#106
iFIRE

iFIRE

    InsanelyMacaholic

  • Moderators
  • 3,772 posts
  • Gender:Male
  • Location:Bcn-Spain
work for me in 10.5 ATI HD3650 PCIe - iATKOS 10.5.7 Chameleon rc3 + PC EFI 10.3
All resulution- 1440x900x32

Not work -Snow 10.6.1

Dell Studio 1737
Intel 2.40 Ghz P8600
ICH9M/M
ATI RADEON HD3650 PCIe

#107
.:JD:.

.:JD:.

    InsanelyMac Protégé

  • Members
  • PipPip
  • 86 posts
  • Gender:Male
  • Location:Palermo
  • Interests:Hackintosh, Games, Internet
Is there any hope to get it working for an ATI HD3200 Mobility (IGP on the HP 6735s)??

#108
penguin@ries

penguin@ries

    InsanelyMac Protégé

  • Newbies
  • Pip
  • 4 posts
  • Gender:Male
  • Location:Vietnam
I have tried adding that kexts, but the resolution is not true. My laptop displays as 1280x800, but after I had added those kexts, my laptop displayed as 1280x1024, 1440x1050 or less resolution. How to repair this problem? My graphic card is ATI Mobility X1400.

#109
lebidou

lebidou

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 153 posts
  • Gender:Male
  • Location:Fr
Hello, just tested the latest, and resolution is ok, remains the color issue.
I attached the RadeonDump.

According to my observation, the colors seem "shifted" (?):
- the red channel doesn't appear
- the blue part of the pixel is always turned on
- the green channel uses the red part of the pixels.
- the blue channel uses the green part of the pixels.

A bit like that :
Posted Image

the actual display channels	  |		 R   G   B
what it recieves				 |  (R)	G   B   1

Well, I'm pretty sure this doesn't help you, but I thought that a better knowledge of what is the problem could help you understand the cause.

If there's any other dump I can send you, just ask.

Attached Files



#110
dong

dong

    InsanelyMac Sage

  • Retired Developers
  • 366 posts
  • Gender:Male

I have tried adding that kexts, but the resolution is not true. My laptop displays as 1280x800, but after I had added those kexts, my laptop displayed as 1280x1024, 1440x1050 or less resolution. How to repair this problem? My graphic card is ATI Mobility X1400.

It looks to me the driver failed to pick the native resolution from both your Atombios and EDID, but picked the one from my EDID. You can try to use your own EDID to replace mine.
P.S.
Could you edit your last post and remove the large quote of my first post? That will make other posts easy to read. Thanks.

#111
Marblemanyz

Marblemanyz

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 2 posts
Just Brilliant! :)

Snow Leopard 10.6.1 on a Lenovo Thinkpad T400
ATI Mobility Radeon HD 3470, Dev. ID 0x1002, 0x95c4
Resolution: 1440x900, No QE/CI

Thank you for your excellent work!

#112
existation

existation

    InsanelyMac Protégé

  • Members
  • PipPip
  • 63 posts
Thanks man. I got resolution. 1280x800 on ATI mob x1400.
I change yes to no on enablebacklight in last RadeonHD.kext.10.5. And st works!!!!
My frien has CI & QE + Res!!!!!!!!

Keep on do it!!!!!!! Thanks!!!

#113
jkwarras

jkwarras

    InsanelyMac Protégé

  • Members
  • Pip
  • 23 posts
Thanks! It works on my on-board video card, a ATI HD 3100. The kext is loaded and I get the resolutions menu. Two issues I'll like to report:

1) Booting with -v doesn't work, it hangs.
2) As expected QE doesn't work. It's a RV610 chipset, so I tried adding my device ID in the info.plist (0x96111002), but I get garbage screen. Any ideas?

Thanks again man, it's really appreciated to get my card on system profile :P

Attached Files



#114
Bandes

Bandes

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 103 posts
  • Gender:Male
Excellent work dong! :(
I 've been using my Fujitsu Siemens Pi1536 laptop until now with an external monitor(1920x1080) using Atiinject and SwitchresX.
Now i removed Atiinject, installed Radeonhd kext, and laptop screen works now with 1280x800.
(External monitor no more)
I dont have any different resolutions listed, but this is not a problem.
Just one thing, mouse tears again :)
I wonder if it can be solved somehow. It was gone when using external monitor.
Attached File  atix1400_1280x800.jpg   223.07KB   376 downloads

update: resolutions are now listed as well with 640x480, 800x600, 1024x768, 1280x800.
All work with mouse tear.

#115
dong

dong

    InsanelyMac Sage

  • Retired Developers
  • 366 posts
  • Gender:Male

According to my observation, the colors seem "shifted" (?):
- the red channel doesn't appear
- the blue part of the pixel is always turned on
- the green channel uses the red part of the pixels.
- the blue channel uses the green part of the pixels.

I totally agree with you after checking the picture. I now suspect it's related to the color depth. I saw on your xorg.log that your monitor has a depth of 24. The RadeonHD.kext instead set it to the same value as bitsperpixel, that is 32. Please test this kext: Attached File  RadeonHD.kext.lebidou.zip   162.96KB   1697 downloads to see if anything changed.

update: resolutions are now listed as well with 640x480, 800x600, 1024x768, 1280x800.
All work with mouse tear.

Your external monitor is using the ATI vanilla driver, that's why there is no mouse tearing. I'd like to remove the mouse tearing too, but someone need to tell us what causes this.

#116
Bandes

Bandes

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 103 posts
  • Gender:Male

Your external monitor is using the ATI vanilla driver, that's why there is no mouse tearing. I'd like to remove the mouse tearing too, but someone need to tell us what causes this.


The tearing manifests in relation with the overlay surfaces maybe.
Generally if there is some garbage, then something is clocked over usually.
Interesting thing i noticed, the laptop does not get hot as it gets on windows when Ati Powerplay is set to performance mode (the higher clock setting) so it should have to be running on energy saving mode.
In the sametime cinebench produces around the same test results on OS X. (That time the laptop gets hot as well)
I really miss Atitool for OS X. Would give important information for sure.
There is one similar clocking software for OS X, but it does not support Ati X1400, just some older gpus.
One more interesting thing. On OS X i cant choose refresh rate. N/A is there. On Windows there are two options, 59Hz and 60 Hz. I was always wondering why these two. 59 ??? Strange.

#117
GP1138

GP1138

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 126 posts
  • Gender:Male
  • Location:Dayton, OH
  • Interests:Cars, computers, and VIDEO EDITING/PHOTOJOURNALISM.
Just to note, on my Dell Studio 1735 I get some graphical lines on various parts of the screen, but very small, like little line blips. Not very distracting, and it doesn't happen on every reboot. The second time I rebooted with this kext it had no artifacting at all. Mouse isn't garbled.

Can't wait to see if we can get anything else going! QE/CI would be great but I'm happy with at least native res.

#118
lebidou

lebidou

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 153 posts
  • Gender:Male
  • Location:Fr

I totally agree with you after checking the picture. I now suspect it's related to the color depth. I saw on your xorg.log that your monitor has a depth of 24. The RadeonHD.kext instead set it to the same value as bitsperpixel, that is 32. Please test this kext: Attached File  RadeonHD.kext.lebidou.zip   162.96KB   1697 downloads to see if anything changed.


Just tested and no changes… The log says 1280x800x24bpp, so I suppose it is set.

I was thinking, you did a register dump utility in the past, didn't you ? How useful would it be to dump the PCI registers after booting with your driver, after booting with ATINDRV, and compare which registers are different ? Or maybe these registers have nothing to do with modesetting.

Attached Files



#119
dong

dong

    InsanelyMac Sage

  • Retired Developers
  • 366 posts
  • Gender:Male

I was thinking, you did a register dump utility in the past, didn't you ? How useful would it be to dump the PCI registers after booting with your driver, after booting with ATINDRV, and compare which registers are different ? Or maybe these registers have nothing to do with modesetting.

You can give it a try. It's in Slice's topic "ATI Framebuffer development" and should work in both cases.

#120
lebidou

lebidou

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 153 posts
  • Gender:Male
  • Location:Fr
Just finished the dump and diffs!

I couldn't dump all registers at once so I made separate files. I dumped :
-CRC Control
-CRTC1 and CRTC2
-DisplayOutput registers
-LookUpControl
-LVDSRegisters
-Primary Display Registers
-Secondary Display Registers
-VGA Registers

I commented some of the differences so you can find what it is about more easily.
The most interesting thing I found was in the Primary Display Registers : D1GRPH_CONTROL (0x6104) has a "Swap R and B" bit that's set by ATINDRV and not by RadeonHD. Just tested from your sources, it's not that

You will probably be interested in the Harware cursor registers (at the end of Primary Display). It surely won't solve my issue but maybe help you in implementing the feature in your driver.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy