/srv/irclogs.ubuntu.com/2013/02/01/#upstart.txt

ndimatteoanyone able to assist in writing an upstart job for forever.js?00:45
karolyihi, is there a way to configure keyboard to emit upstart events on pressing some special key combinations?14:39
SpamapSkarolyi: if you can get the kernel to notify a userspace daemon, it can emit events17:18
karolyiSpamapS: yes, but the question is, how17:21
karolyii've been goggling around for half a day now17:21
karolyi*googling17:21
stgraberkarolyi: 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 bridge18:23
karolyistgraber: so, i guess i can't do that without actual patching18:25
stgraberright18:25
stgraberdepending 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 reliable18:26
karolyiactually i'm not allowed to patch the kernel here, we should stick to the supplied ubuntu kernel version :)18:27
karolyihowever, this was my idea too, i just didn't knew that this can't be achieved now with the stock kernel18:28
stgraberwell, 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
karolyistgraber: 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 keys18:36

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!