A13-SOM-512 does not dim 4.3 LCD backlight

Started by tkunz, February 19, 2016, 08:13:09 AM

Previous topic - Next topic

tkunz

Hi,
I have both the A13-OLinuxino and the A13-SOM-512.  Each can drive the A13-LCD43TS that I have, however only the Olinuxino can dim the backlight.  I have the exact same kernel and modules on the A13-SOM-512 and A13-Olinuxino.  All attempts to dim the screen fail on the A13-SOM-512, but it works just fine with the A13-Olinuxino.

Any ideas?
Thanks!
Tom

ulink

Works here like a charm here. Maybe you should check your FEX file:

[lcd0_para]
lcd_pwm_not_used = 0
lcd_pwm_used = 1
lcd_pwm = port:PB02<2><0><default><default>
lcd_pwm_ch = 0
lcd_pwm_freq = 5000
lcd_pwm_pol = 0

[pwm0_para]
pwm_used = 1
pwm_period = 5000
pwm_duty_percent = 50

Don't forget to create the .bin from the .fex and then reboot.
Now you shold be able to dim between 1 and 100 percent (0=100 also, think should try it as root):

50 percent: echo 50 > /sys/class/pwm-sunxi/pwm0/duty_percent



tkunz

I should add, I made the changes you recommended and it ended up working just fine.