Mario Limonciello
20447a00ae
dell: Stop showing errors when no dock plugged in
...
Since it matches the Realtek dongle, shouldn't show this error:
failed to add USB device 0bda:8153: no dock detected
All the time when that dongle is plugged in
2018-09-11 18:59:05 +01:00
Richard Hughes
36a2bd06ec
trivial: Allow specifying --daemon-verbose to set the log handler
2018-09-11 18:59:05 +01:00
Richard Hughes
a1e82d3448
trivial: Add the components to the daemon store in one operation
...
This removes hundreds of lines of debugging spew.
2018-09-11 18:59:05 +01:00
Richard Hughes
17558acb35
trivial: Only show the number of loaded components at startup
2018-09-11 18:59:05 +01:00
Richard Hughes
90f5070c0f
trivial: Remove overzealous debugging
2018-09-11 18:59:05 +01:00
Richard Hughes
b08e7bc7aa
trivial: Set a log domain for each file
...
This allows us to do something like:
G_MESSAGES_DEBUG=FuEngine ./src/fwupd
2018-09-11 18:59:05 +01:00
Richard Hughes
beb47a8a1f
trivial: Remove an assert statement from the daemon
...
Asserts mean crashes, and crashes mean reported bugs. In this case the cause is
an older daemon loading plugins using newer features than it knew how to handle.
2018-09-11 18:42:38 +01:00
Richard Hughes
57bf9d9eed
superio: Set the physical and logical IDs
2018-09-11 16:02:03 +01:00
Richard Hughes
543e47a5a9
trivial: Use a fixed GUID for superio
...
It seems the 'Notebook' vendor is padded with spaces in the DMI data, and so
the GUID changes now we're following the same stripping scheme of Windows 10.
2018-09-11 15:21:31 +01:00
Mario Limonciello
b41b2d7061
trivial: snap: fix TLS communications in classic snap
2018-09-10 21:05:06 -05:00
Mario Limonciello
9ac08995d8
trivial: snap: sync up some missing changes in master snap
2018-09-10 21:05:06 -05:00
Mario Limonciello
db9a13c5bb
trivial: snap: Correct bash completion path
2018-09-10 13:21:29 -05:00
Mario Limonciello
c60012c784
trivial: snap: Install dbus service in classic snap
...
This should be reverted if switching to a devmode or confined snap.
2018-09-10 13:21:12 -05:00
Richard Hughes
8121daadd3
trivial: post release version bump
2018-09-10 17:37:56 +01:00
Richard Hughes
a6edb98e44
Release fwupd 1.1.2
2018-09-10 17:16:00 +01:00
Richard Hughes
1e6047e821
unifying: Remove some logically dead code
...
Found using Coverity, many thanks.
2018-09-10 16:56:44 +01:00
Richard Hughes
83cce1bdfa
trivial: Fix a NULL/FALSE confusion
2018-09-10 16:42:30 +01:00
Richard Hughes
c41a89b50c
unifying: Add a delay for the Texas chipset
...
It seems this chip needs a few ms to initialize before you can query the meminfo.
2018-09-10 16:28:49 +01:00
Richard Hughes
7772dcfc91
trivial: Ensure the daemon sends IDLE when firmware is updated
2018-09-10 16:12:12 +01:00
Mario Limonciello
2da1aca6e3
trivial: snap: tear out slots as well for classic snap
...
Classic snaps don't allow slots either. When switching to a confined
or devmode snap, revert this commit.
2018-09-10 08:27:15 -05:00
Richard Hughes
7c1eb83a2d
unifying: Don't be too verbose when a unifying peripheral is unreachable
2018-09-10 12:20:42 +01:00
Richard Hughes
c249d109d4
trivial: Reduce some debugging verbosity
2018-09-10 12:19:02 +01:00
Mario Limonciello
8511cc54bb
trivial: snap: adjust efivar prefixes to be same on all archs
...
Snaps aren't multiarch, so this should help snap builds on !x86_64
potentially that have FTBFS thus far.
2018-09-09 23:09:21 -05:00
Mario Limonciello
05cc3f5956
trivial: snap: disable use of plugs for classic snap
...
This should be reverted if switching back to devmode or confined
snap.
2018-09-09 21:52:28 -05:00
Mario Limonciello
b91d3d9bff
trivial: snap: set up proper permissions for copied filed in hook
2018-09-09 12:46:40 -05:00
Mario Limonciello
78bc800396
trivial: snap: Add python3-apt to build-deps for signed
2018-09-09 12:46:40 -05:00
Richard Hughes
ebae396d0a
udev: Do not add devices after a small delay
...
Now devices can have multiple GUIDs and do not share platform IDs there is
really no point waiting to add the device.
This allows us to remove a whole lot of code for this now-unused functionality.
2018-09-09 16:24:30 +01:00
Richard Hughes
a76f12dbfa
trivial: Use fu_udev_device_set_physical_id() in udev plugin
2018-09-09 16:24:30 +01:00
Richard Hughes
1513585d21
trivial: Move the poll setup into common code
...
This is used by two device types in the unifying plugin, and soon to be one
other new plugin.
2018-09-09 13:43:18 +01:00
Mario Limonciello
25b49b7943
snap: Add an install hook for classic snap
...
Install the policykit rules and actions into the host system.
If switched to a devmode snap this should be reverted.
2018-09-08 08:34:36 -05:00
Mario Limonciello
3514a5ea84
snap: Remove setting LD_LIBRARY_PATH
...
When working with classic snap this causes gpg to stop working.
If switching to devmode revert this fix.
2018-09-08 08:34:36 -05:00
Mario Limonciello
e7e569255f
snap: Adjust grade to stable
...
The snap itself is in good shape now and should be able to migrate to
stable channels as needed.
2018-09-08 08:34:36 -05:00
Mario Limonciello
2e22d316eb
snap: Move fwupd to / rather than /usr
2018-09-08 08:34:36 -05:00
Mario Limonciello
e9a3a0b925
snap: Enable builds for the daemon
...
This requires a newer version of gettext than is in Ubuntu 16.04
in order to support GETTEXTDATADIRS
2018-09-08 08:34:36 -05:00
Mario Limonciello
4e0bb5d5c9
trivial: uefi: fix a signed vs unsigned issue
...
This started popping up in Arch CI:
../fwupd/plugins/uefi/fu-uefi-vars.c: In function ‘fu_uefi_vars_get_data’:
../fwupd/plugins/uefi/fu-uefi-vars.c:233:9: error: pointer targets in assignment from ‘gchar *’ {aka ‘char *’} to ‘guint8 *’ {aka ‘unsigned char *’} differ in signedness [-Werror=pointer-sign]
*data = g_steal_pointer (&data_tmp);
^
2018-09-07 23:32:03 -05:00
Richard Hughes
9d3f791727
unifying: Use the new daemon-provided functionality
...
Until now, the unifying plugin was a 'special snowflake' and did things in very
different ways to the other plugins. Refactor each object to derive from either
FuUsbDevice or FuUdevDevice, and then remove LuDevice and the LuContext layers.
2018-09-07 16:22:38 +01:00
Richard Hughes
841c1807e1
trivial: Copy the parent if set for the repluged device
...
Based on a patch from Mario Limonciello, many thanks.
2018-09-07 15:32:32 +01:00
Mario Limonciello
b6fa47381e
trivial: Refresh the list of devices sent to composite_cleanup()
...
If one of the devices went into replug during update the FuDevice instance will
have changed.
2018-09-07 15:16:14 +01:00
Mario Limonciello
e1c5cd8637
trivial: Look at both logical and physical IDs for replug matching
...
This resolves erroneously matching a logical child to it's parent if the child
is in replug.
2018-09-07 15:09:37 +01:00
Richard Hughes
bd747ded4f
trivial: Use an elipsis when showing the remaining time
2018-09-07 14:29:18 +01:00
Richard Hughes
ed0512269a
trivial: Support HID_PHYS in fu_udev_device_set_physical_id()
2018-09-07 14:28:52 +01:00
Mario Limonciello
0307a0a843
trivial: fu-device: don't show messages with (null) for device ID
...
device ID might not yet be initialized, so just show the word
"unknown"
2018-09-07 09:13:14 +01:00
Richard Hughes
194c76536e
trivial: Use a non-obsolete font when building the UEFI splash images
2018-09-06 14:21:24 -05:00
Mario Limonciello
e3016602f8
Include serial number in daemon device output when trusted
...
This moves the storing of the serial number into the daemon and
when the calling process is UID 0 includes it in device output
2018-09-06 13:34:28 -05:00
Richard Hughes
405baebbf2
trivial: Don't allow plugins to call fu_udev_device_emit_changed()
2018-09-06 16:22:46 +01:00
Richard Hughes
c125ec02ed
Clarify what the platform ID actually is by renaming it
...
It wasn't hugely clear what the platform ID was actually meant to represent. In
some cases it was being used like a physical ID, in others it was a logical ID,
and in others it was both. In some cases it was even used as a sysfs path.
Clear up all the confusion by splitting the platform ID into two parts, an
optional *physical* ID to represent the electrical connection, and an optional
*logical* ID to disambiguate composite devices with the same physical ID.
Also create an explicit sysfs_path getter for FuUdevDevice to make this clear.
This allows WAIT_FOR_REPLUG to always work, rather than depending on the order
that the GUIDs were added, and that the kernel would always return the same
sysfs path (which it doesn't have to do, especially for hidraw devices).
2018-09-06 16:22:46 +01:00
Richard Hughes
b5024e33a3
trivial: Do not overwrite device values set from quirk files
2018-09-06 12:50:51 +01:00
Richard Hughes
037ce37fe6
trivial: Add some error prefixes to help debug a replug issue
2018-09-06 09:24:23 +01:00
Richard Hughes
2a679cd3b5
trivial: Open the device in fwupdtool before attaching and detaching
2018-09-05 15:32:38 +01:00
Richard Hughes
214906817e
trivial: Use less offensive wording when talking about private LVFS instances
...
Various guidelines we care about tell us not to use this word unless specified
in documentation, e.g. i2c.
2018-09-05 15:16:42 +01:00