Skip to main content

Module hardware

Module hardware 

Source
Expand description

The hardware and firmware center: read-only facts about the machine’s firmware (through fwupd), disks, temperature sensors, batteries and PCI and USB devices, from /sys and tools that answer without root. A SMART check, which needs root, and a firmware update are plans of their own, each run only after it is confirmed.

Structs§

Battery
Device
Disk
Firmware
What fwupd knows.
FirmwareDevice
FirmwareUpdate
Hardware
Everything the center shows.
Sensor

Functions§

gather
Read the machine; fwupd answers from the metadata it already has.
plan_firmware
A plan that updates one device’s firmware through fwupd. High risk: a failed firmware update can leave the device unusable.
plan_smart
A plan that reads a disk’s SMART health and attributes. It only reads, but needs root to reach the disk.
size
Bytes as GB or TB, as disks are sold.
valid_device_id
fwupd’s device ids are 40 hexadecimal digits.
valid_disk
A block device name a SMART check may name.