Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8015

Python • Re: Gpiod 2.3.0 works on RT Kernel Fails on Release Kernel

$
0
0
AAAAAARRRRRRRRRRRRRRRRRGGGGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHH!

Kernel 6.6 works! Guess this needs bisect. I hate bisect!

Code:

> uname -a                                Linux rpi-4b-1 6.6.74+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.74-1+rpt1 (2025-01-27) aarch64 GNU/Linux> lsb_release -aNo LSB modules are available.Distributor ID:DebianDescription:Debian GNU/Linux 12 (bookworm)Release:12Codename:bookworm(my_venv) tomdean@rpi-4b-1:~/my_venv $ python ~/aorus/work/Python/two-linex.py gpiod version  2.3.0<class 'dict'>{18: gpiod.LineSettings(direction=gpiod.line.Direction.OUTPUT, edge_detection=gpiod.line.Edge.NONE, bias=gpiod.line.Bias.AS_IS, drive=gpiod.line.Drive.PUSH_PULL, active_low=False, debounce_period=datetime.timedelta(0), event_clock=gpiod.line.Clock.MONOTONIC, output_value=gpiod.line.Value.ACTIVE), 17: gpiod.LineSettings(direction=gpiod.line.Direction.INPUT, edge_detection=gpiod.line.Edge.BOTH, bias=gpiod.line.Bias.AS_IS, drive=gpiod.line.Drive.PUSH_PULL, active_low=False, debounce_period=datetime.timedelta(0), event_clock=gpiod.line.Clock.MONOTONIC, output_value=gpiod.line.Value.INACTIVE)}<LineRequest chip="gpiochip0" num_lines=2 offsets=[18, 17] fd=4>(my_venv) tomdean@rpi-4b-1:~/my_venv $ python ~/aorus/work/Python/one-line.py  gpiod version  2.3.0<class 'dict'>{18: gpiod.LineSettings(direction=gpiod.line.Direction.OUTPUT, edge_detection=gpiod.line.Edge.NONE, bias=gpiod.line.Bias.AS_IS, drive=gpiod.line.Drive.PUSH_PULL, active_low=False, debounce_period=datetime.timedelta(0), event_clock=gpiod.line.Clock.MONOTONIC, output_value=gpiod.line.Value.ACTIVE)}<LineRequest chip="gpiochip0" num_lines=1 offsets=[18] fd=4>
I cannot mess with this system, so back to the other two.

Tom Dean

Statistics: Posted by tomdean — Thu Jun 12, 2025 11:28 pm



Viewing all articles
Browse latest Browse all 8015

Trending Articles