Go to file
Stephen 'Okra' Houston 42d16a0ec1 Batman Udev: Don't include batteries who have unknown status, have never had a full charge, and have no charge rate.
Summary: This fixes issues where erroneous udev detections of batteries are included. @bu5hm4n and I both have had issues where udev thinks we have two batteries because our hid/touchscreens report a battery even though they are not accurate.  The problem is batman will then think there are two batteries and calculate battery percentage based off both batteries.  For instance if the laptop battery is 100% and it is detecting this phony hid battery, the result is batman thinks you are at 50% battery life.  This also fixes the battery removal code which should only remove the battery with the syspath the function is called with.  The code was actually removing every single battery.

Test Plan: You have to have a device that udev reports two batteries for when there aren't two.  It should be harmless to not include batteries that have never been charged, have no charge, and have unknown for their status.

Reviewers: bu5hm4n, raster, zmike!, devilhorns

Reviewed By: raster

Subscribers: cedric, bu5hm4n

Tags: #enlightenment-git

Differential Revision: https://phab.enlightenment.org/D7736
2019-01-23 12:57:57 -06:00
data meson - use install_mode 2018-12-27 17:16:33 +00:00
doc remove autotools 2017-11-20 07:05:36 -05:00
meson meson - use install_mode 2018-12-27 17:16:33 +00:00
po Updating danish translation 2019-01-13 15:48:40 +01:00
src Batman Udev: Don't include batteries who have unknown status, have never had a full charge, and have no charge rate. 2019-01-23 12:57:57 -06:00
.arcconfig update arcconfig key:values for new phabricator api 2018-05-11 09:47:20 +02:00
.gitignore remove autotools 2017-11-20 07:05:36 -05:00
.mailmap More mailmapping 2016-09-13 15:14:21 +09:30
AUTHORS AUTHORS: use netstar's real name. 2018-03-22 15:38:43 +00:00
BUGS Fix common misspellings 2010-09-08 23:59:07 +00:00
COPYING E17: Update copyright year. 2012-07-03 06:54:49 +00:00
ChangeLog E18.0 release 2013-12-21 17:08:47 -05:00
INSTALL readme/install - use standard INSTALL file like autofoo projects 2017-12-17 09:53:54 +09:00
NEWS 0.22.0 NEWS updates 2017-11-02 08:59:37 -04:00
README readme/install - use standard INSTALL file like autofoo projects 2017-12-17 09:53:54 +09:00
README.wayland remove autotools 2017-11-20 07:05:36 -05:00
TODO add battery todo or multiple batteries 2019-01-23 17:34:49 +00:00
autogen.sh add back an autogen.sh to help minimize confusion 2017-12-17 09:49:20 +09:00
e19_workdir_setup.sh feature: add script to set some debug vars 2014-01-14 20:28:29 -05:00
meson.build meson - use install_mode 2018-12-27 17:16:33 +00:00
meson_options.txt bluez5 support - a new module with gadget etc. 2018-05-18 21:45:20 +09:00
netwm.txt add support for new netwm csd X atoms 2015-01-03 00:42:42 -05:00
x-ui.sh remove e17 preload/precache hacks 2012-10-10 07:39:08 +00:00
xdebug.sh xdebug: add clouseau_start 2016-01-08 19:19:06 +01:00

README

Please report bugs and send patches to phab.enlightenment.org

Enlightenment

Requirements:
-------------

Must:
  efl
  libc libm libX11 libXext
  xcb xcb-shape xcb-keysyms

Heavily suggested:
  evas_generic_loaders (all loaders)

NOTE: Users of DR16 will need to rename the $prefix/bin/enlightenment
file prior to installing this release or it will be overwritten.

NOTES:

* if you do not want security issues make sure sysactions.conf is in
/etc/enlightenment (not PREFIX/etc/enlightenment) as this is the first place
it looks at. This file is intended to be customized by packagers and
system integrators to match your policies and scripts/tools.