O.K...seems to work now. Might have been a browser refresh issue all
along---apologies, a rookie mistake. When I see the pCP Main Page after
reboot with dac off, Squeezelite was shown "OFF" as would be expected.
Then, after powering the dac on, the page still showed it as "OFF" but
then, when I manually refreshed the page, it showed Squeezelite as
"ON".
Answers to your questions:
1. Yes.
2. Yes.
3. Yes.
4. Yes.
5. When I type that, I get only this (not the other 6 lines you
mentioned):
Installation complete
Squeezelite is now set up to autostart/stop with DAC power
Backup and reboot ('pcp br') to enable
--------------------
So, finally, does that User Command (/home/tc/SQLITE_control.sh find
DAC51892395' in my case) need to stay Tweaks or do I delete it??
Cheers...
chill wrote:
The latest version of the script did not change the functionality
compared to the one before (maybe I need to start using version numbers,
because I can see that there may be some confusion already). The only
changes were to make 'install' fail a bit more gracefully if the DAC
wasn't present, and to make sure that the user types 'sudo' in front of
the 'install' and 'uninstall' options.
So if you had the previous version working (the one you installed after
manually removing the old rules file and removing the User Command from
the Tweaks page), then I'm struggling to see that simply replacing the
script with this version can have caused this.
If you have disabled the 'stop' function with the '#' character (one or
both lines is up to you: in front of the 'sudo' line prevents the stop
command working, in front of the 'echo' line also prevents it from
reporting in the log file, so both is better), and the 'start' function
isn't working, then the script is now doing nothing! So it's possible a
typo has been introduced into your version of the script causing it to
fail to run. So let's do a few checks:
1) Do you have a file called 10-DAC51892395.rules in /etc/udev/rules.d?
2) Is it the only file beginning with '10-' in that location?
3) Is that file listed at the end of /opt/filetool.lst?
4) Do you see the following lines towards the top of /opt/bootlocal.sh?
Code:
--------------------
echo "Starting SQLITE-control.sh from /opt/bootlocal.sh..." | tee -a
/var/log/pcp_boot.log
/home/tc/SQLITE-control.sh find DAC51892395 &
--------------------
5) What happens when you type *
Code:
--------------------
'sudo SQLITE-control.sh install'
--------------------
You should see something like the output below (with 'DAC51892395'
instead of 'DAC'). After running that command, does the DAC behaviour
change?
Code:
--------------------
tc@pCPLounge:~$ sudo ./SQLITE-control.sh install
1) Squeezelite output device found in /usr/local/etc/pcp/pcp.cfg = DAC
2) DAC found on card1
3) DAC idVendor = 08bb and idProduct = 2704
4) udev rules written to /etc/udev/rules.d/10-DAC.rules
5) etc/udev/rules.d/10-DAC.rules added to /opt/.filetool.lst
6) SQLITE-control.sh added to /opt/bootlocal.sh
Installation complete
Squeezelite is now set up to autostart/stop with DAC power
Backup and reboot ('pcp br') to enable
--------------------
*EDIT: The DAC must be connected when that command is issued
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.2 - 1612773843 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
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix