Raphire / Win11Debloat

A simple, easy to use PowerShell script to remove pre-installed apps from Windows, disable telemetry, remove Bing from Windows search as well as perform various other changes to declutter and improve your Windows experience. This script works for both Windows 10 and Windows 11.
MIT License
12.88k stars 546 forks source link

Realtek Audio not regestering headphones #78

Open wolfieboy09 opened 3 months ago

wolfieboy09 commented 3 months ago

Describe the bug Before using, headphones that plug in the register, after running this, and restarting, it's not seeing my headphones.

To Reproduce Steps to reproduce the behavior: No idea

Expected behavior For my headphones to register

Screenshots The software has this from before image

wolfieboy09 commented 3 months ago

image Reinstalled it and now its not even a thing

wolfieboy09 commented 3 months ago

reinstalling from acer website now

wolfieboy09 commented 3 months ago

UPDATE: I reinstalled from Acer's website, and its working!! It can register headphones and drivers are working!

Raphire commented 3 months ago

Heya,

Thanks for reporting this issue & keeping us updated with your solution.

This is quite strange and I can't from the top of my head think of anything that might cause this. I'll see if I can find some time tomorrow to look into this issue further. Glad you managed to solve it though 🙃

wolfieboy09 commented 3 months ago

I ran Win11Debloat with its default options, and one of the options (the one where a menu of checkmarks opens up I think) there might be a thing in there that has the registering part, and got uninstalled, causing RealTek not to find the headphones and see that they are plugged in. After some time (more then 5 mins of going around the internet), I downloaded the drivers fresh from Acer's website for my model I have, installed it, let it do its thing, and then it was working again.

Raphire commented 3 months ago

@wolfieboy09 Thanks for the additional info.

I do see that Dolby is included in the list of apps that are removed. Do the acer audio drivers include Dolby?

johnvo0918 commented 3 months ago

Suffering the same problem here but on a Lenovo Legion Slim 7 15ACH6. reinstalled realtek from lenovo's website, doesn't work. As soon as I switch to my laptop speakers (realtek) the entire system freezes up and starts to go crazy. After awhile there will be no audio devices to select. Video playback with audio will become choppy and audio will not play. Update: You need to uninstall Realtek Audio driver, then uninstall any devices labeled under Realtek i.e Speakers, Microphone, Headphones in the Device Manager list. Then restart your laptop, when you boot up you won't get devices under realtek anymore, Install your manufacturer's Realtek driver. This will let you start using devices under realtek again. Restart laptop 1 more time. Now you should be able to use realtek without your laptop freezing stuttering while playing anything with audio. (SHOULD because it was still stuttering for me so i had to do the entire process again. will be monitoring.)

Raphire commented 3 months ago

@johnvo0918

Heya,

Sorry you ran into these issues. I'm glad you managed to fix it after some extensive troubleshooting. Thanks for reporting back with how you managed to get your audio setup working again.

I have preemptively removed Dolby from the apps that this script removes, it's the only thing that - logically - could/should have anything to do with audio related issues.

@wolfieboy09 @johnvo0918 Could you check for me if you have any dolby apps installed now that you have fixed/reinstalled your audio driver packages?

johnvo0918 commented 3 months ago

I did reinstall the Dolby app after and have not run the script since. After monitoring realtek has gone haywire again and crashed itself. Trying to look into what is actually causing this.

Raphire commented 2 months ago

@johnvo0918 were you able to fix/identify the issue?

johnvo0918 commented 2 months ago

Nope, thankfully it has been behaving, bad for troubleshooting, great for me 😭

Raphire commented 2 months ago

Nope, thankfully it has been behaving, bad for troubleshooting, great for me 😭

Thanks for getting back. I'm glad the issue seems to be fixed on your end :)

Raphire commented 2 months ago

Closing issue as the issue is fixed for both reporters & no new reports have been made since removing Dolby from appslist.

Feel free to open a new issue if this issue occurs in the future.

johnvo0918 commented 2 months ago

Hey, back again. Today my laptop booted with no audio devices. I notice that recently my laptop has been stuck in a boot loop ever since running the script. It takes several restarts for it to boot into Windows again. And restarting does not guarantee that audio devices return, only once every few restarts.

johnvo0918 commented 2 months ago

What was the Dolby app that your script removes? The only dolby app I was able to find is Dolby Access https://apps.microsoft.com/detail/9n0866fs04w8 Im trying to do everything that won't make me do a Windows reinstall, I got too much on my C-drive.

johnvo0918 commented 2 months ago

New troubleshooting step because this problem persisted so well that my parsec stopped getting audio from my other PC.

Safe mode -> Device Manager -> Uninstall Realtek

This is to prevent Windows to reinstall realtek immediately as soon as you uninstall realtek, windows does this during normal boot for some stupid reason. After doing this, my audio is working okay now. Parsec started giving me audio from the host again. Will be monitoring closely.

Raphire commented 2 months ago

What was the Dolby app that your script removes? The only dolby app I was able to find is Dolby Access https://apps.microsoft.com/detail/9n0866fs04w8 Im trying to do everything that won't make me do a Windows reinstall, I got too much on my C-drive.

Dolby Access seems to be the only listed dolby app now, but there's also Dolby Vision and possibly more. The script would've removed all MS Store apps from dolby.

I'm still unsure why removing these apps would cause these driver issues though, as from my experience they're optional apps that can be uninstalled by the user normally without any impact.

I hope that uninstalling the drivers via safe mode has done the trick. Please do report back if you have any updates.

johnvo0918 commented 2 months ago

yeah i went thru the code personally and cannot find anything in there that mentions Audio or anything related to audio drivers. Still scratching my head rn.

johnvo0918 commented 1 month ago

Back again. It happened again. The audio device just freezes up and crashes. But it came back really fast this time. The only event viewer thing I can find is this.

image

Before this event it's all warning about how a few services cannot connect with the internet (I can see a few of these on my main PC where i also ran this script but with no audio problems) image

got a few more via custom view: image image image this is the first time i was able to catch something in event viewer. will be monitoring even closer.

johnvo0918 commented 1 month ago

Look what I found. It happened again and I got the same error in event viewer. image

Raphire commented 1 month ago

Thanks for the update.

The svchost process contains many system processes, it's hard to pinpoint what exactly is causing it.

For reference, you can see all services that run inside the svchost process with this command: Tasklist /SVC

I found some troubleshooting info here: https://techcommunity.microsoft.com/t5/ask-the-performance-team/getting-started-with-svchost-exe-troubleshooting/ba-p/372644

I think it might help to look at method 1 described in the article above to isolate certain processes (such as AudioSrv) to see if that service is the culprit, or that maybe something completely different is causing it.

Additionally if the errorlog of the svchost crash includes a process ID (PID) check if this corresponds with any of the PID's you see when you run the command Tasklist /SVC

johnvo0918 commented 1 month ago

okay I mightve found something. The audio device crashing has something to do with the tweaks to the task bar because audio will work fine until I try to change my volume via the task bar. it starts to freeze the task bar, settings is no longer accessible BUT so far pressing on troubleshoot sound problems via right click makes windows reboot the audio services, which then bring audio devices back. No idea why this is happening, still monitoring closely.

johnvo0918 commented 1 month ago

new error https://i.imgur.com/gR5f16Y.png I do have oculus installed on this laptop Imma go ahead and disable it to see if I can repeat it. But I have found a consistent way to force the laptop to crash my audio. literally just spam the volume slider LOL . Update: uninstalling it did nothing. i went ahead and fully uninstalled everything audio related. still not fixed.

johnvo0918 commented 1 month ago

tried to run microsoft's recommended troubleshooter: https://i.imgur.com/FxkFE0A.png

Raphire commented 1 month ago

tried to run microsoft's recommended troubleshooter: https://i.imgur.com/FxkFE0A.png

I think this may be related to the Get Help app not being installed. Microsoft integrated many of the troubleshooters into this app. You can reinstall it here: https://apps.microsoft.com/detail/9pkdzbmv1h3t

johnvo0918 commented 3 weeks ago

it's been awhile later. I'm still suffering from the issue I have no idea what is causing it. I'm this close to just completely reinstall windows. I can't get the app without the microsoft store btw 💀 thank god i don't daily drive the laptop anymore but this is a problem i will be closely monitoring until i can't take it anymore.