On Thu, Oct 19, 2017 at 09:24:16AM -0700, Tony Lindgren wrote:
> * H. Nikolaus Schaller [171018 08:49]:
> >
> > > Am 18.10.2017 um 15:22 schrieb Tony Lindgren :
> > >
> > > * H. Nikolaus Schaller [171018 05:49]:
> > >>> Am 18.10.2017 um
On Thu, Oct 19, 2017 at 09:24:16AM -0700, Tony Lindgren wrote:
> * H. Nikolaus Schaller [171018 08:49]:
> >
> > > Am 18.10.2017 um 15:22 schrieb Tony Lindgren :
> > >
> > > * H. Nikolaus Schaller [171018 05:49]:
> > >>> Am 18.10.2017 um 14:28 schrieb Pavel Machek :
> > >>>
> > >>> So I
think we could make things compatible with various battery apps by
>>>>> having libbattery write back the capacity percentage and time remaining
>>>>> to the kernel driver via sysfs or a dev entry. Then the kernel interface
>>>>> can just display the data t
/xfce/xfce4-battery-plugin
>>>>>> displays the battery percentage.
>>>>>
>>>>> I think we could make things compatible with various battery apps by
>>>>> having libbattery write back the capacity percentage and time remaining
>>>>
-battery-plugin
> >>>> displays the battery percentage.
> >>>
> >>> I think we could make things compatible with various battery apps by
> >>> having libbattery write back the capacity percentage and time remaining
> >>> to the kernel dri
ible with various battery apps by
> >>> having libbattery write back the capacity percentage and time remaining
> >>> to the kernel driver via sysfs or a dev entry. Then the kernel interface
> >>> can just display the data to whatever apps.
> >>
> >&
ercentage and time remaining
>>> to the kernel driver via sysfs or a dev entry. Then the kernel interface
>>> can just display the data to whatever apps.
>>
>> Hm. That would be quite difficult to understand and maintain code.
>
> How so? The libbattery can do it a
;>> can just display the data to whatever apps.
>>
>> Hm. That would be quite difficult to understand and maintain code.
>
> How so? The libbattery can do it all, then the kernel drivers needing
> that will just display the most recent values to maintain compability
> with
* H. Nikolaus Schaller [171018 08:49]:
>
> > Am 18.10.2017 um 15:22 schrieb Tony Lindgren :
> >
> > * H. Nikolaus Schaller [171018 05:49]:
> >>> Am 18.10.2017 um 14:28 schrieb Pavel Machek :
> >>>
> >>> So I started
* H. Nikolaus Schaller [171018 08:49]:
>
> > Am 18.10.2017 um 15:22 schrieb Tony Lindgren :
> >
> > * H. Nikolaus Schaller [171018 05:49]:
> >>> Am 18.10.2017 um 14:28 schrieb Pavel Machek :
> >>>
> >>> So I started something, it is at.
> >>>
> >>> https://github.com/pavelmachek/libbattery
>
> Am 18.10.2017 um 18:13 schrieb Pavel Machek :
>
> On Wed 2017-10-18 17:52:22, H. Nikolaus Schaller wrote:
>>
>>> Am 18.10.2017 um 15:56 schrieb Pavel Machek :
>>>
>>> On Wed 2017-10-18 06:22:04, Tony Lindgren wrote:
* H. Nikolaus Schaller
> Am 18.10.2017 um 18:13 schrieb Pavel Machek :
>
> On Wed 2017-10-18 17:52:22, H. Nikolaus Schaller wrote:
>>
>>> Am 18.10.2017 um 15:56 schrieb Pavel Machek :
>>>
>>> On Wed 2017-10-18 06:22:04, Tony Lindgren wrote:
* H. Nikolaus Schaller [171018 05:49]:
>> Am 18.10.2017 um 14:28
On Wed 2017-10-18 17:52:22, H. Nikolaus Schaller wrote:
>
> > Am 18.10.2017 um 15:56 schrieb Pavel Machek :
> >
> > On Wed 2017-10-18 06:22:04, Tony Lindgren wrote:
> >> * H. Nikolaus Schaller [171018 05:49]:
> Am 18.10.2017 um 14:28 schrieb Pavel Machek
On Wed 2017-10-18 17:52:22, H. Nikolaus Schaller wrote:
>
> > Am 18.10.2017 um 15:56 schrieb Pavel Machek :
> >
> > On Wed 2017-10-18 06:22:04, Tony Lindgren wrote:
> >> * H. Nikolaus Schaller [171018 05:49]:
> Am 18.10.2017 um 14:28 schrieb Pavel Machek :
>
> So I started
> Am 18.10.2017 um 15:56 schrieb Pavel Machek :
>
> On Wed 2017-10-18 06:22:04, Tony Lindgren wrote:
>> * H. Nikolaus Schaller [171018 05:49]:
Am 18.10.2017 um 14:28 schrieb Pavel Machek :
So I started something, it is at.
> Am 18.10.2017 um 15:56 schrieb Pavel Machek :
>
> On Wed 2017-10-18 06:22:04, Tony Lindgren wrote:
>> * H. Nikolaus Schaller [171018 05:49]:
Am 18.10.2017 um 14:28 schrieb Pavel Machek :
So I started something, it is at.
https://github.com/pavelmachek/libbattery
> Am 18.10.2017 um 15:22 schrieb Tony Lindgren :
>
> * H. Nikolaus Schaller [171018 05:49]:
>>> Am 18.10.2017 um 14:28 schrieb Pavel Machek :
>>>
>>> So I started something, it is at.
>>>
>>> https://github.com/pavelmachek/libbattery
>>>
> Am 18.10.2017 um 15:22 schrieb Tony Lindgren :
>
> * H. Nikolaus Schaller [171018 05:49]:
>>> Am 18.10.2017 um 14:28 schrieb Pavel Machek :
>>>
>>> So I started something, it is at.
>>>
>>> https://github.com/pavelmachek/libbattery
>>>
>>> My battery on n900 is currently uncalibrated (and
On Wed 2017-10-18 06:22:04, Tony Lindgren wrote:
> * H. Nikolaus Schaller [171018 05:49]:
> > > Am 18.10.2017 um 14:28 schrieb Pavel Machek :
> > >
> > > So I started something, it is at.
> > >
> > > https://github.com/pavelmachek/libbattery
> > >
> > > My
On Wed 2017-10-18 06:22:04, Tony Lindgren wrote:
> * H. Nikolaus Schaller [171018 05:49]:
> > > Am 18.10.2017 um 14:28 schrieb Pavel Machek :
> > >
> > > So I started something, it is at.
> > >
> > > https://github.com/pavelmachek/libbattery
> > >
> > > My battery on n900 is currently
* H. Nikolaus Schaller [171018 05:49]:
> > Am 18.10.2017 um 14:28 schrieb Pavel Machek :
> >
> > So I started something, it is at.
> >
> > https://github.com/pavelmachek/libbattery
> >
> > My battery on n900 is currently uncalibrated (and charging), still it
>
* H. Nikolaus Schaller [171018 05:49]:
> > Am 18.10.2017 um 14:28 schrieb Pavel Machek :
> >
> > So I started something, it is at.
> >
> > https://github.com/pavelmachek/libbattery
> >
> > My battery on n900 is currently uncalibrated (and charging), still it
> > gets some kind of estimation:
>
> So I have three questions:
> a) why do you use float/double instead of fixed point for such
> simple and imprecise calculations?
Cleaner code, and probably faster, too.
Pavel
--
(english)
> So I have three questions:
> a) why do you use float/double instead of fixed point for such
> simple and imprecise calculations?
Cleaner code, and probably faster, too.
Pavel
--
(english)
> Am 18.10.2017 um 14:28 schrieb Pavel Machek :
>
> Hi!
>
>>> Without patch description: See Last Question in
>>>
>>> Documentation/power/power_supply_class.txt
>>
>> ...should be done in libbattery, yet to be written. :-).
>>
>> Do you have specific guidance what you'd like to
> Am 18.10.2017 um 14:28 schrieb Pavel Machek :
>
> Hi!
>
>>> Without patch description: See Last Question in
>>>
>>> Documentation/power/power_supply_class.txt
>>
>> ...should be done in libbattery, yet to be written. :-).
>>
>> Do you have specific guidance what you'd like to see in
Hi!
> > Without patch description: See Last Question in
> >
> > Documentation/power/power_supply_class.txt
>
> ...should be done in libbattery, yet to be written. :-).
>
> Do you have specific guidance what you'd like to see in libbattery?
So I started something, it is at.
Hi!
> > Without patch description: See Last Question in
> >
> > Documentation/power/power_supply_class.txt
>
> ...should be done in libbattery, yet to be written. :-).
>
> Do you have specific guidance what you'd like to see in libbattery?
So I started something, it is at.
Hi,
> Am 08.09.2017 um 13:32 schrieb Pavel Machek :
>
> Hi!
>
>>> + case POWER_SUPPLY_PROP_CAPACITY:
>>> + {
>>> + int ret, curr, voltage;
>>> +
>>> + ret = read_channel(adc_bat, POWER_SUPPLY_PROP_CURRENT_NOW,
>>> );
>>> + ret |=
Hi,
> Am 08.09.2017 um 13:32 schrieb Pavel Machek :
>
> Hi!
>
>>> + case POWER_SUPPLY_PROP_CAPACITY:
>>> + {
>>> + int ret, curr, voltage;
>>> +
>>> + ret = read_channel(adc_bat, POWER_SUPPLY_PROP_CURRENT_NOW,
>>> );
>>> + ret |= read_channel(adc_bat,
Hi!
> > + case POWER_SUPPLY_PROP_CAPACITY:
> > + {
> > + int ret, curr, voltage;
> > +
> > + ret = read_channel(adc_bat, POWER_SUPPLY_PROP_CURRENT_NOW,
> > );
> > + ret |= read_channel(adc_bat, POWER_SUPPLY_PROP_VOLTAGE_NOW,
> > );
> > + if
Hi!
> > + case POWER_SUPPLY_PROP_CAPACITY:
> > + {
> > + int ret, curr, voltage;
> > +
> > + ret = read_channel(adc_bat, POWER_SUPPLY_PROP_CURRENT_NOW,
> > );
> > + ret |= read_channel(adc_bat, POWER_SUPPLY_PROP_VOLTAGE_NOW,
> > );
> > + if
Hi,
On Tue, Aug 01, 2017 at 10:55:26PM +0200, Marek Belisko wrote:
> From: Marek Belisko
>
> Signed-off-by: Marek Belisko
> ---
> drivers/power/supply/generic-adc-battery.c | 14 ++
> 1 file changed, 14 insertions(+)
>
> diff
Hi,
On Tue, Aug 01, 2017 at 10:55:26PM +0200, Marek Belisko wrote:
> From: Marek Belisko
>
> Signed-off-by: Marek Belisko
> ---
> drivers/power/supply/generic-adc-battery.c | 14 ++
> 1 file changed, 14 insertions(+)
>
> diff --git a/drivers/power/supply/generic-adc-battery.c
>
From: Marek Belisko
Signed-off-by: Marek Belisko
---
drivers/power/supply/generic-adc-battery.c | 14 ++
1 file changed, 14 insertions(+)
diff --git a/drivers/power/supply/generic-adc-battery.c
From: Marek Belisko
Signed-off-by: Marek Belisko
---
drivers/power/supply/generic-adc-battery.c | 14 ++
1 file changed, 14 insertions(+)
diff --git a/drivers/power/supply/generic-adc-battery.c
b/drivers/power/supply/generic-adc-battery.c
index 0d27b59..9ce51d2 100644
---
36 matches
Mail list logo