You are not logged in.

#1 2009-06-01 13:32:24

milasch
Member
From: Toronto, ON
Registered: 2009-05-21
Posts: 100

Backslash key - Notebook keyboard

Hi,

I had this problem with ubuntu too, but I think it is reasonably easy to fix.

My laptop keyboard has 2 keys for backslash and | key. One is near the Enter key, the other is on the right of left shift key. The one near Enter key is fine, the one near the Shift key is mapped with the wrong key: < and . instead.

How can I fix this?

Thanks

Offline

#2 2009-06-01 18:30:31

keegan
Member
Registered: 2009-05-12
Posts: 54

Re: Backslash key - Notebook keyboard

You can use cat in a command line to get the keycode, then use xmodmap in your .xinitrc or somewhere to map it to the desired key.

Offline

#3 2009-06-05 23:57:31

milasch
Member
From: Toronto, ON
Registered: 2009-05-21
Posts: 100

Re: Backslash key - Notebook keyboard

keegan wrote:

You can use cat in a command line to get the keycode, then use xmodmap in your .xinitrc or somewhere to map it to the desired key.

How do I use cat to get keycode?

EDIT: Nevermind the question above.

I have managed to fix the backslash but only on console. Tried many variations in my /etc/hal/fdi/policy/10-keymap.fdi, and now it has:

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
  <device>
    <match key="info.capabilities" contains="input.keymap">
      <append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
    </match>

    <match key="info.capabilities" contains="input.keys">
      <merge key="input.xkb.rules" type="string">xorg</merge>
      <merge key="input.xkb.layout" type="string">us</merge>
      <merge key="input.xkb.model" type="string">pc105</merge>
      <merge key="input.xkb.variant" type="string">acentos</merge>
    </match>
  </device>
</deviceinfo>

My /etc/rc.local has:

KEYMAP="us-acentos"

The problem is that my cedilla is ć (WRONG). should be ç (RIGHT).

Also, my backslash fix isnt fixed in Xorg, only in console.

Last edited by milasch (2009-06-06 00:31:38)

Offline

Board footer

Powered by FluxBB