From 5dad9ef669a36022f67282d1f337f01fdf284b22 Mon Sep 17 00:00:00 2001 From: Jyothish Kumar M S Date: Tue, 9 Jan 2024 16:00:11 +0000 Subject: [PATCH] Added `>` after `echo` Sauce: https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux/-/issues/7#note_151296583 --- content/post/2020-08-14-external-monitor-brightness.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/post/2020-08-14-external-monitor-brightness.md b/content/post/2020-08-14-external-monitor-brightness.md index 48404aa..59f9072 100644 --- a/content/post/2020-08-14-external-monitor-brightness.md +++ b/content/post/2020-08-14-external-monitor-brightness.md @@ -29,7 +29,7 @@ Conflicts=shutdown.target [Service] Type=oneshot -ExecStart=/bin/bash -c 'echo Trying to attach ddcci to %i && success=0 && i=0 && id=$(echo %i | cut -d "-" -f 2) && while ((success < 1)) && ((i++ < 5)); do /usr/bin/ddcutil getvcp 10 -b $id && { success=1 && echo ddcci 0x37 /sys/bus/i2c/devices/%i/new_device && echo "ddcci attached to %i"; } || sleep 5; done' +ExecStart=/bin/bash -c 'echo Trying to attach ddcci to %i && success=0 && i=0 && id=$(echo %i | cut -d "-" -f 2) && while ((success < 1)) && ((i++ < 5)); do /usr/bin/ddcutil getvcp 10 -b $id && { success=1 && echo ddcci 0x37 > /sys/bus/i2c/devices/%i/new_device && echo "ddcci attached to %i"; } || sleep 5; done' Restart=no ``` 4. Add a udev rule to load this service on attachment of the Nvidida i2c adapter