LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
LinkBack Search this Thread
Old 07-29-2007, 12:49 PM   #1
illiadum
Member
 
Registered: May 2006
Location: Arizona...where its unreasonably hot.
Distribution: Slackware
Posts: 34

Rep: Reputation: 15
Keyboard - Extra Keys / Custom Binding


Hi all,
I've recently changed my keyboard to a BTC Model 5207 (After spilling stuff on my old one). And basically, its got all these extra buttons on it for browsing, volume control, what have you. I'd like to use the buttons for custom purposes. Is there an easy way to set custom key mappings for this type of thing?

As of right now I have tried using KDE's custom key bindings, which are supposed to be somewhere in the control center...but I'm not finding. When I "cat /dev/input/event1", it is spitting out ASCII sequences for each of the buttons, so I know they work.

I tried to write a little program to read the "event1" stream and just recognize the sequences accordingly, but I've had limited to no success doing that. I also have a feeling that something somewhere in Linux already exists that will help me do this without reinventing the wheel.

Any suggestions? If anyone has accomplished similar custom key bindings before, I'd really appreciate the input.

Thanks in advance!
 
Old 07-29-2007, 08:45 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,404

Rep: Reputation: 212Reputation: 212Reputation: 212
Look into a utility called lineak. If your keyboard is supported, you can define custom behavior for those multimedia keys.
 
Old 07-31-2007, 05:23 AM   #3
illiadum
Member
 
Registered: May 2006
Location: Arizona...where its unreasonably hot.
Distribution: Slackware
Posts: 34

Original Poster
Rep: Reputation: 15
Thanks for the reply.
Well, my specific model isn't listed in those supported. But I've seen similar model drivers for other things work in the past. I'm going to go ahead and try it out.

I have had a little more success with the programming in the mean time. I can now have my program recognize the keys...but the idea is to have it then turn around and send predetermined key sequences back to the OS as if the keyboard had sent them. I have no clue how to do so yet. I'll check out lineak and see what it can do.

Thanks again!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring extra keys on a laptop keyboard MasterOfTheWind Linux - Hardware 2 04-09-2006 10:17 AM
LCD Screen & Extra keys on keyboard rahilrai Linux - Hardware 2 03-22-2006 04:29 PM
extra keyboard keys stopped working kaega2 Linux - Software 3 04-16-2005 10:57 PM
Logitech Keyboard with some extra keys bobbyjoe Linux - Newbie 1 01-14-2005 10:01 AM
Binding extra keyboard keys ironz Linux - Newbie 4 07-02-2003 04:27 AM


All times are GMT -5. The time now is 07:44 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration