Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 65A6F781DBD for <~alpine/devel@lists.alpinelinux.org>; Fri, 27 Dec 2019 18:28:31 +0000 (UTC) Received: by mail-ed1-f43.google.com with SMTP id b8so26058034edx.7 for <~alpine/devel@lists.alpinelinux.org>; Fri, 27 Dec 2019 10:28:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=MR3n4+N669/kYs64wjDt0G1yy934Vchuv1tSXNmwyOA=; b=faUJiT0Yn9P+TUSykPTgq5PwNcd4eFr/MlRSaP8D+WL0u9orDxw6Y2rhKxZnglnpm+ ReD5Y7+A+Lmguqu85CNjVD0mrBpP9BCvL0eP3wfY/PSjJ9VXlJYIT3PHSwMChCpXzkIW TyiJ+nApmtQnv8JmwlpjWKDtSdd0sA8sly+Mp9yOPEvfMTHYWw5PstmfYzJa34vjwjFQ PiKLzb4Qcw7RX5YXNenlQ+RXVqubBMcl4oZ6HadoRzH8s4mNrI2/HKgaOKMtXxEHy+fr KuE6hvYYvf3d154izeTfv6GMowBN5kSlJDlkmccH2jEYhMd5iBkcvTj/IuV5MkjlHyWX LcYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=MR3n4+N669/kYs64wjDt0G1yy934Vchuv1tSXNmwyOA=; b=SEAzbTMUs5bkTonNMU7Nru4zUM5eijt9EW6Mrn1YFZOBx3sKMQoYFeEUbcGN/0gz6J 2YNNkk7fdSUjEV/s1aN4qJmtqWxocC5/m+Iz38M774M0Gq+DOf/u+69gR3ddb8/IEEPq bDJX5kCBC1eusPvIRJB7ZccY14Z3WUaUyJWhiIaEv1oxo8KWfp9pBxI8DOE6w4G2zxtV 9pU9KiIfs0RAkB0nL6Z7zeQQF3O2/GU8gGBs69VvUZzf40AGwAZv3ytvvV03vAAaxcV3 V6LwZZSXkBs2S1FiMDiGtiHGMPrm61Wmg4qP3PxCKC4g147UZobfDNtAoTyXWyD1d1Xe CXFQ== X-Gm-Message-State: APjAAAX0m3w1KHEnmJ2tHwjlTNFSZhH9AEkvzQgOAsJyRAom2jOhPrqc fHn82VFbjmTvqtPBVg/75Eqnfu7p49lY6k/l90LzevlS X-Google-Smtp-Source: APXvYqwxH6aO/fyQaS4791EqADA9uVjbSIPvenmLOKjGitBDGlrwimQy39+7HeO/E6fXdLCtBMz/6zabtjFzwpCAwlE= X-Received: by 2002:a17:906:ad93:: with SMTP id la19mr55224435ejb.54.1577471310441; Fri, 27 Dec 2019 10:28:30 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?David_Taill=C3=A9?= Date: Fri, 27 Dec 2019 19:28:17 +0100 Message-ID: Subject: Re: 3.11.2 and RPi.GPIO 0.6.5 on Pi Zero : edge detection no longer working To: ~alpine/devel@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="0000000000001a3416059ab3a943" --0000000000001a3416059ab3a943 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Think i know what the problem is: 3.11 dropped support for deprecated sysfs gpio in kernel, which breaks RPi.GPIO for edge detection. Was this intentional ? Or is it just that the config from kernel has those items turned off by default ? Can't check right now, but i believe raspbian is still supporting sysfs gpio. Don't you think alpine had better support it as well for Pi devices ? David Le jeu. 26 d=C3=A9c. 2019 =C3=A0 23:39, David Taill=C3=A9 a =C3=A9crit : > Hi all, > > I just installed Alpine 3.11.2 on a Pi Zero W, and just found RPi.GPIO no > longer works for edge detection. > Package installation : > apk add python3 > apk add py3-rpigpio > > Test file : > import RPi.GPIO as g > pin=3D4 > g.setmode(g.BCM) > print("pin%d mode is %d\n" % (pin, g.gpio_function(pin))) > g.setup(pin, g.IN, pull_up_down=3Dg.PUD_DOWN) > print("pin%d state=3D%d\n" % (pin, g.input(pin))) > while True: > x =3D g.wait_for_edge(pin, g.BOTH) > print("pin%d edge %d\n" % (pin, x)) > > On Alpine 3.10.0, it works as expected, printing a line as you bring pin = 4 > to ground or 3.3V. > On Alpine 3.11.2, i get : > # python3 testgpio.py > function of pin 4 =3D 1 > > pin 4 now is 0 > Traceback (most recent call last): > File "testgpio.py", line 8, in > x =3D g.wait_for_edge(pin, g.BOTH) > RuntimeError: Error waiting for edge > > Other methods such as add_event_detect also fail with a RuntimeError abou= t > being unable to add edge detection. > Other tests I ran prove reading pins and setting pin state do work. > > lsmod shows : > i2c_gpio 16384 0 > i2c_algo_bit 16384 1 i2c_gpio > > So, > Which do you think is the culprit ? alpine or RPi.GPIO ? > Who would you reach out to to get this fixed ? or at least examined ? > > Thanks for any feedback ! > David > > > > > > > --0000000000001a3416059ab3a943 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

Think i = know what the problem is: 3.11 dropped support for deprecated sysfs gpio in= kernel, which breaks RPi.GPIO for edge detection.
<= br>
Was this intentional ? Or is it just that the co= nfig from kernel has those items turned off by default ?

Can't check right now, but i believe r= aspbian is still supporting sysfs gpio.
Don't yo= u think alpine had better support it as well for Pi devices ?=C2=A0

David=C2=A0



So,
Which do you think is the culprit ? alpine or RPi.GPIO ?
Who would you reach out to to get this fixed ? or at least examined= ?

Thanks for any feedback !
David






--0000000000001a3416059ab3a943--