keymapping

View: New views
4 Messages — Rating Filter:   Alert me  

keymapping

by David Woodfall :: Rate this Message:

| View Threaded | Show Only this Message

Hi, I have a usr9600 phone which acts as an extra keyboard and I'm
trying to map keys 1-0 to keypad 1-0:

         <append key="input.keymap.data" type="strlist">0x02:KP1</append>
         <append key="input.keymap.data" type="strlist">0x03:KP2</append>
         <append key="input.keymap.data" type="strlist">0x04:KP3</append>
         <append key="input.keymap.data" type="strlist">0x05:KP4</append>
         <append key="input.keymap.data" type="strlist">0x06:KP5</append>
         <append key="input.keymap.data" type="strlist">0x07:KP6</append>
         <append key="input.keymap.data" type="strlist">0x08:KP7</append>
         <append key="input.keymap.data" type="strlist">0x09:KP8</append>
         <append key="input.keymap.data" type="strlist">0x0a:KP9</append>
         <append key="input.keymap.data" type="strlist">0x0b:KP0</append>

lshal shows the mappings but they aren't working. I got the codes with
scankey -s and I've also tried using xev which show different
keycodes.

I've also tried <merge> instead of <append>

Any ideas why this isn't working?

--
Don't look back, the lemmings are gaining on you.


_______________________________________________
hal mailing list
hal@...
http://lists.freedesktop.org/mailman/listinfo/hal

attachment0 (205 bytes) Download Attachment

Re: keymapping

by Robby Workman-6 :: Rate this Message:

| View Threaded | Show Only this Message

On Sun, 24 Apr 2011 03:27:46 +0100
David Woodfall <dave@...> wrote:

> Hi, I have a usr9600 phone which acts as an extra keyboard and I'm
> trying to map keys 1-0 to keypad 1-0:
>
>          <append key="input.keymap.data"
> type="strlist">0x02:KP1</append> <append key="input.keymap.data"
> type="strlist">0x03:KP2</append> <append key="input.keymap.data"
> type="strlist">0x04:KP3</append> <append key="input.keymap.data"
> type="strlist">0x05:KP4</append> <append key="input.keymap.data"
> type="strlist">0x06:KP5</append> <append key="input.keymap.data"
> type="strlist">0x07:KP6</append> <append key="input.keymap.data"
> type="strlist">0x08:KP7</append> <append key="input.keymap.data"
> type="strlist">0x09:KP8</append> <append key="input.keymap.data"
> type="strlist">0x0a:KP9</append> <append key="input.keymap.data"
> type="strlist">0x0b:KP0</append>
>
> lshal shows the mappings but they aren't working. I got the codes with
> scankey -s and I've also tried using xev which show different
> keycodes.
>
> I've also tried <merge> instead of <append>
>
> Any ideas why this isn't working?

It's because recent Xorg uses udev instead of hal for this.

-RW


_______________________________________________
hal mailing list
hal@...
http://lists.freedesktop.org/mailman/listinfo/hal

signature.asc (205 bytes) Download Attachment

Re: Re: keymapping

by David Woodfall :: Rate this Message:

| View Threaded | Show Only this Message

On (23:19 23/04/11), Robby Workman <rw@...> put forth the proposition:

>On Sun, 24 Apr 2011 03:27:46 +0100
>David Woodfall <dave@...> wrote:
>
>> Hi, I have a usr9600 phone which acts as an extra keyboard and I'm
>> trying to map keys 1-0 to keypad 1-0:
>>
>>          <append key="input.keymap.data"
>> type="strlist">0x02:KP1</append> <append key="input.keymap.data"
>> type="strlist">0x03:KP2</append> <append key="input.keymap.data"
>> type="strlist">0x04:KP3</append> <append key="input.keymap.data"
>> type="strlist">0x05:KP4</append> <append key="input.keymap.data"
>> type="strlist">0x06:KP5</append> <append key="input.keymap.data"
>> type="strlist">0x07:KP6</append> <append key="input.keymap.data"
>> type="strlist">0x08:KP7</append> <append key="input.keymap.data"
>> type="strlist">0x09:KP8</append> <append key="input.keymap.data"
>> type="strlist">0x0a:KP9</append> <append key="input.keymap.data"
>> type="strlist">0x0b:KP0</append>
>>
>> lshal shows the mappings but they aren't working. I got the codes with
>> scankey -s and I've also tried using xev which show different
>> keycodes.
>>
>> I've also tried <merge> instead of <append>
>>
>> Any ideas why this isn't working?
>
>
>It's because recent Xorg uses udev instead of hal for this.
Even the xorg in slack 13.1? (By the way xorg/hal does see the
keyboard and set layout etc. just not the maps)

>
>-RW



--
Don't look back, the lemmings are gaining on you.


_______________________________________________
hal mailing list
hal@...
http://lists.freedesktop.org/mailman/listinfo/hal

attachment0 (205 bytes) Download Attachment

Re: keymapping

by Robby Workman-6 :: Rate this Message:

| View Threaded | Show Only this Message

On Sun, 24 Apr 2011 05:42:59 +0100
David Woodfall <dave@...> wrote:

> On (23:19 23/04/11), Robby Workman <rw@...> put forth the
> proposition:
> >On Sun, 24 Apr 2011 03:27:46 +0100
> >David Woodfall <dave@...> wrote:
> >
> >> Hi, I have a usr9600 phone which acts as an extra keyboard and I'm
> >> trying to map keys 1-0 to keypad 1-0:
> >>
> >>          <append key="input.keymap.data"
> >> type="strlist">0x02:KP1</append> <append key="input.keymap.data"
> >> type="strlist">0x03:KP2</append> <append key="input.keymap.data"
> >> type="strlist">0x04:KP3</append> <append key="input.keymap.data"
> >> type="strlist">0x05:KP4</append> <append key="input.keymap.data"
> >> type="strlist">0x06:KP5</append> <append key="input.keymap.data"
> >> type="strlist">0x07:KP6</append> <append key="input.keymap.data"
> >> type="strlist">0x08:KP7</append> <append key="input.keymap.data"
> >> type="strlist">0x09:KP8</append> <append key="input.keymap.data"
> >> type="strlist">0x0a:KP9</append> <append key="input.keymap.data"
> >> type="strlist">0x0b:KP0</append>
> >>
> >> lshal shows the mappings but they aren't working. I got the codes
> >> with scankey -s and I've also tried using xev which show different
> >> keycodes.
> >>
> >> I've also tried <merge> instead of <append>
> >>
> >> Any ideas why this isn't working?
> >
> >
> >It's because recent Xorg uses udev instead of hal for this.
>
> Even the xorg in slack 13.1? (By the way xorg/hal does see the
> keyboard and set layout etc. just not the maps)

Oh, yeah, still used hal in 13.1.  Not sure what's going on
there, and to be frank (and likely disappointing), I really
don't have much inclination to work on that since we're on
the verge of a new release (and hal is mostly dead anyway,
especially wrt xorg)...

-RW


_______________________________________________
hal mailing list
hal@...
http://lists.freedesktop.org/mailman/listinfo/hal

signature.asc (205 bytes) Download Attachment