LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-25-2009, 01:50 AM   #1
siva4ever
LQ Newbie
 
Registered: Jun 2009
Posts: 12

Rep: Reputation: 0
How to read keys from USB keyboard on AT91SAM9260


Hi Everyone,

I am using 2.6.26.3-olimex kernel(Embedded system) running on AT91SAM9260. I am using a Logitech USB keyboard.

It is detected as "/dev/input/event0".

I don't know how to detect key press events and read the keys?

Why can't I read the keys using scanf() like funtions?

Can anyone help me?

Regards,
Siva
 
Old 08-25-2009, 04:06 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,369

Rep: Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335
Have you got HID modules loaded?
 
Old 08-25-2009, 08:19 AM   #3
siva4ever
LQ Newbie
 
Registered: Jun 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Hi business_kid,

Thanks for your response.

I have enabled the following options in the menuconfig file.

Input Device Support --> Event Interface
Keyboards --> AT Keyboard
HID Devices --> USB Human Interface Device support
HID Devices --> PID device support
Special HID Drivers --> Logitech and Logitech force feedback

I don't find anything inside /lib/modules/

How to check the HID modules are loaded or not?

Last edited by siva4ever; 08-25-2009 at 08:25 AM.
 
  


Reply



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
read from a USB barcode scanner that simulates a keyboard bricedebrignaisplage Programming 12 12-06-2016 01:14 PM
Help with extra keys on Lenovo extended USB keyboard Yalla-One Slackware 6 04-28-2009 05:01 AM
USB Keyboard Extra keys issue teknik Linux - Hardware 2 11-07-2008 04:39 PM
USB keyboard function keys/numeric keys on boot raypen Linux - Hardware 4 04-17-2008 03:07 PM
Assigning keyboard shortcuts to keyboard keys the who Linux - Hardware 3 02-20-2004 09:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:54 PM.

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
Open Source Consulting | Domain Registration