PITFT 2.8r + Retropie - Turn Off screen Automatically

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
HarioH
 
Posts: 2
Joined: Sun Sep 13, 2015 1:11 pm

PITFT 2.8r + Retropie - Turn Off screen Automatically

Post by HarioH »

Hi there !

I’m working on a gameboy custom project, as pigrrl
So, i bought a PITFT 2.8 resistive and installed on my rpi2, using a retropie 3.0 distro
Installed following adafruit's guides, works like a charm !

The only thing i wanted to do is turn off screen when i turn off retropie (via the "quit" command in the menu)

I saw some posts about gpio 18 and control backlight etc, but nothing really usefull for a newbie (me ^^)

I tryied this :
added this line : sudo sh -c "echo 508 > /sys/class/gpio/export" in rc.local
and tryied add this one : sudo sh -c "echo '0' > /sys/class/gpio/gpio508/value" in /etc/init.d/halt

But nothing (if i ssh those BANNED lines, i can control backlight, so it work)

So, any advice for a lost noob ?

Regards

User avatar
adafruit2
 
Posts: 22187
Joined: Fri Mar 11, 2005 7:36 pm

Re: PITFT 2.8r + Retropie - Turn Off screen Automatically

Post by adafruit2 »

the 'problem' is that once retropie quits, the drivers are unloaded and by default the screen stays on. you'll have to just use the on/off switch when you're done :)

User avatar
HarioH
 
Posts: 2
Joined: Sun Sep 13, 2015 1:11 pm

Re: PITFT 2.8r + Retropie - Turn Off screen Automatically

Post by HarioH »

Thanks for the reply !

I will use a switch so !

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”