Subject: Re: Hotkey support via powerd
To: None <tech-kern@NetBSD.org>
From: Pavel Cahyna <pavel@NetBSD.org>
List: tech-kern
Date: 12/27/2007 11:52:30
On Sat, Dec 22, 2007 at 10:18:17AM -0500, Jared D. McNeill wrote:
> Heyas folks --
> 
> The following is a patch I'm using to allow hotkeys to be passed from a device 
> driver through to powerd. I'm using it for eg. automatically locking my screen 
> when I press Fn+F2, and invoking xrandr to change my outputs when I press Fn+F7 
> on this Thinkpad.

Isn't the distinction between the hotkeys and normal keyboard events a bit
artificial (from user's POV)? I've read the rest of the discussion and it
seems that if the hotkeys were treated as part of the normal keyboard,
there would be no problems with determining what user account should
handle them, as they would be just sent to the X server on the active
screen.

Pavel