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 - 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 04-07-2010, 03:31 PM   #1
narnie
Member
 
Registered: Jan 2010
Distribution: Linux Mint, Ubuntu Netbook Edition, et al
Posts: 108

Rep: Reputation: 17
[SOLVED]xbindkeys giving wrong mapping information


Hello,

I'm having a problem with xbindkeys giving the wrong mapping information, hence I can't get it work at all when trying new mappings from this machine.

From another computer, I have some definitions for xbindkeys (made with xbindkeys-config). These key codes work correctly on this computer I'm having difficulty with.

From the config file for example:

Code:
#esword_split
"~/scripts/esword_split"
#    m:0x1d + c:39
    Control+Shift+Alt+Mod2 + s
will work and run the script I have made.

However, if you run

xbindkeys -k one gets this:

Code:
"NoCommand"
    m:0x201d + c:39
    Control+Shift+Alt+Mod2 + s
Notice the to different m: values. The one obtained with xbindkeys -k is inaccurate and won't work. Hence, I can define no new keyboard commands.

In the working example above, if one comments out the m: line like this:

Code:
#esword_split
"~/scripts/esword_split"
#    m:0x1d + c:39
    Control+Shift+Alt+Mod2 + s
It breaks and won't work. Commenting out the more human readable line like this:

Code:
#esword_split
"~/scripts/esword_split"
    m:0x1d + c:39
#    Control+Shift+Alt+Mod2 + s
Allows it to work.

Sadly, nothing is reading correctly with xbindkeys -k

This is a toshiba satellite A505-S6965 laptop.

Is there any other way to more accurately obtain keyboard bindings?

Not sure to proceed from here.

Thanks,
Narnie

Last edited by narnie; 04-08-2010 at 12:37 AM. Reason: solved
 
Old 04-08-2010, 12:37 AM   #2
narnie
Member
 
Registered: Jan 2010
Distribution: Linux Mint, Ubuntu Netbook Edition, et al
Posts: 108

Original Poster
Rep: Reputation: 17
Figured out the problem.

For some reason, my keymap was set for Ireland instead of Generic 104. Don't ask me how.

After resetting to the correct one (and applying it to system), all is good and xbindkeys -k maps the correct keycodes. YEA!!!

Narnie
 
  


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
Mapping ubuntu drive via rdesktop to win2k8 is giving me sleepless nights bryngeo Linux - Networking 1 05-10-2010 01:57 PM
Wrong harddisk mapping. reiko007 Arch 9 11-15-2007 05:48 PM
mapping application for GPS information deretsigernu Linux - Software 3 09-06-2007 09:03 PM
mmap64 wrong physical mapping mark02k Programming 0 10-20-2004 09:45 AM
Wrong Keyboard mapping. mullog *BSD 0 09-22-2004 03:23 PM

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

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