March 2nd, 2002


More Mac Hackin'

So I got my 'Fn' key working totally. The hardware does some keycode remappin' for me (or perhaps the OS handles translating keyboard "flavors" into their canonical mappings below the IOKit layer), so I just map it back when I see the "Fn I remapped for ya" flag set.

So now things be totally sweet.

Only little problem is that if I close the lid with my "Caps Lock" key "on", when I resume, the hardware upon getting its power notify message sends an HID event telling the OS the caps lock is on. Problem is, my code sees that and remaps it to the option key, so anything I click afterwards is Option-clicked.

Hack solution: whenever I power on and the caps lock light is on, just press it again, which'll send both the key up/down modifier events (special + hid).

What I really want to do is find a way to tell the keyboard driver to turn that damn light off, and check the state of it, so I can tell on wakeup if that hid message I just got was bogus or not.

My next project involves the display brightness. There are two keys to do brightness up & brightness down, but no key combos for GoMax and GoMin, like my Dell has. So now I'll make the Fn modifier do that, when used with the existing brightness keys.

Fun fun.


I did my next project, making hotkeys to turn the TiBook backlight on & off. But what's so bad ass is that the way I did it is check to see if the shift key is pressed during bright up/down and then if so, send that key event to the OS 16 times in a row.

The result is that instead of just turning the display on/off, it fades in/out. I ADDED MORE USELESS ANIMATION TO OS X!


Wrist Pain

Dear Right Wrist,

This is not an opportune time for you to start hurting again. This is not exactly a period in time where I can stop typing for several weeks. I promise to give you a long break soon though, okay?

- Brad

No more IM and unnecessary typing for awhile.


Yay for stupid tech support people:
When Drahtmuller contacted's hosting company in the U.S., the situation slipped into the ridiculous as the hosting company tried to reply in Drahtmuller's native German language. "Even though we contacted them in English, they ran their response through Babelfish (translation software) so we couldn't understand what they were saying," he told ZDNet U.K.