<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[audio problem]]></title><description><![CDATA[<p dir="auto">hi there, I am using my mirror as a jukebox<br />
and everything works fine on manual start<br />
hello lucy welcomes me  with a message and mmm jukebox plays my music<br />
with no problem, but i have used a bash file to autostart my mirror which works well except there is no audio until i close the mirror and  manual start it,<br />
could anyone please help<br />
thanks<br />
tommyk</p>
]]></description><link>https://forum.magicmirror.builders/topic/20254/audio-problem</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 02:16:53 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/20254.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 30 May 2026 06:44:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to audio problem on Wed, 03 Jun 2026 07:58:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Hi Sam<br />
turned my pi4 on this morning<br />
bluetooth speaker said I am now connected<br />
Magic Mirror started after a short pause<br />
hello lucy said hello and welcome to magic mirror jukebox<br />
I clicked on a jukebox button and woke the neighbors up . lol…joking<br />
and I thought (yippi) music played</p>
<p dir="auto">now, I mess around with so many different things at once I confuse myself<br />
so I dont know exactly what I done, but I did put a pound sigh at the start of the bash file<br />
and changed the sleep time to 30<br />
and done what you advised  , run start with x11 etc.<br />
Im not sure but I think I may have pasted some of your  pm2 script in terminal<br />
but whatever i did ,  thanks to you my problem is solved, I think you are a genius<br />
…<br />
my next project is to get  my android phone to control the mirror<br />
I tried mmm remote once and failed , so now that the autostart is working<br />
I will try that again<br />
thank you so much for all your help</p>
<p dir="auto">ps, I think I may be back to you regarding this remote module<br />
thank you<br />
tommyk</p>
]]></description><link>https://forum.magicmirror.builders/post/131255</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131255</guid><dc:creator><![CDATA[tommyk]]></dc:creator><pubDate>Wed, 03 Jun 2026 07:58:05 GMT</pubDate></item><item><title><![CDATA[Reply to audio problem on Wed, 03 Jun 2026 11:28:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tommyk" aria-label="Profile: tommyk">@<bdi>tommyk</bdi></a> glad you got it working</p>
<p dir="auto">As for remote control ,  open another topic. I’m sure someone can help</p>
]]></description><link>https://forum.magicmirror.builders/post/131259</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131259</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Wed, 03 Jun 2026 11:28:43 GMT</pubDate></item><item><title><![CDATA[Reply to audio problem on Wed, 03 Jun 2026 07:58:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Hi Sam<br />
turned my pi4 on this morning<br />
bluetooth speaker said I am now connected<br />
Magic Mirror started after a short pause<br />
hello lucy said hello and welcome to magic mirror jukebox<br />
I clicked on a jukebox button and woke the neighbors up . lol…joking<br />
and I thought (yippi) music played</p>
<p dir="auto">now, I mess around with so many different things at once I confuse myself<br />
so I dont know exactly what I done, but I did put a pound sigh at the start of the bash file<br />
and changed the sleep time to 30<br />
and done what you advised  , run start with x11 etc.<br />
Im not sure but I think I may have pasted some of your  pm2 script in terminal<br />
but whatever i did ,  thanks to you my problem is solved, I think you are a genius<br />
…<br />
my next project is to get  my android phone to control the mirror<br />
I tried mmm remote once and failed , so now that the autostart is working<br />
I will try that again<br />
thank you so much for all your help</p>
<p dir="auto">ps, I think I may be back to you regarding this remote module<br />
thank you<br />
tommyk</p>
]]></description><link>https://forum.magicmirror.builders/post/131255</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131255</guid><dc:creator><![CDATA[tommyk]]></dc:creator><pubDate>Wed, 03 Jun 2026 07:58:05 GMT</pubDate></item><item><title><![CDATA[Reply to audio problem on Mon, 01 Jun 2026 15:12:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tommyk" aria-label="Profile: tommyk">@<bdi>tommyk</bdi></a> yeh, but I wanted to explain WHY and WHAT you can DO…</p>
<p dir="auto">anytime, we’re here to help.<br />
I do the scripts to help users get MM up and running, and KEEP their systems running… feel successful…</p>
]]></description><link>https://forum.magicmirror.builders/post/131234</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131234</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 01 Jun 2026 15:12:32 GMT</pubDate></item><item><title><![CDATA[Reply to audio problem on Mon, 01 Jun 2026 15:09:08 GMT]]></title><description><![CDATA[<p dir="auto">wow, thats a lot of info, I will maybe have to ponder over that a while to let it sink in<br />
I will get back to you when I have  digested some of this info<br />
and hopefully gained some knowledge<br />
thank you again<br />
tommyk</p>
]]></description><link>https://forum.magicmirror.builders/post/131233</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131233</guid><dc:creator><![CDATA[tommyk]]></dc:creator><pubDate>Mon, 01 Jun 2026 15:09:08 GMT</pubDate></item><item><title><![CDATA[Reply to audio problem on Mon, 01 Jun 2026 14:41:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tommyk" aria-label="Profile: tommyk">@<bdi>tommyk</bdi></a> awesome… thanks…</p>
<p dir="auto">ps. I am the current author/maintainer of the scripted MM install and upgrade scripts.<br />
<a href="https://github.com/sdetweil/MagicMirror_scripts" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/sdetweil/MagicMirror_scripts</a><br />
referenced in the MM install doc, Alternative install methods…<br />
I provide the <a href="http://mm.sh" target="_blank" rel="noopener noreferrer nofollow ugc">mm.sh</a>.  and the pm2 setup to use it.<br />
if you say no during install, then I provide a separate script to add that after the fact</p>
<p dir="auto">I use pm2 because it fixes the one problem you have…</p>
<p dir="auto">crontab started mm from a background  script… BUT there is no EASY way to  restart it without reboot…(which really isn’t needed) , unless you change the  port like you found and start ANOTHER copy…</p>
<p dir="auto">pm2 has ONE tiny drawback/benefit…  its JOB is to START an app, AND KEEP IT RUNNING, if it fails for some reason, then it will get restarted… so, your old, crtl-q to quit, oops the app ends, pm2 will restart it</p>
<p dir="auto">to work around that, pm2 is a commandline command, so ctrl-m to minimze MM, then open a terminal window,<br />
ctrl-alt-t, and use pm2 status<br />
to see the apps running under pm2 control<br />
then using the name or number of the line with the app (I have a few apps under pm2 control)</p>
<pre><code>id │ name                │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
├────┼─────────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 8  │ MagicMirror         │ default     │ 2.32.0… │ fork    │ N/A      │ 0      │ 245… │ stopped   │ 0%       │ 0b       │ sam      │ disabled │
│ 7  │ MagicMirror 8       │ default     │ 2.31.0… │ fork    │ N/A      │ 0      │ 8    │ stopped   │ 0%       │ 0b       │ sam      │ disabled │
│ 10 │ MagicMirror-test    │ default     │ 2.37.0… │ fork    │ N/A      │ 0      │ 30   │ stopped   │ 0%       │ 0b       │ sam      │ disabled │
</code></pre>
<p dir="auto">so to restart my current test version MM, I need to use the number 10, or the name MagicMirror-test</p>
<pre><code>pm2 stop 10
pm2 start 10
</code></pre>
<p dir="auto">or</p>
<pre><code>pm2 restart 10
</code></pre>
<p dir="auto">a learning thing, under linux, raspios, … by convention commandline commands are required to provide easy access help, by responding to the --help parm</p>
<pre><code>pm2 --help 
</code></pre>
<p dir="auto">will do that… but ANY command should respond appropriately<br />
— back to the problem</p>
<p dir="auto">the <a href="http://mm.sh" target="_blank" rel="noopener noreferrer nofollow ugc">mm.sh</a> script he uses</p>
<pre><code>npm run start
</code></pre>
<p dir="auto">run start is a shortcut to npm run start</p>
<p dir="auto">starting in release 2.35 we changed the startup to use the Raspberrypi default wayland display environment.<br />
you can see this by examining the scripts: list in package.json (see below)<br />
BUT many are not using that, still on x11… SO,</p>
<p dir="auto">you need to change the script to use<br />
npm run start:x11<br />
(my <a href="http://mm.sh" target="_blank" rel="noopener noreferrer nofollow ugc">mm.sh</a> has that built in)</p>
<p dir="auto">a part the package.json scripts list (I added comments, not allowed in a json file)</p>
<pre><code>  "scripts": {
                "config:check": "node js/check_config.js",
                "postinstall": "git clean -df fonts vendor modules/default",
                "install-mm": "npm install --no-audit --no-fund --no-update-notifier --only=prod --omit=dev",
                "install-mm:dev": "npm install --no-audit --no-fund --no-update-notifier &amp;&amp; npx playwright install chromium",
                "lint:css": "stylelint 'css/**/*.css' 'defaultmodules/**/*.css' --fix",
                "lint:js": "eslint --fix",
                "lint:markdown": "markdownlint-cli2 . --fix",
                "lint:prettier": "prettier . --write",
                "prepare": "[ -f node_modules/.bin/husky ] &amp;&amp; husky || echo no husky installed.",
                "server": "node ./serveronly",
                "server:watch": "node ./serveronly/watcher.js",
                "start": "node --run start:wayland",    &lt;----------------------------  start launch start:wayland
                "start:dev": "node --run start:wayland -- dev",
                "start:wayland": "WAYLAND_DISPLAY=\"${WAYLAND_DISPLAY:=wayland-1}\" ./node_modules/.bin/electron js/electron.js --ozone-platform=wayland", &lt;-- start:wayland
                "start:wayland:dev": "node --run start:wayland -- dev",
                "start:windows": ".\\node_modules\\.bin\\electron js\\electron.js",
                "start:windows:dev": "node --run start:windows -- dev",
                "start:x11": "DISPLAY=\"${DISPLAY:=:0}\" ./node_modules/.bin/electron js/electron.js",
</code></pre>
<p dir="auto">anyhow after ALL THAT… i’d edit your existing <a href="http://mm.sh" target="_blank" rel="noopener noreferrer nofollow ugc">mm.sh</a> and increase the time from 20 to 30 to try and let the system settle down some more… this is just a test…</p>
<p dir="auto">if you want to switch to my pm2  setup, you can edit the crontab, and add a pound sign/hash  ‘#’ as the first char of your launch of <a href="http://mm.sh" target="_blank" rel="noopener noreferrer nofollow ugc">mm.sh</a>, this will make it a comment</p>
<p dir="auto">reboot so MM is not running (there are cool ways to make tools(scripts) that can solve that problem, but not trying to go there<br />
and then copy/paste the command to setup pm2 launch from my scripts repo… not git clone, just copy paste one line to a terminal window<br />
see <a href="https://github.com/sdetweil/MagicMirror_scripts#add-using-pm2-to-autostart-magicmirror-at-bootup" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/sdetweil/MagicMirror_scripts#add-using-pm2-to-autostart-magicmirror-at-bootup</a></p>
<p dir="auto">ps, i’m only a couple years younger then you…</p>
]]></description><link>https://forum.magicmirror.builders/post/131232</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131232</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 01 Jun 2026 14:41:54 GMT</pubDate></item><item><title><![CDATA[Reply to audio problem on Mon, 01 Jun 2026 14:00:45 GMT]]></title><description><![CDATA[<p dir="auto">well I tried pm2 method but could not get it to work<br />
so I found a utube vid by the fuzz guy on how to autostart magic mirror<br />
so I followed his instructions and finally got it to work<br />
<a href="https://www.youtube.com/watch?v=iqNHX8v8cPY" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.youtube.com/watch?v=iqNHX8v8cPY</a><br />
perhaps I did something wrong . as I had to try a few times before it would actually autostart<br />
cheers</p>
]]></description><link>https://forum.magicmirror.builders/post/131231</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131231</guid><dc:creator><![CDATA[tommyk]]></dc:creator><pubDate>Mon, 01 Jun 2026 14:00:45 GMT</pubDate></item><item><title><![CDATA[Reply to audio problem on Mon, 01 Jun 2026 10:51:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tommyk" aria-label="Profile: tommyk">@<bdi>tommyk</bdi></a> no nuisance at all.</p>
<p dir="auto">So, how did you setup to auto start. If you are using  pm2 then there are commands that can help you without editing the config file to change the port</p>
]]></description><link>https://forum.magicmirror.builders/post/131230</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131230</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 01 Jun 2026 10:51:51 GMT</pubDate></item><item><title><![CDATA[Reply to audio problem on Mon, 01 Jun 2026 08:14:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> hello again<br />
thanks for your help sam.<br />
I said I was a novice but neglected to say I am also a 77 year old fool, and I have just realized that I overlooked an issue which may be the problem I am having…so let me recap…</p>
<p dir="auto">when I start up my pi 4 my speaker says bluetooth is now connected, then after 20 seconds the mirror starts with no audio, so I close the mirror and paste npm in terminal… ok…<br />
then I just realized that the mirror wont start because the port is being used by another ?<br />
so I have to open config.js to change the port number…<br />
then the mirror opens up with audio and works fine…<br />
so it seems it is a port issue…but how to fix this, I have no idea lol.<br />
I just dont understand if it working ok when I change the port number , why is does not work on restart the next day.<br />
why is the port being used by another something or other…<br />
if the port was’nt being used then the mirror would autostart with no problem…I assume</p>
<p dir="auto">any advice on that would be appreciated, and sorry for being a nusance<br />
thanks again<br />
tommyk</p>
]]></description><link>https://forum.magicmirror.builders/post/131229</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131229</guid><dc:creator><![CDATA[tommyk]]></dc:creator><pubDate>Mon, 01 Jun 2026 08:14:39 GMT</pubDate></item><item><title><![CDATA[Reply to audio problem on Sun, 31 May 2026 11:15:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tommyk" aria-label="Profile: tommyk">@<bdi>tommyk</bdi></a> I understand</p>
<p dir="auto">Maybe there will be some info here</p>
<p dir="auto">After starting from boot , where the audio fails,<br />
Open the browser developers window<br />
ctrl-shift-i<br />
Select the console tab, and put juke in the filter field<br />
To see if there are any errors, usually marked in red</p>
<p dir="auto">If so,  copy paste them here</p>
<p dir="auto">Same keystroke to get out of dev window</p>
<p dir="auto">Let me know what you find</p>
<p dir="auto">Another test thing to try, is add a sleep 30<br />
In the script before launching MagicMirror to see if that makes a difference</p>
]]></description><link>https://forum.magicmirror.builders/post/131228</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131228</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 31 May 2026 11:15:19 GMT</pubDate></item><item><title><![CDATA[Reply to audio problem on Sun, 31 May 2026 05:14:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> Hi sam<br />
thanks for your reply, and thanks to everyone for all these wonderful modules<br />
firstly I must say that I am a complete novice ,but love messing about with this mirror thing<br />
I am running a pi 4 with debian 13 (trixie).<br />
so when I type in terminal (cd MagicMirror npm start) the mirror starts with audio… ie Manual start<br />
but when I created a bash file to autostart the mirror, which I got on utube from the fuzz guy<br />
the mirror starts up automatically when the pi has loaded up… but there is no audio…<br />
then if i click control and m to close the mirror and type in terminal the audio is on again.<br />
so it seems something is not loading on autostart.<br />
thats about all I know, sorry but I dont know how to show system info</p>
<p dir="auto">thanks<br />
tommyk</p>
]]></description><link>https://forum.magicmirror.builders/post/131227</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131227</guid><dc:creator><![CDATA[tommyk]]></dc:creator><pubDate>Sun, 31 May 2026 05:14:19 GMT</pubDate></item><item><title><![CDATA[Reply to audio problem on Sat, 30 May 2026 17:32:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tommyk" aria-label="Profile: tommyk">@<bdi>tommyk</bdi></a> looking at the code, I think the system is busy during bootup, and this causes an uncaught failure</p>
<p dir="auto">There is a new notification , sent after updateDom() is called, to inform the app that the content has been drawn.<br />
See<br />
<a href="https://docs.magicmirror.builders/module-development/notifications.html#system-notifications" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.magicmirror.builders/module-development/notifications.html#system-notifications</a></p>
<pre><code>MODULE_DOM_UPDATED
</code></pre>
<p dir="auto">I think the module needs to use that notification to wait to  start the play of the audio element it just added</p>
]]></description><link>https://forum.magicmirror.builders/post/131223</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131223</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 30 May 2026 17:32:37 GMT</pubDate></item><item><title><![CDATA[Reply to audio problem on Sat, 30 May 2026 10:57:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tommyk" aria-label="Profile: tommyk">@<bdi>tommyk</bdi></a> can you describe the environment,  how does the music get played?</p>
<p dir="auto">What do you mean by manual start bs auto?<br />
What version of MagicMirror are you running?</p>
<p dir="auto">Show the system info section of the output from startup</p>
<p dir="auto">As for your other post, all messages from users with reputation below 2 are reviewed before posting on the forum</p>
]]></description><link>https://forum.magicmirror.builders/post/131222</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/131222</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 30 May 2026 10:57:22 GMT</pubDate></item></channel></rss>