Received: from knopi.disroot.org (knopi.disroot.org [178.21.23.139]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 5C7D2782FB5 for <~alpine/devel@lists.alpinelinux.org>; Sun, 17 Apr 2022 14:54:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 2862A4048B for <~alpine/devel@lists.alpinelinux.org>; Sun, 17 Apr 2022 16:54:49 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R22B-DS4g9aY for <~alpine/devel@lists.alpinelinux.org>; Sun, 17 Apr 2022 16:54:47 +0200 (CEST) Message-ID: <2db66cb8-eb3d-e7cc-03ff-e3538b794c77@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1650207287; bh=Fbx+q+8O2bwseNZRt8M4FMLPZ9Bca2TBZstxnRTBIt8=; h=Date:From:Subject:To; b=LeJ8XsEvC2P3H00cjtZkHRb1B126XZ/mhEZPPeku1HAgAkyNrYRDF7opE/VK/n6es V25H/WCiF4goPIJo9CqOMXxOwywP3LZsKRepRd3vGZpIzwXE7gRYAbZr1QXB4Dz8c/ NnTL1NyrdtckqUjtqoU0zr1wo+7mkMaM6JHYRjnrwpckOHc0OFTaXA/a1Xtr2vFPYf pwz/huqKgFITs1fMb0Tjgxp3jc+httjwB/JZJ2uitk6zKejvjDEFmGQ4zYB8HQKuxH j5wHaEFXA4N1Ck2O1eBzCthdsrKZQkmuV52M9HhiCQ8A4wCfKScdMgCqd0MyaJaGqI yqNVVUFT7XNcw== Date: Sun, 17 Apr 2022 16:54:47 +0200 Mime-Version: 1.0 From: Thomas Schneider Subject: Enable GPIO for RPi 4 To: ~alpine/devel@lists.alpinelinux.org Content-Language: de-DE Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hello, I want to use a RPi power button and this requires GPIO . However, it looks like GPIO is disabled in RPi 4. When I start a relevant Python program I get this error: $ sudo /usr/bin/python3 /opt/fanshim-python/examples/poweroff.py traceback (most recent call last):   File "/opt/fanshim-python/examples/poweroff.py", line 12, in     GPIO.wait_for_edge(button_pin, GPIO.FALLING) RuntimeError: Error waiting for edge Can you please advise how to fix this issue? This isssue is not reproducible with Raspbian OS (based on Debian). THX Thomas