GPIO Access Denied
- Dominant language
- No language data
- Stars
- 496
- Forks
- 86
- PR merge metrics
- No merged PRs in 30d
Description
Moonraker is currently not able to access the gpio pins.
[gpio.py:_request_gpio()] - Unable to init gpiochip0:gpio6. Make sure the gpio is not in use by another program or exported by sysfs.
Traceback (most recent call last):
File "/home/biqu/moonraker/moonraker/components/gpio.py", line 84, in _request_gpio
chip = self._get_gpio_chip(pin_params['chip_id'])
File "/home/biqu/moonraker/moonraker/components/gpio.py", line 40, in _get_gpio_chip
chip = self.gpiod.Chip(chip_name, self.gpiod.Chip.OPEN_BY_NAME)
PermissionError: [Errno 13] Permission denied
2022-10-02 13:02:25,273 [moonraker.py:add_warning()] - Failed to load power device [power light_strip_2 ]
Error parsing option (pin) from section [power light_strip_2 ]
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with moonraker/components/gpio.py, especially _request_gpio() and _get_gpio_chip(), then review the reported gpiochip0:gpio6 permission error and the [power light_strip_2] pin configuration. Reproduce the failure on the CB1 image and determine whether the GPIO access or configuration is responsible; done means the power device loads without the permission or pin parsing errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, python
- Domain
- embedded-iot, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100