2004-04-19 22:42:40

by CIJOML

[permalink] [raw]
Subject: standart events for hotkeys?

Hi guys,

I have a question related to keyboard and hotkeys.

Does any standart exist for hotkeys and their returned events?
I have 2 keyboards with hotkeys, one on laptop (acerhk operated) and one
wireless (BlueZ bthid operated) and both returns different codes in xev when
same keys are pressed

mail
browser
etc.

Maybe these should be standardised in all drivers? Can we start same kind of
list, where will be all events stored and then translated by all drivers the
same?

Now users can't use one hotkeys configuration on different keyboards so these
could be renamed to hellkeys :)

Your opinions?

Michal


2004-04-20 10:17:40

by Giuseppe Bilotta

[permalink] [raw]
Subject: Re: standart events for hotkeys?

Michal Semler (volny.cz) wrote:
> Hi guys,
>
> I have a question related to keyboard and hotkeys.
>
> Does any standart exist for hotkeys and their returned events?
> I have 2 keyboards with hotkeys, one on laptop (acerhk operated) and one
> wireless (BlueZ bthid operated) and both returns different codes in xev when
> same keys are pressed
>
> mail
> browser
> etc.
>
> Maybe these should be standardised in all drivers? Can we start same kind of
> list, where will be all events stored and then translated by all drivers the
> same?
>
> Now users can't use one hotkeys configuration on different keyboards so these
> could be renamed to hellkeys :)
>
> Your opinions?

X already has codes for many of the hotkeys defined in. They have
names like XF86AudioMute etc. The inet rules define the proper
scancode -> keycode assignment for X for many keyboards modules.

Yes, I think it would be an interesting idea to have some kind of
standardization of this for the Linux kernel as well, but before
thinking about this (or at the same time) it would be nice if we
could fix the bug in the atkbd driver that makes some of the hotkeys
that use extended keycodes inaccessible or "shifty".

--
Giuseppe "Oblomov" Bilotta

Can't you see
It all makes perfect sense
Expressed in dollar and cents
Pounds shillings and pence
(Roger Waters)

2004-04-22 19:52:07

by Pavel Machek

[permalink] [raw]
Subject: Re: standart events for hotkeys?

Hi!

> I have a question related to keyboard and hotkeys.
>
> Does any standart exist for hotkeys and their returned events?
> I have 2 keyboards with hotkeys, one on laptop (acerhk operated) and one
> wireless (BlueZ bthid operated) and both returns different codes in xev when
> same keys are pressed
>
> mail
> browser
> etc.

I believe vojtech already has codes assigned to keys like those.
Pavel
--
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms

2004-04-24 17:01:00

by CIJOML

[permalink] [raw]
Subject: Re: standart events for hotkeys?

On Tuesday 20 of April 2004 21:34, you wrote:
> Hi!
>
> > I have a question related to keyboard and hotkeys.
> >
> > Does any standart exist for hotkeys and their returned events?
> > I have 2 keyboards with hotkeys, one on laptop (acerhk operated) and one
> > wireless (BlueZ bthid operated) and both returns different codes in xev
> > when same keys are pressed
> >
> > mail
> > browser
> > etc.
>
> I believe vojtech already has codes assigned to keys like those.
> Pavel

Hmmm and all the drivers has to use them?

Michal

2004-04-24 17:18:28

by CIJOML

[permalink] [raw]
Subject: Re: standart events for hotkeys?

On Saturday 24 of April 2004 19:14, you wrote:
> On Saturday 24 April 2004 20:00, Michal Semler wrote:
> > > > Does any standart exist for hotkeys and their returned events?
> > >
> > > I believe vojtech already has codes assigned to keys like those.
> >
> > Hmmm and all the drivers has to use them?
>
> Just to clear some confusion: the event interface has keycodes assigned for
> nearly everything (thanks to Vojtech) so that's not the problem. The
> problem is that a Email key on a Dell is different from an Email key on
> Microsoft keyboard. There's no standard so it's REALLY difficult to support
> those apart from collecting info about hundreds of different keyboards and
> their hotkeys.

yes,

and this is what I mean. We should start project collecting this. As PCI cards
list for example.

That is my opinion. And yours?

Michal

2004-04-24 18:54:27

by Chris Meadors

[permalink] [raw]
Subject: Re: standart events for hotkeys?

Michal Semler wrote:

> and this is what I mean. We should start project collecting this. As PCI cards
> list for example.

There are as many e-mail keys codes as there are e-mail programs. And
I'm sure there is over lap, where one keyboard's e-mail key, generates
the same code as another's web browser key. Also it doesn't really
matter what a key is labeled, it could be assigned to anything.

What there should be is a program that is configurable, that says when
you see this key event, do this. And such programs do exist, for
example the GNOME desktop has ACME.

All that has to be done is make sure the kernel passes this codes, and
the user space program can gather them. That seems to be working now.

--
Chris

2004-04-24 20:00:32

by CIJOML

[permalink] [raw]
Subject: Re: standart events for hotkeys?

On Saturday 24 of April 2004 20:54, you wrote:
> Michal Semler wrote:
> > and this is what I mean. We should start project collecting this. As PCI
> > cards list for example.
>
> There are as many e-mail keys codes as there are e-mail programs. And
> I'm sure there is over lap, where one keyboard's e-mail key, generates
> the same code as another's web browser key. Also it doesn't really
> matter what a key is labeled, it could be assigned to anything.
>
> What there should be is a program that is configurable, that says when
> you see this key event, do this. And such programs do exist, for
> example the GNOME desktop has ACME.
>
> All that has to be done is make sure the kernel passes this codes, and
> the user space program can gather them. That seems to be working now.

Hi,

this isn't true, coz when somebody (me) has two keyboards and both returns
another scan codes for one labeled key, so you can't use hotkeys or Khotkeys
or another one.

It is because when you pres e-mail key, in one keyboard it returns one
scancode and run for example will run kmail, but when you press it on second
keyboard and it returns another scancode, it runs and it will run xterm... :(

So we need wrapper which will translate scancodes from all keyboards to
standart scancodes and then it can be used with hotkeys and will work with
all keyboards and will start kmail everytime on every of keyboards.

Michal

2004-04-24 23:31:32

by Giuseppe Bilotta

[permalink] [raw]
Subject: Re: standart events for hotkeys?

Chris Meadors wrote:
> Michal Semler wrote:
>
> > and this is what I mean. We should start project collecting this. As PCI cards
> > list for example.
>
> There are as many e-mail keys codes as there are e-mail programs. And
> I'm sure there is over lap, where one keyboard's e-mail key, generates
> the same code as another's web browser key.


See below.

> Also it doesn't really
> matter what a key is labeled, it could be assigned to anything.

Well, this is a secondary matter.

> What there should be is a program that is configurable, that says when
> you see this key event, do this. And such programs do exist, for
> example the GNOME desktop has ACME.

Recent X versions have keysyms for the multimedia keys, with
names like XF86AudioPlay, XF86VolumeUp etc. In your keyboard
setup you can choose an inet module specific for your
multimedia keyboard (provided it's supported) and the scancodes
will be converted to the correct keycodes with the attached
"multimedia" keysyms, which you can then map to the whatever
action you might want.

> All that has to be done is make sure the kernel passes this codes, and
> the user space program can gather them. That seems to be working now.

Or rather not, due to the RAW mode emulation (see also my posts
on my problems with configuring the multimedia keys of my Dell
Inspiron 8200 with the 2.6 kernels).

--
Giuseppe "Oblomov" Bilotta

Can't you see
It all makes perfect sense
Expressed in dollar and cents
Pounds shillings and pence
(Roger Waters)