ndimatteo | anyone able to assist in writing an upstart job for forever.js? | 00:45 |
---|---|---|
karolyi | hi, is there a way to configure keyboard to emit upstart events on pressing some special key combinations? | 14:39 |
SpamapS | karolyi: if you can get the kernel to notify a userspace daemon, it can emit events | 17:18 |
karolyi | SpamapS: yes, but the question is, how | 17:21 |
karolyi | i've been goggling around for half a day now | 17:21 |
karolyi | *googling | 17:21 |
stgraber | karolyi: the easiest way would be to patch some of the keyboard handling code in the kernel to emit a uevent when the specific key combination is done, you could then have upstart trigger on that uevent with the existing udev bridge | 18:23 |
karolyi | stgraber: so, i guess i can't do that without actual patching | 18:25 |
stgraber | right | 18:25 |
stgraber | depending on the kind of keyboard, you may be able to eavesdrop through the /dev/input devices, but I'm not sure if that works and if it does, I doubt it's going to be particularly reliable | 18:26 |
karolyi | actually i'm not allowed to patch the kernel here, we should stick to the supplied ubuntu kernel version :) | 18:27 |
karolyi | however, this was my idea too, i just didn't knew that this can't be achieved now with the stock kernel | 18:28 |
stgraber | well, it's not something we need in the distro and having that kind of thing in the kernel and I guess people don't want to make it too simple to implement a key logger ;) | 18:30 |
karolyi | stgraber: you're right, but my target is now to achieve a volume controller by the multimedia keys, behind the X server, because my windowmanager steals the focus if i set the controller script to the appropriate keys | 18:36 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!