not-matt / Systematic-LEDs

Audio reactive, all in one, room lighting for your computer.
MIT License
100 stars 35 forks source link

Headless Pi Can't run #75

Open WillBethard opened 5 years ago

WillBethard commented 5 years ago

Hello, I think I'm probably missing something simple but I can't find a step by step guide on how to run with a pi, I'm trying to get this to work with a pi that has audio in by usb. I forked the code to my pi and I think I installed all the needed packages. I want to run the GUI configure my device and save it then set the gui to false and run it from there I'm also using the pi I had used for scottlawsonbc/audio-reactive-led-stripm so my /etc/asound.conf file has the following code, not sure if that helps.

pcm.!default { type hw card 1 } ctl.!default { type hw card 1 }

my /usr/share/alsa/alsa.conf: file also has this

defaults.ctl.card 1 defaults.pcm.card 1

I'm not getting any errors but the program quits and outputs

Could not find setting.ini No user colours found No user gradients found QXcbConnection: Could not connect to display Aborted

What else do I need to get this working on Rpi3? Is there a way to configure without using Gui and if so what lines should I change. Thanks for the help!

dermodmaster commented 5 years ago

QXcbConnection: Could not connect to display

I think you will get this if you are connected only via ssh. Run the pi in desktop mode and afterwards run "python3 main.py" in a terminal window on your desktop to prevent this.

Maybe you can preconfigure this on a PC where GUI is working and copy the settings file to your PI. After this turn off GUI in lib/config.py

Good luck