Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
07-09-2021, 07:16 PM
|
#16
|
Moderator
Registered: Mar 2008
Posts: 22,361
|
There are some sites that tell how to fix realtek settings.
|
|
|
07-09-2021, 08:23 PM
|
#17
|
Member
Registered: Jun 2020
Posts: 614
Rep: 
|
Quote:
Originally Posted by robert_paulson_chan
Hey, thanks for your extensive response. I agree it seems I have a hard time articulating things because this is not the first forum I'm trying to reach with this issue.
|
Gotcha. It's hard for people to 'come in in the middle' if you get my meaning, which is why I replied the way I did. This reply adds some, so maybe my response will help, maybe not.
Quote:
1st- I would disagree about hardware issue since I can switch right now to a windows partition and play the same YT video and get a much crisper audio, well that was when I had the 'build-in' device on Debian. Right now I have none. I wish I had an snd-HDA under my devices, this is actually what I was trying to accomplish. Instead I had 'build-in' device. Which leads me to believe that this was some very basic default driver for a wide range of devices. The sound quality was as if channels are playing wrong frequency ranges. This usually happens due to bad EQ settings, or lack of Low or High Pass filters on audio that requires it. Again leading me to believe this was a setting issue. Settings which were unavailable to me. Side note- Windows has a flat EQ (disabled EQ).
|
This is useful to know - so things are working in Windows with the Realtek but not with your current Debian install. I haven't played with 'straight' Debian in a while, but my suspicion is you may be using an older kernel/older modules (or there's something not entirely right about how your motherboard vendor setup that Realtek chip on your specific board) - have you tried the live boot suggestion with an up-to-date and well-documented desktop distro like Ubuntu?
Quote:
Edit: I just remembered that in win 10 the realtek HDA Manager doesn't work so the device is just ran on the driver itself, without any software features like EQ, speaker positioning etc. So there isn't any make belief features there.
|
I wasn't referencing the Realtek card with that statement, but this is also useful information. I was thinking about the Asus card with various 'settings' or 'features' - the C-Media chipsets don't actually do much in terms of hardware, but soundcards sold with them usually advertise a huge list of features that exist purely in the Windows software.
Quote:
I understand, I wanted to know if there are distros which might have a better chance at having these settings either available out of the box or will be compatible with the realtek driver package for linux. I guess I am getting confused at this point if there is any difference at all since it was mentioned that the distro doesn't matter as its all down to the kernel. I am not an expect in IT but at the same time I do have some coding experience and have certain knowledge about computers and their hardware. But looking at the installation instructions of realtek driver package I have absolutely no clue what I'm doing. Is there a chance that for example redhat will install this package without any errors that I encountered in Debian? Or is it about the kernel and how it changed since this package was released? Also What is a 'fuser' that I need to configure jack with?
|
I haven't played around with jack extensively, but I don't believe it should be required for basic audio output. I would try live booting something very current and seeing what works and what doesn't. If we know more about the specs of the computer involved and your output requirements it may also be easier/faster to just get a single working soundcard and call it a day.
Quote:
edit2:
I did some more digging and found this:
https://bugs.launchpad.net/ubuntu/+s...er/+bug/996245
The bug was never implemented and it revolves around jack mapping (which explains the wrong frequencies being played through the speakers, the sub, and satellite channels are probably mixed up). The only fix was provided by the Realtek linux drivers whihc became outdated since kernel 3.2. any advice at this point? or should I just abandon the linux ship?
|
No I wouldn't abandon the 'linux ship' - the worst case scenario here is just abandon the onboard audio (and I can't imagine anything of significant value to be lost in doing so).
|
|
|
07-09-2021, 08:42 PM
|
#18
|
LQ Newbie
Registered: Jun 2021
Posts: 19
Original Poster
Rep: 
|
Quote:
Originally Posted by obobskivich
No I wouldn't abandon the 'linux ship' - the worst case scenario here is just abandon the onboard audio (and I can't imagine anything of significant value to be lost in doing so).
|
Well and here we going to disagree. If I abandon the onboard card I'm loosing my only 5.1 device. And even if I wanted to get another one (which I don't since the 898 is a very respectful chip-set) I have no more room for internal devices so I will have to dish out for a decent USB surround card, which I'm not willing to do, especially since the card is working just fine with other OS.
I will try Fedora live-img, in a meanwhile, is there an easy way to revert the Debian drivers back? they seemed to be wiped/disabled by the Realtek package.
Last edited by robert_paulson_chan; 07-09-2021 at 08:44 PM.
|
|
|
07-09-2021, 09:36 PM
|
#19
|
Member
Registered: Jun 2020
Posts: 614
Rep: 
|
Quote:
Originally Posted by robert_paulson_chan
Well and here we going to disagree. If I abandon the onboard card I'm loosing my only 5.1 device. And even if I wanted to get another one (which I don't since the 898 is a very respectful chip-set) I have no more room for internal devices so I will have to dish out for a decent USB surround card, which I'm not willing to do, especially since the card is working just fine with other OS.
|
I'd be cautious with USB and surround sound - that generally relies on proprietary drivers as opposed to class-compliant audio.
Forgive the question but I'm also not entirely clear on this machine's configuration:
- It has the Realtek onboard which you're using to provide 5.1 analog outputs.
- It also has an Asus card (?) which you're using to connect (?) something else (?)
- The nVidia card can provide HDMI output with audio, but you aren't currently connected to this.
My inclination would be to query if the Asus card can 'do it all' and if not, why not, and possibly replace/upgrade that to something that properly handles everything on one device. Short of that, the nVidia card's multi-channel output may be useful - if the issue is just one of connectivity, an audio extractor isn't terribly expensive either.
Quote:
I will try Fedora live-img, in a meanwhile, is there an easy way to revert the Debian drivers back? they seemed to be wiped/disabled by the Realtek package.
|
I have no idea what you did or didn't do specifically (and it sounds like you've tried a lot of things in troubleshooting this). This guide may or may not be helpful to using dpkg and apt to remove/repair packages: https://linuxhint.com/uninstall-debian-packages/
But honestly I'd be more interested in trying with a live image (and I'm not sure what the issue is with Ubuntu, but it tends to have excellent hardware support - wouldn't hurt to try it just as a live image, right?) with everything fresh, and none of the troubleshooting/configuration getting in the way, and see what does and doesn't work.
Also, and just to perhaps explain myself a bit more here: you are reading me right if you're thinking 'he's just saying to replace hardware and disable the one that we can't troubleshoot to resolution' - what is more important here? Working sound output, or specifically sorting out whatever is going on with this exact OS/driver/hardware combination?
|
|
|
07-09-2021, 10:40 PM
|
#20
|
LQ Newbie
Registered: Jun 2021
Posts: 19
Original Poster
Rep: 
|
Quote:
Originally Posted by obobskivich
I'd be cautious with USB and surround sound - that generally relies on proprietary drivers as opposed to class-compliant audio.
|
Don't worry, I don't even consider this an option.
Quote:
Originally Posted by obobskivich
Forgive the question but I'm also not entirely clear on this machine's configuration:
- It has the Realtek onboard which you're using to provide 5.1 analog outputs.
- It also has an Asus card (?) which you're using to connect (?) something else (?)
- The nVidia card can provide HDMI output with audio, but you aren't currently connected to this.
|
The onbard 898 is to drive my surround, the PCI card is a card with an isolated amplifier that drives my 80ohm headphones (it has only one channel out, and one channel in, and the HDMI is there to run my big plasma TV with terrible build in speakers- which I'm also hesitant to upgraded for yet another number of reasons.
Quote:
Originally Posted by obobskivich
My inclination would be to query if the Asus card can 'do it all' and if not, why not, and possibly replace/upgrade that to something that properly handles everything on one device. Short of that, the nVidia card's multi-channel output may be useful - if the issue is just one of connectivity, an audio extractor isn't terribly expensive either.
I have no idea what you did or didn't do specifically (and it sounds like you've tried a lot of things in troubleshooting this). This guide may or may not be helpful to using dpkg and apt to remove/repair packages: https://linuxhint.com/uninstall-debian-packages/
But honestly I'd be more interested in trying with a live image (and I'm not sure what the issue is with Ubuntu, but it tends to have excellent hardware support - wouldn't hurt to try it just as a live image, right?) with everything fresh, and none of the troubleshooting/configuration getting in the way, and see what does and doesn't work.
Also, and just to perhaps explain myself a bit more here: you are reading me right if you're thinking 'he's just saying to replace hardware and disable the one that we can't troubleshoot to resolution' - what is more important here? Working sound output, or specifically sorting out whatever is going on with this exact OS/driver/hardware combination?
|
I will first look into that guide, then I will try Fedora live img as I think it will be just a waste of time to try ubuntu even if it works as I will refuse to use it.
I totally get your logic, its juts not how I do things. As you prob figured by now I'm a bit weird on how I conduct myself, but its just how I do things. I have a plan- fix the pkg on debian if fails I will try fedora, if none of this works I will go back to WIn7/ssd or Win10/hdd with yet another win partition for gaming that's offline. Sounds absolutely terrible but hey...
Thanks again for all your time and everyone else that contributed to this thread.
|
|
|
07-10-2021, 12:50 AM
|
#21
|
Member
Registered: Jun 2020
Posts: 614
Rep: 
|
Quote:
Originally Posted by robert_paulson_chan
Don't worry, I don't even consider this an option.
|
Honestly USB for 'surround sound' is not a great option regardless (because even the Windows-side with proprietary drivers usually comes with various limits) - for stereo audio, with class-compliant devices, it works great though.
Quote:
The onbard 898 is to drive my surround, the PCI card is a card with an isolated amplifier that drives my 80ohm headphones (it has only one channel out, and one channel in, and the HDMI is there to run my big plasma TV with terrible build in speakers- which I'm also hesitant to upgraded for yet another number of reasons.
|
Alright this helps me better understand what's going on. My suggestions (barring getting the 898 to work) would be, in no particular order (and with minimal consideration of cost sanity):
- Get an audio extractor that sits between the HDMI output and the TV, and spits out 5.1 (or 7.1) to whatever surround sound via analog.
- Replace the 898 and the Asus card with a single soundcard that can handle both/all outputs - a random example would be a Creative ZxR
- Replace the 989 and the Asus card with a single soundcard that can handle multi-channel audio, plus a dedicated headphone amplifier (and split the front L/R output) - a random example would be a Razer AC-1 plus a Fiio E9
- Replace the 989 and Asus card with a single soundcard that can handle multi-channel audio, plus a USB-input capable dedicated headphone amplifier - a random example would be a Razer AC-1 plus a TEAC UD-503
- Dump all of the 'soundcards' in this mix and get an AV receiver that can handle HDMI audio, and hook the nVidia HDMI into that, and use the AV receiver for both speaker and headphone outputs
Most of these suggestions can become runaway trains in terms of price, they're offered mostly to give you more ideas about how to tackle this problem. Audio on computers (regardless of OS) is always kind of a touchy thing to get working, and after a point my patience for drivers and tweaking is spent so I will fall back to hardware solutions that will work as intended.
Quote:
I will first look into that guide, then I will try Fedora live img as I think it will be just a waste of time to try ubuntu even if it works as I will refuse to use it.
|
No interest in a holy war, but my reasoning with Ubuntu (apart from familiarity with it) is that it's more similar to Debian, and tends to have good documentation and sane defaults. So if it works there, it means it *can* work.
Quote:
I totally get your logic, its juts not how I do things. As you prob figured by now I'm a bit weird on how I conduct myself, but its just how I do things. I have a plan- fix the pkg on debian if fails I will try fedora, if none of this works I will go back to WIn7/ssd or Win10/hdd with yet another win partition for gaming that's offline. Sounds absolutely terrible but hey...
|
'absolutely terrible' is about right - I'm not sure I'd suffer through Windows 10 for the sake of a Realtek codec... 
|
|
|
07-10-2021, 01:33 AM
|
#22
|
LQ Newbie
Registered: Jun 2021
Posts: 19
Original Poster
Rep: 
|
Quote:
Originally Posted by obobskivich
Honestly USB for 'surround sound' is not a great option regardless (because even the Windows-side with proprietary drivers usually comes with various limits) - for stereo audio, with class-compliant devices, it works great though.
|
I'm not up to date on these but few years ago the state of USB surround was borderline scam. But you are right there are some nice single output DACs, although they come at a price.
Quote:
Originally Posted by obobskivich
Alright this helps me better understand what's going on. My suggestions (barring getting the 898 to work) would be, in no particular order (and with minimal consideration of cost sanity):
- Get an audio extractor that sits between the HDMI output and the TV, and spits out 5.1 (or 7.1) to whatever surround sound via analog.
- Replace the 898 and the Asus card with a single soundcard that can handle both/all outputs - a random example would be a Creative ZxR
- Replace the 989 and the Asus card with a single soundcard that can handle multi-channel audio, plus a dedicated headphone amplifier (and split the front L/R output) - a random example would be a Razer AC-1 plus a Fiio E9
- Replace the 989 and Asus card with a single soundcard that can handle multi-channel audio, plus a USB-input capable dedicated headphone amplifier - a random example would be a Razer AC-1 plus a TEAC UD-503
- Dump all of the 'soundcards' in this mix and get an AV receiver that can handle HDMI audio, and hook the nVidia HDMI into that, and use the AV receiver for both speaker and headphone outputs
|
Its not that simple IMO. The headphones pick up the voltage ripples which are too annoying to me to bare with. I'm not sure about the cards you mentioned but thats why I chose the Xonar- it has an true isolated amp. that means it minimises the voltage ripples, and there is none of that annoying buzz when the power hungry hardware is being used in the PC. Same for my surround, its high gain, the ALC is a very nice chip with very good S/N ratio. That reminds me of another issue with Debian. There was this popping and crackling every time the sound was about to play. Like the device was enabling right before the sound was played. I was also trying to deal with that with no success.
Quote:
Originally Posted by obobskivich
'absolutely terrible' is about right - I'm not sure I'd suffer through Windows 10 for the sake of a Realtek codec... 
|
Everything seems to come at a price. I just wish I would set up this audio to work flawlessly on linux because after that I will never have to touch anything here. Win10 as bad as it is, it seems very convenient compared to linux where one has to do a lot of legwork for, well most things it seems. I just wished Win10 wouldn't delete my files and re-enable its intrusive features on every forced update.... hence the idea of crippling it and leaving it offline on that partition, or just going back to 7 since I wont have to worry about security breaches. But if I give it some crappy spare ssd to eat at and don't give it access to other drives it might do just fine. After all I just need an OS to access internet, watch media and fetch some files.
|
|
|
07-10-2021, 02:53 AM
|
#23
|
Member
Registered: Jun 2020
Posts: 614
Rep: 
|
Quote:
Originally Posted by robert_paulson_chan
I'm not up to date on these but few years ago the state of USB surround was borderline scam. But you are right there are some nice single output DACs, although they come at a price.
|
The problem, as I always understood it, is that 'USB Audio' (the actual spec) is pretty basic in terms of bandwidth, so to do surround sound requires essentially creating your own device - Creative did this going back to the early 2000s, some even had DSP accelerators (just like their PCI cards), but the drivers are (afaik) Windows-only. For stereo audio this is a non-issue because USB Audio handles that just fine, especially with Class 2, which linux supports natively.
Quote:
Its not that simple IMO. The headphones pick up the voltage ripples which are too annoying to me to bare with. I'm not sure about the cards you mentioned but thats why I chose the Xonar- it has an true isolated amp. that means it minimises the voltage ripples, and there is none of that annoying buzz when the power hungry hardware is being used in the PC.
|
This is a pretty typical problem with onboard audio/integrated audio - bad grounding is almost always the cause (it's nothing you can probably fix - it's on the PCB itself). Dedicated soundcards usually get past it; external solutions almost always get past it. It has nothing to do with headphones vs speakers though (nor with having a 'special amplifier') - the noise is there no matter what, you probably just notice it more readily on headphones. No magic is needed to get around it though. The 'true amp' on that Asus card is actually a TI IC, which has been used in some dedicated headphone amplifiers as well (but they generally get a lot more power output from it, because they can run on higher supply voltage (if I remember right for 'full output' it needs something like 14V)), it's not a bad solution, but it isn't novel either. The ZxR uses the same chip, for example. Why Asus decided to nerf the card for anything but stereo output is beyond me, but 10 years ago was a wild time for 'personal audio'
Since you don't need 5.1 or 7.1 for headphones, you can run a USB solution straight out, and there's a plethora of options that include all manner of headphone amplifiers to boot. The other option is to 'break the chain' and run optical from the system -> external D/A converter -> amplification, which shouldn't have any noise present (its electronically impossible for any ground loops or similar to exist between the PC and the D/A in this scenario), unless you're also using line inputs on the PC which may have noise and once it's in the signal, it's there. I've never encountered an HDMI solution that spits out noise from the source - that's a pretty tightly controlled spec that works very well. The extractor box may or may not be 'great' depending on what you select for that role. The AV receiver route would, by far, be the easiest solution here - just take 5.1 or 7.1 PCM from the nVidia and let the AVR work it out for headphones/speakers/whatever (in other words, use the right tool for the job).
Quote:
Same for my surround, its high gain, the ALC is a very nice chip with very good S/N ratio.
|
Most Realtek codec solutions will measure, real-world, in the mid to low 90s - not the best, but a far cry from the junk that was being shipped 15 years ago (and I point this out not to 'dump on' anything, but to say that there's nothing 'magic' about the Realtek codec and that its quality is not impossible to replicate or exceed). The gotcha is that on a seemingly board-by-board basis you can have grounding issues or noise ingress, which basically negates any 'good quality' for that solution. External converters will generally beat that (but the bigger question is 'will you be able to notice it audibly' and the answer is 'probably not') - again the AVR solution is probably the most self-contained and cleanest. But going to a single soundcard that can provide both 5.1 + headphones, either as a line source with a Y splitter, or as a line source + separate headphone output would also be an improvement. I know the ZxR to work well in linux, and it provides the same TI headphone amplifier as the Asus, as well as 5.1 outputs (and the linux driver implements most of its featureset too).
Quote:
That reminds me of another issue with Debian. There was this popping and crackling every time the sound was about to play. Like the device was enabling right before the sound was played. I was also trying to deal with that with no success.
|
Honestly not sure on that, but (and I know you've said this works on Windows) this sounds more and more like a hardware issue than not, based on descriptors like this.
Quote:
Everything seems to come at a price. I just wish I would set up this audio to work flawlessly on linux because after that I will never have to touch anything here.
|
And my reasoning is that your goal is 'working sound output' not a specific implementation, so why not just have your cake and eat it too?
Try the live image with a newer distro with a newer kernel (Fedora 34 should do it) and see how it works - if the Realtek solution is just nerfed, why make yourself crazy with it, grab a working soundcard (or external box) and be happy.
Quote:
Win10 as bad as it is, it seems very convenient compared to linux where one has to do a lot of legwork for, well most things it seems. I just wished Win10 wouldn't delete my files and re-enable its intrusive features on every forced update....
|

Last edited by obobskivich; 07-10-2021 at 02:57 AM.
|
|
|
07-10-2021, 03:56 PM
|
#24
|
LQ Newbie
Registered: Jun 2021
Posts: 19
Original Poster
Rep: 
|
Quote:
Originally Posted by obobskivich
Honestly not sure on that, but (and I know you've said this works on Windows) this sounds more and more like a hardware issue than not, based on descriptors like this.
|
I'm kinda getting fed up with this narrative. Other users reported this bug:
Code:
Troubleshooting: Dealing with audio crackling(especially on high load):
The newer implementation of the PulseAudio sound server uses timer-based audio scheduling instead of the traditional, interrupt-driven approach.
Timer-based scheduling may expose issues in some ALSA drivers. On the other hand, other drivers might be glitchy without it on, so check to see what works on your system.
To turn timer-based scheduling off add tsched=0 in /etc/pulse/default.pa:
/etc/pulse/default.pa
load-module module-udev-detect tsched=0
Then restart the PulseAudio server:
$ pulseaudio -k
$ pulseaudio --start
Do the reverse to enable timer-based scheduling, if not already enabled by default.
If you are using Intel's IOMMU and experience glitches and/or skips, add intel_iommu=igfx_off to your kernel command line.
If I would spend money on hardware it would be cheaper and far easier for me to get few cheap SSD's to run a back up drive and keep one to swap when the original fails due to win write abuse. Looks like its the most logical option at this point since I just installed a new network card and Win10 connected to it on boot, where debian need drivers once more(didn't need drivers for 3 previous cards, so i can anticipate similar legwork for that as well).
Bonus content:
Quote:
Application: ksmserver-logout-greeter (ksmserver-logout-greeter), signal: Aborted
|
After I let the linux upgrade some packages it refuses to shutdown.
Last update- Everything works fine in Fedora! Sound is clear and no popping/crackling before media starts playing. Also the new network card was immediately recognised and functions properly. Thank you all for help!
Last edited by robert_paulson_chan; 07-10-2021 at 06:47 PM.
|
|
|
07-11-2021, 10:51 AM
|
#25
|
Member
Registered: Jun 2020
Posts: 614
Rep: 
|
Quote:
Originally Posted by robert_paulson_chan
Last update- Everything works fine in Fedora! Sound is clear and no popping/crackling before media starts playing. Also the new network card was immediately recognised and functions properly. Thank you all for help!
|
Glad to hear it. My suspicion is the issue was the older kernel in the version of Debian you were running.
|
|
|
All times are GMT -5. The time now is 09:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|