Commit Graph

49 Commits

Author SHA1 Message Date
Mike Blumenkrantz a963666656 use separate variable for backlight animator value
using e_bl_val here is wrong now since this needs to calculate against the starting and ending backlight values, neither of which are represented accurately by e_bl_val in some cases.

this fixes the gradually decaying backlight which occurs over repeated screen blanks

probably fixes T1152
2014-05-07 15:28:08 -04:00
Mike Blumenkrantz 572760ae0e only update e_bl_val directly in backlight_level_set if not using randr backlight
this is the "real" backlight value, so it needs to always be accurate. since randr backlight sets this value elsewhere, only use those real updates to ensure genuine values
2014-05-07 15:26:42 -04:00
Mike Blumenkrantz c04d754ac5 enabling drm output module should NOT require X-less build.
these defines all need to be changed from HAVE_WAYLAND_ONLY to something like WITH_X or we're going to have lots of problems with xwayland later on
2014-03-18 16:14:04 -04:00
Chris Michael 915f8f0613 @bugfix: Fix building for WAYLAND_ONLY by using the proper define
sed -i 's/WAYLAND_ONLY/HAVE_WAYLAND_ONLY/g'

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-03-18 07:43:04 +00:00
Mike Blumenkrantz 3ccdd6ab32 bugfix: backlight double comparison now less likely to fail 2014-01-21 17:08:49 -05:00
Mike Blumenkrantz 84a3eb7af0 make current backlight value internally exported
display system backends should be handling this in the event of changes, and being able to set it directly makes that easier
2014-01-21 17:06:27 -05:00
Mike Blumenkrantz 215c0409e0 feature: handle xrandr backlight using a single, accurate handler
there's an event from ecore-x which tells us when this property has changed, which means we no longer have to be constantly checking to see if other apps have changed it
2014-01-21 16:48:09 -05:00
Mike Blumenkrantz bec5d1fe51 backlight update loop cleanups
* do null check before adding to device list

* use name length from ecore_x_randr_output_name_get()
2014-01-20 22:21:40 -05:00
Mike Blumenkrantz 0be9442140 only call ecore_x_randr_output_backlight_available() once in backlight 2014-01-20 21:30:38 -05:00
Mike Blumenkrantz a310de50c8 block backlight updating during animation
updating backlight in this context causes my backlight to never return to normal levels, and blocking it doesn't seem to be unreasonable here
2014-01-20 21:05:51 -05:00
Mike Blumenkrantz 81bb88896e make backlight wayland-friendly 2014-01-14 20:28:57 -05:00
Mike Blumenkrantz 86656e4df9 compositor rewrite / charlie-foxtrot situation
huge fustercluck commit because there wasn't really a way to separate out the changes. better to just rip it all out at once.

* compositor and window management completely rewritten. this was the goal for E19, but it pretty much required everything existing to be scrapped since it wasn't optimized, streamlined, or sensible. now instead of having the compositor strapped to the window manager like an outboard motor, it's housed more like an automobile engine.

** various comp structs have been merged into other places (eg. E_Comp_Zone is now just part of E_Zone where applicable), leading to a large deduplication of attributes

** awful E_Comp_Win is totally dead, having been replaced with e_comp_object smart objects which work just like normal canvas objects

** protocol-specific window management and compositor functionality is now kept exclusively in backend files

** e_pixmap api provides generic client finding and rendering api

** screen/xinerama screens are now provided directly by compositor on startup and re-set on change

** e_comp_render_update finally replaced with eina_tiler

** wayland compositor no longer creates X windows

** compositor e_layout removed entirely

* e_container is gone. this was made unnecessary in E18, but I kept it to avoid having too much code churn in one release. its sole purpose was to catch some events and handle window stacking, both of which are now just done by the compositor infra

* e_manager is just for screensaver and keybind stuff now, possibly remove later?

* e_border is gone along with a lot of its api. e_client has replaced it, and e_client has been rewritten completely; some parts may be similar, but the design now relies upon having a functional compositor

** window configuration/focus functions are all removed. all windows are now managed solely with evas_object_X functions on the "frame" member of a client, just as any other canvas object can be managed.

*** do NOT set interceptors on a client's comp_object. seriously.

* startup order rewritten: compositor now starts much earlier, other things just use attrs and members of the compositor

* ecore_x_pointer_xy_get usage replaced with ecore_evas_pointer_xy_get

* e_popup is totally gone, existing usage replaced by e_comp_object_util_add where applicable, otherwise just placed normally on the canvas

* deskmirror is (more) broken for now

* illume is totally fucked

* Ecore_X_Window replaced with Ecore_Window in most cases

* edge binding XWindows replaced with regular canvas objects

* some E_Win functionality has changed such that delete callbacks are now correctly called in ALL cases. various dialogs have been updated to not crash as a result

comp files and descriptions:

e_comp.c - overall compositor functions, rendering/update loop, shape cutting

e_comp_x.c - X window management and compositor functionality

e_comp_wl.c - Wayland surface management and compositor functionality

e_comp_canvas.c - general compositor canvas functions and utilities

e_comp_object.c - E_Client->frame member for managing clients as Evas_Objects, utility functions for adding objects to the compositor rendering systems

additional authors: ivan.briano@intel.com

feature: new compositor

removal: e_border, e_container, e_popup
2014-01-14 20:22:02 -05:00
Mike Blumenkrantz 292bcf6e81 only allow backlight to go to 0.1, not 0.0
on some backlight devices, 0.0 is completely off, which can render the system unusable.

T651
2013-12-17 11:22:56 -05:00
Carsten Haitzler 1c5aa36ee9 backlight - fix dimming if normal level less than dim level
if dim level is set to 20% but normal level has been moved to 10%...
when we dim dont RAISE bl level to 20% - do nothing if dim > normal.
2013-10-22 11:26:59 +01:00
discomfitor 648a748cac reorder some backlight setting to make instant changes actually instant
backlight fading on logout is no longer permanent
2013-09-20 17:18:36 +01:00
Mike Blumenkrantz d517d37535 backlight no longer attempts to apply settings for dummy devices
SVN revision: 82626
2013-01-11 10:51:24 +00:00
Mike Blumenkrantz 9e8e755cdf formatting: all at once
SVN revision: 82625
2013-01-11 10:34:29 +00:00
Miculcy Brian d0c143b615 No backlight dimming when in presentation mode. Backlight fade time only applies to dimming - undimming is fixed 0.5 .
SVN revision: 82348
2013-01-07 14:28:26 +00:00
Cedric BAIL 5af50c40da e: remove some warning when compiling on FreeBSD.
Patch by Maxime Villard <rustyBSD@gmx.fr>.


SVN revision: 81772
2012-12-28 00:27:41 +00:00
Mike Blumenkrantz ae7ca9105f Hi,
here is a patch.

 1. free() already null-checks the passed argument, so it is not
    necessary to do 'if(x) free(x)'.

 2. Moved some '{free(x); x = NULL}' to E_FREE.

 3. In e_start_main.c, 'buf' is allocated with the size of the
    two arguments + '=', so we don't need to check for lenght;
    we should use sprintf().

 thanks
Maxime Villard


SVN revision: 81364
2012-12-19 14:20:34 +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
Mike Blumenkrantz 65a08d98fe add E_EVENT_BACKLIGHT_CHANGE
SVN revision: 79238
2012-11-13 17:36:51 +00:00
Carsten Haitzler 53ad992c31 pointed out by Igor Murzov - fixed backlight thing, gadcon is cleaner.
SVN revision: 77980
2012-10-15 07:05:00 +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 bd1e81be80 umm lets use xrandr first/ it SHOULD be better than going to /sys as a
primary backlight control.



SVN revision: 75288
2012-08-15 09:31:10 +00:00
Mike Blumenkrantz 3e3a13657f prefer eeze backlight setting over randr: more accurate
supposedly fixes ticket #1015 (yakov ping me if this is somehow not fixing it)


SVN revision: 73526
2012-07-10 12:29:51 +00:00
Mike Blumenkrantz 386ab914b9 display current backlight mode in backlight settings
SVN revision: 72852
2012-06-26 07:14:27 +00:00
Vincent Torri c3b0637802 e17: whitespaces--
SVN revision: 72561
2012-06-21 06:19:43 +00:00
Carsten Haitzler ba74a617ba backlight - eina log bitching when no bl exists, fix.
SVN revision: 68209
2012-02-21 08:19:37 +00:00
Carsten Haitzler aaf80033e5 add hibernate now action
fix backlight to not reset to default on restarts.



SVN revision: 67544
2012-01-26 06:21:21 +00:00
Mike Blumenkrantz 294a0fbed2 add a slider for backlight dimming on a timer in dpms controls
as I have no devices which contain a controllable backlight, someone else will have to test/fix this


SVN revision: 67487
2012-01-24 10:01:28 +00:00
Carsten Haitzler 238d7ae904 who broke backlight? FIX!
SVN revision: 67293
2012-01-18 15:27:10 +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 1b4bf7e573 maybe prevent a leak but probably not
SVN revision: 66492
2011-12-24 07:44:07 +00:00
Mike Blumenkrantz c2e454d4f7 support led class of backlights
SVN revision: 66491
2011-12-24 07:29:21 +00:00
Mike Blumenkrantz 9f70d6d9da +ecore_x_randr_output_backlight_available() from Term <term@twistedpath.org>
also corresponding e17 usage


SVN revision: 65837
2011-12-03 04:24:02 +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
Carsten Haitzler 7ab4814e02 how did a duplicate dim mode get in?
SVN revision: 62661
2011-08-21 15:09:48 +00:00
Carsten Haitzler 24888fe946 add api to detect backlight availability
SVN revision: 62444
2011-08-14 14:35:41 +00:00
Michael BOUCHAUD 1dcc71463a e: revert unnecessary patch
SVN revision: 62303
2011-08-10 16:34:55 +00:00
Cedric BAIL 7db542166e e: some people have been hurt by this default value.
SVN revision: 62294
2011-08-10 13:02:09 +00:00
Christopher Michael 0041fa1542 E: Be quiet backlight !! :)
SVN revision: 62120
2011-08-05 01:59:47 +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
Christopher Michael 4c7efd4469 E: Backlight: Add UNUSED where missing.
SVN revision: 60487
2011-06-19 15:25:58 +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
Gustavo Sverzut Barbieri fee122d19d properly wrap hal stuff inside HAVE_HAL.
SPANK SPANK SPANK raster... he also left lots of trailing whitespace there :-/



SVN revision: 60248
2011-06-12 22:41:09 +00:00
Carsten Haitzler 26a35cdf01 backlight config tab, module, slider and core in. somehow doesnt work
with hal atm even tho i think i sent the right dbus req. hmmm. get
response.. of 0 for getting bl. for xrandr it works.



SVN revision: 60242
2011-06-12 15:05:22 +00:00