East of the Sun, West of the Moon

2007/5/25

EDID?

Filed under: OS X,Projects,Software — Erwin @ 5:35 pm

So apparently Apple has been fooling a lot of laptop owners (including myself, it looks like) into thinking that their screens can display millions of colours. Do a little googling and I’m sure you’ll find the relevant news articles, blogs, and whatever else.

For users to find out what kind of screen they have, the current suggestion is to download the SwitchResX Control Panel, run Export DCC and use the brand and other identification from that file to look up the specs online.

Downloading 1.3MB of software to find that out is slightly overkill. Wikipedia describes the contents of the EDID data fairly accurately and if you want more there’s a link to a PDF file on the same page. Combine that with the ioreg program that dumps lots of information of your hardware on stdout, and you have the ingredients to write a quick’n’dirty Perl script that’ll read that, pick out the right line, and explain those bytes in more understandable language to the best of its ability.

The relevant parts are at the end, which will look something like this:

Descriptor Block 3
  93: Block type: (fe) ASCII string
    "B154PW01 V0"

Descriptor Block 4
  111: Block type: (fc) Monitor name
    "Color LCD"

You can find specs for B154PW01 online, and yes it does say 262k colours there, not 16.7 million.

It would be interesting to see how well the script works for other card/monitor combinations. I tried it on the Mac Mini with the TV adapter, for instance, which enlightened me that it uses analog input and one of the descriptor blocks is an ASCII string that says “NTSC/PAL”. Indeed!

Improvements to the script will be happily accepted, of course. 🙂

Update: Improved it to unpack the manufacterer ID, which turns out to be 3 characters encoded into two bytes. So “0610” turns into “APP”, for instance.

Still alive

Filed under: General,OS X,Software — Erwin @ 3:52 pm

Really, I am. Just busy with other things!

Recently I’ve been working on/with:

  • Flex 2.01 / Flash 9, for work, and potentially for personal entertainment.
  • MarcoPolo, mostly for myself, to make it easier to switch from our home wireless network to the home wired network to the in-laws’ wireless network, etc.
  • Upgraded the family-tree website to 6.1.0, and immediately lost several hours tracking several branches on ancestry.com.
  • Upgraded the WordPress installs to version 2.2. This broke the accordion effect of the sidebar, but I’ll worry about that some other day.

Yesterday was the last day of school for the boys, so I’m now rediscovering my basement office where I’d spent very little time in the past couple of months. It is in desperate need of cleaning out but I guess that’ll have to wait until the weekend. 🙂

2007/5/2

Helpful error message of the day

Filed under: Humo(u)r,Software — Erwin @ 1:24 pm

When Applescript tells me this:

0:2570: execution error: iTunes got an error: An error of type -116 has occurred. (-116)

It apparently really wants to tell me that it has encountered a track in its library that no longer exists on any filesystem.

Thanks, that was so obvious. NOT! Oh, and good luck trying to search for -116 with Google, since it interprets that as a request to exclude results that contain the 116 search term, last I checked. 🙂

Linkage (…)

Filed under: Software,Technology — Erwin @ 1:19 pm

Powered by WordPress