weirdly, installing serialosc from the PPA basically works for me with occasional segfaults. sometimes serialoscd starts and sometimes does not running raspbian stretch lite here.
btw, i’m installing serialosc by first installing dirmngr to fetch the repository public key (it’s not installed by default on stretch lite). the package still crashes, so do not try this at home!
The segfault affecting us here is apparently the same and it’s clearly affecting Linux systems in general. Btw, the crash is fixed by the linked PR, but there are still bogus messages coming to serialoscd from the detector or the device subprocess, still not sure from which one and why.
I can’t reproduce the segfault on my serialize-before-write branch, can you guys please check if it also works on your systems? If all is well (the code is reviewed and merged), I can update the PPA with a working version too.
Thx! I’ve just switched to serialosc built from your branch, so far no issues. Since I have no reliable means to trigger the segfault the only thing I can do is keep using it the coming week(s). I’ll report back after that or if it crashes.
I’ve added a systemd service file to the serialosc package, so now it:
Starts automatically on boot. If upgrading from the previous version, run: sudo systemctl start serialosc.service
Saves grid state under /var/lib/serialosc (since a system daemon doesn’t have a home directory)
The package is currently based on my serialosc branch that has configurable configuration directory, but it will be repackaged once the changes are in master.
I wanted you to ask who’s had the monome running successfully with raspbian?
Everything has installed however when I run “serialoscd” there’s no error but also nothing indicating that it’s picked up anything?
I’ve also run the grid-studies-1.py and again this runs with no error but nothing indicates that anything is happening between the monome.
I used the grid with raspbian a lot. serialoscd shows detected devices in the terminal as follows:
$ serialoscd
serialosc [m0001754]: connected, server running on port 11271
serialosc [m0001754]: disconnected, exiting
make sure your user is a member of group dialout and has write access to /dev/ttyUSBx devices. make sure the device is present in the system, i. e. have a look at syslog and lsusb. hope this helps!
Many Linux systems including Raspbian use software called systemd to manage processes in the system. If you want to manage serialosc with systemd you have to do the following:
create or copy systemd unit file from the debian package.
create a directory to store serialosc state: it’s ~/.config/serialosc by default, but with systemd you will probably be running serialosc as root.
configure the unit to point to your serialosc binaries and the state directory from step 2.
Not sure what’s your plan here, but in practice it’s easier to run serialosc in an user session started under regular user. The package adds systemd support for headless setups, where you aren’t usually logging in.
i’ve added the user to the dialout group and have write access to the USB device and received the expected output from serialoscd confirming the monome is connected. However, when running grid-studies-1.py taken from : https://monome.org/docs/grid-studies/python/
no message appears and the monome appears inactive.