Ev3dev: brightness level doesn't work (ev3dev-stretch, Lego EV3, LEDS)

Created on 30 Aug 2018  路  9Comments  路  Source: ev3dev/ev3dev

I try to change the brightness level:

  1. echo 255 > /sys/class/leds/led0:green:brick-status/brightness
  2. echo 100 > /sys/class/leds/led0:green:brick-status/brightness
  3. echo 10 > /sys/class/leds/led0:green:brick-status/brightness

The result of all options is identical: the brightness level remains the maximum.

System:

Image file: ev3dev-stretch-ev3-generic-2018-08-06
Kernel version: 4.14.61-ev3dev-2.2.2-ev3
Brickman: 0.10.0
BogoMIPS: 148.88
Board: board0
BOARD_INFO_HW_REV=7
BOARD_INFO_MODEL=LEGO MINDSTORMS EV3
BOARD_INFO_ROM_REV=6
BOARD_INFO_SERIAL_NUM=0016534C8680
BOARD_INFO_TYPE=main

kernel

Most helpful comment

Fix has been released in 2.3.0-ev3dev kernel.

All 9 comments

Good morning,

What is the Debian Stretch image that you used?

I reviewed your paths and they are ok:
https://github.com/ev3dev-lang-java/ev3dev-lang-java/blob/feature/%23443/src/main/resources/stretch.properties#L45

I will test it today.

Juan Antonio

paths is ok, but brightness level doesn't change
if you send zero, the led will turn off
if you send nonzero, the led will light up on maximum brightness

The brightness feature was removed in ev3dev-stretch.

Woah, really? Was that to avoid the overhead of bit-banging PWM?

Very bad. This is a regression.

The pwm-gpio driver is not not in the mainline kernel, and I didn't port it to the newer kernel. However, now that we have use of one of the PRUs we could actually make a better PWM using that.

Fix has been released in 2.3.0-ev3dev kernel.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AXKuhta picture AXKuhta  路  8Comments

jamesc601 picture jamesc601  路  6Comments

mrpierrot picture mrpierrot  路  8Comments

almsv picture almsv  路  3Comments

dlech picture dlech  路  5Comments