i followed a “install any linux distro in 5 minutes” guide and after just 14 hours i finally have an OS that is running properly

as a long time hater i must say its very nice and i like it a lot, especially considering microsoft is hellbent on making windows the worst OS as quickly as possible. i will say, im a big nerd and this stuff comes to me pretty easily but i still think hoping normies will adopt this is kinda insane

anywho, its the year of linux or so i keep hearing

also if anyone knows why my keyboard keeps disconnecting every 30 minutes or so, i would very much like to know why. its an anne pro 2 that i am using with a wired connection

    • trompete [he/him]@hexbear.net
      link
      fedilink
      English
      arrow-up
      5
      ·
      1 day ago

      Idk, seems like the device (why is it a identifed as a gamepad?) doesn’t respond. I guess in theory it could be the cable/connection, but I assume the thing worked fine in windows? Maybe worth trying to change the cable if that’s possible anyway.

      I really doubt that the Linux HID or USB drivers are actually at fault/bugged here, they work with thousands of different similar devices totally fine. Maybe that’s something that might be fixed by a firmware update?

      For a workaround, you might try usbreset. You could (say) write a script that either runs every 15 minutes as a cronjob, or it looks at the logs and triggers automatically when it sees these relevant errors or something like that.

      • PorkrollPosadist [he/him, they/them]@hexbear.net
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        1 day ago

        I suspect it’s udev issue. Udev is the system responsible for (among other things) identifying hardware and assigning the proper driver to it. It is sometimes necessary to add explicit udev rules for some obscure hardware to force the system to prefer one driver over another, or to recognize some wierd ass USB device would be perfectly happy being treated simply as e.g. a serial device. One somewhat common situation is explicitly telling udev to tread obscure knockoff gamepads as if they were an xbox controller.

        • trompete [he/him]@hexbear.net
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 day ago

          I don’t think so, it wouldn’t even work if it wasn’t recognized as keyboard. It probably is recognized as both a keyboard and a gamepad at the same time. Physical USB devices can (and frequently do) present as multiple devices to the host. For example, a keyboard with a scroll wheel will look like be both a keyboard and a mouse.

      • GoebbelsDeezNuts [any]@hexbear.netOP
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        1 day ago

        ive tried two different cables and it works fine in windows

        im wondering if it has something to do with it also being recognized as a gamepad?

        i found this https://www.reddit.com/r/linuxquestions/comments/txwwne/unbinding_subhid_devices/

        im wondering if it gets recognized as both a controller and a gamepad and when the “gamepad” logic doesn’t see any input it just puts the whole device to sleep? i dunno im so lost

        i might just try flashing qmk onto it

        • trompete [he/him]@hexbear.net
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 day ago

          Idk for sure, but this theory seems far-fetched to me. Why would it put a gamepad to sleep at all? Why would putting the gamepad HID device to sleep affect the keyboard HID device? Why wouldn’t the same thing happen on Windows?

          Btw, just for my curiosity, what extra feature does this keyboard have that might make it show up as gamepad as well? Does it have an analog stick on it or what’s going on here?

          • GoebbelsDeezNuts [any]@hexbear.netOP
            link
            fedilink
            English
            arrow-up
            3
            ·
            edit-2
            1 day ago

            fingers crossed but I think I may of fixed it, i went through its old firmware updates and found the oldest before any mention of a “game mode” and it seems to function properly now for some reason

            also when i use lsusb it just reads as a keyboard now instead of a gamepad

          • GoebbelsDeezNuts [any]@hexbear.netOP
            link
            fedilink
            English
            arrow-up
            3
            ·
            1 day ago

            it doesn’t have any bell or whistle that should make it show up as a gamepad, tbh to me it seems like a dev covering one too many bases or something because there really isn’t any reason for it

            • trompete [he/him]@hexbear.net
              link
              fedilink
              English
              arrow-up
              2
              ·
              1 day ago

              Btw I just googled USB power management, and on Linux the default USB “autosuspend” seems to be 2 seconds. So it going into power safe mode after half an hour seems unlikely.