![]() |
[How to do instruction] 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: FAQ and Guides (https://moodeaudio.org/forum/forumdisplay.php?fid=9) +--- Thread: [How to do instruction] 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi (/showthread.php?tid=155) |
RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 05-04-2021 Hi officialsm Unfortunately the right hand side of the lines is missing, and so I can't see all the information, but I think I can see enough. The launch test has completed earlier in the startup than it should. This is because mpd appears to be running before it is started as a service Code: May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: 764 ? DL 0:00 mpd - [This line is longer than printed. If you view the log with 'journalctl -u mpd_oled.service -b | less' you will be able to see the end of this line.] Something is running mpd by name, i.e. without a path. In my log mpd is run like this Code: May 04 17:22:36 moode mpd_oled_launch_test[282]: 673 ? Rs 0:00 /usr/local/bin/mpd --no-daemon /etc/mpd.conf Reviewing the Moode code I found Code: // And you can see from your logs that this is where mpd_oled was run Code: May 04 14:25:31 Simoode-audio mpd_oled_launch_test[373]: 20210504 142530 worker: -- Syste I think it is likely that this is the issue. Sometimes the script test will run at the same time as this command, which will cause it to succeed early, and mpd_oled will fail to start. I'll look into a fix for the launch test script, but for now you could probably load the ALSA loopback module at boot by adding 'snd-aloop' to '/etc/modules'. Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 05-04-2021 Hi officialsm The module name should use a hyphen Code: sudo modprobe snd-aloop EDIT: I see the suggestion is to use snd_aloop, and this also completes for me without error. Check if the module is loaded with 'lsmod | grep snd_aloop' Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - fdealexa - 05-04-2021 (05-03-2021, 10:18 AM)adrii Wrote: Hi Francesco Adrian, I have some difficulties to install it from scratch: would you please be so kind to help me? Best regards and thanks, Francesco RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 05-04-2021 Hi Francesco I am not sure if you have a custom setup, but the general steps are as follows. If you are using the binary package then uninstall it: https://github.com/antiprism/mpd_oled/blob/master/doc/install_moode7_deb.md#uninstall Review '/etc/asound.conf' and remove any changes made for mpd_oled if they are no longer needed Follow the instructions for installing from source: https://github.com/antiprism/mpd_oled/blob/master/doc/install_moode7_source.md Where it says to run Code: git clone https://github.com/antiprism/mpd_oled You should instead run Code: git clone -b start_cava_when_play https://github.com/antiprism/mpd_oled.git mpd_oled_test Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - officialsm - 05-04-2021 (05-04-2021, 04:06 PM)adrii Wrote: Hi officialsm Ok added to /etc/modules. Please when new installation script will be ready notify me in order to make new installation. Thank you so much helping me. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 05-04-2021 Hi officialsm I have made a new launch test for mpd_oled on Moode. If you would like to test it then remove 'snd-aloop' from '/etc/modules', and replace the contents of '/usr/bin/mpd_oled_launch_test' with Code: #!/bin/bash If this is working for you I will update the mpd_oled repository with the change. Thank you for reporting the issue, and all your help to track down the cause! Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - fdealexa - 05-04-2021 Hi Adrian, there is a problem related to pluhw: as you remember some time ago I had the problem "MPD error - Failed to open "ALSA Default" (alsa); Error opening ALSA device "_audioout"; snd_pcm_hw_params_set_buffer_time_near() failed: Invalid argument"; the same problem raises after changing "_sndaloop.conf" with some input codec (Jazz24.com -problem / WQXR - no problem). About the other problem it seems solved with the "wait for play" you have implemented. Tomorrow I will continue with the tests. Best regards and thanks, Francesco RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - officialsm - 05-05-2021 (05-04-2021, 07:14 PM)adrii Wrote: Hi officialsm Thank you I will use it for a week so i will let you know RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - adrii - 05-05-2021 Hi Francesco Thanks for the feedback on the fix. I'll check it on Volumio, and then I'll update the repository. Regarding your ALSA problem, I have the default _sndaloop.conf with 'type route' and 'hw:Loopback' Code: pcm.!_audioout { And I am running mpd_oled with the start-cava-on-play fix and plughw:Loopback Code: /usr/local/bin/mpd_oled -o 6 -b 21 -g 1 -f 20 -c alsa,plughw:Loopback,1 And the Jazz24 radio station is working fine for me. Adrian. RE: 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi - fdealexa - 05-05-2021 (05-05-2021, 05:47 AM)adrii Wrote: Hi Francesco Hi Adrian, For the Alsa: I took that if the mpd_oled has lounched with plughw, the file that create the output had to be chance to plughw too. Clearly it is not. I will continue the tests with the sndaloop unmodified. Thanks and regards, Francesco |