Hello!

I tried to build the same for my Harman/Kardon Soundsticks.
I found this in dmesg when I switch them off and on again:

Code:
--------------------
    [  126.710090] usb 1-1.4: USB disconnect, device number 4
  [  131.288928] usb 1-1.4: new full-speed USB device number 6 using xhci_hcd
  [  131.407372] usb 1-1.4: New USB device found, idVendor=05fc, 
idProduct=7849, bcdDevice= 0.01
  [  131.407387] usb 1-1.4: New USB device strings: Mfr=3, Product=1, 
SerialNumber=0
  [  131.407399] usb 1-1.4: Product: SoundSticks
  [  131.407411] usb 1-1.4: Manufacturer: harman/kardon
  [  131.440242] usb 1-1.4: Warning! Unlikely big volume range (=656), 
cval->res is probably wrong.
  [  131.440257] usb 1-1.4: [2] FU [PCM Playback Volume] ch = 2, val = 
-10496/0/16
  [  131.467984] input: harman/kardon SoundSticks as 
/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.2/0003:05FC:7849.0003/input/input2
  [  131.525338] hid-generic 0003:05FC:7849.0003: input,hidraw0: USB HID v1.00 
Device [harman/kardon SoundSticks] on usb-0000:01:00.0-1.4/input2
--------------------


So I used the following for the file
/etc/udev/rules.d/97-soundsticks.rules:

Code:
--------------------
    SUBSYSTEM=="usb", ACTION=="add", ATTRS{idVendor}=="05fc", 
ATTR{idProduct}=="7849" RUN+="sudo /home/tc/soundsticks.sh"
--------------------


And I used the following script (x-bit is set!) in
/home/tc/soundsticks.sh:

Code:
--------------------
    #!/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
  sudo /usr/local/sbin/alsactl restore
  
--------------------


I added the file /etc/udev/rules.d/97-soundsticks.rules to
/opt/.filetool.lst and did a backup. 

But nothing is happening! Does someone know what I am doing wrong?

For testing i added "sudo touch /home/tc/whatever" to the soundsticks.sh
file, but no file is created. So I assume that the udev rule is not
started.



pi4 4gb picoreplayer with lms and squeezelite for usb inside an argon
one case
pi3b+ (7\" display, hifiberry dac+ pro) picoreplayer with
squeezlite/jivelite for hifiberry and bluetooth headphone inside a
smartipi touch case
two airport express
ikea symfonisk
------------------------------------------------------------------------
carsten_h's Profile: http://forums.slimdevices.com/member.php?userid=69113
View this thread: http://forums.slimdevices.com/showthread.php?t=113661

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to