<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>78077</bug_id>
          
          <creation_ts>2004-03-20 17:47:29 +0000</creation_ts>
          <short_desc>&quot;Test Midi&quot; button does nothing when pressed.  Midi DOES work in other KDE apps</short_desc>
          <delta_ts>2006-09-24 13:13:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kcontrol</product>
          <component>kcmmidi</component>
          <version>unspecified</version>
          <rep_platform>Gentoo Packages</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dan Bullok">dan.kde</reporter>
          <assigned_to name="Antonio Larrosa">larrosa</assigned_to>
          <cc>dv5a</cc>
    
    <cc>info</cc>
    
    <cc>kde</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>81</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>217440</commentid>
    <comment_count>0</comment_count>
    <who name="Dan Bullok">dan.kde</who>
    <bug_when>2004-03-20 17:47:29 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.2.1)
Installed from:    Gentoo Packages
Compiler:          gcc (GCC) 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7) -O3 -mcpu=athlon-xp -march=athlon-tbird -pipe
OS:          Linux

Sound &amp; Multimedia-&gt;Sound System-&gt;General:
When I press the &quot;Test Midi&quot; button, nothing happens (no sound, no dialog, etc. - it acts like the button-press signal is unconnected).
Note that I am using the correct midi device on the &quot;Hardware&quot; tab.  kmid works just fine when playing, I don&apos;t need to make any settings adjustment, and I started with a clean slate (no kmidrc or kcmmidirc config files).  Command line players work fine, too.
I&apos;m using alsa-1.03, kernel 2.6.4.  SBLive! Value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>232557</commentid>
    <comment_count>1</comment_count>
    <who name="Dan Bullok">dan.kde</who>
    <bug_when>2004-05-14 02:47:57 +0000</bug_when>
    <thetext>Still broken in KDE 3.2.2, kernel 2.6.6.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>243180</commentid>
    <comment_count>2</comment_count>
    <who name="borisdigital">kdebugzilla</who>
    <bug_when>2004-06-22 15:37:58 +0000</bug_when>
    <thetext>still broken in kde 3.2.3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>252433</commentid>
    <comment_count>3</comment_count>
    <who name="Mark">mveinot</who>
    <bug_when>2004-07-25 06:05:19 +0000</bug_when>
    <thetext>Looking in the code this button appears to simply restart the Sound Server. It looks like no one ever bothered to implement it.

Here&apos;s the relevant code from the function:

void KArtsModule::slotTestMIDI()
{
    if (configChanged &amp;&amp; (userSavedChanges() == KMessageBox::Yes) || !artsdIsRunning() )
        restartServer();

    //KProcess test;
    //test &lt;&lt; &quot;artsplay&quot;;
    //test &lt;&lt; locate(&quot;sound&quot;, &quot;KDE_Startup_1.ogg&quot;);
    //test.start(KProcess::DontCare);
}

This is from KDE_HEAD CVS checked out July 24/2004.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>317579</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Welsh">munkiepoo</who>
    <bug_when>2005-02-23 18:31:37 +0000</bug_when>
    <thetext>still broken in kde 3.3.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>338824</commentid>
    <comment_count>5</comment_count>
    <who name="Mohd Asif Ali Rizwaan">maarizwan</who>
    <bug_when>2005-05-01 12:42:11 +0000</bug_when>
    <thetext>And STRAGELY ENOUGH &quot;Test MIDI&quot; is not working KDE 3.4.0!!! 

I have &quot;Slackware Linux 10.1&quot; with &quot;KDE 3.4&quot; and &quot;Timidity++&quot; installed from (http://www.linuxpackages.net) and still &quot;kcmshell arts&quot; won&apos;t play MIDI when &quot;Test MIDI&quot; button is pressed!!!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>338825</commentid>
    <comment_count>6</comment_count>
    <who name="Mohd Asif Ali Rizwaan">maarizwan</who>
    <bug_when>2005-05-01 12:43:25 +0000</bug_when>
    <thetext>*** This bug has been confirmed by popular vote. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>391365</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Neill">kde</who>
    <bug_when>2005-11-19 06:30:21 +0000</bug_when>
    <thetext>Still broken in 3.4.2 !

While you are fixing this, it would be a good idea to integrate Midi properly with KDE. Essentially, timidity needs to run as part of KDE&apos;s startup scripts, or you get permissions problems with ALSA. 

I put 
  timidity -iADq -B2,8 -Os
into ~/.kde/Autostart

Something similar would be great (although there ought to be some sort of pref for this)

I now have working MIDI, and even better, it plays nicely with dmix.


Here is a relevant Mandrake bug:
http://qa.mandriva.com/show_bug.cgi?id=17160
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>415308</commentid>
    <comment_count>8</comment_count>
    <who name="Mohd Asif Ali Rizwaan">maarizwan</who>
    <bug_when>2006-02-19 04:56:13 +0000</bug_when>
    <thetext>KDE 3.5.1 here and still the midi button does not work. am I missing some package which is required for midi playback?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>448096</commentid>
    <comment_count>9</comment_count>
    <who name="Stefan Borggraefe">Stefan.Borggraefe</who>
    <bug_when>2006-06-20 10:33:45 +0000</bug_when>
    <thetext>*** Bug 111397 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>461464</commentid>
    <comment_count>10</comment_count>
    <who name="Dominique Michel">dominique.michel</who>
    <bug_when>2006-08-18 22:55:55 +0000</bug_when>
    <thetext>Kde 3.4.5 here on gentoo, and the button still doesn&apos;t work.
I think at, if you don&apos;t have the time to fix it, it will be best to comment out this button until someone fix it. 

I agree about the documentation in the duplicated bug about &quot;Kcontrol -&gt; Sound System -&gt; Hardware has an option to &quot;Use Midi Mapper&quot; - but there is no explanation of what a midi mapper might be - nor an example of the syntax required!&quot;

I figure out what is a midi mapper, but a little documentation will be great.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>472360</commentid>
    <comment_count>11</comment_count>
    <who name="Stefan Borggraefe">Stefan.Borggraefe</who>
    <bug_when>2006-09-24 12:28:00 +0000</bug_when>
    <thetext>Andreas, maybe you&apos;re interested in removing this confusing UI element for a function that was never implemented, too? I think this would be the best solution for the 3.5-branch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>472365</commentid>
    <comment_count>12</comment_count>
    <who name="Andreas Kling">info</who>
    <bug_when>2006-09-24 13:13:33 +0000</bug_when>
    <thetext>SVN commit 587881 by kling:

Removing the &quot;Test MIDI&quot; button, it&apos;s been around for years without actually doing anything.

BUG: 78077


 M  +0 -14     arts.cpp  
 M  +0 -1      arts.h  
 M  +0 -33     generaltab.ui  


--- branches/KDE/3.5/kdebase/kcontrol/arts/arts.cpp #587880:587881
@@ -236,7 +236,6 @@
 	connect(autoSuspend,SIGNAL(clicked()),SLOT(slotChanged()));
 	connect(suspendTime,SIGNAL(valueChanged(int)),SLOT(slotChanged()));
 	connect(general-&gt;testSound,SIGNAL(clicked()),SLOT(slotTestSound()));
-	connect(general-&gt;testMIDI,SIGNAL(clicked()),SLOT(slotTestMIDI()));
 	connect(hardware-&gt;midiDevice, SIGNAL( highlighted(int) ), this, SLOT( slotChanged() ) );
 	connect(hardware-&gt;midiDevice, SIGNAL( activated(int) ), this, SLOT( slotChanged() ) );
 	connect(hardware-&gt;midiUseMapper, SIGNAL( clicked() ), this, SLOT( slotChanged() ) );
@@ -437,18 +436,6 @@
 	test.start(KProcess::DontCare);
 }
 
-void KArtsModule::slotTestMIDI()
-{
-	if (configChanged &amp;&amp; (userSavedChanges() == KMessageBox::Yes) || !artsdIsRunning() )
-		restartServer();
-
-	//KProcess test;
-	//test &lt;&lt; &quot;artsplay&quot;;
-	//test &lt;&lt; locate(&quot;sound&quot;, &quot;KDE_Startup_1.ogg&quot;);
-	//test.start(KProcess::DontCare);
-}
-
-
 void KArtsModule::defaults()
 {
    load( true );
@@ -521,7 +508,6 @@
 	calculateLatency();
 
 	general-&gt;testSound-&gt;setEnabled(startServerIsChecked);
-	general-&gt;testMIDI-&gt;setEnabled(startServerIsChecked);
 
 //	general-&gt;volumeSystray-&gt;setEnabled(startServerIsChecked);
 	general-&gt;networkedSoundGroupBox-&gt;setEnabled(startServerIsChecked);
--- branches/KDE/3.5/kdebase/kcontrol/arts/arts.h #587880:587881
@@ -67,7 +67,6 @@
 
   void slotChanged();
   void slotTestSound();
-  void slotTestMIDI();
   void slotArtsdExited(KProcess* proc);
   void slotProcessArtsdOutput(KProcess* p, char* buf, int len);
   //void slotStartServerChanged();
--- branches/KDE/3.5/kdebase/kcontrol/arts/generaltab.ui #587880:587881
@@ -296,39 +296,6 @@
                         &lt;/size&gt;
                     &lt;/property&gt;
                 &lt;/spacer&gt;
-                &lt;widget class=&quot;QPushButton&quot;&gt;
-                    &lt;property name=&quot;name&quot;&gt;
-                        &lt;cstring&gt;testMIDI&lt;/cstring&gt;
-                    &lt;/property&gt;
-                    &lt;property name=&quot;sizePolicy&quot;&gt;
-                        &lt;sizepolicy&gt;
-                            &lt;hsizetype&gt;5&lt;/hsizetype&gt;
-                            &lt;vsizetype&gt;1&lt;/vsizetype&gt;
-                            &lt;horstretch&gt;0&lt;/horstretch&gt;
-                            &lt;verstretch&gt;0&lt;/verstretch&gt;
-                        &lt;/sizepolicy&gt;
-                    &lt;/property&gt;
-                    &lt;property name=&quot;text&quot;&gt;
-                        &lt;string&gt;Test &amp;amp;MIDI&lt;/string&gt;
-                    &lt;/property&gt;
-                &lt;/widget&gt;
-                &lt;spacer&gt;
-                    &lt;property name=&quot;name&quot;&gt;
-                        &lt;cstring&gt;spacer3_2&lt;/cstring&gt;
-                    &lt;/property&gt;
-                    &lt;property name=&quot;orientation&quot;&gt;
-                        &lt;enum&gt;Horizontal&lt;/enum&gt;
-                    &lt;/property&gt;
-                    &lt;property name=&quot;sizeType&quot;&gt;
-                        &lt;enum&gt;Expanding&lt;/enum&gt;
-                    &lt;/property&gt;
-                    &lt;property name=&quot;sizeHint&quot;&gt;
-                        &lt;size&gt;
-                            &lt;width&gt;40&lt;/width&gt;
-                            &lt;height&gt;20&lt;/height&gt;
-                        &lt;/size&gt;
-                    &lt;/property&gt;
-                &lt;/spacer&gt;
             &lt;/hbox&gt;
         &lt;/widget&gt;
         &lt;spacer&gt;
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>