Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: ebelouet on July 16, 2014, 07:12:05 PM

Title: A20 LCd showtdown
Post by: ebelouet on July 16, 2014, 07:12:05 PM
Hi,

I would like how switch OFF power of TFT LCD ?

Linux or Python commandes ?

Sincerely
E belouet
Title: Re: A20 LCd showtdown
Post by: MBR on July 22, 2014, 05:24:46 PM
You can turn the LCD off either by disabling via GPIO or setting PWM to zero. I'm not sure what GPIO pin does control the LCD on A20 (try looking on the schematics or in /etc/rc.local), but the PWM should be the same file /sys/class/pwm-sunxi/pwm0/duty_percent. All you need is write (text) zero here, for example try (as root and preferably via SSH) echo 0 > /sys/class/pwm-sunxi/pwm0/duty_percent .
Title: Re: A20 LCd showtdown
Post by: vicccc on August 04, 2014, 05:51:15 PM
python script:

http://news.softpedia.com/news/Easily-Turn-Off-LCDs-With-a-Shortcut-Key-in-Ubuntu-223343.shtml

Title: Re: A20 LCd showtdown
Post by: otyugh on October 26, 2014, 06:53:45 PM
Erh.
Nothing such /sys/class/pwm-sunxi/pwm0/duty_percent ; and rc.local just change the following :

Quotechmod 777 /dev/disp  /dev/cedar_dev /dev/ump  /dev/mali
echo 1008000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

echo 408000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

./opt/led_blink.sh&
Title: Re: A20 LCd showtdown
Post by: dave-at-axon on October 27, 2014, 04:40:33 AM
Quote from: MBR on July 22, 2014, 05:24:46 PM
I'm not sure what GPIO pin does control the LCD on A20

There is a separate POWER control via a GPIO pin and a PWM pin for the backlight.
Title: Re: A20 LCd showtdown
Post by: ebelouet on December 16, 2014, 07:26:06 PM
Hi,

Thank but do you have python example because I don't find this adress in python library ?

Sincerely
Eric