06-11-2021, 10:17 AM
(06-11-2021, 09:07 AM)adrii Wrote: Hi f.omar
If mpd_oled is installed as a service then check for errors with
Code:systemctl status mpd_oled
Hi Adrii
thanks for your help!
Before Play Song
pi@moode:~ $ systemctl status mpd_oled
● mpd_oled.service - MPD OLED Display
Loaded: loaded (/etc/systemd/system/mpd_oled.service; enabled; vendor preset:
Active: active (running) since Fri 2021-06-11 12:03:52 CEST; 28s ago
Process: 6585 ExecStartPre=/usr/local/bin/mpd_oled_launch_test (code=exited, s
Main PID: 6593 (mpd_oled)
Tasks: 2 (limit: 2063)
CGroup: /system.slice/mpd_oled.service
└─6593 /usr/local/bin/mpd_oled -o 1 -b 10 -g 1 -f 20 -c alsa,hw:Loopb
Jun 11 12:03:51 moode systemd[1]: Starting MPD OLED Display...
Jun 11 12:03:52 moode systemd[1]: Started MPD OLED Display.
After Play Song
pi@moode:~ $ systemctl status mpd_oled
● mpd_oled.service - MPD OLED Display
Loaded: loaded (/etc/systemd/system/mpd_oled.service; enabled; vendor preset:
Active: active (running) since Fri 2021-06-11 12:03:52 CEST; 1min 27s ago
Process: 6585 ExecStartPre=/usr/local/bin/mpd_oled_launch_test (code=exited, s
Main PID: 6593 (mpd_oled)
Tasks: 3 (limit: 2063)
CGroup: /system.slice/mpd_oled.service
└─6593 /usr/local/bin/mpd_oled -o 1 -b 10 -g 1 -f 20 -c alsa,hw:Loopb
Jun 11 12:03:51 moode systemd[1]: Starting MPD OLED Display...
Jun 11 12:03:52 moode systemd[1]: Started MPD OLED Display.
Jun 11 12:05:06 moode mpd_oled[6593]: open file /tmp/cava_fifo_6593 for writing
Jun 11 12:05:06 moode mpd_oled[6593]: Segmentation fault
Quote:If mpd_oled is crashing: use the command above to make sure that mpd_oled is not running, then run it from the command line and check for any error messages when it crashes.
pi@moode:~ $ ps ax | grep 'mpd_oled\|cava'
10350 ? Rsl 0:09 /usr/local/bin/mpd_oled -o 1 -b 10 -g 1 -f 20 -c alsa,hw:Loopback,1
11884 pts/0 S+ 0:00 grep --color=auto mpd_oled\|cava
Quote:Also check all the wires are good. In your photo the wires are connected to a DAC board attached to the Pi. You could check that none of the pins you are using are reserved for use by the DAC.
First I installed without the DAC Board and it freezes. Than I have formatted the SD Card and installed again with DAC and I had the same problem.
Quote:And check, before and after the freeze -- How much CPU mpd_oled/cava is using? Are other processes using a lot of CPU? How much memory is being used? Etc.
when it freezes it uses at most 5% of CPU
There isn't other processes using a lot of CPU