From: Jacek Anaszewski Subject: Re: [PATCH v2 1/4] leds: core: Add support for poll()ing the sysfs brightness attr for changes. Date: Thu, 27 Oct 2016 10:03:47 +0200 Message-ID: <492fe32c-84d2-da34-c761-8f32888bb998@samsung.com> References: <20161023194652.24335-1-hdegoede@redhat.com> <596538b5-32d7-4a5e-d561-62b6321dea56@redhat.com> <5e452f77-730f-69e5-58cc-7c217dee0082@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-reply-to: <5e452f77-730f-69e5-58cc-7c217dee0082@redhat.com> Sender: platform-driver-x86-owner@vger.kernel.org To: Hans de Goede , Jacek Anaszewski , Darren Hart , Matthew Garrett , =?UTF-8?Q?Pali_Roh=c3=a1r?= , Richard Purdie Cc: platform-driver-x86@vger.kernel.org, linux-leds@vger.kernel.org List-Id: linux-leds@vger.kernel.org On 10/27/2016 09:33 AM, Hans de Goede wrote: > Hi, > > On 27-10-16 08:58, Jacek Anaszewski wrote: >> Hi, >> >> On 10/26/2016 05:18 PM, Hans de Goede wrote: >>> Hi, >>> >>> On 24-10-16 22:43, Jacek Anaszewski wrote: >>>> Hi Hans, >>>> >>>> Thanks for the update. >>>> Could you please rebase your patches onto recent linux-leds.git, >>>> for-next branch? >>> >>> Done, I will send a v3 soon (today or tomorrow). >>> >>>> Also it would be convenient to have sample application for polling >>>> brightness changes in tools/leds. >>> >>> I'm sorry but I do not have time to create such a sample application. >> >> You must have tested your solution somehow. > > Yes, as is made clear by the other patches in this set, I'm using > it with keyboard backlight control led interfaces. Which in userspace > are handled by upower which provides a dbus interface which is used > by gnome-settings-daemon. > >> Just polish the code a bit, >> add a Makefile and that's it. Compare tools/leds/uledmon.c - it doesn't >> need to be anything big. > > upower uses gio which is really not suitable for this, so I would need > to create something from scratch. Okay, so I'll have to do it myself, when I'll find a moment. -- Best regards, Jacek Anaszewski