Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: playing music at X(Free86) time, startup music< Next Oldest | Next Newest >
Patrick Offline





Group: Members
Posts: 333
Joined: Sep. 2004
Posted: Sep. 16 2005,13:31 QUOTE

Hello Y'all,

I use sox.dsl (play) to play a tune (wav) when i am almost in Fluxbox/Xfree/X. See below:

Last lines of .xinitrc:

/opt/sox/play /cdrom/keep/wav/operatio.wav &
/opt/sox/play /cdrom/keep/wav/zarathustra.wav &
exec fluxbox 2>/dev/null

Now the first line works, the second line doesn't (but there is nothing wrong with it when i paste it into a term and run it)

1) What's wrong?
2) Can i first enter X(Free86)/Fluxbox and only THEN make the music start to play?


--------------
Usb-stick sandisk cruzer titanium 512 Mb:
DSL 2.3 (final)
Firefox (Mozilla 1.06)
WM -biff  -cdplay -clockmon -smixer -usic -top -net -biff -ifinfo -cpuload
gps vnc LinNeighborhood (samba) QtParted bdc
xawtv imagemagick xplanet
Back to top
Profile PM WEB 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Sep. 16 2005,13:36 QUOTE

It's probably because you are running both in the background, so they overlap.  Zarathustra won't play because the sound device is currently in use playing the first sound.  If you remove the ampersand from the first one, that will play and then be followed by Zarathustra while fluxbox loads.  This means nothing will happen while HAL is talking, so startup will take a couple seconds longer.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
Patrick Offline





Group: Members
Posts: 333
Joined: Sep. 2004
Posted: Sep. 16 2005,13:46 QUOTE

Did that, you're right. Thnx.

What happens now is this:

I get and "empty" X(free86), at the left hand corner is one of the wmapps which i use. zarathustra.wav plays, X(Free86) comes up and the wmapps are placed at the right side of the screen (where they belong). Xplanet (which i love!) displays the earth with clouds as a background. THEN hal talks and the xplanet-background disapears. (i start xplanet with a script: see below)


#!/bin/bash
cp /cdrom/keep/marker_file/earth /etc/xplanet/markers &
myvar=0
until [ $myvar -eq -1]
do
#wget http://spierepf.dyndns.org/~peter/clouds_2048.jpg ~/.xplanet/images
#wget http://xplanet.unixheads.com/xplanet/clouds_2048.php ~/.xplanet/images
wget http://xplanet.dyndns.org.nyud.net:8090/clouds/clouds_2048.jpg
cp /home/dsl/clouds_2048.jpg /home/dsl/.xplanet/images
xplanet -num_times 1 -longitude 5 -latitude 51 -date `date +%G%m%d.%H%M%S` -range 100 -radius 100 &
sleep 6000
myvar=$(( $myvar + 1 ))
sudo rm -f /home/dsl/clouds*.* &
done

[I]

I would like this:

X(free86) comes up (xplanet as background)
sound1
sound2
(xplanet stays on as background)


Its got to be an error in the script i think


--------------
Usb-stick sandisk cruzer titanium 512 Mb:
DSL 2.3 (final)
Firefox (Mozilla 1.06)
WM -biff  -cdplay -clockmon -smixer -usic -top -net -biff -ifinfo -cpuload
gps vnc LinNeighborhood (samba) QtParted bdc
xawtv imagemagick xplanet
Back to top
Profile PM WEB 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Sep. 16 2005,13:57 QUOTE

I don't know xplanet, but i think i can make a suggestion...

Does the xplanet program itself stay running? Does the background remain if you run your script manually after fluxbox loads? Is the background being replaced by the regular fluxbox wallpaper?

You might consider adding a "rootCommand" line to .fluxbox/init if the background is being changed by fluxbox.
rootCommand: /path/to/xplanet_script
This will override the background that is set from whatever style you use.  If this works, there is no need to run the script from .xinitrc. You could possibly also add your sounds to the script if it will improve the timing.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
Patrick Offline





Group: Members
Posts: 333
Joined: Sep. 2004
Posted: Sep. 16 2005,18:33 QUOTE

Thnx Mikshaw, your idea's are great. I've got my xplanet script running now as rootcommand. So when X(Free86) comes up, i hear my tunes and at the same time see my xplanet-background! (i also moved my email-notifier wmbiff in .xinitrc after the tunes that need to be played so it can't "steal focus" from my play-command when there is mail at boot-time)

Cheers!


--------------
Usb-stick sandisk cruzer titanium 512 Mb:
DSL 2.3 (final)
Firefox (Mozilla 1.06)
WM -biff  -cdplay -clockmon -smixer -usic -top -net -biff -ifinfo -cpuload
gps vnc LinNeighborhood (samba) QtParted bdc
xawtv imagemagick xplanet
Back to top
Profile PM WEB 
5 replies since Sep. 16 2005,13:31 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: playing music at X(Free86) time

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code