]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: say that settings can be also set to 0 37440/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 14 May 2025 15:59:34 +0000 (17:59 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 14 May 2025 16:08:26 +0000 (18:08 +0200)
We recommend that users create overriddes. This creates the problem that there
is no syntax to unset a property. Thus, the user needs to just set the property
to "something else" in the override file. But then the blurb saying that
"VAR=1" (or "VAR=0" in some cases) is the only allowed value can be confusing.
Say that both 0 and 1 can be set, since this documentation is also intended
for end users.

In our files, we generally don't want the override values anywhere. But we
have a test which checks the rvalue, which should be enough.

hwdb.d/60-autosuspend.hwdb
hwdb.d/60-seat.hwdb
hwdb.d/70-av-production.hwdb
hwdb.d/70-hardware-wallets.hwdb
hwdb.d/70-lights.hwdb
hwdb.d/70-software-radio.hwdb

index af7d8ba567528a1b7761831f2b5358fd2541cdff..f564c6aed97f15ae33d0a934369c1ffe31a517fc 100644 (file)
@@ -22,9 +22,9 @@
 # for the device.
 #
 # Allowed properties are:
-#    ID_AUTOSUSPEND=1
+#    ID_AUTOSUSPEND=0|1
 #    ID_AUTOSUSPEND_DELAY_MS=####
-#    ID_PERSIST=0
+#    ID_PERSIST=0|1
 #
 # ID_AUTOSUSPEND_DELAY_MS adjusts the delay for autosuspend to something
 # different than the kernel default of 2000ms.
index 927ea025a2057296d78c88eb30a9291d0f3d0ff8..4b1fc2c1bb5741d3ca61a1ec44bd9c9bb35d3862 100644 (file)
@@ -8,7 +8,7 @@
 # device, and not the (parent) PCI device, is tagged with 'master-of-seat'.
 #
 # Allowed properties are:
-#    ID_TAG_MASTER_OF_SEAT=1
+#    ID_TAG_MASTER_OF_SEAT=0|1
 
 #########################################
 # eXtreme Graphic Innovation (XGI)
index dc3fddf0e069d35f9fc0653518c7d893e828af73..fee74729c42d6d388783daeb36d16918378c71be 100644 (file)
@@ -21,7 +21,7 @@
 # for the device.
 #
 # Allowed properties are:
-#   ID_AV_PRODUCTION_CONTROLLER=1
+#   ID_AV_PRODUCTION_CONTROLLER=0|1
 
 ################
 # Ableton
index 24983f3f92e349a23b67796e6dc2c83fd5c67d0d..94fe332872041d5930c610e64ac929f1e5b2e193 100644 (file)
@@ -18,7 +18,7 @@
 # for the device.
 #
 # Allowed properties are:
-#   ID_HARDWARE_WALLET=1
+#   ID_HARDWARE_WALLET=0|1
 
 ################
 # Trezor Hardware Wallets
index 70c152c8b8a608bb8237151d4ae1e9e965d784c4..a7753710ed7b7acd763f9138a544d39f8c3f30f6 100644 (file)
@@ -20,7 +20,7 @@
 # for the device.
 #
 # Allowed properties are:
-#   ID_AV_LIGHTS=1
+#   ID_AV_LIGHTS=0|1
 
 ################
 # Logitech
index 3b578d464ff018c7da51cea3855d0557a4ac71dd..cbe1539861c778b03dbad62e8678496abef1d0e5 100644 (file)
@@ -19,7 +19,7 @@
 # for the device.
 #
 # Allowed properties are:
-#   ID_SOFTWARE_RADIO=1
+#   ID_SOFTWARE_RADIO=0|1
 
 ################
 # Nuand