|
| |||
| Mapping keyboard 'special' keys in Linux I originally posted this in alt.os.linux.ubuntu but received no useful replys. Therefore I decided to ask the linux community more generally. I have an eMachines keyboard that has a number of additional convenience keys (internet, email, etc). I have looked in the Preferences | Keyboard shortcuts menu and I can't find a way to map 3 of the keys on the side of my keyboard that are very convenient. The keys are: Cut Copy Paste The label on my keyboard says it is a Model KB-0108. Of course, I'm sure the keyboard is re-badged from another company. It would be easy to figure out what the hex keycodes for these 3 keys are. I just haven't a clue how to add them to the computers keymap. These keys would be very handy to have available. Anybody have any ideas on how to proceed? Thanks in advance... Dick |
| |||
| Re: Mapping keyboard 'special' keys in Linux "Dick Sutton" <rsutton43@comcast.net> wrote in message news:N92dnTqtt-OY_cjanZ2dnUVZ_t2inZ2d@comcast.com... > > The label on my keyboard says it is a Model KB-0108. Of course, I'm > sure the keyboard is re-badged from another company. It would be easy > to figure out what the hex keycodes for these 3 keys are. I just > haven't a clue how to add them to the computers keymap. Are you sure those 3 keys don't send multiple scancodes (i.e. simulate multiple key presses)? My keyboard has a ton of keys, and a few of them work this way. For example, I have a "Paste" button that sends CTRL-down, V-down, V-up, CTRL-up when pressed, simulating CTRL-V. Anyway, take a look at this. It's a bit skimpy on detail, but it might be a good starting point: http://ubuntuforums.org/showthread.php?t=172010 |
| |||
| Re: Mapping keyboard 'special' keys in Linux Mercury wrote: > "Dick Sutton" <rsutton43@comcast.net> wrote in message > news:N92dnTqtt-OY_cjanZ2dnUVZ_t2inZ2d@comcast.com... >> The label on my keyboard says it is a Model KB-0108. Of course, I'm >> sure the keyboard is re-badged from another company. It would be easy >> to figure out what the hex keycodes for these 3 keys are. I just >> haven't a clue how to add them to the computers keymap. > > Are you sure those 3 keys don't send multiple scancodes (i.e. simulate > multiple key presses)? My keyboard has a ton of keys, and a few of them work > this way. For example, I have a "Paste" button that sends CTRL-down, V-down, > V-up, CTRL-up when pressed, simulating CTRL-V. > > Anyway, take a look at this. It's a bit skimpy on detail, but it might be a > good starting point: > http://ubuntuforums.org/showthread.php?t=172010 > > Thanks, Mercury, for the link. Yes, I'm sure that the 3 keys (Cut, Copy, & Paste) send a single scancode. They are 0xa5, oxa6, and oxa3 respectively. I got those from looking in /var/log/messages (the messages file also provided me with the 'e' equivalant i.e. e025, e026 and e023 respectively). However, I can't seem to get these to work. I followed the directions in the link that you provided, but it left too much unsaid. For example, Step 5 says to go to the System > Preferences > Keyboard Shortcuts and do the mappings. Well, that's where I started out - There are no pre-defined Cut, Copy & Paste mappings to modify. Dick |
| |||
| Re: Mapping keyboard 'special' keys in Linux Mercury wrote: > "Dick Sutton" <rsutton43@comcast.net> wrote in message > news:N92dnTqtt-OY_cjanZ2dnUVZ_t2inZ2d@comcast.com... >> The label on my keyboard says it is a Model KB-0108. Of course, I'm >> sure the keyboard is re-badged from another company. It would be easy >> to figure out what the hex keycodes for these 3 keys are. I just >> haven't a clue how to add them to the computers keymap. > > Are you sure those 3 keys don't send multiple scancodes (i.e. simulate > multiple key presses)? My keyboard has a ton of keys, and a few of them work > this way. For example, I have a "Paste" button that sends CTRL-down, V-down, > V-up, CTRL-up when pressed, simulating CTRL-V. > > Anyway, take a look at this. It's a bit skimpy on detail, but it might be a > good starting point: > http://ubuntuforums.org/showthread.php?t=172010 > > Thanks, Mercury, for the link. Yes, I'm sure that the 3 keys (Cut, Copy, & Paste) send a single scancode. They are 0xa5, oxa6, and oxa3 respectively. I got those from looking in /var/log/messages (the messages file also provided me with the 'e' equivalant i.e. e025, e026 and e023 respectively). However, I can't seem to get these to work. I followed the directions in the link that you provided, but it left too much unsaid. For example, Step 5 says to go to the System > Preferences > Keyboard Shortcuts and do the mappings. Well, that's where I started out - There are no pre-defined Cut, Copy & Paste mappings to modify. Dick |
| |||
| Re: Mapping keyboard 'special' keys in Linux Mercury wrote: > "Dick Sutton" <rsutton43@comcast.net> wrote in message > news:N92dnTqtt-OY_cjanZ2dnUVZ_t2inZ2d@comcast.com... >> The label on my keyboard says it is a Model KB-0108. Of course, I'm >> sure the keyboard is re-badged from another company. It would be easy >> to figure out what the hex keycodes for these 3 keys are. I just >> haven't a clue how to add them to the computers keymap. > > Are you sure those 3 keys don't send multiple scancodes (i.e. simulate > multiple key presses)? My keyboard has a ton of keys, and a few of them work > this way. For example, I have a "Paste" button that sends CTRL-down, V-down, > V-up, CTRL-up when pressed, simulating CTRL-V. > > Anyway, take a look at this. It's a bit skimpy on detail, but it might be a > good starting point: > http://ubuntuforums.org/showthread.php?t=172010 > > Thanks, Mercury, for the link. Yes, I'm sure that the 3 keys (Cut, Copy, & Paste) send a single scancode. They are 0xa5, oxa6, and oxa3 respectively. I got those from looking in /var/log/messages (the messages file also provided me with the 'e' equivalant i.e. e025, e026 and e023 respectively). However, I can't seem to get these to work. I followed the directions in the link that you provided, but it left too much unsaid. For example, Step 5 says to go to the System > Preferences > Keyboard Shortcuts and do the mappings. Well, that's where I started out - There are no pre-defined Cut, Copy & Paste mappings to modify. Dick |
| |||
| Re: Mapping keyboard 'special' keys in Linux Richard Sutton wrote: > Mercury wrote: >> "Dick Sutton" <rsutton43@comcast.net> wrote in message >> news:N92dnTqtt-OY_cjanZ2dnUVZ_t2inZ2d@comcast.com... >>> The label on my keyboard says it is a Model KB-0108. Of course, I'm >>> sure the keyboard is re-badged from another company. It would be easy >>> to figure out what the hex keycodes for these 3 keys are. I just >>> haven't a clue how to add them to the computers keymap. >> >> Are you sure those 3 keys don't send multiple scancodes (i.e. simulate >> multiple key presses)? My keyboard has a ton of keys, and a few of >> them work this way. For example, I have a "Paste" button that sends >> CTRL-down, V-down, V-up, CTRL-up when pressed, simulating CTRL-V. >> >> Anyway, take a look at this. It's a bit skimpy on detail, but it might >> be a good starting point: >> http://ubuntuforums.org/showthread.php?t=172010 >> > Thanks, Mercury, for the link. Yes, I'm sure that the 3 keys (Cut, > Copy, & Paste) send a single scancode. They are 0xa5, oxa6, and oxa3 > respectively. I got those from looking in /var/log/messages (the > messages file also provided me with the 'e' equivalant i.e. e025, e026 > and e023 respectively). > > However, I can't seem to get these to work. I followed the directions > in the link that you provided, but it left too much unsaid. For > example, Step 5 says to go to the System > Preferences > Keyboard > Shortcuts and do the mappings. Well, that's where I started out - There > are no pre-defined Cut, Copy & Paste mappings to modify. Look at setkeycodes man page for setting a proper value for the keys. Cut/Past/Copy has been done with the mouse, so you would need to define those buttons to work like left mouse button (copy), middle mouse button (paste) and del (cut). You may get some help from the following page: http://www.geocities.jp/fred_b_maciel/kbd/kbd-e.html -- //Aho |
| |||
| Re: Mapping keyboard 'special' keys in Linux "J.O. Aho" <user@example.net> wrote in message news:5rllatF14ei8nU1@mid.individual.net... > Richard Sutton wrote: >> Mercury wrote: >>> "Dick Sutton" <rsutton43@comcast.net> wrote in message >>> news:N92dnTqtt-OY_cjanZ2dnUVZ_t2inZ2d@comcast.com... >>>> The label on my keyboard says it is a Model KB-0108. Of course, I'm >>>> sure the keyboard is re-badged from another company. It would be easy >>>> to figure out what the hex keycodes for these 3 keys are. I just >>>> haven't a clue how to add them to the computers keymap. >>> >>> Are you sure those 3 keys don't send multiple scancodes (i.e. simulate >>> multiple key presses)? My keyboard has a ton of keys, and a few of >>> them work this way. For example, I have a "Paste" button that sends >>> CTRL-down, V-down, V-up, CTRL-up when pressed, simulating CTRL-V. >>> >>> Anyway, take a look at this. It's a bit skimpy on detail, but it might >>> be a good starting point: >>> http://ubuntuforums.org/showthread.php?t=172010 >>> >> Thanks, Mercury, for the link. Yes, I'm sure that the 3 keys (Cut, >> Copy, & Paste) send a single scancode. They are 0xa5, oxa6, and oxa3 >> respectively. I got those from looking in /var/log/messages (the >> messages file also provided me with the 'e' equivalant i.e. e025, e026 >> and e023 respectively). >> >> However, I can't seem to get these to work. I followed the directions >> in the link that you provided, but it left too much unsaid. For >> example, Step 5 says to go to the System > Preferences > Keyboard >> Shortcuts and do the mappings. Well, that's where I started out - There >> are no pre-defined Cut, Copy & Paste mappings to modify. > > Look at setkeycodes man page for setting a proper value for the keys. > Cut/Past/Copy has been done with the mouse, so you would need to define > those > buttons to work like left mouse button (copy), middle mouse button (paste) > and > del (cut). > You may get some help from the following page: > http://www.geocities.jp/fred_b_maciel/kbd/kbd-e.html > > > -- > > //Aho Thanks, Aho I have already done the setkeycodes thing. If I run xev in a terminal, when I press the Cut/Copy/Paste keys they display the fact that they are associated with XF86Cut, XF86Copy, and XF86Paste respectively. The problem is, they don't seem to work. I go into gedit (for example), I then enter some data, I select that data and press the Copy key on the keyboard. I then press the Paste key on the keyboard --- nothing happens. Dare I say that under windows xp it works out-of-the-box. I'm out of clues...I know this should be easy. Dick |
| |||
| Re: Mapping keyboard 'special' keys in Linux Dick Sutton <rsutton43@comcast.net> wrote: > I originally posted this in alt.os.linux.ubuntu but received no useful > replys. Therefore I decided to ask the linux community more generally. > > I have an eMachines keyboard that has a number of additional convenience > keys (internet, email, etc). I have looked in the Preferences | > Keyboard shortcuts menu and I can't find a way to map 3 of the keys on the > side > of my keyboard that are very convenient. The keys are: > > Cut > Copy > Paste > > The label on my keyboard says it is a Model KB-0108. Of course, I'm > sure the keyboard is re-badged from another company. It would be easy > to figure out what the hex keycodes for these 3 keys are. I just > haven't a clue how to add them to the computers keymap. > > These keys would be very handy to have available. Anybody have any > ideas on how to proceed? > > Thanks in advance... > > Dick > > Under the console you can use dumpkeys to create a key table which you can modify and write back using loadkeys. See the man pages for loadkeys and dumpkeys. |
| |||
| Re: Mapping keyboard 'special' keys in Linux Dick Sutton wrote: > I originally posted this in alt.os.linux.ubuntu but received no useful > replys. Therefore I decided to ask the linux community more generally. > > I have an eMachines keyboard that has a number of additional convenience > keys (internet, email, etc). I have looked in the Preferences | > Keyboard shortcuts menu and I can't find a way to map 3 of the keys on the > side > of my keyboard that are very convenient. The keys are: > > Cut > Copy > Paste > > The label on my keyboard says it is a Model KB-0108. Of course, I'm > sure the keyboard is re-badged from another company. It would be easy > to figure out what the hex keycodes for these 3 keys are. I just > haven't a clue how to add them to the computers keymap. > > These keys would be very handy to have available. Anybody have any > ideas on how to proceed? > > Thanks in advance... > > Dick > > You might look at https://help.ubuntu.com/community/KeyTouch |
| |||
| Re: Mapping keyboard 'special' keys in Linux Dick Sutton wrote: > I have already done the setkeycodes thing. If I run xev in a terminal, when > I press the Cut/Copy/Paste keys they display the fact that they are > associated with XF86Cut, XF86Copy, and XF86Paste respectively. The problem > is, they don't seem to work. > > I go into gedit (for example), I then enter some data, I select that data > and press the Copy key on the keyboard. I then press the Paste key on the > keyboard --- nothing happens. Dare I say that under windows xp it works > out-of-the-box. I'm out of clues...I know this should be easy. Looking at my shortcuts in KDE, there are shortcuts for Cut/Copy/Paste, so it may be a short coming of Gnome2. -- //Aho |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| strange keyboard mapping problem | jhavero@gmail.com | Windows XP | 2 | 02-09-2009 05:55 AM |
| keyboard key mapping changes | Scotty In Canada | Windows Vista | 4 | 09-19-2007 12:14 AM |
| Keyboard Language Mapping | tifftiff@rocketmail.com | Windows XP | 0 | 06-22-2007 10:50 PM |
| Keyboard mapping bad in Fedora 5 | Lenny | Linux | 0 | 02-02-2007 01:15 PM |
| FTP/Mapping a drive to a Linux Server | Bachrach, Daniel A | Windows Vista | 0 | 01-01-2007 09:23 PM |
| New To Technology Questions? | Do You Need Help with Your Computer or Device? | Do You Need Help with this site? |