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