-
Notifications
You must be signed in to change notification settings - Fork 19
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
REM not starting / Error: EINVAL: invalid argument, write #64
Comments
The latest Raspberry Pi OS kernel changed how GPIO works. I reverted back to 6.1.x kernel and it's working again. |
How do I revert back from 6.6.28 to 6.1.x? |
Here's what I found: https://forums.raspberrypi.com/viewtopic.php?t=365677 And the commands that I used to get back to 6.1.x:
|
You Rock.... this fixed it! |
To get around this on Bookworm, see #65. Specifically, changes to boards/Constants.ts and pinouts/raspi-4b-bookworm.json. After you have these, update your controllerConfig.json with
You might need to remove everything below in "pins": [...] to get it to start again. |
As mentioned in #65, the 6.6 Kernel re-mapped the GPIO pins - effectively adding 512 to each GPIO value - gpio-0 (ID_SDA) got remapped to gpio-512 (ID_SDA), gpio-1 to gpio-513 etc... I ended up editing pinouts/raspi.json and remapping the gpioIds in the config file:
|
And I still get the same error. What am I missing? |
I'm an idiot, updated the wrong config file. up and working |
Unfortunately, the rpi foundation really messed this up. There is not currently any libgpiod capabilities for node or python projects that include interrupt processing. I could write my own lib but why... don't they know that a huge amount of software for Raspberry Pi interacts with the GPIO? They really are making Espressif look like the adults in the room. They even assigned a different chip id to the pi5. Not a problem but they left no clear way of determining what hardware you are on that I can find anywhere. The fix described here is simply including the chip id in the pin id which will work fine until a Pi5 rolls around. </end rant> |
If we leave the onoff library as is, I think we just need a new hardware .json file for each device type -- I assume all of the Pi5 will run Bookworm and not previous builds? |
I was bitten by this today. I upgraded to Bookworm last week, and today I received a Smart Fan Hat that I ordered on Amazon. I received v5 of this Fan Hat. In controllerConfig.json, I changed "controllerType": "raspi-4b-bookworm" as instructed in this thread. I also selected "Sequent Smart Fan v4 and v5" as the device. While this partially worked, my fan speed was stuck at 100% even though REM was trying to set it to a lower percentage. I removed the device, and reconfigured it as a v6+ fan, and REM was then able to change the fan speed as expected. I might suggest that the dropdown be adjusted as follows:
Edit: Not sure if this is a related issue, but I tried to set the fan speed to 100% (fan curve custom, return 100;), however this caused the fan to stop. Returning 99 worked fine, however. |
Up and running just fine. Updated my pi yesterday. Today I notice REM is not running. This is the error I get:
I am not proficient in programming. Any help would be appreciated.
I have update REM and installed.
PC and dashPanel still running
The text was updated successfully, but these errors were encountered: