> On None, Kai Uwe Broulik wrote:
> > solid/solid/battery.cpp, line 54
> > <http://git.reviewboard.kde.org/r/110384/diff/1/?file=142923#file142923line54>
> >
> >     Don't know what that magic true/false parameter means. Default?
> 
> Lukáš Tinkl wrote:
>     Yup, default value

That bool is the fallback value in case d->backendObject can't be casted to 
Ifaces::Battery. True looks ok to me.


> On None, Kai Uwe Broulik wrote:
> > solid/solid/battery.h, line 114
> > <http://git.reviewboard.kde.org/r/110384/diff/1/?file=142922#file142922line114>
> >
> >     Probably needs a @since 4.11 ?
> 
> Lukáš Tinkl wrote:
>     Indeed

Yes.


> On None, Kai Uwe Broulik wrote:
> > solid/solid/backends/upower/upowerbattery.cpp, line 148
> > <http://git.reviewboard.kde.org/r/110384/diff/1/?file=142921#file142921line148>
> >
> >     Reminiscient of my attempt to add a signal for these before I realized 
> > it might not be useful

Why wouldn't it be useful? There are cases of laptops with 2 batteries, or 2 
UPS. In that case will be useful to know which battery is providing the power.


> On None, Kai Uwe Broulik wrote:
> > solid/solid/backends/fakehw/fakecomputer.xml, line 38
> > <http://git.reviewboard.kde.org/r/110384/diff/1/?file=142917#file142917line38>
> >
> >     TODO: We should probably add a fake bluetooth mouse or similar to the 
> > fake backend?
> 
> Lukáš Tinkl wrote:
>     Yes please, it helps testing

Yes, can't hurt.


- Àlex


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/110384/#review32331
-----------------------------------------------------------


On May 12, 2013, 12:48 p.m., Kai Uwe Broulik wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/110384/
> -----------------------------------------------------------
> 
> (Updated May 12, 2013, 12:48 p.m.)
> 
> 
> Review request for Solid.
> 
> 
> Description
> -------
> 
> This patch adds support for the "power supply" property in UPower batteries 
> that tells if a battery is actually powering the machine (ie. laptop battery) 
> or just inside a peripheral device (ie. mouse, keyboard, ..)
> 
> In the UDev backend it reads the power supply property, in HAL, which doesn't 
> support this, we're assuming that primary battery and UPS battery are power 
> supply and others are not (which is the current way PowerDevil for example 
> determins whether a computer has a battery or not). Can be somewhat 
> problematic as not all mice report themselves as mouse battery.
> 
> This patch will in the end allow for example Plasma's battery monitor to only 
> average battery percentage of batteries that are actually powering the 
> machine, or PowerDevil to emit a separate message when your mouse battery 
> goes low.
> 
> 
> Diffs
> -----
> 
>   solid/solid/backends/fakehw/fakebattery.cpp 0afe765 
>   solid/solid/backends/fakehw/fakecomputer.xml fe7e323 
>   solid/solid/backends/hal/halbattery.h e2f38a0 
>   solid/solid/backends/hal/halbattery.cpp 4c530da 
>   solid/solid/backends/upower/upowerbattery.h 9d52f7b 
>   solid/solid/backends/upower/upowerbattery.cpp 1a40a2a 
>   solid/solid/battery.h 3afac6f 
>   solid/solid/battery.cpp 37d7321 
>   solid/solid/ifaces/battery.h 9987d18 
>   solid/solid/backends/fakehw/fakebattery.h c7e2791 
> 
> Diff: http://git.reviewboard.kde.org/r/110384/diff/
> 
> 
> Testing
> -------
> 
> After adjusting Plasma's powermanagement dataengine and battery monitor, I 
> had it show two batteries (laptop battery and bluetooth mouse) and only take 
> the laptop battery for battery percentage.
> 
> 
> Thanks,
> 
> Kai Uwe Broulik
> 
>

_______________________________________________
Kde-hardware-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-hardware-devel

Reply via email to