Top | ![]() |
![]() |
![]() |
![]() |
org.freedesktop.URfkillorg.freedesktop.URfkill — URfkill interface |
Block(in'u'type, in'b'block, out'b'ret) BlockIdx(in'u'index, in'b'block, out'b'ret) EnumerateDevices(out'ao'array) IsInhibited(out'b'is_inhibited) Inhibit(in's'reason, out'u'inhibit_cookie) Uninhibit(in'u'inhibit_cookie)
DeviceAdded('o'device) DeviceRemoved('o'device) DeviceChanged('o'device) UrfkeyPressed('i'keycode)
Objects implementing org.freedesktop.URfkill also implements org.freedesktop.DBus.Introspectable, org.freedesktop.DBus.Properties
The urfkill service is available via the system message
bus. To access the service, use
the org.freedesktop.URfkill
interface on
the /org/freedesktop/URfkill
object on
the D-Bus system bus service with the well-known
name org.freedesktop.URfkill
.
$ gdbus call -y \ -d org.freedesktop.URfkill \ -o /org/freedesktop/URfkill \ -m org.freedesktop.URfkill.EnumerateDevices ([objectpath '/org/freedesktop/URfkill/devices/0', '/org/freedesktop/URfkill/devices/1'],)
Block or unblock the devices belonging to the type. The types are defined as the followings:
Note: This method only changes soft block. Hard block is controlled by BIOS or the hardware and there is no way to change the state of hard block through kernel functions.
|
The type of devices to be blocked/unblocked |
|
TRUE to block the devices, FALSE to unblock |
|
TRUE for success, otherwise FALSE |
Block or unblock the device by the index.
Note: This method only changes soft block. Hard block is controlled by BIOS or the hardware and there is no way to change the state of hard block through kernel functions.
|
The index of the device to be blocked/unblocked |
|
TRUE to block the device, FALSE to unblock |
|
TRUE for success, otherwise FALSE |
Enumerate all rfkill objects on the system.
|
An array of the object pathes for the devices |
Get whether the rfkill key handling function is inhibited or not.
|
TRUE if the key control is inhibited, otherwise FALSE |
Inhibit the rfkill key handling function for the session.
|
The reason to inhibit the key control |
|
The cookie |
Cancel a previous call to Inhibit()
identified by the cookie.
|
The cookie |
Emitted when a device is added.
|
The object path for the device that was added |
Emitted when a device is removed.
|
The object path for the device that was removed |
Emitted when a device is changed.
|
The object path for the device that was changed |
Emitted when a rfkill key is pressed. The keycode is defined in <linux/input.h>.
|
The keycode emitted from the input device |