geekworm-com / x735-script

MIT License
4 stars 4 forks source link

Both script not working with bookworm on Pi4 #4

Open davidbenucci opened 4 months ago

davidbenucci commented 4 months ago

I have a Pi 4 with bookrom with kernel 6.6.33. I follow instruction on https://wiki.geekworm.com/X735-script but If I leave xPWR.sh 0 5 12 on x735-pwr.service after sudo ./install-pwr-service.sh the system shutdown and if I press the button to restar it boot but at the end of booting when load the service it shuts down again. If I modify the service file as I'm using a Pi5 everything goes weel but the servise get thesse essors: /usr/local/bin/xPWR.sh: line 37: [: -eq: unary operator expected /usr/local/bin/xPWR.sh: line 41: [: -eq: unary operator expected. Regarding xfan-service this is the output of systemctl status x735-fan.service Jun 18 00:45:31 pi-server systemd[1]: x735-fan.service: Scheduled restart job, restart counter is at 5. Jun 18 00:45:31 pi-server systemd[1]: Stopped x735-fan.service - Daemon to monitor and control fan speed. Jun 18 00:45:31 pi-server systemd[1]: x735-fan.service: Start request repeated too quickly. Jun 18 00:45:31 pi-server systemd[1]: x735-fan.service: Failed with result 'exit-code'. Jun 18 00:45:31 pi-server systemd[1]: Failed to start x735-fan.service - Daemon to monitor and control fan speed. The shortcut also is not working with pin 4 i got this error: gpioset: error setting the GPIO line values: No such file or directory with pin 0 I have no errors but nothing happens. Could you help m, please? I think the problem in the pin renaming of the new version of python.