0

I wrote a command to turn on the flashlight

echo 255 > sys/class/leds/flashlight/brightness

The flashlight turns on but after a second it shines darker. Why?

  • Did you mean echo 255 > /sys/class/leds/flashlight/brightness? – iBug Jul 29 '17 at 05:59
  • @iBug, oh, yes.. Sorry, command wrote correctly, but in question not valid. I edit it –  Jul 29 '17 at 06:00
  • As @iBug pointed out the leading slash before sys? – beeshyams Jul 29 '17 at 06:03
  • @beeshyams Impossible to be the cause, since the OP managed to turn the flashlight on without the leading slash. – iBug Jul 29 '17 at 06:07
  • @iBug, yeah, managed –  Jul 29 '17 at 06:11
  • What happens if you read brightness after the LED brightness decreases? If the reading is no longer 255, then the driver might have been coded so as to disable maximum brightness (probably to prevent overheating). – Andy Yan Jul 29 '17 at 10:50

0 Answers0