LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-20-2006, 10:02 AM   #1
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
Configuring extra keys in Slackware


I've got an HP NC4000 laptop with 6 extra buttons above the usual keyboard, one for "Lock Display", one to turn bluetooth on/off, one for full-screen presentation, and 3 for mute/volume+/volume-.

Question is - how do I map these to function in Slackware?

when pusing a button, I get the following dmesg:
Code:
atkbd.c: Unknown key pressed (translated set 2, code 0x8a on isa0060/serio0).
Thus I type

setkeycodes e00a 152 # corresponds to KEY_COFFEE

This is all great, and the dmesg messages now go away, but how do I go from there, to actually invoking the KDE locker for the LOCK-key, or turn volume up/down/mute with their respective keys??

-Y1
 
Old 07-20-2006, 12:00 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Hi Yalla

You could try keytouch (http://keytouch.sourceforge.net/) for which I created a Slackware package some time ago (for a somewhat older version). It lets me use nearly all the additional keys on my wireless Logitech keyboard. Nearly, since I didn't bother with configuring keys I don't use anyway :-)
My package: http://www.slackware.com/~alien/slackbuilds/keytouch/
I stopped updating to newer releases mainly due to the less than cooperative approach of the author when I told him I made a package and sent in several patches to fix the build process. But still it is a fine program, could not find anything that comes near.

Eric
 
Old 07-20-2006, 02:12 PM   #3
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Original Poster
Rep: Reputation: 36
Cool thanks much!

Seems like the author has lightened up a bit now, as there's even a link on the web-page asking for package maintainers to report their findings

-Y1
 
Old 07-20-2006, 03:35 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Yeah that link was what I responded to with a link to my package and the patches I wrote... and since then (almost a year ago) nothing else but a few rather arrogant sounding replies, after which I gave up.

Eric
 
Old 07-21-2006, 11:20 PM   #5
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
Since you're using KDE I'd just use .xmodmap to create mappings of the keys (you can find out which keycode corresponds to which key by using xev), then use KDE's keyboard tool to map them to commands. I don't use KDE myself, but I know one exists (in the Regional and Accessibility section of the Control Center, I presume).

The problem with this method is that I've found not all the keys generate events, whereas the developer of keytouch claims to be working on supporting every key.
 
Old 07-22-2006, 04:01 AM   #6
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
Quote:
I don't use KDE myself, but I know one exists (in the Regional and Accessibility section of the Control Center, I presume).
It is called KHotKeys and it is exactly where you said.

I have been trying the same thing, and the keys were enabled, but some keys became temperamental (ie having to press a key combination twice to get the desired character.) There also seemed to be more of an overall time delay.

So I just coded my regional variation into xorg.conf and then forgot about the additional keys, after all I can launch firefox in a number of ways, so I gave up on the keyboard.

Samac
 
Old 11-26-2006, 02:14 PM   #7
fcaraballo
Member
 
Registered: Feb 2004
Location: WA
Distribution: Slackware
Posts: 230

Rep: Reputation: 31
Alien Bob, I noticed you had the keytouch-editor pdf file but not the keytouch-editor itself in your build dir on your site. Did you leave it out because of the same type of build issues you had with the keytouch program?

MagicMan
 
Old 11-26-2006, 03:55 PM   #8
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Yes, and what's worse, the recent versions of Keytouch are Gnome-dependent.
It might need just a few Gnome programs perhaps. The "configure" program at least complains about missing "gnome-menu" and that one can have depencencies too, I did not check further.

Eric
 
Old 11-26-2006, 05:49 PM   #9
fcaraballo
Member
 
Registered: Feb 2004
Location: WA
Distribution: Slackware
Posts: 230

Rep: Reputation: 31
I'm not really interested in a newer version of Keytouch. The one you built seems to work good enough. However, I do need the keytouch-editor program to configure my keyboard (not in the list) and wasn't sure about installing the editor because of those build issues you had. Would it be possible to get a updated package with a version of the editor included for Slack 11.0?

MagicMan
 
Old 11-27-2006, 05:54 AM   #10
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
You could try building it yourself. Me, I am not that interested in Keytouch. If I have the time though, I will see what I can do, but I'm quite busy at the moment... it might be quicker doing it yourself.

Eric
 
  


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
Configuring extra keys on a laptop keyboard MasterOfTheWind Linux - Hardware 2 04-09-2006 10:17 AM
Logitech Keyboard with some extra keys bobbyjoe Linux - Newbie 1 01-14-2005 10:01 AM
how to map extra keys on k/b need some help here! jollyjoice Slackware 1 07-24-2004 09:51 AM
Configuring SSH to accept only keys (already have keys) fr0st Linux - Security 3 11-04-2003 03:31 AM
Binding extra keyboard keys ironz Linux - Newbie 4 07-02-2003 04:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:13 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