enlightenment/src/modules
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
..
appmenu clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
backlight clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
battery Battery: fix the battery status when some battery devices are not valid 2018-06-05 00:30:47 +03:00
bluez4 clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
bluez5 bluez5 - remember pwr and pairable states and restore them on adapt add 2018-05-21 22:41:14 +09:00
clock clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
conf clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
conf_applications move from data_home/apps/defaults.list to config_home/mimeapps.list 2018-03-20 20:36:56 +09:00
conf_bindings e mouse bindings - fix wheel conflict check to check only dir 0 2018-03-28 18:25:47 +09:00
conf_dialogs clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
conf_display clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
conf_interaction clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
conf_intl input method conf dialog - fix filtering of imc's to search path 2018-05-18 21:45:20 +09:00
conf_menus clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
conf_paths clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
conf_performance clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
conf_randr conf_randr: Use eina_stringshare_replace 2018-03-29 10:56:45 -04:00
conf_shelves clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
conf_theme clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
conf_window_manipulation clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
conf_window_remembers clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
connman protect against null deref when setting proxy vars in connman module 2018-01-08 10:46:25 -05:00
cpufreq clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
everything Byte order macro. Be consistent and get rid of clang warnings. 2018-03-01 18:35:16 +00:00
fileman fileman: remove temporary fix. 2018-06-01 14:37:44 +01:00
fileman_opinfo clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
gadman clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
geolocation clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
ibar improved default size for icons in menus that looks pixelated 2018-01-04 20:22:42 +00:00
ibox clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
layout clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
lokker more E_BITFIELD conversions 2017-11-08 09:22:24 -05:00
luncher fix luncher efreet event handling 2018-02-23 14:55:05 -05:00
mixer mixer - fix exe handler del and handle to stop crashes after mixer run 2018-05-19 00:58:03 +09:00
msgbus clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
music-control clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
notification clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
packagekit Remove/mark unused variables to avoid warnings. 2018-04-19 10:18:46 -05:00
pager clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
pager_plain clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
quickaccess clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
shot clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
start fix some crashes with start gadget deletion 2018-01-18 15:59:16 -05:00
syscon clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
sysinfo sysinfo: fix linux build. 2018-02-24 18:40:24 +00:00
systray systray - fix sizing of tray so you can see the icons 2018-03-12 00:18:37 +09:00
tasks clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
teamwork clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
temperature clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
tiling clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
time clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
vkbd resolve even more null derefs from string parsing in vkbd 2018-02-06 11:16:20 -05:00
winlist clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
wireless clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
wizard Revert "module loading: use global symbols with BSDs and local with Linux." 2018-05-28 10:33:26 +01:00
wl_buffer meson - wl module builds - make them all consistent 2017-08-12 11:11:32 +09:00
wl_desktop_shell remove xdg-shell v5 support 2018-01-10 11:38:53 -05:00
wl_drm compile against stable EFL again 2018-04-25 11:06:12 -05:00
wl_fb meson - wl module builds - make them all consistent 2017-08-12 11:11:32 +09:00
wl_text_input meson - wl module builds - make them all consistent 2017-08-12 11:11:32 +09:00
wl_weekeyboard meson - wl module builds - make them all consistent 2017-08-12 11:11:32 +09:00
wl_wl unset wayland cursor for all pointers when running nested in wl 2017-11-03 13:18:37 -04:00
wl_x11 meson - wl module builds - make them all consistent 2017-08-12 11:11:32 +09:00
xkbswitch clean up .desktop files and misc typos 2018-01-04 09:57:52 -05:00
xwayland Revert no-longer required pulseaudio hack for wayland 2018-03-20 12:25:50 -05:00
meson.build bluez5 support - a new module with gadget etc. 2018-05-18 21:45:20 +09:00