linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Keycode for "main hardware button" on slate?
@ 2011-03-07 17:47 Bastien Nocera
  2011-03-10  8:00 ` Dmitry Torokhov
  2011-03-11  7:29 ` Antonio Ospite
  0 siblings, 2 replies; 5+ messages in thread
From: Bastien Nocera @ 2011-03-07 17:47 UTC (permalink / raw)
  To: linux-input

Heya,

I've installed Fedora 15 onto a WeTab slate, and it has 2 "hardware"
buttons. One is power (already used to come in and out of suspend), and
another one that I'd like to use to get the interface running on it to
go back to its "home" screen.

Any ideas what KEY_* I should use for this functionality?

Cheers


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Keycode for "main hardware button" on slate?
  2011-03-07 17:47 Keycode for "main hardware button" on slate? Bastien Nocera
@ 2011-03-10  8:00 ` Dmitry Torokhov
  2011-03-15 18:12   ` Bastien Nocera
  2011-03-11  7:29 ` Antonio Ospite
  1 sibling, 1 reply; 5+ messages in thread
From: Dmitry Torokhov @ 2011-03-10  8:00 UTC (permalink / raw)
  To: Bastien Nocera; +Cc: linux-input

On Mon, Mar 07, 2011 at 05:47:54PM +0000, Bastien Nocera wrote:
> Heya,
> 
> I've installed Fedora 15 onto a WeTab slate, and it has 2 "hardware"
> buttons. One is power (already used to come in and out of suspend), and
> another one that I'd like to use to get the interface running on it to
> go back to its "home" screen.
> 
> Any ideas what KEY_* I should use for this functionality?
> 

Hmm, I am not sure. This will probably device specific, but I guess you
could use KEY_COMPUTER or KEY_HOMEPAGE for this. Not ideal, but should
do.

Thanks.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Keycode for "main hardware button" on slate?
  2011-03-07 17:47 Keycode for "main hardware button" on slate? Bastien Nocera
  2011-03-10  8:00 ` Dmitry Torokhov
@ 2011-03-11  7:29 ` Antonio Ospite
  2011-03-15 18:12   ` Bastien Nocera
  1 sibling, 1 reply; 5+ messages in thread
From: Antonio Ospite @ 2011-03-11  7:29 UTC (permalink / raw)
  To: Bastien Nocera; +Cc: linux-input

[-- Attachment #1: Type: text/plain, Size: 1059 bytes --]

On Mon, 07 Mar 2011 17:47:54 +0000
Bastien Nocera <hadess@hadess.net> wrote:

> Heya,
> 
> I've installed Fedora 15 onto a WeTab slate, and it has 2 "hardware"
> buttons. One is power (already used to come in and out of suspend), and
> another one that I'd like to use to get the interface running on it to
> go back to its "home" screen.
>

Is there any emblem near the button on the case? IMHO the first choice
would be to assign a code following the visual hint given by the
manufacturer if any.

> Any ideas what KEY_* I should use for this functionality?
>

If KEY_HOMEPAGE is meant specifically for the web browser maybe
KEY_FRONT can represent the home screen of the main UI: it makes me
think to "front desk", but I am not sure about what its intended use
actually is.

Regards,
   Antonio

-- 
Antonio Ospite
http://ao2.it

PGP public key ID: 0x4553B001

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Keycode for "main hardware button" on slate?
  2011-03-10  8:00 ` Dmitry Torokhov
@ 2011-03-15 18:12   ` Bastien Nocera
  0 siblings, 0 replies; 5+ messages in thread
From: Bastien Nocera @ 2011-03-15 18:12 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-input

On Thu, 2011-03-10 at 00:00 -0800, Dmitry Torokhov wrote:
> On Mon, Mar 07, 2011 at 05:47:54PM +0000, Bastien Nocera wrote:
> > Heya,
> > 
> > I've installed Fedora 15 onto a WeTab slate, and it has 2 "hardware"
> > buttons. One is power (already used to come in and out of suspend), and
> > another one that I'd like to use to get the interface running on it to
> > go back to its "home" screen.
> > 
> > Any ideas what KEY_* I should use for this functionality?
> > 
> 
> Hmm, I am not sure. This will probably device specific, but I guess you
> could use KEY_COMPUTER or KEY_HOMEPAGE for this. Not ideal, but should
> do.

The problem is that I'd like that particular key to be used on devices,
which means 1) adding a XKeySym for that key 2) adding it to the default
keymaps, and 3) adding code in gnome-shell to handle that key.

KEY_COMPUTER is used to get to the "Computer" part of the file manager,
and KEY_HOMEPAGE to the home page in a web browser.

I think I'll go with Antonio's KEY_FRONT suggestion instead.

Cheers


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Keycode for "main hardware button" on slate?
  2011-03-11  7:29 ` Antonio Ospite
@ 2011-03-15 18:12   ` Bastien Nocera
  0 siblings, 0 replies; 5+ messages in thread
From: Bastien Nocera @ 2011-03-15 18:12 UTC (permalink / raw)
  To: Antonio Ospite; +Cc: linux-input

On Fri, 2011-03-11 at 08:29 +0100, Antonio Ospite wrote:
> On Mon, 07 Mar 2011 17:47:54 +0000
> Bastien Nocera <hadess@hadess.net> wrote:
> 
> > Heya,
> > 
> > I've installed Fedora 15 onto a WeTab slate, and it has 2 "hardware"
> > buttons. One is power (already used to come in and out of suspend), and
> > another one that I'd like to use to get the interface running on it to
> > go back to its "home" screen.
> >
> 
> Is there any emblem near the button on the case? IMHO the first choice
> would be to assign a code following the visual hint given by the
> manufacturer if any.
> 
> > Any ideas what KEY_* I should use for this functionality?
> >
> 
> If KEY_HOMEPAGE is meant specifically for the web browser maybe
> KEY_FRONT can represent the home screen of the main UI: it makes me
> think to "front desk", but I am not sure about what its intended use
> actually is.

KEY_FRONT could be the one, yes.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-03-15 18:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-07 17:47 Keycode for "main hardware button" on slate? Bastien Nocera
2011-03-10  8:00 ` Dmitry Torokhov
2011-03-15 18:12   ` Bastien Nocera
2011-03-11  7:29 ` Antonio Ospite
2011-03-15 18:12   ` Bastien Nocera

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).