Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headless Pi Can't run #75

Open
WillBethard opened this issue Mar 2, 2019 · 1 comment
Open

Headless Pi Can't run #75

WillBethard opened this issue Mar 2, 2019 · 1 comment

Comments

@WillBethard
Copy link

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
Copy link

dermodmaster commented Oct 3, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants