• WhyJiffie@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    14 hours ago

    does that mean though that if I connect a PS/2 keyboard or mouse to my relatively modern computer (a “gamer” motherboard made ~6 years ago) 's PS/2 port, that it’ll still trigger such an interrupt?

    • atomicbocks@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      13 hours ago

      The other commenter is on the right track but the chip controls both USB and PS/2 as well as others;

      In the 90s and 2000s, for x86 machines, slower I/O was handled by a chip called the Southbridge which worked in conjunction with a chip called the Northbridge that handled faster I/O like IDE and PCI. Later these were integrated into a single chip and, as of recent processor generations, into the processor itself.

      AFAIK ghosting and key rollover are issues when using PS/2 but it can offer some milliseconds off latency when used in high cpu games.

      • DeRp_DaWg@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        12 hours ago

        AFAIK ghosting and key rollover are issues when using PS/2

        I think it’s more of an issue for USB keyboards than PS/2 keyboards.

        • herrvogel@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          11 hours ago

          They are wholly independent from the protocol or interface. Ghosting is an electrical issue that is a result of keyboards being a bunch of switches arranged in a matrix. It makes the keyboard’s controller register an extra keypress in certain conditions. Nothing to do with how the thing communicates with the host computer.

          Key rollover issues can be related to ghosting. The limit for it is once again the keyboard’s design at the circuit level, not its communication protocol.

          Really they’re both related to how cheaply built the keyboard is. That’s the only thing.

        • ugo@feddit.it
          link
          fedilink
          arrow-up
          0
          ·
          11 hours ago

          Ghosting entirely depends on the wiring of the keyboard pcb. Key rollover can depend on the wiring of the keyboard pcb, but usually is limited by the usb HID protocol.

          Generally speaking, usb can carry up to 6 keys of information in a single packet (I don’t remember off the top of my head if modifiers are included). It is possible to use extended packets and encode more info (and thus allow for more than 6 keys rollover) but it requires negotiation with the os so most vendors don’t bother as generally you don’t need to be able to press more than 6 keys at the same time for most applications.

    • Colloidal@programming.dev
      link
      fedilink
      English
      arrow-up
      0
      ·
      14 hours ago

      I think there’s a USB device inside the mobo to handle dumb peripherals. So it would still trigger an interrupt, but it wouldn’t make it to the CPU. The USB keyboard controller would handle it and cache the strokes locally until polled by the CPU.

      • grue@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        14 hours ago

        I would expect that any motherboard that went to the trouble of including a PS/2 port would handle it with a real hardware interrupt, because the whole point of still having those things is to avoid the latency overhead of USB.