blocktrron / poemgr

7 stars 3 forks source link

Not working #10

Open myde2001 opened 2 months ago

myde2001 commented 2 months ago

Hi, I installed the package in my USW-Flex but it doesn't work... When I run poemgr enable and then poemgr show it outputs Profile disabled. Enable profile first.

stintel commented 4 weeks ago

I believe this is due to GPIO changes in new kernel version.

Wed Oct 16 10:04:33 2024 kern.warn kernel: [73724.084401] export_store: invalid GPIO 487
Wed Oct 16 10:04:33 2024 kern.warn kernel: [73724.088725] export_store: invalid GPIO 488
Wed Oct 16 10:04:33 2024 kern.warn kernel: [73724.154980] export_store: invalid GPIO 487
Wed Oct 16 10:04:33 2024 kern.warn kernel: [73724.159413] export_store: invalid GPIO 488
# ls /sys/class/gpio/gpiochip* -d
/sys/class/gpio/gpiochip512  /sys/class/gpio/gpiochip544  /sys/class/gpio/gpiochip576
stintel commented 4 weeks ago

You can fix it manually by s/487/519/ and s/488/520/ in /usr/lib/poemgr/uswlite-pse-enable, then restart poemgr. We should probably come up with a better way than hardcoding the GPIOs though.