permacomputing

Source repository for the main permacomputing wiki site
git clone http://git.permacomputing.net/repos/permacomputing.git # read-only access
Log | Files | Refs

commit f6ff53e7798f0c9b28d11edefa6bc7fa41b58290
parent b7d724ea70d76ae66ac0759f04f1005a291055ab
Author: smeeb <smeeb@web>
Date:   Fri, 22 May 2026 14:52:56 +0200


Diffstat:
Munbrick01.mdwn | 27++++++++++++++++++++++++---
1 file changed, 24 insertions(+), 3 deletions(-)

diff --git a/unbrick01.mdwn b/unbrick01.mdwn @@ -149,7 +149,7 @@ __*All*__ hardware buttons __*and*__ the touchscreen are working. * `KEY_VOLUMEDOWN` is mapped to `/dev/input/event1` * `ABS_X`, `ABS_Y` (touchscreen) etc. is mapped to `/dev/input/event2` -## Install libpd +## Install pd and libpd Make sure the date of the phone is set. Manually works by running `date -s "2026-05-05 10:22:00"`. Change the date/time accordingly. Or run `apk add chrony && rc-service chronyd start` to a ntp service. @@ -160,10 +160,31 @@ Add the testing repo to the bottom of the `/etc/apk/repositories` file @edge https://dl-cdn.alpinelinux.org/alpine/edge/testing ``` -Update apk and install `libpd`. +Update apk and install `pd` and `libpd`. ```bash apk update -apk add libpd-dev@edge libpd@edge +apk add pure-data@edge libpd-dev@edge libpd@edge ``` +## Python + +Installing python so we can run a simple script that sends `evdev` (touch) events over a local socket to pd. + +```bash +apk add build-base linux-headers python3 py3-pip python3-dev +``` + +Clone the repo, setup the python environment and run the python script + +```bash +git clone https://git.xpub.nl/ugrnm/unbrick01.git +cd unbrick01/pd/startup +python3 -m venv venv +source ./venv/bin/activate +pip install -r requirements.txt +python touch2pd.py +``` + +If you touch the touchscreen, you should see `x` and `y` coordinates in the shell. These coordinates are being send on `localhost` to port `1337` +