Ryochan7 / DS4Windows

Like those other ds4tools, but sexier
https://ryochan7.github.io/ds4windows-site/
GNU General Public License v3.0
6.93k stars 802 forks source link

hid guardian .. mouse keyboard not working .. can't start windows 7 #1525

Closed sunotis closed 3 years ago

sunotis commented 3 years ago

hi .. i have a serious problem after installing hid guardian.

i have no access to my windows 7 desktop anymore, so i can not say which version ist was.

no access, because my usb keyboard and mouse don't work anymore right after exiting bios. i can not even start in safe mode .. because i can not select safe mode as the keyboard is not responding

so after a while the windows login screen is loading and i can not do anything

any idea how i can repair this?

Masamune3210 commented 3 years ago

if your keyboard is being affected by hidguardian, you will still be able to or at least should be able to access safe mode as it only kicks in once windows is fully booted. if not, do you perhaps have another keyboard or mouse handy? it shouldn't be affected by the program if you do

mika-n commented 3 years ago

You must have somehow lost the hidGuardian.sys device driver file because if that file is removed before unregistering HidG uplink filter links then you end up without usb keyboard/mouse. PS2 kbd/mouse would work. If you don't use a proper uninstallation app then manual steps are like this to unintalll hidGuardian: https://github.com/ViGEm/HidGuardian/tree/master/sys#manual-removal

Anyway, if you end up with that situation then it is possible to fix the issue through WinOS "boot recovery / advanced" option (command line interface of safe boot):

After reboot you should be back in business because the filter driver setting is gone (which was pointing to non-existent or non-working HidGuardian installation).

(These instructions can be found from HidGuardian web site/discord/documentation. I didn't come up with this steps, it was documented by HidGuardian/ViGem author Nefarious). HidGuardian works great, but especially the uninstallation needs to be done properly in order to avoid the issue you described.

sunotis commented 3 years ago

thank you!

mika-n commented 3 years ago

HidGuardian version 1 works great when it works, but it is theoretically dangerous driver if something goes wrong with the driver setup (just like you had). Fortunately nothing is permanently broken if this happens. There has been rumors of HidGuardian version 3 and rumors tell it does a lot of things better. But, all we can do is to donate/send test reports/help with documentation the author and wait for until the author Nefarious thinks it is release ready. Trust me. It doesn't help to ask what is the landing ETA time for the next version of HidGuardian or ViGem driver :-)

Ryochan7 commented 3 years ago

You have to be really careful when you install or uninstall HidGuardian. The biggest issue is adding the Class Filter without having the driver installed. That is a guaranteed way to lose access to all HID input devices including a USB keyboard and USB mouse. You would then be forced to go into recovery mode and fix the Windows registry from there.

I usually use my own utilities to install a custom HidGuardian rather than using the old command line method with devcon.exe.

brack-choko commented 3 years ago

These instructions can all be done from the CMD interface? The renaming and selecting files? I don't know anything about command line so I'd like some tips.

mika-n commented 3 years ago

If you want to uninstall HidGuardian and replace it with more robust and reliable (and easier to use) HidHide tool then see the HidHide installation guide. It explains how to uninstall HidGuardian before trying to install HidHide https://vigem.org/projects/HidHide/Simple-Setup-Guide/

brack-choko commented 3 years ago

I'm in the same boat as the poster. I deleted the same thing and now my peripherals won't work. I've never used CMD, nor regedit. I'm hoping for a little more guidance if at all possible.

mika-n commented 3 years ago

okey, then there is no better guides than those using CMD and registry editor tool. It is the only way to resolve the issue now when you have screwed up the uninstallation of a device driver. Device drivers operate in Windows kernel mode, so those are always potentially more "dangerous" than normal user mode applications.

If you have a PC motherboard supporting those old PS/2 kbd/mouse connections then you could use ps/2 kbd and mouse to access the PC and try to recover the things without going through Windows recovery mode.

Alternative way is to re-install Windows :-)

brack-choko commented 3 years ago

nice, thanks for the quick responses. also, trying to rename "system" in the config file seems impossible as it is already in use. That seems to be my only issue atm but if I can't figure it out I'll go ahead and re-install.

Ryochan7 commented 1 year ago

Just needed this info after turning off Test Signing and not removing HidHide; need it off temporary to test Valorant. Realized my error when the keyboard and mouse didn't work upon rebooting Windows. I thought there was another issue somewhere with the guide on how to get into Windows Recovery mode and fix the registry but this is the only issue I could find. Pinning this issue for now.

Kanuan commented 1 year ago

Oh, right, I was working on an HidHide manual removal guide but was procrastinating on actually finishing it.

Will try finishing it and making it live today

Kanuan commented 1 year ago

And done: Fixing an improper removal of HidHide

Guide may be overdetailed but I thought it was better to leave no room for error, specially considering some users might be scared of messing with the registry

Trihy commented 1 year ago

Just leave rdp or any other tool configured. It will make things a lot easier.