backlight: Use basic ACPI sysctl knob on FreeBSD (kernel)

Desktop / Enlightenment / Enlightenment - Conrad Meyer [gmail.com] - 14 April 2015 08:20 UTC

Summary: Unconditionally build the suid-helper _backlight program; conditionalize behavior on Eeze, FreeBSD (doing nothing on neither). Add logic to set the FreeBSD sysctl in a similar manner to udev devices on Linux.

Add _bl_sys_find/_get helpers for FreeBSD that check for and consult the
video ACPI sysctl.

Test Plan: Seems to work okay on my laptop (with EINA_CPU_FAKE=1 to workaround a threadq race that I believe is unrelated -- T2287).

Reviewers: zmike, q66

Reviewed By: q66

Subscribers: cedric, seoz

Differential Revision: https://phab.enlightenment.org/D2337

4fc5495 backlight: Use basic ACPI sysctl knob on FreeBSD (kernel)
src/bin/Makefile.mk | 12 +----
src/bin/e_backlight.c | 80 ++++++++++++++++++++++++++--
src/bin/e_backlight_main.c | 125 ++++++++++++++++++++++++++++++--------------
3 files changed, 163 insertions(+), 54 deletions(-)

Upstream: git.enlightenment.org


  • Share