Go to file
Daniel Zaoui 49459b6b72 Battery: fix the battery status when some battery devices are not valid
It happens that some devices are considered as batteries, even if they
cannot be charged or used as a power supply for the laptop.
The ELAN device deals with the touchpad and is a "battery". When looking
at the udev info, it appears that there is no technology present as
well as the basic battery info (energy levels).

P: /devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-0/i2c-ELAN24CC:00/0018:04F3:24CC.0003/power_supply/hid-0018:04F3:24CC.0003-battery
E: DEVPATH=/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-0/i2c-ELAN24CC:00/0018:04F3:24CC.0003/power_supply/hid-0018:04F3:24CC.0003-battery
E: POWER_SUPPLY_CAPACITY=1
E: POWER_SUPPLY_MODEL_NAME=ELAN24CC:00 04F3:24CC
E: POWER_SUPPLY_NAME=hid-0018:04F3:24CC.0003-battery
E: POWER_SUPPLY_ONLINE=1
E: POWER_SUPPLY_PRESENT=1
E: POWER_SUPPLY_SCOPE=Device
E: POWER_SUPPLY_STATUS=Discharging
E: SUBSYSTEM=power_supply

The issue with that kind of devices is that it confuses the battery
gadget. Since two batteries are present, the total capacity is divided
by 2, resulting in the gadget displaying only 50% when the battery is
fully charged.
To avoid this, we check that the battery technology is known.

@fix
2018-06-05 00:30:47 +03:00
data add rfkill actions to sysactions.conf - necessary for bluez 2018-05-18 21:45:20 +09:00
doc remove autotools 2017-11-20 07:05:36 -05:00
meson meson: make those scripts executable 2017-11-04 10:40:55 +00:00
po Updating all po files 2018-04-01 18:51:26 +02:00
src Battery: fix the battery status when some battery devices are not valid 2018-06-05 00:30:47 +03: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
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 - fix dir_sysconf to be under the prefix as it was not 2018-05-18 21:45:20 +09: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.