Closed lswee closed 1 year ago
Yep, sounds like a reasonable change. If you'd like to make a PR and test it on your device, we can merge that.
What would you prefer me to do: simply remove the lines, disable the LED thing, and remove mention to it in the guide find a way for it to fail silently, but not crash the system find another way to control the LED that works on more Pi's?
I'd like to keep the LED function, but silently failing would be fine. If you think it's easy enough to add support for other devices, then it would be nice to get that included.
I think the issue here is that in the latest PI os lite (Bullseye), the name of the "LED0" changes to "ACT". So need to change all the LED0 in the script to ACT to fix the issue.
If it's a different Raspbian image (different version of Debian), then I'll be looking to update the project to use the latest version soon.
I'm using Model: Raspberry Pi 3 Model B Rev 1.2
There are no LEDs listed under /sys/class/leds/, so I get:
When trying to run setup the remapper.service fails:
If I check the service, I can see it's due to the inability to control the LED:
It seems like it's a known problem and there's a different way to turn off the LED? https://overflow.hostux.net/questions/19863723/turn-off-leds-of-raspberry-pi#71492090 https://github.com/seamusdemora/PiFormulae/blob/master/LEDControlForRPi.md
I believe it can be controlled via ACT:
It would be good if the LED thing was optional, I don't think it should crash the whole thing if it fails.
Update
For now I removed two lines from https://github.com/ruundii/bthidhub/blob/391044c2868255b2da6d593f6fa4826fa3bb330c/install/on_rpi/remapper.service#L8
ExecStartPost=/usr/bin/bash -c 'echo none > /sys/class/leds/led0/trigger' ExecStopPost=/usr/bin/bash -c 'echo heartbeat > /sys/class/leds/led0/trigger'
Which allowed it to run, although I'm now getting this issue: https://github.com/ruundii/bthidhub/issues/55