XHCI hand-off

Everything about latency. Tips, testing methods, mouse lag, display lag, game engine lag, network lag, whole input lag chain, VSYNC OFF vs VSYNC ON, and more! Input Lag Articles on Blur Busters.
alfik
Posts: 2
Joined: 25 May 2024, 17:04

XHCI hand-off

Post by alfik » 25 May 2024, 17:13

XHCI hand-off is enabled by default in my BIOS (ASRock B650M-HDV/M.2). After disabling it, I noticed that my mouse movement feels different.

After researching the topic I found a lot of old and conflicting info. Even mobo manufacturers can't seem to make up their minds, it's disabled by default on some boards and enabled on others.

My understanding is that it exists to make USB 3 work on old systems (Windows 7), and has no effect in Windows 10 and 11. It boggles my mind that nobody is talking about it because it definitely alters how mouse movement feels.

Is it XHCI hand-off enabled or disabled that has less input latency?

User avatar
RealNC
Site Admin
Posts: 3795
Joined: 24 Dec 2013, 18:32
Contact:

Re: XHCI hand-off

Post by RealNC » 26 May 2024, 00:25

This is one of those settings where all information I can find about it appears to be wrong. Apparently, "it needs to be enabled" for USB 3 to work if the OS supports USB 3. For older operating systems that don't support USB 3, "it needs to be disabled" so the ports will still be usable but run at USB 2 speeds.

Well, this was never true for me. Whether I disable or enable it, my USB 3 ports work at USB 3 speeds (tested with external USB SSD) in both Windows 10 and Linux. It's a confusing setting for sure.
SteamGitHubStack Overflow
The views and opinions expressed in my posts are my own and do not necessarily reflect the official policy or position of Blur Busters.

alfik
Posts: 2
Joined: 25 May 2024, 17:04

Re: XHCI hand-off

Post by alfik » 26 May 2024, 03:51

Yes, same here. USB 3 works as intended whether XHCI hand-off is enabled or disabled. I suppose it would only matter in Windows 7 and older systems. But even in Windows 11 it still changes how the XHCI controller is handled and has an impact on mouse movement.

Makes it even more confusing that the setting exists and is enabled by default on modern AM5 motherboards. No sane person uses Windows 7 with a Ryzen 7xxx.

AyayronPlays
Posts: 20
Joined: 16 Nov 2022, 10:52

Re: XHCI hand-off

Post by AyayronPlays » 27 May 2024, 11:46

My understanding as far as i know (not an expert) is that it simply hands off the usb to the OS as opposed to being handled by the bios

Whether that's true or not, i have no idea

MatrixQW
Posts: 297
Joined: 07 Jan 2019, 10:01

Re: XHCI hand-off

Post by MatrixQW » 28 May 2024, 18:43

RealNC wrote:
26 May 2024, 00:25
This is one of those settings where all information I can find about it appears to be wrong. Apparently, "it needs to be enabled" for USB 3 to work if the OS supports USB 3. For older operating systems that don't support USB 3, "it needs to be disabled" so the ports will still be usable but run at USB 2 speeds.

Well, this was never true for me. Whether I disable or enable it, my USB 3 ports work at USB 3 speeds (tested with external USB SSD) in both Windows 10 and Linux. It's a confusing setting for sure.
BIOS: "This is a workaround for OSes without XHCI hand-off support. The XHCI ownership change should be claimed by XHCI driver"
The text can be confusing and there is alot of contradictory information on internet but as I understand it, enabled is the workaround and should be disabled for W10 because the OS supports hand-off and that's why it works with it enabled/disabled.
Enabled = BIOS
Disabled = OS (if supported)
alfik wrote:
25 May 2024, 17:13
Is it XHCI hand-off enabled or disabled that has less input latency?
According to what I said and if it is correct, disabled should give less latency since you are not forcing something that the OS already supports.

Hyote
Posts: 57
Joined: 09 Jan 2024, 18:08

Re: XHCI hand-off

Post by Hyote » 28 May 2024, 19:14

I'm starting to be confused about why all the recent posts are about settings that were explored a long time ago. You can find 10 different forum posts about them. Disable XHCI-handoff, disable as many USB ports as you can, just look up any guide like the one from r0ach. Even it looks crazy, it isn't. Start looking at the real culprit which is Windows. Strip the entire OS (no apps, Defender), disable services, disable HPET, good power plan, timer res, important GPU settings like disabling HDCP support, regedit settings, change priority of csrss to realtime, things like dwm, dllhost, fontdrvhost, sppsvc to idle. Assign affinities to your USB, GPU, Ethernet and also audiodg, csrss, dwm, fontdrvhost, lsass, SetTimerResolution, ShellExperienceHost, sihost, and multiple instances of svchost if you can. Many of these can destabilize your system so you need to set them to the right cores.

Slender
Posts: 695
Joined: 25 Jan 2020, 17:55

Re: XHCI hand-off

Post by Slender » 30 May 2024, 19:18

RealNC wrote:
26 May 2024, 00:25
This is one of those settings where all information I can find about it appears to be wrong. Apparently, "it needs to be enabled" for USB 3 to work if the OS supports USB 3. For older operating systems that don't support USB 3, "it needs to be disabled" so the ports will still be usable but run at USB 2 speeds.

Well, this was never true for me. Whether I disable or enable it, my USB 3 ports work at USB 3 speeds (tested with external USB SSD) in both Windows 10 and Linux. It's a confusing setting for sure.
for z390 that work correctly - usb 3.0 devices lowering to usb 2.1

User avatar
JimCarry
Posts: 101
Joined: 24 May 2024, 20:01
Location: dust2

Re: XHCI hand-off

Post by JimCarry » 06 Jun 2024, 12:48

So in the end disabled or enabled?

MatrixQW
Posts: 297
Joined: 07 Jan 2019, 10:01

Re: XHCI hand-off

Post by MatrixQW » 06 Jun 2024, 18:57

JimCarry wrote:
06 Jun 2024, 12:48
So in the end disabled or enabled?
I can't be sure but it seems to me that it will depend on how the setting is implement on each board because of Slender and RealNC contrary statements.
Some boards clearly say that enabled means it's for an OS that doesn't have hand-off support so it works as a compatibility setting.
In this case it should be disabled for W10/11 but even if it's enabled, devices will still work properly at the corresponding speed.
However, for Slender's board it has an effect.

So, disable it and if your devices still work at proper speed you might as well leave it disabled. This is my take.
You can use 'usb device viewer' or whatever app to see the connection speed of the devices.

User avatar
JimCarry
Posts: 101
Joined: 24 May 2024, 20:01
Location: dust2

Re: XHCI hand-off

Post by JimCarry » 06 Jun 2024, 20:56

MatrixQW wrote:
06 Jun 2024, 18:57
JimCarry wrote:
06 Jun 2024, 12:48
So in the end disabled or enabled?
I can't be sure but it seems to me that it will depend on how the setting is implement on each board because of Slender and RealNC contrary statements.
Some boards clearly say that enabled means it's for an OS that doesn't have hand-off support so it works as a compatibility setting.
In this case it should be disabled for W10/11 but even if it's enabled, devices will still work properly at the corresponding speed.
However, for Slender's board it has an effect.

So, disable it and if your devices still work at proper speed you might as well leave it disabled. This is my take.
You can use 'usb device viewer' or whatever app to see the connection speed of the devices.
i think you mean this program but i dont know where to look right now is disabled in bios?
Attachments
untitled.GIF
untitled.GIF (449.08 KiB) Viewed 678 times

Post Reply