You are not logged in.

#1 2009-08-18 08:37:21

popple
Member
Registered: 2009-08-17
Posts: 5

keyboad setup [SOLVED]

[SOLVED]...

Thanks very much everyone.
Adding this to my .xinitrc works fine:
setxkbmap gb

Marvellous distro and great forum!

----------------------------------------------------------

My keyboard works fine in a console but I'm struggling to get the right mappings when in xfce.
@ becomes "
| becomes >
...and a few others

It's (I think) a UK keyboard. I have these settings:

/etc/rc.conf:
LOCALE="en_GB.utf8"
KEYMAP="uk"
CONSOLEFONT=
CONSOLEMAP=

On boot it does report:
Loading Keyboard Map:   uk
but it's when I go into xfce it all goes wrong.

/etc/X11/xorg.conf:
Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbLayout" "gb"
    Option         "XkbOptions" "altwin:meta_win,lv3:ralt_switch"
EndSection

/usr/share/X11/xkb/symbols/gb  looks right, e.g. the 2 key has
key <AE02>    { [         2,   quotedbl,  twosuperior,    oneeighth ]    };
but shift-2 comes up as @

I have no .Xresources or .Xmodmap files in $HOME or /etc/X11/xinit
Would be very grateful for suggestions.

Thanks
Richard

Last edited by popple (2009-08-19 21:40:42)

Offline

#2 2009-08-18 12:12:49

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: keyboad setup [SOLVED]

[edit] never mind - I didn't read the whole post properly - sorry, but I've no idea!

Last edited by perbh (2009-08-18 12:13:55)

Offline

#3 2009-08-19 11:31:16

falomir
Member
Registered: 2009-02-15
Posts: 15

Re: keyboad setup [SOLVED]

test by running in alt+f2 => setxkbmap uk
i have same sollution on my machine, but other key map

hmm, where you have @ on keyboard ?

Offline

#4 2009-08-19 13:31:17

tebladet
Member
Registered: 2009-08-14
Posts: 1

Re: keyboad setup [SOLVED]

Hi,

You can try to change /etc/hal/fdi/policy/10-keymap.fdi

Here is a example:
<?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">base</merge>

      <!-- If we're using Linux, we use evdev by default (falling back to
           keyboard otherwise). -->
      <merge key="input.xkb.model" type="string">keyboard</merge>
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
             string="Linux">
        <merge key="input.xkb.model" type="string">evdev</merge>
      </match>

      <merge key="input.xkb.layout" type="string">us</merge>
      <merge key="input.xkb.variant" type="string" />
      <merge key="input.xkb.options" type="string">grp:lwin_toggle</merge>
      <merge key="input.xkb.options" type="string">caps:escape</merge>
      <merge key="input.xkb.options" type="string">terminate:ctrl_alt_bksp</merge>
    </match>
  </device>
</deviceinfo>

us should be change to uk in your case at input.xkb.layout
Have a nice day

Last edited by tebladet (2009-08-19 13:35:31)

Offline

Board footer

Powered by FluxBB