Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Instruction Guide 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi
The issue is now fixed in cava, https://github.com/karlstav/cava/issues/409, and this fixes the screen freeze issue in mpd_oled when installing from source.

Adrian.
Reply
(06-12-2021, 11:37 AM)adrii Wrote: The issue is now fixed in cava, https://github.com/karlstav/cava/issues/409, and this fixes the screen freeze issue in mpd_oled when installing from source.

Adrian.

Hi Adrian, thanks for the information. 
 
Regards Omar
Reply
Hi Adrian,
I wanted to ask about that for a long time, but always forgot.
You showed us how to display the big clock when we pause a song, with 
Code:
-P s
But when I play an album and the last song stops playing, I'm just left with the spec. line and it does not switch to big clock.
What do I need to do to fix this?
Reply
Hi Alain

When you reach the end of the album, and the spectrum screen is showing, run the following two commands and post the output here.

Check the player state

Code:
cat /var/local/www/currentsong.txt


Check the mpd_oled options

Code:
ps ax | grep mpd_oled


Adrian.
Reply
I didn't play an album but just two songs, and I got this


Code:
cat /var/local/www/currentsong.txt
file=
artist=
album=
title=
coverurl=images/default-cover-v6.svg
track=
date=
composer=
encoded=File does not exist
bitrate=0 bps
outrate=0 bps
volume=20
mute=0
state=stop

Code:
ps ax | grep mpd_oled

Code:
  934 ?        Dsl    1:10 /usr/local/bin/mpd_oled -o 6 -b 30 -g 1 -f 25 -P s -c alsa,hw:Loopback,1
  936 ?        S      0:00 sh -c mpd_oled_cava -p /tmp/cava_config_mwB2GA
  937 ?        Sl     1:01 mpd_oled_cava -p /tmp/cava_config_mwB2GA
 2926 pts/0    R+     0:00 grep --color=auto mpd_oled
Reply
Hi Alain

Thanks for posting the output. I am not sure what is causing the issue, and I was not able to reproduce it here (despite having output like yours at the end of play). I think the 'D' status for mpd_oled in your 'ps' output might be relevant, and I don't have this here. It seems to indicate that mpd_oled is waiting for some I/O that never happens (communication with cava? communication with the OLED?), and so it doesn't update the spectrum screen after play stops.

Could you try the following please

Install the latest mpd_oled (if that is not what you are using). Then, run

Code:
sudo mpd_oled_service_edit

and edit your mpd_oled command line to use 'hw' rather than 'plughw', so it would look like, e.g.

Code:
/usr/local/bin/mpd_oled -o 6 -b 30 -g 1 -f 25 -P s -c alsa,plughw:Loopback,1

If this does not fix the issue then, as a next step, I will review the mpd_oled code for clues as to how it might occur.
Does mpd_oled work correctly after the spectrum screen is left displaying after the stop? For example, if you play something else then the spectrum works, and if you pause it then you return to the clock screen?
Adrian.
Reply
installed Moode 7.3, still all ok but screen is black, seems to be off:

pi@MOODE:~ $ sudo systemctl status mpd_oled
● mpd_oled.service - MPD OLED Display
Loaded: loaded (/etc/systemd/system/mpd_oled.service; enabled; vendo
Active: active (running) since Mon 2021-06-28 14:32:01 CEST; 22s ago
Main PID: 1997 (mpd_oled)
Tasks: 2 (limit: 4915)
CGroup: /system.slice/mpd_oled.service
└─1997 /usr/bin/mpd_oled -o 6 -b 10 -g 1 -f 20 -c alsa,plugh

Jun 28 14:32:00 MOODE systemd[1]: Starting MPD OLED Display...
Jun 28 14:32:01 MOODE systemd[1]: Started MPD OLED Display.
Reply
After a couple of restart started to work. But the graphic eq is not working.
Reply
Hi officialsm

mpd_oled worked fine for me after an upgrade to 7.3 except the spectrum.

To fix this I stopped mpd_oled


Code:
sudo systemctl stop mpd_oled


Set the ALSA loopback to OFF in the Moode UI. Set  it to ON again. Started mpd_oled


Code:
sudo systemctl start mpd_oled


And the spectrum was then working.

In your case it is strange that mpd_oled is running but the screen is black. Try restarting the machine, and if this doesn't help then check all the wires have good connections .

EDIT: also, check that your display can still be detected

Code:
sudo i2cdetect -y 1


Adrian
Reply
(06-28-2021, 04:37 PM)adrii Wrote: Hi officialsm

mpd_oled worked fine for me after an upgrade to 7.3 except the spectrum.

To fix this I stopped mpd_oled


Code:
sudo systemctl stop mpd_oled


Set the ALSA loopback to OFF in the Moode UI. Set  it to ON again. Started mpd_oled


Code:
sudo systemctl start mpd_oled


And the spectrum was then working.

In your case it is strange that mpd_oled is running but the screen is black. Try restarting the machine, and if this doesn't help then check all the wires have good connections .

EDIT: also, check that your display can still be detected

Code:
sudo i2cdetect -y 1


Adrian

Correct now is working. Thank you
Reply


Forum Jump: