lightweight X11 utility to dim the screen and/or keyboard backlight when idle
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

add some more debugging output to show step values

+13 -1
+13 -1
xdimmer.c
··· 153 153 int overflow; 154 154 XSyncValue add, plusone; 155 155 156 + if (debug) 157 + printf("waiting for next event\n"); 158 + 156 159 XNextEvent(dpy, &e); 160 + 161 + if (debug) 162 + printf("got event of type %d\n", e.type); 157 163 158 164 if (exiting) { 159 165 brighten(); ··· 328 334 329 335 if (debug) 330 336 printf("stepping from %ld to %ld in " 331 - "increments of %d (%d step%s)\n", 337 + "increments of %d (%d step%s)... ", 332 338 value, to, step_inc, steps, 333 339 (steps == 1 ? "" : "s")); 334 340 ··· 338 344 if (j == steps) 339 345 value = to; 340 346 347 + if (debug) 348 + printf(" %ld", value); 349 + 341 350 XRRChangeOutputProperty(dpy, output, 342 351 backlight_a, XA_INTEGER, 32, 343 352 PropModeReplace, ··· 347 356 if (j < steps) 348 357 usleep(100); 349 358 } 359 + 360 + if (debug) 361 + printf("\n"); 350 362 } 351 363 else 352 364 /* just return the first screen's backlight */