[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: X.org Keyboard repeat rate through hal



On Thu, Apr 23, 2009 at 10:43, Davide Mancusi <arekfu@gmail.com> wrote:
> Hi .*,
>
>        I have upgraded X to v1:7.4+1 and now I'm struggling with hal
> to reproduce the same configuration I had before. I managed to set up
> the keyboard layouts and the xkb options, but I can't find how to change
> the keyboard repeat rate. For the moment, I have created a policy file
> in /etc/hal/fdi/policy/ called 12-davide.fdi (see below for the content
> of the file). The "input.x11_options.AutoRepeat" key is my latest
> unsuccessful attempt.
>
>        It would be nice if there were a comprehensive translation
> guide for the xorg.conf --> hal transition.
>
> Cheers,
> Davide
>
> ============= START =============
> <?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.x11_options.AutoRepeat" type="string">220 50</merge>
>      <merge key="input.xkb.options" type="string">grp:shifts_toggle,compose:menu</merge>
>      <merge key="input.xkb.layout" type="string">it,se</merge>
>      <merge key="input.xkb.variant" type="string" />
>    </match>
>  </device>
>  <device>
>    <match key="info.capabilities" contains="input.mouse">
>        <merge key="input.x11_options.Emulate3Buttons" type="string">yes</merge>
>    </match>
>  </device>
> </deviceinfo>

Try putting

AUTOREPEAT="220 50"

in /etc/default/console-setup

If it works you get the bonus of setting the repeat rate on the TTYs as well.


Cheers,
Kelly Clowers


Reply to: