Page 1 of 1

GPIO input plugin

Posted: Thu May 02, 2024 4:20 pm
by marcopiro
Dear QLC+ friends,
strange behaviour today on a fresh RPI install.
When I try to configure the GPIO Plugin on the debug console I get:

Code: Select all

[GPIO] error in opening direction file "/sys/class/gpio/gpio18/direction"
and the input/output behaviour is not possible to set. :shock:
GPIO pins are initialized as input, pullup in /boot/firmware/config.txt

Any ideas???
Many thanks,
with love,
Marco

Q Light Controller Plus version 4.13.0
Linux version 6.6.28+rpt-rpi-v8 (debian-kernel@lists.debian.org) (gcc-12 (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT Debian 1:6.6.28-1+rpt1 (2024-04-22)

Re: GPIO input plugin

Posted: Fri May 03, 2024 7:24 am
by mcallegari
Hi, what if you do it from a command line like this?

Code: Select all

echo in > /sys/class/gpio/gpio18/direction
Do you get an error or does it work?

Re: GPIO input plugin

Posted: Sat May 04, 2024 3:35 pm
by marcopiro
Thank you Massimo for your kind answer.
However I get:

Code: Select all

bash: /sys/class/gpio/gpio18/direction: No such file or directory

No idea why!
However I must say: I'm not using your pre-built RPI image but I tried to install on my own. Same procedure done a year ago and it was working (I was on a previous Raspbian version).
I'll try to dig more.
Many thanks,
grazie :mrgreen:
Marco

Re: GPIO input plugin

Posted: Sun Sep 01, 2024 6:55 pm
by markzvo
GPIOs still not working in 4.13.1 on a Pi 5.

Re: GPIO input plugin

Posted: Mon Sep 02, 2024 6:27 am
by mcallegari
Mark, you posted the same information 3 times on 3 different topics.
Wasn't one time enough?

I get this is not working and I'm going to have a look at it soon, but please, don't hijack forum threads to gain more attention.

Re: GPIO input plugin

Posted: Fri Sep 06, 2024 7:19 am
by mcallegari
I have finally fixed the GPIO plugin.
I will soon publish a new version of debian package and probably a new whole image too

Re: GPIO input plugin

Posted: Sat Sep 07, 2024 6:40 pm
by mcallegari
I have loaded an up-to-date image with the fixed GPIO plugin.
Please check if everything works as expected now.