TiMidity Initialization parameters Ubuntu 16.04

Asked by Snooper

TiMidity Initialization parameters Ubuntu 16.04?

How do I get The TiMidity daemon to start at Boot with the command line parameters: timidity -iA -B2,8 -Os1l -s 44100 ?
aplaymidi -l shows that the daemon Starts at boot and Initializes 4 ports. Problem is, that it does not work correctly without those specific TiMidity parameters being initialized. To merely reissue the parameters after boot, results in the initialization of additional ports, and it still does not function correctly. So I am Forced to first have to use terminal to issue the command: sudo killall -9 timidity ., Then enter Administrative Password., and then issue the correct initializing parameters: timidity -iA -B2,8 -Os1l -s 44100 . In order to have it only initialize 4 proper ports, and function correctly. Which is a time consuming royal pain to have to do every boot.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu ubuntu-docs Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

You could try tweaking the values for TIM_ALSASEQPARAMS and/or PARAMS in /etc/init.d/timidity

Revision history for this message
Snooper (ghos282) said :
#2

Would you please give me a step by step, or a link to the correct step by step article, on how a person who is new to Ubuntu Linux might go about doing that in order to achieve the specific task as outlined in this question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

You registered to Launchpad.net on 2013-05-26, so I am surprised hat you claim to be "new to Ubuntu Linux".

As far as I can see the startup script /etc/init.d/timidity contains the following assignments:
TIM_ALSASEQPARAMS="-B2,8"
PARAMS="${TIM_ALSASEQPARAMS} -iAD"

I suggest that you try editing that file and add the additional parameters (-Os1l -s 44100) to the assignment of PARAMS or TIM_ALSASEQPARAMS.

If that gives the desired result after a reboot, it is fine. If not then you should undo the modification by reinstalling the original version (sudo apt-get install --reinstall timidity-daemon).

Revision history for this message
Snooper (ghos282) said :
#4

Thank you Manfred for the response. I am not a computer geek, developer, nor programmer . And do not know how to correctly open such files for editing. So I haven's tried anything yet.

-- I believe I have stated in the past, that my real reason for switching to Ubuntu Linux was because within the span of a months time, Microsoft had used their 'security essentials' updates to BRICK three COA installs of Windows XP on three separate Machines, that had Microsoft's 'Advantage' on them: which computers at the time were being used with BOINC to help CERN Test for theory. At a time when Microsoft was Pushing to Increase Sales of what was Windows 8 at that time. How can you ever trust a company that Bricks COA installs just to push sales?

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

Try

sudo gedit /etc/init.d/timidity

and change the line

TIM_ALSASEQPARAMS="-B2,8"

into

TIM_ALSASEQPARAMS="-B2,8 -Os1l -s 44100"

save the file, close the editor and restart the computer.

Revision history for this message
Snooper (ghos282) said :
#6

Additional Information:
Changing this line as suggested, Returned the following in Terminal, (although the changed line seemed to save correctly :
.(gedit:1916): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

** (gedit:1916): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-enabled not supported

** (gedit:1916): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported

** (gedit:1916): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-position not supported

Advice also seems to be missing the iA Parameter
timidity -iA -B2,8 -Os1l -s 44100

End Result: Didn’t work.
So I reset the Parameter back to its original state.

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

The -iA parameter is set in a later part of the startup script /etc/init.d/timidity

"...
 TIM_ALSASEQPARAMS="-B2,8"
...
 PARAMS="${TIM_ALSASEQPARAMS} -iAD"
..."

So there is a reason that I did NOT tell you to add it.

What exactly happens? "End Result: Didn’t work" does not tell whether the program crashed, whether the program ran but with wrong parameters, or ...

If you execute the command
ps ax | grep timidity
immediately after booting (before killall and new start), what output do you get?

Revision history for this message
Launchpad Janitor (janitor) said :
#8

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.