[Kde-hardware-devel] Review Request: Add FreeBSD implementation to backlighthelper

Alberto Villa avilla at freebsd.org
Thu Oct 11 01:59:22 UTC 2012


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

Review request for Solid and Dario Freddi.


Description
-------

This patch should bring FreeBSD to feature parity with Linux on brightness management; it uses acpi_video(4) interface. The code was inspired by Junk-uk Kim's following patch: https://bugs.freedesktop.org/show_bug.cgi?id=24765
I've used a generic #ifdef USE_SYSCTL to make it easy for other BSDs to add support for their system. initUsingSysctl(), m_device and m_levels are always defined to avoid spoiling backlighthelper.h with #ifdefs and definitions.


Diffs
-----

  powerdevil/daemon/backends/upower/backlighthelper.h fe659e7 
  powerdevil/daemon/backends/upower/backlighthelper.cpp 86b359a 

Diff: http://git.reviewboard.kde.org/r/106790/diff/


Testing
-------

Works fine on FreeBSD 10-CURRENT, even with my half broken ACPI (no LCD screen detected); shortcuts work, plasmoid slider works, power profiles work, and display dimming works as well (and is very welcome on my laptop). I've monitored brightness events via kded output, and everything works as expected (values rounding included).


Thanks,

Alberto Villa

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20121011/6c1200b4/attachment-0001.html>


More information about the Kde-hardware-devel mailing list