]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
backlight: update comment to match the new clamp value
authorMike Yuan <me@yhndnzj.com>
Mon, 16 Feb 2026 05:18:09 +0000 (06:18 +0100)
committerMike Yuan <me@yhndnzj.com>
Mon, 16 Feb 2026 08:44:52 +0000 (09:44 +0100)
Follow-up for 4ed1e2ea17e0f29a23d7a3dd65af192def9b3214

src/backlight/backlight.c

index 0ef362813fbcc49ce2a3e441f13e14afc6f7e2c9..15e0d17b8dda3c6a3e7abfa03b711203e7d57f0e 100644 (file)
@@ -348,8 +348,8 @@ static int clamp_brightness(
         assert(brightness);
 
         /* Some systems turn the backlight all the way off at the lowest levels. This clamps the saved
-         * brightness to at least 1 or 5% of max_brightness in case of 'backlight' subsystem. This
-         * avoids preserving an unreadably dim screen, which would otherwise force the user to disable
+         * brightness to at least 1 or 1% of max_brightness (whichever is bigger) in case of 'backlight' subsystem.
+         * This avoids preserving an unreadably dim screen, which would otherwise force the user to disable
          * state restoration. */
 
         min_brightness = (unsigned) ((double) max_brightness * percent / 100);