[Kde-hardware-devel] Review Request 122316: Fix powerdevil brightness calls breaking kded #2

2015-01-29 Thread Kai Uwe Broulik

---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122316/
---

Review request for Solid and David Edmundson.


Bugs: 337674
https://bugs.kde.org/show_bug.cgi?id=337674


Repository: powerdevil


Description
---

- Query brightness value max one and then just return the stored value, it's 
not like PowerDevil could really cope with it changing anyway
- Don't care for the result when setting the brightness, just call it async

*adds refactoring this to be as async as possible to the 5.3 todo*


Diffs
-

  daemon/backends/upower/powerdevilupowerbackend.h 220289c 
  daemon/backends/upower/powerdevilupowerbackend.cpp 51a052a 

Diff: https://git.reviewboard.kde.org/r/122316/diff/


Testing
---

I'm running on the helper now but I was never able to reproduce the problem. 
The OSD does not show up when changing the brightness through the keys but I 
don't know whether that was the case without this patch already.


Thanks,

Kai Uwe Broulik

___
Kde-hardware-devel mailing list
Kde-hardware-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-hardware-devel


Re: [Kde-hardware-devel] Review Request 122316: Fix powerdevil brightness calls breaking kded #2

2015-01-29 Thread Kai Uwe Broulik

---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122316/
---

(Updated Jan. 29, 2015, 8:02 nachm.)


Review request for Solid and David Edmundson.


Changes
---

Use m_cachedBrightnessMap to store the value which is now only queried once. 
Also fixes the OSD.


Bugs: 337674
https://bugs.kde.org/show_bug.cgi?id=337674


Repository: powerdevil


Description (updated)
---

- Query maximum value once and then just return the stored value, it's not like 
PowerDevil could really cope with it changing anyway
- Query brightness value once and then just update it when udevqt tells us to
- Don't care for the result when setting the brightness, just call it async

*adds refactoring this to be as async as possible to the 5.3 todo*


Diffs (updated)
-

  daemon/backends/upower/powerdevilupowerbackend.h 220289c 
  daemon/backends/upower/powerdevilupowerbackend.cpp 51a052a 

Diff: https://git.reviewboard.kde.org/r/122316/diff/


Testing (updated)
---

I'm running on the helper now but I was never able to reproduce the problem.


Thanks,

Kai Uwe Broulik

___
Kde-hardware-devel mailing list
Kde-hardware-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-hardware-devel


Re: [Kde-hardware-devel] Review Request 122316: Fix powerdevil brightness calls breaking kded #2

2015-01-29 Thread Kai Uwe Broulik

---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122316/
---

(Updated Jan. 29, 2015, 8:05 nachm.)


Review request for Solid and David Edmundson.


Changes
---

Fix typo


Bugs: 337674
https://bugs.kde.org/show_bug.cgi?id=337674


Repository: powerdevil


Description
---

- Query maximum value once and then just return the stored value, it's not like 
PowerDevil could really cope with it changing anyway
- Query brightness value once and then just update it when udevqt tells us to
- Don't care for the result when setting the brightness, just call it async

*adds refactoring this to be as async as possible to the 5.3 todo*


Diffs (updated)
-

  daemon/backends/upower/powerdevilupowerbackend.h 220289c 
  daemon/backends/upower/powerdevilupowerbackend.cpp 51a052a 

Diff: https://git.reviewboard.kde.org/r/122316/diff/


Testing
---

I'm running on the helper now but I was never able to reproduce the problem.


Thanks,

Kai Uwe Broulik

___
Kde-hardware-devel mailing list
Kde-hardware-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-hardware-devel


Re: [Kde-hardware-devel] Review Request 122316: Fix powerdevil brightness calls breaking kded #2

2015-01-29 Thread David Edmundson

---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122316/#review75006
---

Ship it!


looks good to me


daemon/actions/bundled/brightnesscontrol.cpp
https://git.reviewboard.kde.org/r/122316/#comment51938

remove or at least at some text with it


- David Edmundson


On Jan. 29, 2015, 9:06 p.m., Kai Uwe Broulik wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 https://git.reviewboard.kde.org/r/122316/
 ---
 
 (Updated Jan. 29, 2015, 9:06 p.m.)
 
 
 Review request for Solid and David Edmundson.
 
 
 Bugs: 337674
 https://bugs.kde.org/show_bug.cgi?id=337674
 
 
 Repository: powerdevil
 
 
 Description
 ---
 
 - Query maximum value once and then just return the stored value, it's not 
 like PowerDevil could really cope with it changing anyway
 - Query brightness value once and then just update it when udevqt tells us to
 - Don't care for the result when setting the brightness, just call it async
 
 *adds refactoring this to be as async as possible to the 5.3 todo*
 
 
 Diffs
 -
 
   daemon/actions/bundled/brightnesscontrol.h 5e569fd 
   daemon/actions/bundled/brightnesscontrol.cpp 692a643 
   daemon/backends/hal/powerdevilhalbackend.h ab04e53 
   daemon/backends/hal/powerdevilhalbackend.cpp bec528a 
   daemon/backends/upower/powerdevilupowerbackend.h 220289c 
   daemon/backends/upower/powerdevilupowerbackend.cpp 51a052a 
   daemon/powerdevilbackendinterface.h 702b66b 
 
 Diff: https://git.reviewboard.kde.org/r/122316/diff/
 
 
 Testing
 ---
 
 I'm running on the helper now but I was never able to reproduce the problem.
 
 
 Thanks,
 
 Kai Uwe Broulik
 


___
Kde-hardware-devel mailing list
Kde-hardware-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-hardware-devel


Re: [Kde-hardware-devel] Review Request 122316: Fix powerdevil brightness calls breaking kded #2

2015-01-29 Thread David Edmundson

---
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122316/#review75003
---



daemon/backends/upower/powerdevilupowerbackend.cpp
https://git.reviewboard.kde.org/r/122316/#comment51935

I'd rather we killed this too; maybe moving it to init.

Otherwise we still have that re-entrant risk that causes everything to maul 
the CPU like in the bug report.



daemon/backends/upower/powerdevilupowerbackend.cpp
https://git.reviewboard.kde.org/r/122316/#comment51934

you don't need this line.

after this else we set success to true then exit.

Keeps code flow consistent to not sometimes set an RC sometimes exit


- David Edmundson


On Jan. 29, 2015, 8:05 p.m., Kai Uwe Broulik wrote:
 
 ---
 This is an automatically generated e-mail. To reply, visit:
 https://git.reviewboard.kde.org/r/122316/
 ---
 
 (Updated Jan. 29, 2015, 8:05 p.m.)
 
 
 Review request for Solid and David Edmundson.
 
 
 Bugs: 337674
 https://bugs.kde.org/show_bug.cgi?id=337674
 
 
 Repository: powerdevil
 
 
 Description
 ---
 
 - Query maximum value once and then just return the stored value, it's not 
 like PowerDevil could really cope with it changing anyway
 - Query brightness value once and then just update it when udevqt tells us to
 - Don't care for the result when setting the brightness, just call it async
 
 *adds refactoring this to be as async as possible to the 5.3 todo*
 
 
 Diffs
 -
 
   daemon/backends/upower/powerdevilupowerbackend.h 220289c 
   daemon/backends/upower/powerdevilupowerbackend.cpp 51a052a 
 
 Diff: https://git.reviewboard.kde.org/r/122316/diff/
 
 
 Testing
 ---
 
 I'm running on the helper now but I was never able to reproduce the problem.
 
 
 Thanks,
 
 Kai Uwe Broulik
 


___
Kde-hardware-devel mailing list
Kde-hardware-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-hardware-devel