LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-23-2013, 03:56 PM   #1
w1ze
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
‰AR5
‰AR5
‰AR5
&‰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, 04:58 PM   #2
rigor
Member
 
Registered: Sep 2011
Posts: 214

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:

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

Code:
since the X server is also reading /dev/console ]
/dev/tty
/dev/tty0
/dev/vc/0
/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:

Code:
/usr/share/doc/packages/kbd/doc/kbd.FAQ*.html

In particular, this one, talks about scan codes:

Code:
/usr/share/doc/packages/kbd/doc/kbd.FAQ-2.html

HTH.
 
  


Reply


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 06:43 AM
/dev/sda Input/Output Error sidra Red Hat 4 08-30-2007 01:45 PM
/dev/st0 : Input/Output error sharonenoch Linux - Hardware 1 02-10-2006 01:44 PM
/dev/hdc : Input/output error tulip4heaven Linux - Software 3 04-27-2005 01:03 PM
input/output dev/hda error meira Red Hat 2 09-01-2004 09:31 AM


All times are GMT -5. The time now is 06:59 AM.

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