* Add support for batteries outputting Time to empty on linux
The battery in the pinebook pro does not output the remaining charge
in Wh or mAh, so i3 cannot calculate the time remaining. However, it
does directly output the number of minutes remaining on in
POWER_SUPPLY_TIME_TO_EMPTY. This adds support for reading this field
and converting it to seconds_remaining.
* Add testcase for POWER_SUPPLY_TIME_TO_EMTY_NOW
This generates much friendlier names on all my systems, e.g.
"HDMI / DisplayPort 5" rather than
"Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] Digital Stereo (HDMI 5)"
1) Names incorporating Firmware/BIOS provided index numbers for on-board
devices (example: eno1)
2) Names incorporating Firmware/BIOS provided PCI Express hotplug slot
index numbers (example: ens1)
3) Names incorporating physical/geographical location of the connector
of the hardware (example: enp2s0)
4) Names incorporating the interfaces's MAC address
(example: enx78e7d1ea46da)
5) Classic, unpredictable kernel-native ethX naming
(example: eth0)
I've used usb/eth dongle with name enx..., and need only this one name,
but extend filter to include other ones as well.
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Co-authored-by: Orestis Floros <orestisflo@gmail.com>
New matrix for 5 jobs in total.
Updates our checks to bionic & xenial. Trusty could also be
included but it is a bit outdated at this point.
I use bionic to pull a more recent clang-format and use a dedicated job
just to check formatting. An alternative would be to conditionally run
the formatting script only on bionic.
I don't think that there is a better way to expand a `dist` x `compiler`
matrix (except using docker).
- unused variable ‘walk’ [-Wunused-variable]
- implicit declaration of built-in function ‘free’
[-Wimplicit-function-declaration]
- initialization discards ‘const’ qualifier from pointer target type
[-Wdiscarded-qualifiers]
- variable 'ram_used' is used uninitialized whenever 'if' condition is
false [-Wsometimes-uninitialized]. This is actually easily reproducible
by specifying `memory_used_method = "XXX"`.
- comparison of integers of different signs: 'int' and 'unsigned long'
[-Wsign-compare] (for `exponent`)