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

HifiBerryOS 64 Alpha 6: ERROR: powercontroller - Couldn't import RPi.GPIO, won't load powercontroller module #528

Closed
baldrianbandit opened this issue Apr 5, 2024 · 3 comments

Comments

@baldrianbandit
Copy link

baldrianbandit commented Apr 5, 2024

Describe the bug
Missing python module RPi.GPIO. Powercontroller does not work.

HiFiBerryOS version
HifiBerryOS 64 Alpha 6

To Reproduce

journalctl -xe | grep powercontroller
ERROR: powercontroller - Couldn't import RPi.GPIO, won't load powercontroller module
ERROR: powercontroller - Couldn't start GPIO callback, aborting... (name 'GPIO' is not defined)

Additional context
Tested on RPi4

@baldrianbandit baldrianbandit changed the title HifiberryOS 64 Alpha 6: ERROR: powercontroller - Couldn't import RPi.GPIO, won't load powercontroller module HifiBerryOS 64 Alpha 6: ERROR: powercontroller - Couldn't import RPi.GPIO, won't load powercontroller module Apr 5, 2024
@hifiberry
Copy link
Owner

e2e4d00

Try the next HBOS release that will be releases soon.

@baldrianbandit
Copy link
Author

Tested Alpha 7: Still GPIO issues:

# journalctl | grep power
Apr 12 14:44:26 alarm reconfigure-players[968]:  Interrupt pin for power controller: 2 (was 2)
Apr 12 14:44:38 alarm python3[1252]: INFO: audiocontrol2 - Controller class: ac2.plugins.control.powercontroller.Powercontroller
Apr 12 14:44:38 alarm python3[1252]: INFO: powercontroller - Using controller int pin 2 on GPIO 15
Apr 12 14:44:38 alarm python3[1252]: INFO: powercontroller - found powercontroller software version 5 on I2C address 119
Apr 12 14:44:38 alarm python3[1252]: ERROR: powercontroller - Couldn't start GPIO callback, aborting... (name 'GPIO' is not defined)
Apr 12 14:44:38 alarm python3[1252]: INFO: audiocontrol2 - started controller powercontroller
Apr 12 14:44:38 alarm python3[1252]: INFO: powercontroller - Update LED state for state=unknown
Apr 12 14:44:43 alarm systemd[1]: Starting Shutdown via power controller...
Apr 12 14:44:43 alarm systemd[1]: Finished Shutdown via power controller.

@baldrianbandit
Copy link
Author

Will reopen for current alpha release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants