- 09 May, 2017 4 commits
-
-
Christian Kellner authored
Uses gdk to get monitor information, tries to identify the builtin monitor via the model string; if that fails uses the primary one, and finally falls back to the first if none of that works.
-
Christian Kellner authored
In the case there we have less then 3 components for the kernel we return the un-split string, but we need to make a copy of it before.
-
Christian Kellner authored
-
Christian Kellner authored
Unbreaks the build. Ups.
-
- 03 May, 2017 4 commits
-
-
Christian Kellner authored
If getting the renderer via the session fails, we can use a helper binary provided by gnome-session to get the information.
-
Christian Kellner authored
-
Christian Kellner authored
Therefore we can simplify the code. The minimal interval we need to wait to see any changes is UPDATE_FREQUENCY.
-
Christian Kellner authored
We are not reading it anymore anyway; everything is based on energy.
-
- 02 May, 2017 2 commits
-
-
Christian Kellner authored
Having timestamps makes gbb significantly more useful for logging because you can record and then later retrace what was happening. https://bugzilla.gnome.org/show_bug.cgi?id=782062
-
Christian Kellner authored
We really support "energy" properly, so no need to pretend to do for "capacity".
-
- 03 Apr, 2017 21 commits
-
-
Christian Kellner authored
-
Christian Kellner authored
-
Christian Kellner authored
-
Christian Kellner authored
If the corresponding sys devices/entries are missing we should still get 'Unknown' in the fields, but the fields should be present.
-
Christian Kellner authored
-
Christian Kellner authored
-
Christian Kellner authored
-
Christian Kellner authored
-
Christian Kellner authored
-
Christian Kellner authored
Not only useful for humans, but also to synchronize the tests, i.e. as an indicator when the monitor binary is started and delivering notifications.
-
Christian Kellner authored
-
Christian Kellner authored
Currently only runs gbb info --json and checks that the simulated battery has the right vendor and model.
-
Christian Kellner authored
We are now returning only energy values from GbbBattery, so we can get rid of the charge related fields/functions/calculations from everywhere that is not the GbbBattery itself.
-
Christian Kellner authored
-
Christian Kellner authored
-
Christian Kellner authored
-
Christian Kellner authored
That is, also return GbbMains, and rename it to gbb_power_supply_discover.
-
Christian Kellner authored
-
Christian Kellner authored
-
Christian Kellner authored
-
Christian Kellner authored
-
- 28 Mar, 2017 1 commit
-
-
Christian Kellner authored
Plan is to have own GbbBattery and GbbAdapter classes that can then be used by GbbPowerMonitor and also GbbSystemInfo. New code will be using GUdev.
-
- 14 Mar, 2017 1 commit
-
-
Christian Kellner authored
-
- 13 Mar, 2017 5 commits
-
-
Christian Kellner authored
That will make it easy to globally identify runs, which might come in handy especially if we synchronize runs into a central database.
-
Christian Kellner authored
-
Christian Kellner authored
On Apple hardware the sysfs directory for the mains power supply is called ADPx and not ACx. https://bugzilla.gnome.org/show_bug.cgi?id=777149
-
Christian Kellner authored
Before trying to take the inhibitor lock via logind we should check we actually have the logind connection, because we are not failing in init() if we could not get the logind proxy.
-
Christian Kellner authored
-
- 08 Mar, 2017 2 commits
-
-
Christian Kellner authored
We force stop the test runner, so the epilogue does not get played, because it is very likely that the screen has already been locked by gnome-shell and we would play the epilogue on the lock-screen.
-
Christian Kellner authored
This will stop the player and skip the playing of the epilogue; the idea is to use this in emergency situations, e.g. when we are going to sleep or really running out of battery soon.
-