0

rpi_power_switch not found in PiTFT Image
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

rpi_power_switch not found in PiTFT Image

by mfh on Tue Apr 28, 2015 4:42 am

Hi,
I am using a RESISTIVE touch 2.8" TFT (PID #1601) an a Raspberry Pi B+. In installed the image from

http://adafruit-download.s3.amazonaws.c ... 150312.zip

and everything basically works fine.

Now, however, I want to install the rpi_power_switch module to use pin #23 for a safe shutdown. I followed all instructions, but it seems the rpi_power_switch module is missing in the binary:

$ sudo modprobe rpi_power_switch

gives:

FATAL: Module rpi_power_switch not found.

Note: my username is not the default "pi", so my home directory is not /home/pi, in case that matters.

I attach the output of the dmesg command below.

Does anybody know the reason for this? I would like to save the pain of compiling rpi_power_switch from the sources, as it seems a rather big task.

Thanks in advance!

EDIT:
------
The rpi_power_switch.ko file is found in previous kernel directories:
$ find . -name "rpi_power_switch*"
./3.18.8-v7+/kernel/drivers/power/rpi_power_switch.ko
./3.18.8+/kernel/drivers/power/rpi_power_switch.ko

But not in the current:

$ uname -r
3.18.11+

I suspect that in the course of consequent updating the system, the rpi_power_switch was lost.
Attachments
dmesg-2015-04-28.txt
Log file of Kernel driver loading (dmesg)
(13.61 KiB) Downloaded 124 times

mfh
 
Posts: 4
Joined: Tue Apr 28, 2015 4:30 am

Re: rpi_power_switch not found in PiTFT Image

by adafruit2 on Tue Apr 28, 2015 11:07 am

yes your apt-get upgrade blew away the PiTFT kernel, and thus you do not have the power switch module anymore

adafruit2
Site Admin
 
Posts: 16807
Joined: Fri Mar 11, 2005 7:36 pm

Re: rpi_power_switch not found in PiTFT Image

by mfh on Tue Apr 28, 2015 11:49 am

Thanks - now,

a) what is the recommended way of using the PiTFT while also regularly updating the system for security reasons?
Install a fresh image and installing the PiTFT components manually? Or is there a way to update the PiTFT kernel without blowing away its special components? In other ways - did a make a mistake when updating my OS or is it impossible to keep the system up to date if one wants to use the PiTFT image?

b) is there a way I can fix my system or would you recommend a fresh start?

mfh
 
Posts: 4
Joined: Tue Apr 28, 2015 4:30 am

Re: rpi_power_switch not found in PiTFT Image

by mfh on Tue Apr 28, 2015 5:11 pm

Not sure that this helps, but

https://learn.adafruit.com/adafruit-pit ... /faq#faq-1

recommends

Code: Select all | TOGGLE FULL SIZE
sudo apt-get install raspberrypi-bootloader=1.20150309-1

mfh
 
Posts: 4
Joined: Tue Apr 28, 2015 4:30 am

Re: rpi_power_switch not found in PiTFT Image

by mfh on Tue Apr 28, 2015 5:22 pm

Finally:

This has solved the issue:
Code: Select all | TOGGLE FULL SIZE
sudo apt-get install --reinstall raspberrypi-bootloader=1.20150309-1

mfh
 
Posts: 4
Joined: Tue Apr 28, 2015 4:30 am

Re: rpi_power_switch not found in PiTFT Image

by mscandolaro on Tue Feb 13, 2018 10:49 am

I don’t seem to be able to download the kernel ? Even if I put in the newest or second newest I receive an error saying the file does not exist...

mscandolaro
 
Posts: 1
Joined: Tue Feb 21, 2017 10:57 pm

Please be positive and constructive with your questions and comments.