JackieXie168 / logkeys

Automatically exported from code.google.com/p/logkeys
Other
0 stars 0 forks source link

Log input from multiple keyboards #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Instead of using the first kbd entry found in /proc/bus/input/devices, you 
could spawn threads to handle input from all kbd devices found.

The log files would just have to be named accordingly, to indicate which device 
produced the keystroke data.

Also, you could have a thread that monitors the system to detect when new USB 
or Bluetooth keyboards are attached to the system, then automatically spawn a 
thread to log their input.

This ability would make logkeys quite a bit more powerful and flexible.

Regards,
Markus.

Original issue reported on code.google.com by msvil...@gmail.com on 2 Aug 2010 at 3:46

GoogleCodeExporter commented 9 years ago
I agree, and I'm putting it on the TODO list, low-prio, though.

Do you have an idea how to monitor the system to detect newly attached USB or 
BT keyboards?

Original comment by kernc...@gmail.com on 2 Aug 2010 at 4:10

GoogleCodeExporter commented 9 years ago
At the moment I do not know how to detect newly attached USB or BT keyboards. I 
intend to research this over the next few days. It would be a handy feature for 
some other stuff I am working on.

One way might be to have a thread that polls the /proc/bus/input/devices file, 
to detect changes due to keyboards connected or disconnected. But this seems a 
bit inelegant to me, there must be some way to directly receive OS 
notifications of new devices.

Original comment by msvil...@gmail.com on 2 Aug 2010 at 4:18

GoogleCodeExporter commented 9 years ago
It looks like you can use some udev rules to run external programs when devices 
are connected.

http://www.reactivated.net/writing_udev_rules.html#external-run

I'll have to sit down and read this in some detail :-)

Original comment by msvil...@gmail.com on 2 Aug 2010 at 4:40

GoogleCodeExporter commented 9 years ago
Issue 59 has been merged into this issue.

Original comment by kernc...@gmail.com on 25 May 2011 at 9:30

GoogleCodeExporter commented 9 years ago
Thanks, for your attention. Do you still develop this program?

Original comment by rioluk...@gmail.com on 27 May 2011 at 6:27

GoogleCodeExporter commented 9 years ago
Time permitting, I am.
Not very actively, I have to admit, but once a year I manage an iteration, I 
guess. :-)

Original comment by kernc...@gmail.com on 27 May 2011 at 2:54

GoogleCodeExporter commented 9 years ago
Issue 65 has been merged into this issue.

Original comment by kernc...@gmail.com on 1 Aug 2011 at 11:07