Hey all, Well, it's time for my daily source code release... I shouldn't make a habit of this. The following patch is against v0.6.1, fixes a few small bugs, and cleans up the code some. Also attached are perl scripts (ac_adapt.pl, hotkey.pl) to handle all of the hotkey events in a safe and sane manner and handle AC adapter connect/disconnect. The assumptions and requirements of these scripts are listed in the headers for them. I've included as well the event/* files needed (ac_adapter, hotkey). The kernel code is still missing the ability to change display device -- but other than that, I can't see very much missing from it. Together, the scripts and the patch enable all of the user's hotkeys except suspend-to-RAM (which seems troublesome on all machines) and switching display device (because we don't get an event for that). The scripts handle changing the correct display brightness field depending on power status. As a side note, I feel that this code is nearing release quality. Hiroshi, what is your opinion? David Bronaugh