Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1587602

Re: [PATCH] eeepc-laptop: Skip unknown key messages 0x50 0x51

From Pau Espin Pedrol <pespin.shar@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] eeepc-laptop: Skip unknown key messages 0x50 0x51
Date 2017-02-24 14:10 +0100
Message-ID <tenNg-yV-15@gated-at.bofh.it> (permalink)
References (1 earlier) <tcfTQ-451-9@gated-at.bofh.it> <tdiPE-3ak-25@gated-at.bofh.it> <tdiPE-3ak-23@gated-at.bofh.it> <tdkHN-4r9-49@gated-at.bofh.it> <tdX6q-7c9-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


>> Dmitry, do we have special events for AC (un)plug? What is the best
>> approach in your opinion?
>
> Not route them through input as they not input events would be the best.
>
Is my patch good enough for this or would you recommend doing it another way?

> I'd look into hooking up power_supply class.
>
Whys is this necessay? All the related information required is already
present in my system.
I already have two power_supply instances:
* /sys/class/power_supply/AC0/ (provided by module "ac"), contains
property "online" which is correctly updated to 1 when AC is plugged
and 0 when AC is unplugged.
* /sys/class/power_supply/BAT0/ (provided by module "battery"),
contains property "status" which is correctly updated to "Charging"
when AC is plugged and "Discharging" when AC is unplugged.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH] eeepc-laptop: Skip unknown key messages 0x50 0x51 Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-02-18 17:20 +0100
  Re: [PATCH] eeepc-laptop: Skip unknown key messages 0x50 0x51 Pau Espin Pedrol <pespin.shar@gmail.com> - 2017-02-21 14:40 +0100
    Re: [PATCH] eeepc-laptop: Skip unknown key messages 0x50 0x51 Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-02-21 16:40 +0100
      Re: [PATCH] eeepc-laptop: Skip unknown key messages 0x50 0x51 Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-02-23 09:40 +0100
        Re: [PATCH] eeepc-laptop: Skip unknown key messages 0x50 0x51 Pau Espin Pedrol <pespin.shar@gmail.com> - 2017-02-24 14:10 +0100

csiph-web