Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-23-2013, 02:56 PM   #1
LQ Newbie
Registered: Jan 2009
Posts: 2

Rep: Reputation: 0
/dev/input/even0 strange output

I'm trying to capture my key strokes, this is what i get

cat /dev/input/event0
&‰AR*‰AR*‰AR*‰AR*‰AR.*‰AR.*‰AR^C &‰AR

As far as i know it should print everything in hexadecimal, might it be charset issue or something?

When i try 'showkey' everything works just fine.
Old 09-23-2013, 03:58 PM   #2
Registered: Sep 2011
Posts: 253

Rep: Reputation: Disabled
Hi w1ze!

AFAIK, /dev/input/event[0-9] is more than just the characters pressed on the keyboard. E.G., see man pages such as evdev.

This command sequence:

strings -a `which showkey` | fgrep -i dev
gives me this output:

since the X server is also reading /dev/console ]
which may suggest that showkey might not be using /dev/input/event[0-9], is likely using the other devices.

It may be different in your system, but on mine, these files have a variety of information on keyboard operation:


In particular, this one, talks about scan codes:




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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
input/output error on /dev/hb during installation nagavinodh Linux - Newbie 3 09-10-2009 05:43 AM
/dev/sda Input/Output Error sidra Red Hat 4 08-30-2007 12:45 PM
/dev/st0 : Input/Output error sharonenoch Linux - Hardware 1 02-10-2006 12:44 PM
/dev/hdc : Input/output error tulip4heaven Linux - Software 3 04-27-2005 12:03 PM
input/output dev/hda error meira Red Hat 2 09-01-2004 08:31 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:31 PM.

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