permacomputing

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

recomposing_ewaste.mdwn (27175B)


      1 _More than half of smartphone users keep an old phone. Abandoned by a constantly moving ICT infrastructure, they now live in our drawers, functional but no longer serving their original purpose. While their battery might be old and their operating system not up to date, they are still computers with enough power to perform complex tasks. Leaving such old phones unused or trashing them is not only a (e-)wasted opportunity, but also a detriment to our ecosystem. But then, what can we do with all these devices?_
      2 
      3 _To open the conversation and answer this question with a concrete application, this workshop explores the possibility to create new digital music instruments based on old smart phones._
      4 
      5 _Over two days you will learn how to repurpose old and cheap smartphones into functional synthesizers. You will go through all the steps needed, discover the joys of granular synthesis, Messiaen's modes of limited transposition, and learn how to work with open-source software such as Nura and Pure Data. At the end of the workshop, and possibly a small attempt to play all together, you can finally go back home with your own custom synthesizer that's too cool to stay in a drawer._
      6 
      7 Day 1. Friday 27th of November
      8 ==============================
      9 
     10 11.00 - 13.00
     11 -------------
     12 
     13 *Walk-in time: 15 min*
     14 
     15 * Quick welcome and demo of what we are making today. (Aymeric) 5min
     16 * Round of intro, who is present today, house rules etc (Ola) 5min
     17 * Contextualisation. Presentation of why we are doing this. Background story, community aspect. Connection with permacomputing design principles. (Ola) 10 min
     18 
     19 ![misc phones plugged](/img/misc_plugged_phones.gif)
     20 
     21 In this part of the workshop, we will first look at the broader issue of electronic waste (e-waste), focusing on one of its most familiar examples: the smartphone. Smartphones have become essential everyday tools, yet their useful lives are often cut short by software limitations, changing consumer expectations and the constant arrival of new models. However, the issue goes beyond individual users. We will also explore the wider ecosystem of dependencies involving technology producers, software developers and service providers, and how business models and design decisions can encourage continuous consumption and discourgae repair.
     22 
     23 The deeper motivation behind the project lies close to principles of permacomputing, a philosophy that considers how digital technologies can be designed, used and maintained within ecological limits. Rather than following the demand for newer, faster and more powerful devices, permacomputing encourages care, repair, reuse and resourcefulness. In this introductory part we will highlight some of the permacomputing principles like “care for the chips” invite us to preserve and make use of existing hardware, while “building on solid ground” encourages working with mature, well-understood technologies instead of constantly adopting new ones.
     24 
     25 We will also look at music-making as a practical and accessible way to explore these ideas. Smartphones already contain many components that can be repurposed for sound production, including processors, touchscreens, speakers and sensors. By transforming old phones into digital musical instruments, we can experience their remaining potential first-hand. Making sound offers immediate feedback and encourages experimentation, turning abstract ideas about reuse and technological longevity into something tangible. 
     26 
     27 * State of the android Phone ecosystem, why they are not supported anymore, Nura’s relevancy. (Luca and possibly Stefan) 20 min
     28 
     29 ![FP phones evolution](/img/fp_evo.gif)
     30 
     31 Until not so long ago, Android phones were not supported for long. Most phones were supported for a maximum of 2-3 years. Some higher-end models would maybe hit 4-5 years but that was rare. And some phones, especially budget ones, could get as much as zero software updates in their whole lifetime. The lack of software updates made many phones obsolescent long before the phone itself stopped working correctly. Additionally you'd miss out on new software features, improvements, and there's huge security implications with not getting security patches. Nowadays the situation is somewhat better, the EU Ecodesign Directive came into force in 2025, forcing manufacturers to provide at least 5 years of operating system updates. Also since market conditions have changed (fewer changes between yearly generations, higher prices), people are just keeping their phone longer than in the past.
     32 
     33 The [Nura Project](https://nura.eco/) was started back in 2017 (under the name "postmarketOS"), and was aimed at putting a proper Linux operating system on phone hardware. The initial aim was being able to boot Linux on any random old phone from your drawer, reviving e-waste. While the scope of Nura nowadays is quite different - making a real alternative to the two commercial phone operating systems, Android & iOS - Nura can also be used for many other cases. For example turning your old phone into a Raspberry Pi-like server, building a portable web-radio broadcaster, hosting a website, or making a functional synthesizer.
     34 
     35 * Collective moment of installing Nura (working Linux machine)(one phone together, after this everyone gets a pre-installed phone). (Presentation) 60 min
     36 
     37 ![phones charging in a row](/img/phones_charging_in_a_row.gif)
     38 
     39 ### Installing Nura on the Samsung Galaxy SIII
     40 
     41 In this how-to we replace Android with Nura on a Samsung Galaxy SIII. First, we build a Nura system image for the SIII with `pmbootstrap`. Then, we flash that image to the phone over USB with `heimdall`. To follow along you'll need a Samsung Galaxy SIII (`GT-i9300` or `GT-i9305`) and a computer with Debian 13 as the operating system.
     42 #### Installing packages
     43 
     44 Android phones are usually flashed with a sparse image. `android-simg2img` has two small tools: `img2simg` turns a image into a sparse one and `simg2img` does the opposite. Write the following commands one by one on in your computer its terminal application.
     45 
     46 ```bash
     47 git clone https://github.com/anestisb/android-simg2img/
     48 cd android-simg2img
     49 make
     50 sudo cp img2simg /usr/local/bin
     51 ```
     52 
     53 - `git clone` downloads the source code, and `cd` moves us into a folder
     54 - `make` compiles the tools
     55 - `sudo cp img2simg /usr/local/bin` copies the tool into `/usr/local/bin` so we can run `img2simg` from anywhere
     56 
     57 `pmbootstrap` is Nura's tool for building an image for a specific phone. It downloads the right packages and puts together a complete linux system for the phone
     58 
     59 ```bash
     60 git clone https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git --depth 1
     61 cd pmbootstrap
     62 mkdir -p ~/.local/bin
     63 sudo ln -s "$PWD/pmbootstrap.py" /usr/local/bin/pmbootstrap
     64 pmbootstrap --version ## should print 3.12.1
     65 ```
     66 
     67 - `--depth 1` downloads only the latest version instead of the whole project its history
     68 - `ln -s` makes a shortcut (symlink) in the folder so you can type `pmbootstrap` from anywhere
     69 - `pmbootstrap --version` checks if it works and shows you the current version
     70 
     71 #### Building a Nura image
     72 ##### Configure the build
     73 
     74 The command `pmbootstrap init` asks a series of questions about the phone and the system you want
     75 
     76 ```bash
     77 pmbootstrap init
     78 ```
     79 
     80 The answers we use and why:
     81 
     82 - **work path:** Enter (default). The folder where pmbootstrap builds everything.
     83 - **pmaports path:** Enter (default). The folder for the packages.
     84 - **channel:** `v25.12`. The previous stable release. `v26.06` doesn't seem to work, and `edge` changes frequently, which can cause things to break.
     85 - **vendor:** `samsung`
     86 - **device codename:** `m0`. The codename nura uses for the Galaxy SIII.
     87 - **username:** Enter (`user`). Your login name on the phone.
     88 - **audio backend:** Enter (default). We drive the sound card directly with JACK later, so this doesn't matter much.
     89 - **WiFi backend:** Enter (default). We use the USB cable for the network.
     90 - **usb-moded profile:** Enter (`developer`). Always turns on networking over USB, which we need to log in to the phone.
     91 - **user interface:** `none`. No graphical interface.
     92 - **service manager:** `openrc`. A simple service manager.
     93 - **change additional options?:** Enter (`n`). The defaults are fine.
     94 - **extra packages:** `openssh`. An `ssh` server so we can log in to the phone over USB. You can add more if you want, like `vim` or `nano`.
     95 - **use host timezone?:** Enter (`y`). The phone gets the same timezone as your computer.
     96 - **locale:** Enter (`en_US`). Language settings.
     97 - **device hostname:** `unbrick01`. The phone's name, which shows in the prompt when you're logged in.
     98 - **build outdated packages?:** Enter (`y`)
     99 
    100 ##### Build the image
    101 
    102 ```
    103 pmbootstrap install
    104 ```
    105 
    106 When asked choose `147147`as the password for the user `user`. You need this password to log in to the phone and to use `sudo` on it. We use the same password on every phone so anyone in the workshop can log in to any phone.
    107 
    108 At the end `pmbootstrap` suggests flashing with `pmbootstrap flasher`. We don't do this. Instead we use the alternative it mentions, `pmbootstrap export` and flash with `heimdall` later.
    109 #### Flashing the phone
    110 
    111 Download Mode is a mode of the Samsung bootloader where the phone waits to receive new software over usb.
    112 
    113 Hold the `Volume down` + `Home` + `Power` keys while connecting the device to your computer with a usb cable. A warning screen appears. Press `Volume up` to enter Download Mode.
    114 
    115 If the phone starts normally, unplug it, take the battery out and put it back and try again. hold the keys first, then plug in the cable. This process can take a few tries!
    116 ##### Export Nura image
    117 
    118 ```
    119 pmbootstrap export
    120 ```
    121 
    122 This command export images and creates links the the images in the `/tmp/postmarketOS-export` folder. There are two images we need: the system image `samsung-m0.img` and the boot image `boot.img`.
    123 ##### Convert to a sparse image
    124 
    125 ```
    126 img2simg /tmp/postmarketOS-export/samsung-m0.img nura-sparse.img
    127 ```
    128 
    129 `img2simg` takes the image from the export folder and writes a sparse version named `nura-sparse.img` in the folder you are currently in
    130 ##### Flash the system to the USERDATA partition
    131 
    132 Make sure your Samsung SIII is still in Download Mode then flash the new `nura-sparse.img` with `heimdall` into the user data partition
    133 
    134 ```
    135 heimdall flash --USERDATA nura-sparse.img
    136 ```
    137 
    138 The phone's internal storage is divided into partitions (sections). `USERDATA` is where Android keeps your apps and files. That is where we are flashing Nura. Flashing takes around 5 minutes. Be patient and don't unplug the usb cable while it's uploading, even when it looks like it's stuck!
    139 ##### flash the kernel to the BOOT partition
    140 
    141 When uploading the system is done, the phone reboots. We need it in Download Mode again for this step, so switch the phone off completely. Take out the battery and upload the cable. Then put the battery back and enter Download Mode again
    142 
    143 Flash the `BOOT` partition
    144 
    145 ```
    146 heimdall flash --BOOT /tmp/postmarketOS-export/boot.img
    147 ```
    148 
    149 The `BOOT` partition holds what starts the phone. After this, your Samsung Galaxy SIII reboots into Nura!
    150 
    151 
    152 13.00 - 14.00 Lunch
    153 -------------------
    154 
    155 :)
    156 
    157 14.00 - 17.00
    158 -------------
    159 
    160 * PD introduction to need-to-knows today (Aymeric) 60 min
    161 
    162 ![Pd screenshot](/img/pd_basics.gif)
    163 
    164 Pure Data (Pd) is visual programming language [[that can run on relatively modest computers|unintentional permacomputing]]. It is was initially developed in the context of contemporary music composition and production and later on gained popularity amongst electronic musicians, game developers and media artists. Its dataflow programming combines the patching modularity of analogue synthesizers with more advanced digital signal processing tools applied to audio synthesis. Learning Pd can take quite some time, so this part of the workshop will only give you the basic knowledge needed to customise an already made patch that we will run on the phone. What we cover is:
    165 
    166 * opening patches
    167 * performance mode VS edit mode
    168 * text messages and control objects
    169 * audio objects
    170 * connecting and disconnecting things
    171 * making a few simple beeps with an oscillator.
    172 
    173 To run pd:
    174 
    175 * open a terminal
    176 * type <code>pw-jack pd -stderr -jack -font-face Terminus</code>
    177 
    178 Note: this tutorial is based on the first few patches from the [GOTO10 canvas Pd tutorial](https://git.bleu255.com/canvas/).
    179 
    180 
    181 * Groups of 2, installed phones available. Crash course command line so they know how to start <code>pd</code> and the different parts and start to play with the synth (Boris). 120 min (including tea break)
    182 
    183 # Terminal crash course
    184 
    185 Open the Terminal app. You'll see something like this:
    186 
    187 ```
    188 user@laptop:~$
    189 ```
    190 
    191 This is the prompt. It tells us who you are (`user`), which computer you are on (`laptop`) and the folder you're in (`~` is your home folder).
    192 
    193 Before we really start you should know this:
    194 
    195 - Copy and pasting in the terminal are Ctrl+Shift+C and Ctrl+Shift+V.
    196 - Ctrl+C does not copy. It stops whatever is running.
    197 - When you type a password, nothing appears on screen. That's normal, keep typing!
    198 
    199 ##### Where am I?
    200 
    201 Try out the following commands one by one.
    202 
    203 ```bash
    204 pwd
    205 ls
    206 cd Downloads
    207 pwd
    208 cd ..
    209 cd ~
    210 ```
    211 
    212 - `pwd` (_print working directory_): shows the folder you are currently in
    213 - `ls` (_list_): lists what's in the current folder.
    214 - `cd` (_change directory_): moves you to another folder. `cd Downloads` moves you into Downloads.
    215 - `cd ..`: goes back (up) one folder
    216 - `cd ~`: takes you back home from anywhere.
    217 
    218 Many of these commands print nothing when they work. No message means _usually_ it went fine.
    219 
    220 ##### Navigating the filesystem
    221 
    222 All files and folders on the computer are inside one big folder called `/`. Let's go there and look around:
    223 
    224 ```bash
    225 cd /
    226 ls
    227 ls /home
    228 ls /etc
    229 ls /usr/bin
    230 cd ~
    231 ```
    232 
    233 Some folders worth knowing:
    234 
    235 - `/home`: the home folder of the user. Yours is `/home/user` and is also called `~`
    236 - `/etc`: settings for the whole system
    237 - `/usr/bin`: programs. `bin` is short for binaries, another word for programs. Every command you type is a program in a folder like this.
    238 - `/tmp`: temporary files. This folder gets emptied when the computer restarts
    239 
    240 There are two ways to write where something is:
    241 
    242 - A full path starts with `/` and works from anywhere: `/home/user/Downloads`.
    243 - A relative path starts from where you are now (if I'm in `/home/user`): `Downloads`.
    244 
    245 ##### Creating folders and a files
    246 
    247 ```bash
    248 mkdir practice
    249 cd practice
    250 nano hello.txt
    251 ```
    252 
    253 - `mkdir` (_make directory_): makes a folder.
    254 - `nano`: is a simple text editor.
    255 
    256 Type a sentence in nano. Save with Ctrl+O and press Enter, then quit with Ctrl+X. Now check that the file is there and read it:
    257 
    258 ```bash
    259 ls
    260 cat hello.txt
    261 ```
    262 
    263 - `cat` (_concatenate_): prints the contents of a file
    264 
    265 ##### Copy, rename and delete
    266 
    267 ```bash
    268 cp hello.txt copy.txt
    269 mv copy.txt renamed.txt
    270 ls
    271 rm renamed.txt
    272 ls
    273 ```
    274 
    275 - `cp` (_copy_): copies a file.
    276 - `mv` (_move_): moves a file. Moving it to a new name in the same folder renames it
    277 - `rm` (_remove_): deletes a file. There is no trash bin in the terminal. When you delete something its really gone
    278 
    279 Folders work a bit differently:
    280 
    281 ```bash
    282 mkdir stuff
    283 rm -r stuff
    284 ```
    285 
    286 - `rm -r` (_recursive_): deletes a folder and everything inside it
    287 
    288 Spaces in file names need quotes because the terminal uses spaces to separate words. Avoid spaces in file names and use `-` or `_` instead, for example `my-manifest.txt`
    289 
    290 ```bash
    291 touch "my manifest.txt"
    292 ls
    293 rm "my manifest.txt"
    294 ```
    295 
    296 - `touch`: makes an empty file.
    297 
    298 ##### Many files at once
    299 
    300 ```bash
    301 touch a.txt b.txt c.txt
    302 ls *.txt
    303 ls *.pd
    304 rm a.txt b.txt c.txt
    305 ```
    306 
    307 `*` means "anything". `ls *.txt` shows every file that ends in `.txt`. Be careful with it: `rm *` deletes everything in the folder.
    308 ##### Shortcuts!
    309 
    310 - `Tab`: completes names. Type `cat hel` and press Tab.
    311 - `Tab` twice: shows all possibilities. Type `ls /usr/` and press Tab twice
    312 - `↑` (_arrow key up_): brings back your previous commands.
    313 
    314 ```bash
    315 history
    316 clear
    317 ```
    318 
    319 - `history` shows everything we've typed so far.
    320 - `clear` empties the screen. Ctrl+L does the same.
    321 
    322 ##### Changing what a command does
    323 
    324 ```bash
    325 ls -l
    326 ls -a ~
    327 ls -la ~
    328 ls --help
    329 ```
    330 
    331 The command is what to do, the options (usually starting with `-`) modify how to do it, and the rest says what to do it to. Options are often the first letter of a word:
    332 
    333 - `ls -l` (_long_): shows a long list with more details.
    334 - `ls -a ~` (_all_): shows all files in your home folder, including hidden ones. Hidden files start with a dot.
    335 - `ls -la ~`: combines both options
    336 - `ls --help`: shows all the options of the command.
    337 
    338 ##### Read the (friendly) manual!
    339 
    340 Every command has a manual. Let's look up what `yes` does:
    341 
    342 ```bash
    343 man yes
    344 ```
    345 
    346 - `man` (_manual_): opens the manual of a command. Scroll with the arrow keys, search with `/` followed by a word, and press `q` to quit. `--help` gives a short summary, and `man` gives the full manual.
    347 
    348 The manual says `yes` repeats a text until it's stopped. That's where the name comes from: without any text, it prints "y" forever.
    349 
    350 ```bash
    351 yes hello
    352 ```
    353 
    354 This prints "hello" forever. Press Ctrl+C to stop it.
    355 
    356 ##### Who am I?
    357 
    358 ```bash
    359 whoami
    360 hostname
    361 date
    362 uptime
    363 cat /etc/os-release
    364 free -h
    365 df -h
    366 ```
    367 
    368 - `whoami` (_who am i_): shows your username.
    369 - `hostname`: shows the name of your computer
    370 - `date`: shows the date and time.
    371 - `uptime`: shows how long the computer has been on
    372 - `cat /etc/os-release`: shows which operating system you are running.
    373 - `free -h`: shows how much memory is used and free.
    374 - `df -h` (_disk free_): shows how much space is left on your disks
    375 
    376 The `-h` (_human readable_) option shows sizes in MB and GB instead of bytes.
    377 
    378 ##### Installing software
    379 
    380 ```bash
    381 sudo apt update
    382 sudo apt install cowsay fortune-mod
    383 ```
    384 
    385 - `sudo` (_superuser do_): means you do this as the administrator. The administrator is also called root or superuser. It asks for your password.
    386 - `apt` (_Advanced Package Tool_): installs software on Debian.
    387 - `apt update`: downloads the latest list of available software. It's a good idea to run it before installing
    388 
    389 Try out what you just installed:
    390 
    391 ```bash
    392 cowsay hello
    393 fortune
    394 ```
    395 
    396 To find out where a program lives:
    397 
    398 ```bash
    399 which ls
    400 which cowsay
    401 ```
    402 
    403 - `which`: shows the folder a program is installed in
    404 ##### Connecting commands
    405 
    406 ```bash
    407 echo "hello from the terminal"
    408 echo "hello from the terminal" | cowsay
    409 fortune | cowsay
    410 ```
    411 
    412 - `echo`: repeats what you give it, like an echo.
    413 - `|` (the pipe): sends the output of one command into the next one
    414 
    415 The pipe also lets you write text into a file with `tee`:
    416 
    417 ```bash
    418 echo "first line" | tee notes.txt
    419 echo "second line" | tee -a notes.txt
    420 cat notes.txt
    421 echo "third line" | tee notes.txt
    422 cat notes.txt
    423 ```
    424 
    425 - `tee`: writes what it receives to a file and shows it on screen.
    426 - `tee -a` (_append_): adds to the end of the file
    427 - `tee` without `-a` overwrites the file
    428 
    429 ##### Logging in to the phone
    430 
    431 Connect the phone to your computer with the micro USB cable. The phone always has the address `172.16.42.1` on the cable. First check that it answers:
    432 
    433 ```bash
    434 ping 172.16.42.1
    435 ```
    436 
    437 - `ping`: sends a message and waits for a reply. When you see replies coming in, stop it with Ctrl+C
    438 
    439 Now log in to the phone:
    440 
    441 ```bash
    442 ssh user@172.16.42.1
    443 ```
    444 
    445 - `ssh` (_secure shell_): lets you use the terminal of another computer. The shell is the program that reads and runs the commands you type. `user@172.16.42.1` means: log in as `user` on the computer at this address.
    446 - The password is `147147`.
    447 - The first time, it asks whether you trust this device. Type `yes` and press Enter.
    448 
    449 Your prompt changes to:
    450 
    451 ```
    452 unbrick01:~$
    453 ```
    454 
    455 From now on, every command runs on the phone (as you are now logged in to the phone). Always check the prompt to see where you are. Everything you learned works here too:
    456 
    457 ```bash
    458 pwd
    459 ls
    460 hostname
    461 free -h
    462 ```
    463 
    464 ##### Start unbrick01
    465 
    466 to run `unbrick01` we need three programs running at the same time, each in its own terminal window. Open a new window with Ctrl+Shift+N, log in to the phone again with `ssh user@172.16.42.1`, and repeat for each program. Start them in this order.
    467 
    468 **The audio server**
    469 
    470 ```bash
    471 JACK_NO_AUDIO_RESERVATION=1 /usr/bin/jackd -d alsa -S -p 128
    472 ```
    473 
    474 `jackd` is the JACK audio server: it gives programs like Pd access to the sound card
    475 
    476 - `JACK_NO_AUDIO_RESERVATION=1` ??
    477 - `-d alsa` (_driver_) talks to the sound card through ALSA, the sound system of Linux.
    478 - `-S` uses 16-bit sound
    479 - `-p 128` (_period_) processes sound in small parts of 128 samples. Smaller parts mean less delay between touching and hearing.
    480 
    481 **The touch script**
    482 
    483 ```bash
    484 cd ~/unbrick01/pd/startup
    485 python3 touch2pd.py
    486 ```
    487 
    488 - `touch2pd.py` (_touch to Pd_): a Python script that reads the touchscreen and the buttons and sends that information to Pd. `python3` is the program that runs Python scripts.
    489 
    490 **The Pd patch**
    491 
    492 ```bash
    493 cd ~/unbrick01/pd/unstable
    494 pd -nogui -stderr -jack chkahichdahk.pd
    495 ```
    496 
    497 `pd` is the program to load Pure Data patches (`.pd` files)
    498 
    499 - `-nogui`: no graphical user interface
    500 - `-stderr` (standard error): where programs send their messages
    501 - `-jack`: send the sound through JACK
    502 - `chkahichdahk.pd`: the name of the Pd patch to open
    503 
    504 Now plug in your headphones, touch the screen and press the buttons. You should hear sound!
    505 
    506 Keep the tabs open, when you close a tab, the program in it stops too.
    507 
    508 
    509 Day 2. Saturday 28th of November
    510 ================================
    511 
    512 10.00 - 13.00
    513 -------------
    514 
    515 * explanation of Patch (granular synthesis) (Aymeric) 15 minutes
    516 
    517 ![oud sample](/img/sample_oud.gif)
    518 
    519 Granular synthesis is a method to generate sound based on sampling at a micro scale level. While more conventional sampling is often presented as the practice of making audio compositions of recognisable sources (hence its controversial position in relation to copyrighted records), granular synthesis operates instead with fragments below 100ms. These fragments are called grains and can be arranged and grouped in the time and frequency domains as clouds. As result granular synthesis can be used for many sound application, from music composition to sound effects and processing, such as time stretches.
    520 
    521 There are many ways to create an instrument based on granular synthesis. In this section we will give some explanation over the choices we made, and explain granular synthesis while touring the Pd patch created for this workshop.
    522 
    523 * Explanation + origin sound sample + modes of limited transposition, live demo of the scales (Rachel) 15 minutes
    524 
    525 ![vibrating oud](/img/vibrating_oud.gif)
    526 
    527 This section of the workshop introduces participants to two musical elements that shape unbrick01. First, the sound recording on which everything is based: a single strike of an oud string with a risha (plectrum). We explain why we made this choice of instrument and sound, and how we created the sound file.
    528 
    529 Second, a collection of musical pitches referred to by composer Olivier Messiaen (1908-1992) as “modes of limited transposition”. We will introduce and demonstrate these modes as musical elements, explain why we selected them, and how we translated them into Pure Data for integration within parameters of the patch.
    530 
    531 * Explaining the development workflow: Know how to run the python script so it runs on the laptop and not on the the phone. The phone input will be redirected to the development machine and into the Pd patch. (Boris & Aymeric) 60 min
    532 
    533 
    534 Open a terminal on the development machine:
    535 
    536 ```sh
    537 ssh user@172.16.42.1
    538 ```
    539 
    540 On the phone:
    541 
    542 ```sh
    543 tmux
    544 cd unbrick01
    545 git pull
    546 cd pd/startup
    547 ./touch2pd.py --remote
    548 ```
    549 Open another terminal on the development machine:
    550 
    551 ```sh
    552 cd unbrick01/pd/stable
    553 pw-jack pd -stderr -jack -font-face Terminus chkahichdahk.pd
    554 ```
    555 
    556 This is only one way to do it, please adjust in case you are already connected with the phone, or if Pd is already running. Etc. To confirm that everything works, move your finger across the phone touchscreen, you should see a flow of such messages **on the terminal from which Pd was started**, not the terminal used to ssh into the phone:
    557 
    558 ```sh
    559 [...]
    560 udp: null 0.26843 0.7498
    561 udp: null 0.28512 0.7498
    562 udp: null 0.29624 0.7498
    563 udp: null 0.30459 0.7498
    564 udp: null 0.31015 0.7498
    565 udp: null 0.31293 0.7498
    566 [...]
    567 ```
    568 The sound of the patch should be coming from the laptop.
    569 
    570 13.00 - 14.00: lunch
    571 --------------------
    572 
    573 :)
    574 
    575 
    576 14:00 - 16:00
    577 -------------
    578 
    579 * Playing with the synth and choosing the sounds and parameters (Aymeric & Rachel). 120 min
    580 
    581 ![config.pd](/img/config-pd.gif)
    582 
    583 Finally, we can now customise the synth! To keep things relatively simple, unless you know your way into Pd, the only part of the patch you should be concerned about is the abstraction called <code>\_config</code>. This abstraction is visible on the main patch window. To open the abstraction, simply click on the <code>[ \_config ]</code> object.
    584 
    585 A new window opens. In this window you will see three types of objects:
    586 
    587 * **purple blue objects**: these objects receives your finger coordinate values straight from the touchscreen and their ID indicates the button status. For instance <code>[ \_screen 1 ]</code> emits values when you touch the screen while simultaneously holding the volume down button.
    588 
    589 * **pink objects**: these objects control some of the synthesizer parameters. Typically you need to connect the values you get from the screen to these objects to customise the synthesizer. For instance connecting the <code>height</code> output of <code>[ \_screen 0 ]</code> to the <code>depth</code> input of the <code>[ \_vibrato ]</code> will allow you to control the vibrato depth while moving your finger up and down the screen.
    590 
    591 * **yellow orange objects**: these objects can help modifiy the values you receive from the screen, for instance to revert them, or make the control radial instead of linear.
    592 
    593 
    594 16:00 - 17:00
    595 -------------
    596 
    597 * Script to enable autostart once they are happy with their patch: copy patch and than run the magical command. 16 min
    598 
    599 So far the patch has been running on your development machine, now it's time to upload the customisations to the phone. Unless you made changes to the more advanced parts of the patch, you only need to copy on file: 
    600 
    601 From the development machine, open a terminal and:
    602 
    603 ```sh
    604 cd unbrick01/pd/stable
    605 scp _config.pd user@172.16.42.1:unbrick01/pd/stable/
    606 ```
    607 
    608 ```sh
    609 sudo rc-service chronyd restart
    610 cd unbrick01/
    611 git pull
    612 nano etc/init.d/touch2pd
    613 ```
    614 
    615 Change the command_args so that --remote is added to the command
    616 
    617 ```sh
    618 nano install
    619 ```
    620 
    621 uncomment the 3 rc-update commands
    622 
    623 ```sh
    624 sudo ./install
    625 ```
    626 
    627 <code>TODO info to re-enable the autostart system services for JACK, touch2pd.py, and headless pd</code>
    628 
    629 * If there is interest, we can discuss if it's possible to quickly improvise as a group with the customised synths (Rachel) 60 min (optional, open to other suggestions)
    630 
    631 
    632 17:00 - 19.00 Public Moment
    633 ---------------------------
    634 
    635 * welcome by Waag (Ola)
    636 * informal presentation of context of project (Aymeric & Kimmy)
    637 * participants who are interested can present their synth (with support from Rachel and Aymeric)
    638 * invitation for the visitors to play with the instruments (Ola)
    639