The get the freedesktop UDI (Unique Device Identifier) of a device, forget about hal
, lshal
, hal-find-by-property
etc, as HAL is long deprecated!
Use the DBus instead. The easiest way to use DBus without having to type a gazillion of commands is to use the qdbus
command (or qdbusviewer for a GUI, but a gui won't make things any easier unless you want to navigate through different options):
To get a list of the available freedesktop
(because we grep for it) system services (i.e. services provided by the operating system and also by any system daemons):
$ qdbus --system | grep freedesktop
org.freedesktop.systemd1
org.freedesktop.Avahi
org.freedesktop.NetworkManager