Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-24-2012, 12:31 PM   #1
Senior Member
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,305

Rep: Reputation: 211Reputation: 211Reputation: 211
Alternatives to key event from /dev/input/eventX


There is a plethora of keyloggers for Windows since 1990s, but not so many for Linux.

cat /dev/input/...keyboardevent... does not print sthg human.


(1) There is keylogger from google code,
Forget this one, it rather sucks

(2) also keyevent:
'keyevent' is a little tool derived from evtest.c to report keys being pressed or released on a selectable hardware device. It uses the Linux kernel's event interface, so be sure to load the evdev kernel module (modprobe evdev) before using keyevent.

(3) what else ...

Unspawn, ... craigevil, ... help

Last edited by Xeratul; 05-24-2012 at 01:54 PM.
Old 05-24-2012, 02:12 PM   #2
Senior Member
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,305

Original Poster
Rep: Reputation: 211Reputation: 211Reputation: 211
Forget all those stuffs and crap above, which never work well... though compiling works fairly well.
That wont be your greatest innovative option.

Do this

Get:1 squeeze/main inputlirc i386 16-1 [14.9 kB

apt-get install inputlirc

inputlircd -f -g -m0 /dev/input/eventX


45 0 KEY_NUMLOCK usb- -event-kbd
4f 0 KEY_KP1 usb- -event-kbd
45 0 KEY_NUMLOCK usb- -event-kbd
45 0 KEY_NUMLOCK usb- -event-kbd
4b 0 KEY_KP4 usb- -event-kbd
45 0 KEY_NUMLOCK usb-

Please make sure before to set correctly your new rules.d for hotplug to make the events for users


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
HAL vs Xserver (/dev/input/mice?): convincing X to *not* use a given input device? stuartnlevy Linux - Desktop 6 01-24-2012 04:06 PM
Get /dev/input/eventX from VID:PID (C/C++) Litch84 Programming 1 10-08-2011 05:49 AM
Mouse going back and forth between /dev/input/event3 and /dev/input/event4 Linux.tar.gz Linux - Hardware 2 03-05-2011 04:46 PM
[problem] frequency log causes /dev/ttyS0 console freeze until any key input masue Linux - Embedded & Single-board computer 6 06-22-2010 07:55 PM
Connection between Touch Screen Device Driver and /dev/input/event ... okeyla Linux - Hardware 2 03-05-2006 05:52 AM

All times are GMT -5. The time now is 07:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration