First, RadioShark blue LED is always on as soon as I plug it in USB port.
If I want switch off, I have to type "./shark2 -blue 0".
So, in SBS advanced settings for RadioSHARK player I choose "Red LED on while radio playing".
Now, in SBS, I go for Manual Tune and enter 103. SBS right panel show RadioSHARK icon and "shark://103?Title=FM 103.0 MHz.
But no sound and no change on radioSHARK led.
So, response (b).
Results 41 to 50 of 86
-
2010-04-12, 14:42 #41Junior Member
- Join Date
- Mar 2010
- Posts
- 15
-
2010-04-12, 15:55 #42Senior Member
- Join Date
- Oct 2005
- Location
- Ireland
- Posts
- 11,252
Since the led doesn't change then either
* plugin is not running properly
* shark2 is not setup correctly.
To check shark2 settings please get a listing of current setting by doing something like
ls -l Cache/InstalledPlugins/Plugins/SharkPlay/Bin/shark2
Then copy output to a post.
The output should look something like
-rwsr-sr-x 1 root root 16066 2008-11-07 15:52 shark2
-
2010-04-12, 17:02 #43Junior Member
- Join Date
- Mar 2010
- Posts
- 15
-rwxrwxrwx 1 squeezeboxserver squeezeboxserver 16066 2008-11-07 15:52 shark2
Doing exactly the command "ls -l Cache/InstalledPlugins/Plugins/SharkPlay/Bin/shark2" doesn't work because of my "cache" folder has first letter in lower case.
but "ls -l cache/InstalledPlugins/Plugins/SharkPlay/Bin/shark2" give :
-rwxrwxrwx 1 squeezeboxserver squeezeboxserver 16066 2008-11-07 15:52 cache/InstalledPlugins/Plugins/SharkPlay/Bin/shark2Last edited by finizi; 2010-04-12 at 17:07.
-
2010-04-12, 17:15 #44Senior Member
- Join Date
- Oct 2005
- Location
- Ireland
- Posts
- 11,252
The "Cache" name depends on your installation and varies nu distro, OS and user settings - that is why I wrote "something like"
You seem to be running all the install tests as "root" and not logged in as the same user which runs SBS. "su" is not the same as logged in.
To get the LED working and shark2 tuning.
1. Change permissions of shark2
chmod +s shark2
2. Change owner and group of shark2 to root.
Run test again and see if LED goes on/off.
-
2010-04-12, 17:58 #45Junior Member
- Join Date
- Mar 2010
- Posts
- 15
yes, I am running all the install tests as "root" and not logged in as the same user which runs SBS. I suppose this user is "squeezeboxserver" but I dont't know the password.
ls -l give now :
-rwxrwxrwx 1 root root 16066 2008-11-07 15:52 shark2
I ran test again and nothing changed.
-
2010-04-12, 22:44 #46Senior Member
- Join Date
- Oct 2005
- Location
- Ireland
- Posts
- 11,252
The "chmod +s" has failed - you need a "s" in the permissions for shark2.
-
2010-04-13, 10:55 #47Junior Member
- Join Date
- Mar 2010
- Posts
- 15
Well,
"ls -l shark2" give me :
-rwsrwsrwx 1 root root 16066 2008-11-07 15:52 shark2
Now, when I manual tune via SBS, LED don't changes and no sound.
But tune is OK.
I test with your command line
"arecord -c 2 -f S16 -r 44100 -D hw:0,0 | flac -cs --totally-silent --compression-level-0 - >sharkrecord.flc"
and I record the station tuned via SBS
-
2010-04-13, 12:25 #48Senior Member
- Join Date
- Oct 2005
- Location
- Ireland
- Posts
- 11,252
Can you enable debugging (Webui Settings/Advanced/Logging/plugin.sharkplay DEBUG then click Apply).
Note time, do a test and then copy the log message from start time into a post.
-
2010-04-13, 13:56 #49Junior Member
- Join Date
- Mar 2010
- Posts
- 15
Wonderfull
I'm learning a lot of things...
[10-04-13 22:20:54.0390] Plugins::SharkPlay::Plugin::webManualTune (158) webManualTune
[10-04-13 22:20:54.0402] Plugins::SharkPlay::Plugin::webManualTune (171) Manual Tune: shark://105.5
[10-04-13 22:20:54.0559] Plugins::SharkPlay::Fork::go (83) Fork executing 'shark2' with '-red 1'
[10-04-13 22:20:54.0571] Plugins::SharkPlay::Fork::go (84) Fork actual executing 'exec "/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/SharkPlay/Bin/shark2" -red 1 2> "/var/lib/squeezeboxserver/cache/sharkforkout25.txt"'
[10-04-13 22:20:54.0672] Plugins::SharkPlay::Fork::go (92) Child task (4315) forked: exec "/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/SharkPlay/Bin/shark2" -red 1 2> "/var/lib/squeezeboxserver/cache/sharkforkout25.txt"
[10-04-13 22:20:54.0686] Plugins::SharkPlay::Fork::go (93) Child task is alive
[10-04-13 22:20:54.1830] Plugins::SharkPlay::SHARK::new (119) Full URL= shark://105.5?Title=FM 105.5 MHz Format=flc Freq=105.5
[10-04-13 22:20:54.1866] Plugins::SharkPlay::SHARK::new (147) about to execute:"/usr/bin/arecord" -c 2 -f S16 -r 44100 -D hw:0,0 | "/usr/share/squeezeboxserver/Bin/i386-linux/flac" -cs --totally-silent --compression-level-0 -
[10-04-13 22:20:54.1897] Plugins::SharkPlay::Fork::go (83) Fork executing 'shark2' with '-fm 105.5'
[10-04-13 22:20:54.1909] Plugins::SharkPlay::Fork::go (84) Fork actual executing 'exec "/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/SharkPlay/Bin/shark2" -fm 105.5 2> "/var/lib/squeezeboxserver/cache/sharkforkout26.txt"'
[10-04-13 22:20:54.2013] Plugins::SharkPlay::Fork::go (92) Child task (4316) forked: exec "/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/SharkPlay/Bin/shark2" -fm 105.5 2> "/var/lib/squeezeboxserver/cache/sharkforkout26.txt"
[10-04-13 22:20:54.2028] Plugins::SharkPlay::Fork::go (93) Child task is alive
[10-04-13 22:20:54.3045] Plugins::SharkPlay::Fork::go (83) Fork executing 'shark2' with '-red 0'
[10-04-13 22:20:54.3057] Plugins::SharkPlay::Fork::go (84) Fork actual executing 'exec "/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/SharkPlay/Bin/shark2" -red 0 2> "/var/lib/squeezeboxserver/cache/sharkforkout27.txt"'
[10-04-13 22:20:54.3199] Plugins::SharkPlay::Fork::go (92) Child task (4320) forked: exec "/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/SharkPlay/Bin/shark2" -red 0 2> "/var/lib/squeezeboxserver/cache/sharkforkout27.txt"
[10-04-13 22:20:54.3215] Plugins::SharkPlay::Fork::go (93) Child task is alive
[10-04-13 22:20:54.3369] Plugins::SharkPlay::Fork::checkFork (128) Forked task 4315 is not alive
[10-04-13 22:20:54.3387] Plugins::SharkPlay::Fork::checkFork (137) Forked task complete, invoking callback
[10-04-13 22:20:54.3400] Plugins::SharkPlay::Fork::checkFork (146) Deleting Bat and output files /var/lib/squeezeboxserver/cache/sharkforkout25.txt
[10-04-13 22:20:54.5247] Plugins::SharkPlay::Fork::checkFork (128) Forked task 4316 is not alive
[10-04-13 22:20:54.5262] Plugins::SharkPlay::Fork::checkFork (137) Forked task complete, invoking callback
[10-04-13 22:20:54.5277] Plugins::SharkPlay::Fork::checkFork (146) Deleting Bat and output files /var/lib/squeezeboxserver/cache/sharkforkout26.txt
[10-04-13 22:20:55.3231] Plugins::SharkPlay::Fork::checkFork (128) Forked task 4320 is not alive
[10-04-13 22:20:55.3247] Plugins::SharkPlay::Fork::checkFork (137) Forked task complete, invoking callback
[10-04-13 22:20:55.3260] Plugins::SharkPlay::Fork::checkFork (146) Deleting Bat and output files /var/lib/squeezeboxserver/cache/sharkforkout27.txt
And a closer look at the shark when tuning show red LED flashing.
-
2010-04-13, 14:42 #50Senior Member
- Join Date
- Oct 2005
- Location
- Ireland
- Posts
- 11,252
If LED goes on and then off - it looks like the arecord / flac command is failing.
To confirm can you also add more logging set player.source to INFO as well as plugin.sharkplay to DEBUG and click apply.
Post log as before.


Reply With Quote
