So it's a success now.
I left only
Code: Select all
modprobe snd-usb-audio && modprobe snd-seq-device && modprobe snd_seq_midistring before 'exit 0' in the
soundon script.
/etc/modprobe.d/blacklist.conf is like that:
Code: Select all
blacklist snd_hda_nvidia
blacklist snd_emu10k1
blacklist snd_hda_intel
blacklist snd_hda_codec
blacklist snd_pcm
blacklist snd_hda_controller
blacklist snd_cmipci
blacklist snd_timer
blacklist snd_opl3_lib
blacklist snd_hda_codec_generic
#blacklist snd_seq_device
blacklist snd_util_mem
blacklist snd_ac97_codec
blacklist ac97_bus
blacklist snd_hwdep
blacklist snd_pcm
#blacklist snd_usb_audio
Soundon script is also modified as you indicated.
Code: Select all
if test -d /proc/asound || grep -q '^ *14 ' < /proc/devices
then
if ! sh $OSSLIBDIR/scripts/remove_drv.sh>> $LOG
then
echo Failed to disable conflicting sound drivers >> $LOG
echo Failed to disable conflicting sound drivers
echo Reboot and try running soundon again
echo
echo Also check that you have not compiled sound support statically
echo into the kernel.
exit 50
fi
fi replaced by
Code: Select all
if test -d /proc/asound || grep -q '^ *14 ' < /proc/devices
then
# if ! sh $OSSLIBDIR/scripts/remove_drv.sh>> $LOG
# then
# echo Failed to disable conflicting sound drivers >> $LOG
# echo Failed to disable conflicting sound drivers
# echo Reboot and try running soundon again
# echo
# echo Also check that you have not compiled sound support statically
# echo into the kernel.
# exit 50
# fi
lsmod | grep snd
fiNow on booting both oss and needed alsa midi modules are loaded.
lsmod shows:
Code: Select all
$ lsmod | grep snd
snd_seq_midi 4876 0
snd_seq_midi_event 6404 1 snd_seq_midi
snd_seq 51359 2 snd_seq_midi_event,snd_seq_midi
snd_usb_audio 153770 0
snd_usbmidi_lib 21282 1 snd_usb_audio
snd_hwdep 6272 1 snd_usb_audio
snd_rawmidi 20148 2 snd_usbmidi_lib,snd_seq_midi
snd_seq_device 6669 3 snd_seq,snd_rawmidi,snd_seq_midi
snd_pcm 90705 1 snd_usb_audio
snd_timer 20703 2 snd_pcm,snd_seq
snd 66322 8 snd_usb_audio,snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_usbmidi_lib,snd_seq_device
soundcore 6563 1 snd I made an alias to start jackd with
nsm,
a2jmidid -e is started by nsm:
Added string:
Code: Select all
(jackd -vv -d oss -p1024 -r48000 -n2 &); (non-session-manager &)Save and close
viNow:
Now I can start jackd and nsm at once by issuing command 'nsm' in a terminal. Nsm has an added a2jmidid client with the command a2jmidid -e If you don't know how to add clients to nsm, read the manuals about nsm. If you don't want to use nsm, you may run a2jmidid -e separately after running jackd by one command:
Code: Select all
(jackd -vv -d oss -p1024 -r48000 -n2 &); (sleep 3) ; (a2jmidid -e &)The same way you can run many applications at once:
Code: Select all
(jackd -vv -d oss -p1024 -r48000 -n2 &); (sleep 3) ; (a2jmidid -e &) ; (application2 &) ; (application3 &) ; (and so on &)Of course you can create an alias for such a long command in
~/.bash_aliases the way described above.
Musescore does not work with jackd1+oss

I remember it worked with jackd1+alsa. So i suspect the cause is not jackd version but lack of support of oss by musescore.