Reboot changes USB/MIC Deviceorder
I´ve got multible USB devices installed. One simple mic and also a USB webcam with mic for MMM-Facerecognition.
Card 1: USB mic for GAssistant
Card 2: USB Cam for FaceRecog
Sometimes after reboot the device order is twisted and GAssist kills the Facrecog Module in case of trying to initialize the mic of the usb camera instead.
I´m not sure if there is a way to fix the device order on boot because i think this depends on which device initializes first at reboot.
Couldn´t figure out yet where the device config: "plughw:1", is used and translated to the "real" USB Device in GoogleAssist.
Can you please tell me the file ... so i can modify it for my needs as a workarround?
Otherwise do you know a way to set a fixed USB device order ?
RPi4 Buster 32Bit
Cam: Logitech Cam 920
Mic: Jabra EVOLVE 20 MS
And naturally it's not a bug by MM or by GA, it's really a RPI firmware bug.
It have been correctly some month ago but it come back a now... (I have the same at home)
So wait and see ... I can't do anything at now
Ok thanks for your relpy. But i think it is a GA bug at all. You should rather get the device names from arecord -l than the devicenumbers. Nobody is able to change USB hotplug behavior. I switched to raspi cam temporaly so the problem is readjourned.
Gonna go to write a little bash script to solve it for my needs. Idea is to search the arecord -l string for the string "Karte" or " Card". Then i can cast the characters afterwards to determine the right devicenumber for my known devicename "Jabra EVOLVE 20 MS" and update the config,js early before MM starts at rc.local bootup.
Please think about to implement device names instead of device numbers for further releases. I mean, there is a nice audio config wizard where i can choose a device and get a copy paste sample config. But the numbers difffer after reboot ? ... thats no smart solution for a smart mirror
Ah... If you think that, it's really funny
Do as you want so
GA change arecord card value...
Boot -> Firmware -> load any device driver - > launch all service (USB, Audio, video,.internal device, wifi,... ) -> launch video interface -> login -> any background program for interface ->... MM...
Really do you use Linux?? I use it... (I hate windows)
Now if you think an record command used on GA can change your sound card order...
After all source is on git hub just inspect
It's so funny
I will pin this issue, sorry
i think you don´t got what i mean .... thats funny
if you are using linux you should be able to handle os behavior in your add-ons right ?!
A wizard which presents random numbers is unuseable ..... after reboot new world order
GA should not handle USB order behavior ... but you could be clever and handle this by device names instead of numbers which are supplied by a changing sequence from arecord.
My suggestion is a workaround to close the gap in your software ... not elegant but simple to reproduce.
Fingerpointing to "i do not know who?" "it was solved" "now it re-appeared" ..."just wait"... who helps this ?!
In fact i can solve the issue for me... and also without modifying your sources, but
technically it is a case for you
Go for Device Names not Numbers !!!
So, Read arecord help, try and play with it