From 650340700761fa7de5bca4f25119017574d8337b Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Tue, 18 Jul 2017 10:49:16 +0200 Subject: [PATCH] tools: ratbagctl: add missing capabilities strings Prevents some failures while showing the information of the devices. Fixes de16f1a4b16ef Signed-off-by: Benjamin Tissoires --- tools/ratbagctl.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/ratbagctl.in b/tools/ratbagctl.in index 876a997a..c4095698 100755 --- a/tools/ratbagctl.in +++ b/tools/ratbagctl.in @@ -739,7 +739,10 @@ def print_profile(d, p, level): def print_device(d, level): p = d.profiles[0] # there should be always one - caps = {RatbagdDevice.CAP_SWITCHABLE_RESOLUTION: "switchable-resolution", + caps = {RatbagdDevice.CAP_RESOLUTION: "resolution", + RatbagdDevice.CAP_PROFILE: "profile", + RatbagdDevice.CAP_BUTTON: "button", + RatbagdDevice.CAP_SWITCHABLE_RESOLUTION: "switchable-resolution", RatbagdDevice.CAP_SWITCHABLE_PROFILE: "switchable-profile", RatbagdDevice.CAP_BUTTON_KEY: "button-keys", RatbagdDevice.CAP_BUTTON_MACROS: "button-macros",