Did more troubleshooting, I can replicate the problem using "pmidi". I'm more convinced that the problem may be in the "timidity -iA", the ALSA server.
Got the Knoppix DVD burnt and tried out rosegarden4 on 4 computers, the best that I got is rosegarden4 plays once of my midi file but emit no sound if I stop it and play it again. I have to reboot in order to play my midi file, of course only once.
I'm running "timidity -iA" as an ALSA server. I can play my midi file fine using timidity own interface i.e. "timidity -ia". I installed Kmid and vkeybd. Their interfaces show up, but no midi sound. I guess the problem seems to be on Timidity server.
I use the control center, the sound test works fine, but I hear nothing from the midi test.
Is there any troubleshooting guide for the sound and midi? as one of my computer reports no sound card at all. One reports the sound card, but no sound. One reports the sound card and can play music, but just no midi. Help!!!!
ys
Did more troubleshooting, I can replicate the problem using "pmidi". I'm more convinced that the problem may be in the "timidity -iA", the ALSA server.
Just want to report my success to get these things to work together.
Steps:
1. Run alsaconf under root.
It will configure the sound card to load the corresponding drivers. Did a lot of crucial steps to make those drivers to work.
2. Run timidity -iA -Os.
I still don't understand why timidity cannot output to the sound card directly, but outputting to Alsa is working fine. Now I can use pmidi to play my midi file through timidity.
3. Run Rosegarden4
Now everything is working. Since the alsaconf will establish one more midi port corresponding to alsaconf which I never able to play correctly. However, those Timidity ports work fine as pmidi.
It looks like an ugly workaround, at least it is working so I can start to use Rosegarden for my project. I don't know it is a problem with timidity or the alsa stuff.
There are some good doc in TLDP http://www.tldp.org/HOWTO/HOWTO-INDEX/howtos.html. Even though it didn't help directly, but still a good read to understand how the sound works.
ys
DELL PowerEdge R630 8SFF Server 2x E5-2690v4 2.6GHz =28 Cores 256GB H730 4xRJ45
$562.00
Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330
$182.65
DELL R630 SERVER 8 x 2.5'' 2X E5-2680V4 32GB RAM IDRAC ENT & NDC 2X 495W PSU
$169.95
Dell PowerEdge R720xd 26HDD 300gb 2.5-inch E5-2697 X 2CPU 384RAM 7.2 Tb HDD 
$180.00
Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD
$389.99
Dell Poweredge R730xd 12 Bay LFF 2x SFF 2x E5-2680v3 2.5ghz H730p No Ram No HDD
$219.99
Dell Poweredge R630 Server 2x E5-2620 V4 =16 Cores | S130 | 32GB RAM | 2x trays
$153.99
Dell PowerEdge R620 Server - 256GB RAM, 2x8cCPU, 120Gb SSD/3x900Gb SAS, Proxmox
$320.00
DELL PowerEdge R730 Server 2x E5-2698v4 2.2GHz =40 Cores 128GB H730 4xRJ45
$601.00
Dell Poweredge R720xd 2x Xeon E5-2670 2.6GHz 16-Cores 64gb H710p 26x Trays
$339.99