Commit Graph

7 Commits

Author SHA1 Message Date
Richard Hughes
3e0a4dc1c3 Be smarter and include less header files per source file 2022-06-14 14:36:52 -05:00
Richard Hughes
2e99055d1e trivial: Add some more annotations for language bindings 2022-01-03 22:46:23 +00:00
Mario Limonciello
55de39c077 trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
Richard Hughes
aae22e4df5 trivial: Always clear the mutex before clearing the thing it protects 2020-06-22 21:55:50 +01:00
Richard Hughes
0fe4914320 Use the correct unlocker when using GRWLock
Linux doesn't care if you use g_rw_lock_reader_unlock() on a write lock, but
Windows really does.
2019-11-22 20:53:45 +00:00
Richard Hughes
161e9b531b Use the newer features of GRWLock rather than reinventing it
The debug features the object provides are not useful and are much too verbose
to be useful.

Backport the new reader/writer g_autoptr defines to avoid bumping the GLib dep.

Most of the work was done by Kalev Lember <klember@redhat.com>, many thanks.
2019-06-12 15:20:27 +01:00
Richard Hughes
75b965d01d Shut down the daemon after 2h of inactivity
Plugins are allowed to 'opt-out' of this behaviour using _RULE_INHIBITS_IDLE.
This should be used where waking up the hardware to coldplug is expensive,
either from a power consumption point of view, or if other artifacts are going
to be seem -- for instance if the screen flickers when probing display devices.

This functionality is also inhibited when the actual upgrade is happening,
for obvious reasons.

Admins can turn off this auto-sleep behaviour by editing the daemon.conf file.

Fixes https://github.com/hughsie/fwupd/issues/417
2018-11-21 18:54:44 +00:00