WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: TCL with Deadbeef for a newbie  (Read 24584 times)

Offline bibo01

  • Newbie
  • *
  • Posts: 27
Re: TCL with Deadbeef for a newbie
« Reply #30 on: August 18, 2013, 04:39:09 AM »
I would like to issue a command in order to interrogate my usb audio driver and then possibly change some settings.
From what I read I thought that "modprobe snd-usb-audio" would do, but even if I insert "sudo" as you suggested nothing happens.
Have any idea?

If I write "sudo modprobe  snd-usb-audio  nrpacks=20" after unplugging usb, it accepts it.
If I want to load the snd-usb-audio module with the parameter "nrpacks=20" or 1, how do I include it into the boot script?
Shall I add into boolocal.sh:
/sbin/modprobe  snd-usb-audio  nrpacks=20
(I got the hint from here: http://forum.tinycorelinux.net/index.php/topic,7330.5/wap2.html)
How?
« Last Edit: August 18, 2013, 06:21:38 AM by bibo01 »

Offline bibo01

  • Newbie
  • *
  • Posts: 27
Re: TCL with Deadbeef for a newbie
« Reply #31 on: August 18, 2013, 09:28:22 AM »
...
If I write "sudo modprobe  snd-usb-audio  nrpacks=20" after unplugging usb, it accepts it.
If I want to load the snd-usb-audio module with the parameter "nrpacks=20" or 1, how do I include it into the boot script?
Shall I add into boolocal.sh:
/sbin/modprobe  snd-usb-audio  nrpacks=20
(I got the hint from here: http://forum.tinycorelinux.net/index.php/topic,7330.5/wap2.html)
How?
I think I can do it with Editor going back to root till I find opt/bootlocal.sh.
Am I right?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: TCL with Deadbeef for a newbie
« Reply #32 on: August 18, 2013, 10:44:07 AM »
Yes, your syntax is correct, and yes, the file is /opt/bootlocal.sh.
The only barriers that can stop you are the ones you create yourself.

Offline bibo01

  • Newbie
  • *
  • Posts: 27
Re: TCL with Deadbeef for a newbie
« Reply #33 on: August 29, 2013, 10:08:41 AM »
Can you please suggest me a VNC client (like UltraVNC) in the TCL repository?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: TCL with Deadbeef for a newbie
« Reply #34 on: August 29, 2013, 11:45:10 AM »
Hi bibo01
I can't recommend a specific package, but here is a list of available packages containing  vnc  in the package name:
Code: [Select]
gtk-vnc-dev.tcz
gtk-vnc-locale.tcz
gtk-vnc-python.tcz
gtk-vnc.tcz
libvncserver-dev.tcz
libvncserver.tcz
realvnc.tcz
tigervnc-viewer-doc.tcz
tigervnc-viewer-locale.tcz
tigervnc-viewer.tcz
tightvnc.tcz
vncrec.tcz
x0vncserver.tcz
x11vnc.tcz
Also in the repo are  vino  and  vinagre. There may be others.

Offline bibo01

  • Newbie
  • *
  • Posts: 27
Re: TCL with Deadbeef for a newbie
« Reply #35 on: August 29, 2013, 08:08:45 PM »
Thanks.
I DL and Load Realvnc as I knew it already.
Its dependecies are perl5, xlibs_support (I DL xlibs) and x0vncserver, so I DL those as well.
Realvnc icon does not appear on desktop.
What do I have to do to use it?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: TCL with Deadbeef for a newbie
« Reply #36 on: August 29, 2013, 08:19:43 PM »
Hi bibo01
There is no  .desktop  file for  realvnc  and therefore no icon. Start it from the command line using a terminal. The extension
contains four executables:
Code: [Select]
usr/local/bin/Xvnc4
usr/local/bin/vnc4config
usr/local/bin/vnc4server
usr/local/bin/xvnc4viewer
One of these is what you are looking for.

Offline bibo01

  • Newbie
  • *
  • Posts: 27
Re: TCL with Deadbeef for a newbie
« Reply #37 on: September 01, 2013, 01:49:39 AM »
Thanks for your continuous help.

I would like your help to write a little shell script.
Through Jack a Win PC is going to send audio data over the network to a small jack enabled TCL system acting as buffer and playing through Alsa.
For this purpose I have written an exutable "start_jack" to run jack with certain settings.

Now I would like a shell script that:
- waits for say 10 seconds (to make sure the DAC is running and seen by TCL)
- then runs start_jack
- then waits another 5 seconds
- then runs "jack_load netmanager".

Where do I have to write it? In bootlocal.sh, .xsession, ...?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: TCL with Deadbeef for a newbie
« Reply #38 on: September 01, 2013, 02:40:05 AM »
Hi bibo01
You could add the commands to bootlocal.sh, or you could create the script in  /home/tc/local/bin  and call it from
bootlocal.sh. If you wish to delay execution until after the GUI is up, you can place the commands in a file under
/home/tc/.X.d.

Offline bibo01

  • Newbie
  • *
  • Posts: 27
Re: TCL with Deadbeef for a newbie
« Reply #39 on: September 01, 2013, 06:12:44 AM »
Thanks.
Can you please tell me what to write in the script? I don't know  :-\ ???

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: TCL with Deadbeef for a newbie
« Reply #40 on: September 01, 2013, 12:47:35 PM »
Hi bibo01
Code: [Select]
#!/bin/sh
sleep 10
start_jack
sleep 5
jack_load netmanager
I'm not familiar with the use of  jack  and assume if you execute those commands from the command line they work.
If your  start_jack  script is written so it does not return to a command promt, you'll need to background it like this:
Code: [Select]
start_jack &

Offline bibo01

  • Newbie
  • *
  • Posts: 27
Re: TCL with Deadbeef for a newbie
« Reply #41 on: September 02, 2013, 02:19:06 AM »
Hi bibo01
Code: [Select]
#!/bin/sh
sleep 10
start_jack
sleep 5
jack_load netmanager
I'm not familiar with the use of  jack  and assume if you execute those commands from the command line they work.
If your  start_jack  script is written so it does not return to a command promt, you'll need to background it like this:
Code: [Select]
start_jack &
Yes, those commands almost work.
There is just a little hicup...
From command line I run start_jack with: ./start_jack
However, because of an error which does not stop jack from starting, I do not go back to prompt.
If I write "start_jack &", I go back to prompt only after pressing Enter.
Can you please tell me what I require to go back to prompt during a script?

PS: I told you I was a newbie  :-[

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: TCL with Deadbeef for a newbie
« Reply #42 on: September 02, 2013, 09:21:35 AM »
Pressing Enter just causes an additional prompt to be displayed.
The first prompt was overwritten by output from the backgrounded "start_jack".
The Enter was unnecessary. I just caused the shell to produce a prompt on a new line.

Offline bibo01

  • Newbie
  • *
  • Posts: 27
Re: TCL with Deadbeef for a newbie
« Reply #43 on: September 03, 2013, 01:18:16 AM »
Code: [Select]
#!/bin/sh
sleep 10
start_jack
sleep 5
jack_load netmanager
I have tried to insert the above into bootlocal.sh, but it does not seem to work.
I have also tried ./start_jack - same result.
If I use "./start_jack" and "jack_load netmanger" from command line, it works.
What can I change in the above script to make it work?

Furthermore, is there an easy way to check if Jack is running?
I have been loading qjackctl to do it...

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: TCL with Deadbeef for a newbie
« Reply #44 on: September 03, 2013, 08:48:36 AM »
You need to use the full path to start_jack.  The current directory when running bootlocal.sh is surely not what you are assuming.