Tim
2017-05-16 01:06:04 UTC
Crap. Talk about bad timing, literally. Bad luck. Bad coincidence.
I'm putting out fires in one area and they're breaking out under my nose.
The story:
While investigating the frozen graphics issues, I installed openSuSE
on a spare partition to test. While there, I noticed MusE quits
if the ALSA support is enabled in the midi config dialog.
It quits because it can't set the ALSA HR timer frequency to
our desired value, default 1024Hz in the Global Settings.
In fact, no matter what I tried in the timer params
structure that we pass to snd_timer_params(), it failed.
Hmm...
I thought "Meh, another permissions thing, the user likely
has to poke some setting to allow changing the timer."
So I pushed a fix that allows MusE to continue with whatever
the HR timer wants to run at. That's 1000000000Hz by the way.
I warn the user that their system may need adjustment.
OK fine. So then I reboot and go back to the KUbuntu 16.04 LTS.
Now here's the crazy part:
I got the SAME problem: ALSA HR timer refusing our settings.
But the HR timer was FINE ever since I added it months ago !
But now all of a sudden, not working? WTF?
It broke across two different distros?
I thought "How? Did SuSE break something? Write to my
sound card or CMOS or something? Grub2 changed?"
Now the funny part:
It turns out, about a week ago, while my back was turned
working on this graphics stuff, a new kernel came down
for KUbuntu LTS 16.04:
kernel 4.4.0-77
And of course, in my shiny new SuSE installation it is
already way past that point:
kernel 4.10.13-1
Everything worked again when I back-peddled KUbuntu to:
kernel 4.4.0-72
Ah, now it all made sense. My bad luck.
***
Anyhow, bottom line, y'all are gonna need the latest
MusE git master to use it with ALSA midi !
***
Not crazy about the fixed 1000000000Hz. Too much?
Ha! Our problem used to be not enough Hertz.
I'm working on it. I may contact ALSA for answers.
Tim.
I'm putting out fires in one area and they're breaking out under my nose.
The story:
While investigating the frozen graphics issues, I installed openSuSE
on a spare partition to test. While there, I noticed MusE quits
if the ALSA support is enabled in the midi config dialog.
It quits because it can't set the ALSA HR timer frequency to
our desired value, default 1024Hz in the Global Settings.
In fact, no matter what I tried in the timer params
structure that we pass to snd_timer_params(), it failed.
Hmm...
I thought "Meh, another permissions thing, the user likely
has to poke some setting to allow changing the timer."
So I pushed a fix that allows MusE to continue with whatever
the HR timer wants to run at. That's 1000000000Hz by the way.
I warn the user that their system may need adjustment.
OK fine. So then I reboot and go back to the KUbuntu 16.04 LTS.
Now here's the crazy part:
I got the SAME problem: ALSA HR timer refusing our settings.
But the HR timer was FINE ever since I added it months ago !
But now all of a sudden, not working? WTF?
It broke across two different distros?
I thought "How? Did SuSE break something? Write to my
sound card or CMOS or something? Grub2 changed?"
Now the funny part:
It turns out, about a week ago, while my back was turned
working on this graphics stuff, a new kernel came down
for KUbuntu LTS 16.04:
kernel 4.4.0-77
And of course, in my shiny new SuSE installation it is
already way past that point:
kernel 4.10.13-1
Everything worked again when I back-peddled KUbuntu to:
kernel 4.4.0-72
Ah, now it all made sense. My bad luck.
***
Anyhow, bottom line, y'all are gonna need the latest
MusE git master to use it with ALSA midi !
***
Not crazy about the fixed 1000000000Hz. Too much?
Ha! Our problem used to be not enough Hertz.
I'm working on it. I may contact ALSA for answers.
Tim.