corrobor wrote: > I summarize the solution: > 1)Login into SSH shell. Turn off your dac and then turn on. Digit DMESG > and find the string "idVendor" and "idProduct" of your DAC (they are two > strings of four characters). > 2)Digit "sudo nano /etc/udev/rules.d/10-dac.rules" and paste this > string: SUBSYSTEM=="usb", ACTION=="add", ATTRS{idVendor}=="xxxx", > ATTR{idProduct}=="yyyy", RUN+="/home/tc/dac.sh" where xxxx and yyyy are > what you found in the previous step. > 3)Digit "sudo nano /home/tc/dac.sh" and past this strings: > #!/bin/sh > giar=$(sudo /usr/local/etc/init.d/squeezelite status) > if [ "$giar" = "Squeezelite not running." ]; > then > sudo /usr/local/etc/init.d/squeezelite restart > fi > 4)Digit "sudo chmod 777 /home/tc/dac.sh" to make the script executable. > 5)Digit "sudo nano /opt/.filetool.lst" and add at the end of file this > two strings to backup the mod: > home/tc/dac.sh > etc/udev/rules.d/10-dac.rules > 6)Digit pcp br to backup and reboot. > It works
Apologies in advance, I'd like to try this but as I'm a complete noob to this, but I have questions: A. After copy/pasting in the text in step #2 and substituting your dac's identifiers, do you type "control o", then "control x", wait for the cursor to return, and then proceed to step #3? B. I am not clear if these lines, below, are part of what needs to be copy/pasted and saved in step #3, or if those lines are a separate operation that happens after saving the text that comes before these lines? then sudo /usr/local/etc/init.d/squeezelite restart fi C. After doing step #3 and copy/pasting the text in, do you type "control o" and then "control x" and then just wait for the cursor to return and proceed to type in the text of step #4? D. If yes to question C, after typing in the text of step #4 what do you do....hit enter and wait for the cursor to return? E. Do you type in "control o" and "control x" after adding the two text lines in step 5 and then do/type step #6, or just add the two text lines and then "type pcp br" without typing "control o" or "control x"? Thanks! Rg System information ------------------------ Main: RPI4B/PiCorePlayer/LMS> RPI4B/piCoreplayer/Squeezelite > USB>RME ADI-2 DAC > Benchmark AHB2 > Revel Performa F208 speakers, 2X REL R-305 subs. Home Theatre: RPI4 B/HifiBerry Dac+ Pro>Pioneer VSX 919 > Energy Take 5 Classic 5.1. LMS 8.1.0 - 1608700893 on RPI4B with 1tb Samsung T5 SSD. ------------------------------------------------------------------------ rgro's Profile: http://forums.slimdevices.com/member.php?userid=34348 View this thread: http://forums.slimdevices.com/showthread.php?t=113661 _______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix