Comments (13)
Hi
If you are getting ALSA errors then I would guess that you are using the Volumio 3 mpd_oled plugin, in which case the initial place to ask for support is probably
https://community.volumio.org/t/plugin-mpd-oled-installation-configuration-plugin/44823
The error relates to making a copy of the audio for the spectrum display, which is why you don't see a similar issue when using pydpiper.
Adrian.
from mpd_oled.
If you’re using the plungin, I’d suggest removing it and installing mpd_oled as standalone. I don’t think ALSA is robust enough.
from mpd_oled.
Thanks both, removing the plugin has certainly helped, is it normal for the mpd_oled process to consume 90% of the CPU on a RPI 4 ?
from mpd_oled.
It is not normal to consume so much CPU. On a Pi Zero while playing a radio stream with mpd_oled running total CPU usage is around 90%. How many spectrum bars are specified and how many frames per second?
from mpd_oled.
16 bars and 20 frames, I set the i2c baudrate as recommended, I am playing fairly high resolution flac files , does it have an impact ?
from mpd_oled.
The mpd_oled settings you are using are fine. Is the high CPU usage when music is playing, or all the time? Could you restart the Pi, and if mpd_oled is still using a lot of CPU then post the output of
top -b -n 1
Adrian.
from mpd_oled.
What happens if you play low quality web radio?
from mpd_oled.
This is idle usage
While playing
from mpd_oled.
I just checked, its happening irrespective of stream quality
from mpd_oled.
Those look like the same screenshot, but I don't think it is important. Is this after a reboot? mpd_oled shouldn't be using that much CPU when it is idle, so I recommend reviewing the I2C settings. Use /dev/i2c-1 and check the baud rate has the right number of digits.
from mpd_oled.
oops sorry about that , i2c-1 is being used by the DAC HAT, while I could add it as a slave, I avoided the whole thing, and used /dev/i2c-4 instead like this
bash-5.0# cat /boot/userconfig.txt
Add your custom config.txt options to this file, which will be preserved during updates
dtoverlay=i2c-gpio,bus=4,i2c_gpio_sda=16,i2c_gpio_scl=25
dtparam=i2c_arm_baudrate=800000
MPD Oled Parameters
ExecStart=/usr/bin/mpd_oled -o 6 -b 16 -g 1 -f 20 -B 4 -a 3c
from mpd_oled.
I believe that the i2c-gpio driver is implementing the I2C protocol in software, and hence running on the CPU. If you use /dev/i2c-1 then the protocol is implemented in hardware and you will have a lower CPU usage.
Adrian.
from mpd_oled.
Thanks! I rewired to i2c-1 and everything is working well now, CPU usage is back down to 10%, you guys are awesome! thank you so much for the help much appreciated!
from mpd_oled.
Related Issues (20)
- Use of Timezone and oled display HOT 2
- Support an audio copy using ALSA on Moode (>= 7.1) HOT 23
- Volumio 2.878, 2.882 - installation from source fail HOT 8
- MoOde - ALSA loopback - SoX HOT 24
- hello how it use with mic without player HOT 35
- Volume - % HOT 2
- Mod main.cpp HOT 3
- Really solved? still have issue HOT 3
- Feature Request: Turn off display or screensaver after idle period HOT 3
- MPD OLED for Raspberry Pi VOLUMIO 3.0? HOT 37
- Display freezes on playback start (moOde 8.1.2) HOT 11
- Mpd_oled on a 128x64 RGB matrix HOT 3
- cp: cannot stat '/var/local/www/currentsong.txt': No such file or directory HOT 28
- Some potentially useful tips for defining the mpd_oled service for Volumio HOT 4
- 128x32 Monochrome OLED HOT 2
- Improve framerate by changing image data transmission HOT 2
- Option for showing Spectrum analyser only, when mpd is playing HOT 2
- Russian song titles are not displayed HOT 4
- MPD_oled over MoOde audio rel 8.3.2 HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpd_oled.