Hi,

Ryan gave me a hint, how to find a workaround without using ~/.Xmodmap.
I describe the solution of my specific problem here, so it might be
helpful for someone with a similar problem.

These links helped a lot:
https://help.ubuntu.com/community/Howto%3A%20Custom%20keyboard%20layout%20definitions
http://www.charvolant.org/~doug/xkb/html/node5.html

To use the special € and $ keys of the acer laptop in 13.10:

1. add the scancode-to-keycode mappings to /etc/rc.local

# <Euro>
setkeycodes e033 240
# <Dollar>
setkeycodes e034 241

loadkeys /home/user/.acer.map

2. create the keyboard translation table extension in
/home/user/.acer.map containing:

keycode 240 = euro
        shift keycode 240 = cent
keycode 241 = dollar
        shift keycode 241 = onequarter

3. add the xbd_symbols to the symbol definition file you use, e.g.:
/usr/share/X11/xkb/symbols/de

// acer Euro und Dollar Spezialtasten
    key <I248>  { [  EuroSign,       cent ]     };
    key <I249>  { [    dollar, onequarter ]     };

4. optional, if you like to see the keys in the graphical represenation of the 
keyboard,
    change the appropriate section in the geometry definition file you use, 
e.g. /usr/share/X11/xkb/geometry/pc

    section "Editing" {
        top= 61;
        left= 312;
        row {
            top= 1;
            key.color= "grey20";
            keys { <INS>, <HOME>, <PGUP> };
        };
        row {
            top= 20;
            key.color= "grey20";
            keys { <DELE>, <END>, <PGDN> };
        };
        row {
            top= 58;
            keys { <I248>, { <UP>, color= "grey20" } , <I249> };
        };
        row {
            top= 77;
            key.color= "grey20";
            keys { <LEFT>, <DOWN>, <RGHT> };
        };
    }; // End of "Editing" section


And now I'm able to switch the keyboard layouts using "gnome-control-center 
region layouts", too, withour "loosing" the € or $ key of the acer laptop again.

cheers Dirk

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xorg in Ubuntu.
https://bugs.launchpad.net/bugs/1243642

Title:
  .Xmodmap not automatically loaded on start

Status in “xorg” package in Ubuntu:
  Confirmed

Bug description:
  I'm using a ~/.Xmodmap file to define two keycode mappings.

  13.10 doesn't seem to automatically load this file any more.
  13.04 did. (same file, same laptop)

  manual execution of "xmodmap ~/.Xmodmap" works on 13.10!
  That means I'm e.g. able to use this key in a terminal or in geany.

  I discovered, that by switching the keyboard layouts using "gnome-
  control-center region layouts" the mappings of the "xmodmap
  ~/.Xmodmap" will be lost again. Then another manual execution of
  "xmodmap ~/.Xmodmap" has to be executed and it works again.

  Perhaps the ~/.Xmodmap is loaded and lost by the the gnome-control-
  center () later.

  Sorry, I can't figure out which packet this bug has to be asigned to.
  By using apport-bug "xorg" was choosen, but it could be "xorg-server"
  or "gnome-control-center", also.

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: xorg 1:7.7+1ubuntu6
  ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
  Uname: Linux 3.11.0-12-generic x86_64
  .tmp.unity.support.test.0:
   
  ApportVersion: 2.12.5-0ubuntu2
  Architecture: amd64
  CompizPlugins: No value set for 
`/apps/compiz-1/general/screen0/options/active_plugins'
  CompositorRunning: compiz
  CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0'
  CompositorUnredirectFSW: true
  Date: Wed Oct 23 12:05:11 2013
  DistUpgraded: Fresh install
  DistroCodename: saucy
  DistroVariant: ubuntu
  ExtraDebuggingInterest: Yes
  GraphicsCard:
   Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller 
[8086:2a42] (rev 09) (prog-if 00 [VGA controller])
     Subsystem: Acer Incorporated [ALI] Device [1025:013c]
     Subsystem: Acer Incorporated [ALI] Device [1025:013c]
  InstallationDate: Installed on 2013-10-18 (4 days ago)
  InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 
(20131016.1)
  MachineType: Acer Extensa 5630
  MarkForUpload: True
  PccardctlIdent:
   Socket 0:
     no product info available
  PccardctlStatus:
   Socket 0:
     no card
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-3.11.0-12-generic 
root=/dev/mapper/vg01-root ro quiet splash vt.handoff=7
  SourcePackage: xorg
  Symptom: display
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 08/11/2009
  dmi.bios.vendor: Phoenix Technologies LTD
  dmi.bios.version: V1.34
  dmi.board.name: Homa
  dmi.board.vendor: Acer
  dmi.board.version: Rev
  dmi.chassis.type: 10
  dmi.chassis.vendor: Acer
  dmi.chassis.version: N/A
  dmi.modalias: 
dmi:bvnPhoenixTechnologiesLTD:bvrV1.34:bd08/11/2009:svnAcer:pnExtensa5630:pvr0100:rvnAcer:rnHoma:rvrRev:cvnAcer:ct10:cvrN/A:
  dmi.product.name: Extensa 5630
  dmi.product.version: 0100
  dmi.sys.vendor: Acer
  version.compiz: compiz 1:0.9.10+13.10.20131011-0ubuntu1
  version.ia32-libs: ia32-libs N/A
  version.libdrm2: libdrm2 2.4.46-1
  version.libgl1-mesa-dri: libgl1-mesa-dri 9.2.1-1ubuntu3
  version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
  version.libgl1-mesa-glx: libgl1-mesa-glx 9.2.1-1ubuntu3
  version.xserver-xorg-core: xserver-xorg-core 2:1.14.3-3ubuntu2
  version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.7.3-0ubuntu3.1
  version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.2.0-0ubuntu10
  version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.904-0ubuntu2
  version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 
1:1.0.9-2ubuntu1
  xserver.bootTime: Wed Oct 23 11:15:16 2013
  xserver.configfile: default
  xserver.errors:
   
  xserver.logfile: /var/log/Xorg.0.log
  xserver.outputs:
   product id                                5459 
   vendor                                     CMO
  xserver.version: 2:1.14.3-3ubuntu2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1243642/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to