For anybody who's wondering what the line does: it takes a screenshot of the whole screen, feeds it into imagemagick, calculates 100-mean% value of the image in greyscale and feeds it into xbacklight, which sets the led backlight brightness on my netbook.
I don't have this problem, simply because ...