URN Logo
UNIX Resources » Linux » Linux Forum » Linux Video Problems » Page.2 » Xorg 7 And Xmodmap
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
Xorg 7 And Xmodmap
Author: TrickyRic    Posted: 2006-07-05 04:21:48    Length: 5,810 byte(s)
[Original] [Print] [Top]
upgrading to xorg 7 appears to break xmodmap, but why or how it does this i have no idea!

having noticed my keyboards (cherry cymotion linux) extra keys are no longer mapped, and neither are some of my mouse (logitech mx1000) buttons, i started poking around.

first thing i noticed was that

Code:
br /]xmodmap -pk

doesn't return ANY of my mapped keyboard keys, even though my $HOME/.xinitrc script contains the line:

Code:
br /]xmodmap ~/.Xmodmap

among other things, and $HOME/.Xmodmap contains

Code:
br /]keycode 234 = CM_BACK
keycode 233 = CM_FORWARD
keycode 232 = CM_KILL
keycode 231 = CM_RELOAD
keycode 122 = CM_MAGNIFY
keycode 162 = CM_PLAYPAUSE
keycode 164 = CM_STOP
keycode 144 = CM_PREVIOUSTRACK
keycode 153 = CM_NEXTTRACK
keycode 204 = CM_EJECT
keycode 161 = CM_CALC
keycode 236 = CM_MAIL
keycode 130 = CM_HOME
keycode 227 = CM_POWER
keycode 188 = CM_CUT
keycode 192 = CM_COPY
keycode 248 = CM_PASTE
keycode 138 = CM_REDO
keycode 135 = CM_UNDO
keycode 115 = CM_TUX
keycode 116 = CM_MAILTO
keycode 174 = CM_MINUS
keycode 176 = CM_PLUS
keycode 160 = CM_MUTE
keycode 129 = CM_MEDIA

confused, i then checked the output of

Code:
br /]xmodmap -pp

and to my surprise, not only are my mouse buttons still mapped correctly, but i have 4 extra ones!

Code:
br /]trickyric@opteron246 ~ $ xmodmap -pp
There are 16 pointer buttons defined.

    Physical        Button
     Button          Code
        1              1
        2              2
        3              3
        4              6
        5              7
        6              8
        7              9
        8             10
        9             11
       10             12
       11              4
       12              5
       13             13
       14             14
       15             15
       16             16

buttons 13-16 simply shouldn't exist! my xorg.conf contains the correct options, including a buttons count of 12:

Code:
br /]Section "InputDevice"
    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "ExplorerPS/2"
    Option "Device"      "/dev/input/mice"
    Option "Buttons" "12"
    Option "ZAxisMapping" "11 12"
    Option "Resolution" "800"
    Option "Emulate3Buttons" "no"
    Option "Name" "Logitech MX1000 USB PS/2 Mouse"
EndSection

and my above xinitrc script also contains the line:

Code:
br /]xmodmap -e "pointer = 1 2 3 6 7 8 9 10 11 12 4 5"

any ideas whats going on here? maybe this is just a bug and i should report it?

cheers.

[EDIT]
looks like xorg 7 uses a different XKeysymDB file. having copied my CM entries from /usr/X11R6/lib/X11/XKeysymDB to /usr/share/X11/XKeysymDB (note /usr/X11R6 is really a symlink to /usr for backward compatibility) my keyboard mappings now work fine.

still having issues with the mouse though...
----
Laptop: 2GHz Acer Aspire 9301AWSMi, 1GB DDR2, 17" TFT, 256MB GeForce Go 6100
Sold Development System:
2GHz AMD Opteron 246, Socket 940 Asus K8N-DL
Server System: 1.2GHz AMD Athlon, Socket 462 Apollo KT133 VT82C686
[Original] [Print] [Top]
« Previous thread
My Low-end Video Card Will Not Display Above 800x600 In Linux
Linux Video Problems
Page. 2
Next thread »
Ati Radeon X700 Pro Advantage Won't Work
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 11:48:03, cost 0.11340713500977 ms.