Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPIO support broken for RPi3 #12593

Open
crcerror opened this issue Oct 5, 2024 · 0 comments
Open

GPIO support broken for RPi3 #12593

crcerror opened this issue Oct 5, 2024 · 0 comments
Labels
RPI Raspberry Pi

Comments

@crcerror
Copy link

crcerror commented Oct 5, 2024

Batocera build version

40 2024/08/03 05:52

Your architecture

Raspberry_Pi_3_Model_B_Rev_1_2

Your Graphic Processor Unit(s) (GPU)

Integrated

Issue description

manually start of several gpio-based switches with rpi_gpioswitch

Here with a simple python-script

[root@BATOCERA /userdata/system/logs]# rpi_gpioswitch start PIN56ONOFF
Traceback (most recent call last):
  File "/usr/bin/rpi-pin56-power", line 21, in <module>
    GPIO.add_event_detect(3, GPIO.FALLING, callback=shutdownBatocera,
RuntimeError: Failed to add edge detection

Same with simple-bash scripts and export to /sys/class/gpio

[root@BATOCERA /userdata/system/logs]# rpi_gpioswitch start MAUSBERRY
/usr/bin/rpi_gpioswitch: line 144: echo: write error: Invalid argument
/usr/bin/rpi_gpioswitch: line 145: /sys/class/gpio/gpio23/direction: No such file or directory
/usr/bin/rpi_gpioswitch: line 147: echo: write error: Invalid argument
/usr/bin/rpi_gpioswitch: line 148: /sys/class/gpio/gpio24/direction: No such file or directory
/usr/bin/rpi_gpioswitch: line 149: /sys/class/gpio/gpio24/value: No such file or directory
cat: /sys/class/gpio/gpio23/value: No such file or directory
[root@BATOCERA /userdata/system/logs]#

Detailed reproduction steps

I installed Batocera without using EDGER

Details of any attempts to fix this yourself

I did not spoke to someone on discord

Details of any modifications you have made to Batocera.

No changes made

Logs and data

"Log" is in issue-description

@Tovarichtch Tovarichtch added the RPI Raspberry Pi label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RPI Raspberry Pi
Projects
None yet
Development

No branches or pull requests

2 participants