Personal computing discussed
Moderators: renee, SecretSquirrel, notfred
notfred wrote:So we have someone new to Linux asking about setting up their first Linux install, and people start talking about LVM
Just remember, just because you can doesn't mean that you should
NovusBogus wrote:Slackware
SonicSilicon wrote:And I came across my first issue; stuttering audio. It's only on the analog, though I never heard quite this issue; it plays too fast, then waits (often producing "digital clipping"), then plays the next part too fast. With video, it will get ahead by a bit, then the video will stutter briefly, and the audio will start to get ahead again (asynchronous desynchronization, go figure.) And the best part -- it plays fine once there's a high enough load on the CPU.
I'm guessing this is some driver issue with the audio being processed in software. There's no driver to download, period, either from the motherboard manufacturer or the chipset manufacturer. It doesn't even show up on the latter's website. Perhaps it's a custom chip?
Sound is perfectly fine over HDMI, though I have to play the sound test after switching audio hardware to make it audible with applications. o_O
notfred wrote:Yes, that's going to be a driver problem, it sounds they got the clocking wrong and it is running at 48kHz rather than 44.1kHz or similar.
The motherboard is an ASUS H97I-Plus, and its audio chipset is a Realtek ALC887-VD. There's no update driver on ASUS' site, and Realtek doesn't seem to acknowledge the existance of an 887 chipset, yet. (May be a custom IC for ASUS.)The thing in Linux is basically all the drivers are built in to the distribution, generally motherboard and chipset manufacturers don't care about Linux. At most they will give the specs to the driver writers, but normally the driver writers are reverse engineering the hardware. What is the chipset and driver? There may be an option on the command line to fix this e.g. by forcing the clock rate to a particular value, or a Google search for that motherboard, Linux and sound may help.
just brew it! wrote:I'm fairly certain it's the second most up to date version, the latest only adding overclocking features. The CPU is an i7-4790S, so I saw no benefit in installing the new BIOS version.Wow, weird. I haven't personally seen that sort of audio issue in the past 2-3 years; unless you've got a very new audio chipset (or one of the poorly supported Creative ones) things generally "just work" these days.
In the past I've seen some squirrely behavior with timing when the motherboard/BIOS has a buggy ACPI timer implementation, and the Linux kernel chooses (not sure how it decides) to use the ACPI timer as its high-resolution timing source. Could also be a bad interaction between the audio driver and the CPU's power management; that would explain why it depends on CPU load.
Things to try --
- Update to latest BIOS if you aren't already at the latest version.
There were a lot of clocking related settings in this BIOS. I'll try changing them when I get a chance.- Temporarily disable CPU power management in your BIOS to see if that has any effect.
Nothing discrete, yet, unless you want to count the HDA (HDMI audio) on the GeForce, and the issue was present before installing that.- If you have both onboard and a discrete soundcard, try temporarily removing the one you're not using (if you're using discrete disable the onboard in the BIOS; if you're using onboard, remove the discrete card).
See above.- If you can figure out what audio chipset you've got we may be able to get a better handle on your issue. Run alsamixer in a terminal window; this should tell you what audio chipset the system thinks you have (and if it comes up as generic then we know a chipset-specific driver was not included in the distro you installed).
available_clocksource:- Post the contents of the files /sys/devices/system/clocksource/clocksource0/available_clocksource and /sys/devices/system/clocksource/clocksource0/current_clocksource so I can have a look at them. Depending on what your motherboard supports and what the kernel is selecting by default, it might be worth trying to force the use of a different high-resolution timing device.
clocksource=hpet
Forge wrote:It's probably one of those cases where one variable was used, then they added another, and now both work identically (for now, until someone changes something), but I've been using clock= instead of clocksource=
notfred wrote:I'm an xemacs man myself <flame war!!!> but I do the root user vi stuff for simple config file edits. If you have never used vi before you don't want to start with editing your config files. vi is not a WYSIWYG editor, instead it is a "You Get What You Asked For Even If You Didn't Mean It" editor.
just brew it! wrote:notfred wrote:I'm an xemacs man myself <flame war!!!> but I do the root user vi stuff for simple config file edits. If you have never used vi before you don't want to start with editing your config files. vi is not a WYSIWYG editor, instead it is a "You Get What You Asked For Even If You Didn't Mean It" editor.
No flame war, I fully admit that vi is insane by modern standards! When you realize that its UI dates back to the '70s, when people were still figuring out how editing files on a CRT terminal (as opposed to a hardcopy terminal) should work, I guess that isn't too surprising. Really, the only things it has going for it these days are that it is available (and typically installed by default) on all flavors of *NIX, and that it doesn't require a graphical desktop.
bthylafh wrote:I've heard from at least one Old Sysadmin that you should learn ed(1) as well because there are some lurching dinosaur systems that don't have vi but do have ed, or do have vi but it's not guaranteed to work if you can only mount the root filesystem, while ed is.
slowriot wrote:bthylafh wrote:I've heard from at least one Old Sysadmin that you should learn ed(1) as well because there are some lurching dinosaur systems that don't have vi but do have ed, or do have vi but it's not guaranteed to work if you can only mount the root filesystem, while ed is.
I mean... this is a "possibility" but I can't imagine the OP every comes across such a situation. Unless he intends to go from Linux noob to guy fixing boxes that have been unsupported for 15+ years.
just brew it! wrote:Really, the only things it has going for it these days are that it is...
just brew it! wrote:slowriot wrote:bthylafh wrote:I've heard from at least one Old Sysadmin that you should learn ed(1) as well because there are some lurching dinosaur systems that don't have vi but do have ed, or do have vi but it's not guaranteed to work if you can only mount the root filesystem, while ed is.
I mean... this is a "possibility" but I can't imagine the OP every comes across such a situation. Unless he intends to go from Linux noob to guy fixing boxes that have been unsupported for 15+ years.
Probably more like 25+ years.
SonicSilicon wrote:The short version; ALC887 has issues when running under Linux with either Intel HDA or NVidia HDA.