LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-21-2003, 09:16 AM   #1
killi
Member
 
Registered: Apr 2003
Location: Norway
Distribution: Diff
Posts: 440

Rep: Reputation: 30
keyboard issue


hi i bought a microsoft optical desktop keyboard and mouse
and the keyboard has some buttons how can i configure the
buttons in linux???

here is a link http://www.microsoft.com/catalog/dis...=22&site=11247

cheers

erling
 
Old 05-21-2003, 11:18 AM   #2
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
I really doubt that you can configure that keys in Linux..
 
Old 05-21-2003, 11:19 AM   #3
killi
Member
 
Registered: Apr 2003
Location: Norway
Distribution: Diff
Posts: 440

Original Poster
Rep: Reputation: 30
i have found the lineak but that program has not my keyboard

cheers

erling
 
Old 05-21-2003, 11:36 AM   #4
killi
Member
 
Registered: Apr 2003
Location: Norway
Distribution: Diff
Posts: 440

Original Poster
Rep: Reputation: 30
bump?
 
Old 05-21-2003, 12:08 PM   #5
aherm
Member
 
Registered: Jan 2003
Location: upNorth
Distribution: openSuSE/uBuntu
Posts: 410

Rep: Reputation: 30
The fastest way is to change the keyboard layout
(Control Center) Keyboard Layout -> Keyboard model (choose your keyboard: e.g. mine is Logitech Internet Navigator iTouch)

If your keyboard is not supported you will need to map those extra multimedia and internet keys manually (mine has 20 something extra keys). I've tried that by using CLI on console and modifying my .Xmodmap -> It's not that difficult ;-) All you need to know is the generated keycode from those buttons. It looks like this:

keycode 164 = XF86AudioStop
keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext
keycode 160 = XF86AudioMute
keycode 176 = XF86AudioRaiseVolume
keycode 174 = XF86AudioLowerVolume
keycode 162 = XF86AudioPause
etc.

Help yourself: search on xmodmap, xev, scancode, showkey, setkeycodes, loadkeys, keymaps, xf86audio (this is one of my mm plugin), xmms-itouch (this was my xmms-plugin), bbkeys, gpm, etc.



Good luck and have fun :-)
 
Old 05-21-2003, 01:36 PM   #6
killi
Member
 
Registered: Apr 2003
Location: Norway
Distribution: Diff
Posts: 440

Original Poster
Rep: Reputation: 30
when i type xmodmap -pk i get some of the keycodes but
i want so see all but when i try shift + pageup it stops
and dont show all the keycodes and when i get all (if i do )
where should i input them??

cheers

erling
 
Old 05-22-2003, 09:03 AM   #7
killi
Member
 
Registered: Apr 2003
Location: Norway
Distribution: Diff
Posts: 440

Original Poster
Rep: Reputation: 30
isnt there anyone that knowes the answer?

cheers

erling
 
Old 05-22-2003, 02:39 PM   #8
aherm
Member
 
Registered: Jan 2003
Location: upNorth
Distribution: openSuSE/uBuntu
Posts: 410

Rep: Reputation: 30
Try run xev on konsole. Press those bottons one by one. Any clues in the console?

I run xmodmap -pk on KDE's konsole and it works. Just scroll it up or down.
Anyway, this is on SuSE 8.2 but it should works on any distro IMHO.


Have more fun :-)

Last edited by aherm; 05-22-2003 at 02:55 PM.
 
Old 05-22-2003, 02:50 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,988
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Try this one ... it's called hotkeys ;)
and works with my comp-ACK! keyboard.


Cheers,
Tink
 
Old 05-22-2003, 02:50 PM   #10
killi
Member
 
Registered: Apr 2003
Location: Norway
Distribution: Diff
Posts: 440

Original Poster
Rep: Reputation: 30
earilier i dlled lineakd and i got the keycodes by xev and
added them in a new keyboard the only prob now is getting the
deamon to start on xstartup

cheers

erling
 
Old 05-22-2003, 02:52 PM   #11
killi
Member
 
Registered: Apr 2003
Location: Norway
Distribution: Diff
Posts: 440

Original Poster
Rep: Reputation: 30
i tried hotkeys before
 
Old 05-22-2003, 02:57 PM   #12
aherm
Member
 
Registered: Jan 2003
Location: upNorth
Distribution: openSuSE/uBuntu
Posts: 410

Rep: Reputation: 30
Modify your ~/.Xmodmap to include the keycode map then restart X.
 
Old 05-22-2003, 02:58 PM   #13
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,988
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Quote:
Originally posted by killi
earilier i dlled lineakd and i got the keycodes by xev and
added them in a new keyboard the only prob now is getting the
deamon to start on xstartup

cheers

erling
Try putting the call in your .xsession file...
Code:
Mine looks like this:
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi

# Start the window manager:
/sbin/trail.sh&
gkrellm&
lavaps&
/usr/local/bin/tpb&
xscreensaver& 
bsetbg tux_buttler.jpg&
exec /usr/local/bin/fluxbox
Cheers,
Tink
 
Old 05-22-2003, 04:01 PM   #14
killi
Member
 
Registered: Apr 2003
Location: Norway
Distribution: Diff
Posts: 440

Original Poster
Rep: Reputation: 30
xsession is the file that i should have after rename xinitrc?
 
Old 05-22-2003, 04:06 PM   #15
killi
Member
 
Registered: Apr 2003
Location: Norway
Distribution: Diff
Posts: 440

Original Poster
Rep: Reputation: 30
i fixed it thx for all help guys
 
  


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
Wireless Keyboard Issue wildcat22 Linux - Hardware 2 08-08-2005 08:59 PM
Confusing keyboard issue zippercow Mandriva 2 07-25-2005 10:54 AM
Suse 9.0 Keyboard Issue didlin Linux - Hardware 0 11-03-2003 11:16 AM
RH9 Keyboard issue... pld Linux - Hardware 1 09-26-2003 08:26 AM
Keyboard Issue In Winlinux beliefmask Linux - Newbie 3 09-12-2002 02:35 PM


All times are GMT -5. The time now is 04:14 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration