PiTFT Disable Tactile Switch as Power Button

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
aramael
 
Posts: 3
Joined: Tue Feb 28, 2017 10:23 pm

PiTFT Disable Tactile Switch as Power Button

Post by aramael »

I have a Adafruit PiTFT - 2.8" Capacitive Touchscreen Display for Raspberry Pi and it's currently using the tactile switch attached GPIO Pin #23 to initate the shutdown process for the Pi. I tried to remove this "feature" by removing the line:

Code: Select all

options rpi_power_switch gpio_pin=23 mode=0
from /etc/modprobe.d/adafruit.conf, however upon testing it now seems that the process is attached to GPIO Pin # 22. How do I go about disabling the tactile switch as power button. I'm currently running the Adafruit Jessie Lite-based PiTFT 2.4", 2.8" and 3.2" Resistive Image for Pi 1, 2, 3, Zero (Sept 23, 2016).

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

Re: PiTFT Disable Tactile Switch as Power Button

Post by adafruit2 »


User avatar
pjkelnhofer
 
Posts: 27
Joined: Tue Jul 18, 2017 1:46 am

Re: PiTFT Disable Tactile Switch as Power Button

Post by pjkelnhofer »

I know this is an old post, but I am hoping I can get an answer. The portion on the "Extras!" about setting up GPIO 23 as a power button seems to have disappeared. I know it was there when I first bought my TFT.

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

Re: PiTFT Disable Tactile Switch as Power Button

Post by adafruit2 »

yep we had to remove that section because we could no longer maintain a separate kernel fork with the rapid updates to raspbian.

try https://www.raspberrypi.org/magpi/off-s ... pberry-pi/ ?

User avatar
pjkelnhofer
 
Posts: 27
Joined: Tue Jul 18, 2017 1:46 am

Re: PiTFT Disable Tactile Switch as Power Button

Post by pjkelnhofer »

I didn't realize those were no longer supported... I still have the image saved from when I first bought my PiTFT.
I was trying to figure out how to turn off GPIO #23 being a power switch by default which was on the (now unsupported) Easy Install Image that I used )Raspbian Jessie 2016-09-23-based image). Because my script using GPIO #23 for something else.

If anyone else is looking for it:

Code: Select all

sudo nano /etc/modules
and delete the line: rpi_power_switch

Also, for good measure:

Code: Select all

sudo nano /etc/modprobe.d/adafruit.conf
and delete the line: options rpi_power_switch gpio_pin=23 mode=0

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

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