Commit Graph

25 Commits

Author SHA1 Message Date
Jean Guyomarc'h ba975e702f e_backlight_main: fix compiling when not having Eeze
Summary:
EINA_UNUSED is defined in Eina. Since we are not using the program at all,
let's void main()'s arguments instead of trying to ignore them.

Test Plan: tested only on OSX, unbreaks the build.

Reviewers: zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2387
2015-04-20 17:03:22 -04:00
Mike Blumenkrantz af59e95b28 fix return value in backlight helper exe on non-freebsd systems
ref D2337
2015-04-14 20:37:47 -04:00
Conrad Meyer 4fc5495f4e backlight: Use basic ACPI sysctl knob on FreeBSD (kernel)
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
2015-04-14 14:20:33 +01:00
Mike Blumenkrantz 9e8e755cdf formatting: all at once
SVN revision: 82625
2013-01-11 10:34:29 +00:00
Carsten Haitzler f0c9f5121c lots of buglet-fixing. this does:
1. make idle fade timer work at all (dodnt work before)
2. fixes backlight status on e restart
3. fixes setting bl level on start
4. improves the compositor fade in/out effect by ALSO fading backlight
in and out... oh so much smoother now
5. fixes label in ui to be seconds, not minutes.
6. in order to make this all work - it adds a special screensaver
event inside of e that the screensaver subsystem generates based on
the real x one.



SVN revision: 80538
2012-12-09 06:27:42 +00:00
Carsten Haitzler 6669ca71a3 provide a way to select backlight device or output and then use it.
SVN revision: 76709
2012-09-16 10:43:17 +00:00
Carsten Haitzler 9924cc8a78 printf--
SVN revision: 75157
2012-08-11 12:18:39 +00:00
Vincent Torri c3b0637802 e17: whitespaces--
SVN revision: 72561
2012-06-21 06:19:43 +00:00
Carsten Haitzler 6c3a3258f1 make printfs for backight debug.. have newlines and stuff...
SVN revision: 67699
2012-02-04 23:00:47 +00:00
Mike Blumenkrantz a0ae01c227 add debug output for backlight
SVN revision: 67023
2012-01-10 21:08:58 +00:00
Mike Blumenkrantz de639bccff attempt at new backlight device preference logic
SVN revision: 66959
2012-01-07 15:12:50 +00:00
Mike Blumenkrantz 897c5aaf45 add a note here about other backlight devices
SVN revision: 66493
2011-12-24 07:44:18 +00:00
Mike Blumenkrantz c2e454d4f7 support led class of backlights
SVN revision: 66491
2011-12-24 07:29:21 +00:00
Carsten Haitzler 0cd9e9beec well now this uses eeze - why keep the old search list?
SVN revision: 65947
2011-12-06 06:49:58 +00:00
Mike Blumenkrantz df86973d62 remove unused var
SVN revision: 64519
2011-10-30 08:24:41 +00:00
Mike Blumenkrantz db88f8f57d backlight internals now use eeze
this probably breaks some stuff, mail me some good debug info


SVN revision: 64512
2011-10-29 18:45:43 +00:00
Carsten Haitzler 8b15afb842 debug printf--
SVN revision: 64504
2011-10-29 06:58:50 +00:00
Carsten Haitzler 5ed77cf412 make backlight code a bit more generic with a list of sysfs files to
look at to get backlight working.



SVN revision: 64503
2011-10-29 04:36:32 +00:00
Christopher Michael c13c53af23 E: Fix nasty formatting in backlight code.
SVN revision: 61612
2011-07-23 17:46:25 +00:00
Carsten Haitzler ad7ad9a092 fix up wheel issue with bl module
should make bl work on archos on anchient kernel now... missed support
code from e_backlight.c



SVN revision: 61277
2011-07-12 10:12:59 +00:00
Carsten Haitzler cd87dcb959 even though it doesnt matter. lets be nice and free things eh?
SVN revision: 61141
2011-07-08 02:24:56 +00:00
Carsten Haitzler 9882ed594f handle hooglands silly tablet kernel. :)
SVN revision: 61140
2011-07-08 02:17:44 +00:00
Carsten Haitzler 2e3d64d9fb eek typo. max_brightness
SVN revision: 61038
2011-07-05 10:56:56 +00:00
Carsten Haitzler e8dad4040c make rounding happen up and down for e_backlight util when converting
to integer.



SVN revision: 60481
2011-06-19 06:26:29 +00:00
Carsten Haitzler 411f75319d backlight support for non randr (go right to /sys via suid root tool).
test keybindings too and make brightness be 0->100 to avoid float
parsing issues



SVN revision: 60350
2011-06-15 14:18:23 +00:00