post #1 of 1
Thread Starter 
So I was doing DSDT edits and borked my linux install somehow. I'm not sure, I removed the patched DSDT and formatted (no errors, couldn't fix). In this, I lost my borrowed EDID and went searching for a better fix than what I had. So here it goes, first off you need your full EDID and (possibly) an example EDID (I'll post one). This should be what your EDID looks like in text:
Code:
(block 1)
00,FF,FF,FF,FF,FF,FF,00,41,0C,
00,00,00,00,00,00,00,15,01,03,
08,00,00,78,0A,53,0D,A0,54,46,
94,27,11,46,47,21,08,00,71,4F,
81,00,81,40,81,80,95,00,95,0F,
B3,00,A9,40,02,3A,80,18,71,38,
2D,40,58,2C,45,00,A0,5A,00,00,
00,1E,66,21,50,B0,51,00,1B,30,
40,70,36,00,A0,5A,00,00,00,1E,
00,00,00,FD,00,17,3F,0F,45,0F,
00,0A,20,20,20,20,20,20,00,00,
00,FC,00,50,48,49,4C,49,50,53,
0A,20,20,20,20,20,00,C9,00,00

(block 2)
02,03,27,F1,4B,90,1F,04,13,05,
14,03,12,20,21,22,23,09,07,07,
83,01,00,00,E2,00,0F,E3,05,03,
01,67,03,0C,00,10,00,B8,2D,01,
1D,00,72,51,D0,1E,20,6E,28,55,
00,A0,5A,00,00,00,1E,01,1D,00,
BC,52,D0,1E,20,B8,28,55,40,A0,
5A,00,00,00,1E,01,1D,80,18,71,
1C,16,20,58,2C,25,00,A0,5A,00,
00,00,9E,01,1D,80,D0,72,1C,16,
20,10,2C,25,80,A0,5A,00,00,00,
9E,00,00,00,00,00,00,00,00,00,
00,00,00,00,00,00,00,1D,00,00

(blocks are just for reference, it should be all one set)

I'll talk about how I got mine later, for now I'm going to do this all so that you can do it in linux first. Now, I used a program to convert that to binary with windows tools but I believe a hex editor and something like the Extron EDID program should work (works in wine,). That loads and parses edid files, I personally liked the interface better than the others and was glad it worked in Linux. So off to some editing! Important, if you use a hex editor I would suggest watching the values closely. Between block 1 and 2 their should be 2 hex bits for padding (?) that aren't their in a hex editor. It will go straight from C9 (my example) to 02, though it should have 00s in their (like my code above, might be added and hex editors don't need it so I wouldn't worry unless you get errors). Now I'm not exactly sure on how to go from text > bin file, I'll look into that later since we do have tools that work.

After loading the EDID file, it's time to see what needs. Here is the major section I changed (all hi-lighted blocks belong to the section, not just the real dark blocks):



I changed that to:



Now, I took that block from another EDID file. Now prior to this edid, I got 1080p with my original EDID for like a short time in Debian (even though the EDID didn't have it in). So I knew it could run it, however I did look over the EDID file that the borrowed bits came from. I don't know exactly how to calculate the frequencies, I'm sure you could get pretty hard core into this. However I had noticed the EDID file I had gotten ran all the other resolutions the same, as long as the monitor frequency was the same (60 Hz). So I figured the 1080p part shouldn't be too far from what my monitor could do, as well as it didn't exceed my original EDID clocks. I also moved my original 720p section down to the 1280x768 line or whatever it was.

I also had a few blank spots, areas that "were not used" I decided to fill in. Since they weren't used, I figured I'd just straight take the hex and patch it all. I didn't even bother to change the hz all to 60, since it wasn't used and I'm setting the default to 1080p things weren't that risky. I don't change resolutions, with two exceptions for gaming. 1080p or 720p depending on the game. =P So I figured, those were my two defaults this chunk I'll just throw in their to have it patched (moded on left, original on right, don't know why I just opened them that way).



That's it! After I had those changes done, I put that in xorg:
Code:
Section "Device"
Identifier "nVidia" 
Driver "nvidia"
Option "CustomEDID" "DFP:/path/to/modified/edid.bin"
Option "IgnoreEDIDChecksum" "DFP"
EndSection

DFP changes, check xrandr (that's how I do it),I also used:

Option "UseEdidDpi" "FALSE"
Option "DPI" "94 x 94"

You shouldn't have to re-boot either, restart X and it should work as promised (?)!

Now I used some windows tools to do this, since the linux tool selection is... Well it's lacking quite a bit. So if you want to do this a bit easier, and I suggest so, these are all the tools I used:

http://www.extron.com/download/software.aspx?material=2&id=E (EDID Manager)
http://www.entechtaiwan.com/util/moninfo.shtm (no other manager would load my original EDID and parse it, don't know why but this saved my butt! Did not test with Wine)


http://www.oshinetworks.com/EDID_Editor.zip
This one can be very useful, it allows pasting from the clipboard. Real useful when you have sections of hex to copy/paste and don't want to go box from box. I pulled the hex off moninfo and put it in to a text file, used this to edit/build my edid.bin. I didn't like how it parsed or displayed them, so I used the EDID Manager from extron to read them. I like having my data parsed nicely and I took a fancy to that program for reading the EDID info.

That should cover everything I did to get a working EDID, fixing my resolution woes, having a better linux experience. Now, outside of the oshinetworks edid editor nothing else should require windows. I'll check moninfo later but the oshi one requires .net 4 I believe. You all know how that works, so nothing to say about that. Hopefully this helps somebody as it could really help patch together an EDID. If you are in windows and want to go through custom resolutions higher than what your monitor supports you could also edit your EDID to run those. Now I could go into hex conversion for the numbers but if you want to calculate that on your own and not use an example EDID it's all yours (could add to this if somebody bothers to write it up). I posted a previous EDID tut but this is a much cleaner solution.

Honestly if I hadn't found moninfo I probably would have taken a lot longer to do this. When I originally dumped my EDID nothing would open it. I mean nothing, pheonix, none of the above. That was amazing to have a parsed EDID file in hex that I could load in other editors. Anyways, have fun and hope this makes your screens look better.

[OPS!]

EDID file I used for 1080p is attached.
samsung.zip 0k .zip file
Edited by mushroomboy - 3/7/13 at 10:14am
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply