Hi Dublove, thank you so much for detailed guide, I hope that should help many hackintoshers out there. I am trying to add 1920x1080 vesa mode to my Gigabyte HD5750 but I am stuck on step 2 (analysing vbios). when I execute the commad in terminal, all I get is info about lenth. I dont get any info on modes. I have tried many ways but same results. I am doing it on Lion, may be that is the reason.
I have attached my vbios and would really appreciate if you could analyse it on your system and tell me what are the 5 modes (eg: A9EE) for my bios. I can do the rest. Note: there are two bioses in bioses folder, one extracted via gpuz and one via winflash.
Once again, thank you so much for doing it for our hackintosh community.
Here is the edited one http://d.pr/f/fMnj
, we have the same card so I edited your 1920x1440 res to 1920x1080
Make sure to specify Graphics Mode in your "org.chameleon.Boot.plist"
I have the same problem, with an HD 4850. I noticed the resolution did change, because during boot there were some lines that wouldn't fit in one line and now it does.
Besides, in case of any problem with my monitor, I believe it would be safer to have 800x600 mode. I guess it'd be better to replace another "less useful" resolution, perhaps 1152x864. How can I do that?
Edit: another reason, look what happened to my BIOS screen (previously, it was
fullscreen, almost full, with the same black borders).
Edit2: I managed to replace 1600x1200 with 1920x1080, so BIOS went back to normal, but I still have those borders.
Are you running through HDMI? ATI cards have a scaling issue with HDMI. Try a DVI Cord with that, it should work
Please help to set a resolution 2560x1440 for a Ati Saphire 5770!
I already made the modifcation for 1920x1080 like above!
I really appreciate your help
Thanks and best regards
Upload your VBIOS and I can do it for ya.
My VBIOS file: http://d.pr/f/HXTN
Screenshot of supported resolutions on Chameleon: http://d.pr/i/lfHm
I have tried to set it to 1680x1050 manually, but that never did work.
Oh damn disregard that patch! DO NOT USE IT!!!
You didn't give me the right video modes. I need you to literally reboot and in the chameleon Boot Screen push the arrow down key and choose video modes and scroll down. Then give me that pic!
Thanks to dublove i was finally able to hard flash my MSi ATi HD 5870, i can get now 1920 x 1080, but i still have those 1 inch thick, awful borders. Does anyone know, how to remove them?
Use a DVI cord. ATI cards have a scaling issue with HDMI.
This is some preliminary work for coding a patch for Chameleon RC4/5, which will read the VBIOS of ATI (3*** HD & 4*** HD) and NVIDIA cards (nearly all models) and
modify existing VESA modes (such as 800x600) to the native resolution of the display.
For Widescreen monitors this will lead to an unstretched GUI & Spinner. If your extremely eager you can mod ur video rom right now and reflash it.; but im working on a patch similar to 915res to patch the bios on the fly...
1. Structure of VESA modes in ATI VBIOS
In ATI VBIOS'es the VESA modes are stored in a table 1064 bytes long, containing 38 Modes, each 28 bytes long.
The offset is not constant, but always around 0xA600. (There are actually two tables, but one I could identify as ComponentVideoInfo. Since this doesn't apply to us (& since i tried to patch this table w/o results) I'm concentrating on the table named above.
Here is a sample mode from an 4870HD:
20 03 00 01 58 02 19 00 10 00 50 00 01 00 03 00 00 00 00 00 00 00 00 00 6A 4B F9 15
Important for us are bytes 1, 2, 5, 6:
Bytes 1&2 (In this example 20 03) are byteflipped versions of the width in hex format. Eg: If you unflip them you get 0320 which is HEX for 800.
The same applies for bytes 5&6 ->58 02 -> Unflip them -> 0258 -> convert to DEC -> Height is 600.
This sample mode thus has the resolution 800x600.
The other bytes afterwards are for color depth, various sync times and pixel clocks
In every 3*** - 5*** HD bios there are five 800x600 modes after each other, each with different color depth, various sync times and pixel clocks.
For this fix to work we change those five modes to the resolution we want:
If native res of the display is 1680x1050, we convert those to hex, resulting in 0x0690 and 0x041A
Now we flip the bytes, resulting in 0x9006 and 0x1A04.
If we now replace the width & height in the afore mentioned five modes, we will get native 1680x1050x32, 1680x1050x16 & 1680x1050x8.
This is confirmed working on ati 3***, 4*** and 5***
I attached a small c++ tool to find the locations of those 5 modes.
2. Structure of VESA modes in NVIDIA VBIOS
In NVIDIA VBIOS'es the modes are stored in a similar byteflipped way:
Thanks to bitrips report, i had another look at his bios & found another table in a different format.
(While ATI released some basic structures of their vbios and I could such identify the right table, NVIDIA doesn't)
This other table I found is 288bytes long, containing 32 modes á 9 bytes. The offset is again not stable.
Sample Code from 8800GT (XFX 512MB)
40 01 C8 00 28 18 08 08 05
Resolution is byte flipped again, this time byte 1&2 and 3&4 (Sample: 320x200). The modes in this table go up to 1920x1200 (80 07 B0 04)
The other mode table is 512 bytes long, containing 16 modes, each 32 byte long.
Here is a sample mode from an 8800GTS
00 04 FF 03 00 00 FF 03 17 04 9F 04 3F 05 00 03 FF 02 00 00 FF 02 02 03 08 03 25 03 00 FF 30 2A
Important for us here are bytes 1, 2, 15, 16:
Bytes 1&2 (In this example 00 04) are byteflipped versions of the width in hex format. Eg: If you unflip them you get 0400 which is HEX for 1024.
The same applies for bytes 15&16 ->00 03 -> Unflip them -> 0300 -> convert to DEC -> Height is 768.
This sample mode thus has the resolution 1024x768.
Unlike the ATI modes Table, the NVIDIA is more compact, so we only need to modify two, sometimes only one mode.
So we convert the native resolution of the display as above and replace those values.
I attached a small c++ tool to find the locations of this mode.
3. Tool to Analyse VBIOS:
0. This tool only looks at where/how many VESA tables there are. It doesn't actually change them
1. Extract VBIOS using Windows etc.
2. run in Terminal ./analyseVBIOS bios.rom
3. You'll get the location of the tables
4. Zip contains exec and sources
My thank goes to:
The xorg ati team
This post for the original cl tool
The developers of 915res
The analyser isn't even needed. If you boot up in Chameleon and push down you can see all of the VESA modes your VBIOS supports. Just search for the width with the byteflipped hex value and if it has the byteflipped hex value height 2 bytes away then you can just change those.