hi, I am getting crazy by trying to get a system into autorun mode for an installation. unfortunately I don´t have internet access at the place where the machine is, so I will type some questions and try out everything later. It is a CCRMA Distro (2.6 kernel) and a hdsp card. I need to have 4 channel in out, midi. I can start the things by hand, but in autostart I think I mixed up the correc order/sequence to start the processes. (at least I think that is the problem...) my first attempt was to load jack, and then pd. the hdsp kept quiet. then I tried to run jack, then the hdsploader/hdspmixer and then pd, still no sound. After some listsearch I think I should do it like: hdsploader, hdspmixer, jack, pd. Does anybody know, if this will work? has someone experience with more sophisticated autostart mechanisms, like, which programs need run as a minimum, how to run hdspmixer from a shell (I would like to run pd in -nogui mode), how to safely unmount the harddrives after booting or no harddrives at all (maintenance by the museum personal is only turning on/off the fuses of the main electric circuit in the morning/evening). I tried many different attempts to this topic, but still no satisfying solution.
thanks, marius.
marius schebella wrote:
hi,
After some listsearch I think I should do it like: hdsploader, hdspmixer, jack, pd. Does anybody know, if this will work?
this should work (at least this is the order we are doing by hand)
has someone experience with more sophisticated autostart mechanisms, like, which programs need run as a minimum, how to run hdspmixer from a shell (I would like to run pd in -nogui mode), how to safely unmount the
no chance to run hdspmixer from a shell at all. but somehow it should be possible to achieve the same via alsactl...
harddrives after booting or no harddrives at all (maintenance by the museum personal is only turning on/off the fuses of the main electric
you could mount the harddrives read only (and put /var on a ramdisk) or even better, you could try to make your system boot from a CD, so you could do without a harddisk at all.
mfg.gr.sdf IOhannes
hi marius,
has someone experience with more sophisticated autostart mechanisms, like, which programs need run as a minimum, how to run hdspmixer from a shell (I would like to run pd in -nogui mode), how to safely unmount the
no chance to run hdspmixer from a shell at all. but somehow it should be possible to achieve the same via alsactl...
http://www.alsa-project.org/alsa-doc/doc-php/template.php?module=hdsp describes, how to use amixer to set the mixer state instead of hdspmixer ...
harddrives after booting or no harddrives at all (maintenance by the museum personal is only turning on/off the fuses of the main electric
hm ... to keep maintenance low, it might be a good idea not to switch of the machines at all ...
cheers ... tim
After some listsearch I think I should do it like: hdsploader, hdspmixer, jack, pd. Does anybody know, if this will work?
this should work (at least this is the order we are doing by hand)
this also the order in which my card works.
however, after unplugging the hdsp card from electricity, I always have to boot my computer twice. first time I boot and do all the junk, the hdsp card looks like it is working, but no sound. on the second boot, everything works fine. note: I only need to do this when I unplug the hdsp card. if the hdsp is plugged into electricity between boots, then I can carry on without booting twice.
has someone experience with more sophisticated autostart mechanisms, like, which programs need run as a minimum, how to run hdspmixer from a shell (I would like to run pd in -nogui mode), how to safely unmount the
no chance to run hdspmixer from a shell at all. but somehow it should be possible to achieve the same via alsactl...
sure you can run hdspmixer.
make an ".xinitrc" file in your home directory. in it put something like:
hdspmixer &
you can also safely put other stuff in there if you like:
jackd -d alsa &
pd -jack mypathc.pd &
xterm
but you might be better off doing this in some other star script and killing X after you know hdspmixer has been run. you only need to run hdspmixer once - this initializes the card somehow.
to login to X automagically
use mingetty on tty1 with the option --autologin you set that in /etc/inittab
mine says this: 1:2345:respawn:/sbin/getty 38400 tty1
change it to something like this: 1:2345:respawn:/sbin/mingetty --autologin myusername tty1
where "myusername" is the name you want to log into.
then in .bash_profile under "myusername", you'll want somthing to automatically startx, like this:
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then startx fi
additionally, you can add a cron job to turn off the machine at a certain time.....and set the bios for the machine to turn on at a certain time
as you can see, I am doing exactly the same thing as you are. :)
alles gute -gustl.
On Thu, 2005-09-29 at 16:33 +0200, august wrote: ...
sure you can run hdspmixer.
make an ".xinitrc" file in your home directory. in it put something like:
hdspmixer &
you can also safely put other stuff in there if you like:
jackd -d alsa & pd -jack mypathc.pd & xterm
but you might be better off doing this in some other star script and killing X after you know hdspmixer has been run. you only need to run hdspmixer once - this initializes the card somehow.
Yes, if you put
hdspmixer >anyfilename
in /etc/rc.local, it will sneakily load hdspmixer without invoking the GUI, so you don't need to start X at all.
Also, if your set the $JACK_START_SERVER environment variable with jack>=0.9.8 (I think), the jack server will start automatically when you start a client.
I don't know if this is of any use?
Jamie
Hi jamie,
didn't have the time to try it, but if it works it might seem the solution to one of the most annoying problems i have with my computer, so it definitely is of use!
thanks, Peter
On Thu, 29 Sep 2005, Jamie Bullock wrote:
Yes, if you put
hdspmixer >anyfilename
in /etc/rc.local, it will sneakily load hdspmixer without invoking the GUI, so you don't need to start X at all.
Also, if your set the $JACK_START_SERVER environment variable with jack>=0.9.8 (I think), the jack server will start automatically when you start a client.
I don't know if this is of any use?
Jamie
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi, thank you everyone for helping. I found out, that even without X you can start the hdspmixer. it will complain about no display, but initializes the mixer-settings. so that is similar to what jamie suggested later.
I had also problems running pd -jack as user, a different story, and I hopefully know how to solve now.
however, after unplugging the hdsp card from electricity, I always have to boot my computer twice. first time I boot and do all the junk, the hdsp card looks like it is working, but no sound. on the second boot, everything works fine. note: I only need to do this when I unplug the hdsp card. if the hdsp is plugged into electricity between boots, then I can carry on without booting twice.
august, do you do this by hand? or would it be possible to do that automatically?
marius.
however, after unplugging the hdsp card from electricity, I always have to boot my computer twice. first time I boot and do all the junk, the hdsp card looks like it is working, but no sound. on the second boot, everything works fine. note: I only need to do this when I unplug the hdsp card. if the hdsp is plugged into electricity between boots, then I can carry on without booting twice.
august, do you do this by hand? or would it be possible to do that automatically?
I do this by hand when I move my computer. otherwise, I always leave the RME card plugged in.
-gust.