I have a USB-C hub that has an NVMe slot built in and offers USB-PD power passthrough. My intention had been to use that hub to dual boot Windows from a 2TB NVMe so I could run native Gamepass and Genshin Impact on my Steam Deck, while keeping the majority of that drive formatted to share games between SteamOS and Windows, but it seems that any time the device changes power states the NVMe drive is disconnected and reconnected as part of the process.

This is problematic enough when I start Windows from the NVMe SSD in the enclosure connected to power, things work fine until the Steam Deck reaches full charge and the USB-PD is renegotiated so as to run things from the charger rather than continually topping up the battery. Windows dies immediately because the disk briefly goes away and comes right back. So fine, I just don’t start my Deck with the hub connected unless the Steam Deck is fully topped off and problem solved?

That’s all fine and well, but it becomes unbearable when I use my fancy 120w charging brick that offers multiple USB ports to power/charge multiple devices which charger renegotiates every device plugged in whenever any device is added, removed, or changes power states. If my Kindle Fire hits full charge while I’m playing on my deck, the connection to the NVMe storage is killed and anything with files open from the drive takes a dump. This happens in Windows and in SteamOS.

I’ve used the same NVMe drive in several different external enclosures hooked up via USB-A, with several different USB chargers (all 65w or higher,) all through the same hub that has the NVMe slot built in, through a fancier Lenovo hub, and a through a cheap $20 number from Amazon; all of the hubs have USB-PD passthrough and no matter what the setup it seems like no drive will stay connected in any arrangement if the power delivery situation changes in any way.

The question then is this: What is responsible for this behavior?

Is the Steam Deck uniquely unable to keep data connections open while power delivery is renegotiated, are all 3 of the hubs I have botching things and another hub would allow this behavior I desire, or is this normal for the USB spec and it’s just not possible to have a reliable data connection going during a USB-PD state change? I’ve been unable to find any answers searching the Internet, so if you’ve got an authoritative source on the answer to my question, I’d love to see it and know if I should just give up on my dream or if there’s a solution somewhere.

  • lemmyman@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    6 months ago

    Have you tried an enclosure for the drive with its own dedicated power source?

    My suspicion is that upon the PD renegotiation, your drive is temporarily losing power. Whether this is expected or USB-compliant behavior, I don’t know. But if that is the problem, I’d think using a separately powered enclosure might solve it.

    On the other hand, maybe the (internal to hub) data hub IC is resetting the data line upon PD renegotiation. That seems contrary to the intent of USB and I’d suspect violates the USB standard.

    Source: I’ve designed some USB PD power systems but not delved into the details of how data is handled

    • DarthYoshiBoy@kbin.socialOP
      link
      fedilink
      arrow-up
      2
      ·
      6 months ago

      Have you tried an enclosure for the drive with its own dedicated power source?

      Good question. The same behavior also happens with an externally powered Western Digital Spinning Disk USB3 HDD, I haven’t ever found an externally powered NVMe enclosure but I had thought about that possibility. I should also note that the two external NVMe enclosures I have used don’t see any interruption for the LEDs on the enclosure when the power state change happens and any other USB connected peripheral continues to operate without interruption further complicating this situation.

  • Da_Boom@iusearchlinux.fyi
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    5 months ago

    While I’m not sure if you can do NVMe over the SD type C (unless it’s similar to thunderbolt or the super high tier latest USB spec I doubt it)

    You should already be able to get genshin running on the SD - either patched via an anime game launcher, or from what I hear areweanticheatyet.com already seems to has good news about unmatched genshin.

    As for game pass, idk I don’t use it myself because I don’t run windows on any of my systems and I’d rather not give Microsoft too much money, but just a warning - the SD was not built for windows. You might find the windows drivers, while probably stable at this point might be a bit finnicy and feel like an afterthought - because generally it probably is an afterthought. I wouldn’t expect good battery life with windows, and I would also expect potentially worse performance for games that work on both operating systems.

    The steam deck is one of the few platforms where the best expirience is Linux, because that’s what it was tailored to.

    That said, it’s up to you, if you want to do that, go ahead, no one’s stopping you it’s your device after all.

  • averyminya@beehaw.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 months ago

    I’ve had nothing but problems with SSD enclosures in general. I tried just having an SSD as a portable game drive and was basically facing the same issue you were. But I don’t think it’s Steam Deck specific, the same issue was happening on my PC.

    I think part of it is the power supply needed for the SSD drawing higher than the hubs like? Direct connect on PC mostly no issues, via hub it has drops. Haven’t direct connected to Steam Deck but it seems to have the same issue with the SSD staying connected to the hub.

    I was using an ASUS enclosure. Narrowed one issue down to a USB cable itself but even still that didn’t solve the same long term issue, which it seems you’re running into as well.

    I’ve noticed the same behavior but I’m not sure it’s explicitly Deck specific, it may legitimately be a USB protocol thing preventing this or something.

    • DarthYoshiBoy@kbin.socialOP
      link
      fedilink
      arrow-up
      2
      ·
      6 months ago

      I have zero issues with the external drive if it’s connected directly, but for the fact that it takes up the USB port so I can’t charge while I’m using the drive and that makes using it for Windows dual boot a non-starter since Windows “power management” is a complete joke and the battery life isn’t enough to do any serious gaming.

      But if I don’t mind only getting a couple of hours of runtime for games when in Windows, direct connecting the drive via USB-C and an enclosure is the only setup that seems to work. As soon as I want to get some power in the mix, it’s nothing but failures all around.