linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: samuel.thibault@ens-lyon.org (Samuel Thibault)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv7 0/2] INPUT: Route keyboard LEDs through the generic LEDs layer
Date: Fri, 5 Jun 2015 20:58:06 +0530	[thread overview]
Message-ID: <20150605152806.GE2267@type> (raw)
In-Reply-To: <CAKdAkRSk4t2PKHB33f0=V2-zAhV9LXABp1TQ9NsiFLBQet66BQ@mail.gmail.com>

Hello,

Dmitry Torokhov, le Thu 23 Apr 2015 10:04:49 -0700, a ?crit :
> One thing that I know we'd have to fix is that input device must be
> "opened" before we can engage it, right now LED interface violates
> this requirement.

What do you mean precisely by "engage"?  In the following, I guess
actually calling dev->event(EV_LED)

> It works right now because keyboard handler attaches
> to most input devices with LEDs early enough for it to be
> unnoticeable, but it does not mean that it is correct. It might be as
> easy as calling input_open() unconditionally if devices has LEDs.

This seems like only a workaround, perhaps it should rather be leds.c
which checks for dev->users before calling dev->event(EV_LED)?

> Another issue is that I do not think we should be introducing virtual
> VT leds. I believe LEDs should belong to real devices;

But then how to fix console-setup's bug? (it was actually the starter
for all this work)

See http://bugs.debian.org/514464

console-setup needs a way to tell which kbd modifier should toggle the
capslock LED on all the keyboards used by the VT. Thus the point of VT
leds, which people can use to decide the LED behavior of all keyboards,
including hotplugged ones etc.

Samuel

  parent reply	other threads:[~2015-06-05 15:28 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-17 19:15 [PATCHv7 0/2] INPUT: Route keyboard LEDs through the generic LEDs layer Samuel Thibault
2015-04-01 20:00 ` Pali Rohár
2015-04-01 21:11   ` Samuel Thibault
2015-04-02 14:44     ` Pavel Machek
2015-04-12 22:16       ` Pali Rohár
2015-04-13  8:06         ` Samuel Thibault
2015-04-23 16:55       ` Pali Rohár
2015-04-23 17:04         ` Dmitry Torokhov
2015-05-02 22:44           ` Pali Rohár
2015-06-05 15:28           ` Samuel Thibault [this message]
2015-06-25 15:30             ` Samuel Thibault
2015-06-25 15:37               ` Peter Korsgaard
2015-06-25 16:25               ` Samuel Thibault
2015-06-25 16:53                 ` Dmitry Torokhov
2015-06-26  8:09               ` Pali Rohár

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150605152806.GE2267@type \
    --to=samuel.thibault@ens-lyon.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).