- 09 May, 2017 15 commits
-
-
Christian Kellner authored
All fields (or groups) that we could not get the information for will be just omitted from the json, because that is intended to be read by machines and that the absence of the field better communicates the absence of information.
-
Christian Kellner authored
Explicitly make note if we could obtain that information so we can act on that later.
-
Christian Kellner authored
With the previous patch a call to g_object_get of these properties will still return 'Unknown'.
-
Christian Kellner authored
The helper will also handle the case when the value is NULL, preparing for a future changes when info fields can be unset if the information for them could not be obtained.
-
Christian Kellner authored
Report unknown if a string property is NULL. This makes it possible to avoid setting all fields to 'Unknown' in the various functions that fill in the system information.
-
Christian Kellner authored
-
Christian Kellner authored
-
Christian Kellner authored
-
Christian Kellner authored
This will enable us to distinguish between X11 and Wayland, which might reveal important differences in power consumption in those too.
-
Christian Kellner authored
Use bulk property installation via g_object_class_install_properties.
-
Christian Kellner authored
-
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 19 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
-