• Aganim@lemmy.world
      link
      fedilink
      arrow-up
      43
      ·
      edit-2
      11 months ago

      Seems the CPU has become the bully these days:

      CPU: hey keyboard do you have anything for me?
      CPU: hey keyboard do you have anything for me?
      CPU: hey keyboard do you have anything for me?
      CPU: hey keyboard do you have anything for me?
      CPU: hey keyboard do you have anything for me?
      CPU: hey keyboard do you have anything for me?
      CPU: hey keyboard do you have anything for me?
      CPU: hey keyboard do you have anything for me?
      Keyboard: E
      CPU: hey keyboard do you have anything for me?
      CPU: hey keyboard do you have anything for me?
      CPU: hey keyboard do you have anything for me?
      CPU: hey keyboard do you have anything for me?

      • Possibly linux@lemmy.zip
        link
        fedilink
        English
        arrow-up
        9
        ·
        edit-2
        11 months ago

        My grandpa always used to say that computers used to be way better before they became electrical.

        • Smokeydope@lemmy.world
          link
          fedilink
          English
          arrow-up
          7
          ·
          edit-2
          11 months ago

          Ah, yes the good ol days of punch cards, switch boards, mechanical operators and electron tubes, when will the youngins learn that their fancy transistors are for pussies

          Personally I inscribe all of my code into binary on a fired clay tablet and store it in a cave for archival purposes

  • 0x4E4F
    link
    fedilink
    English
    arrow-up
    27
    arrow-down
    1
    ·
    11 months ago

    I don’t get it…

    • Fridgeratr@lemmy.world
      link
      fedilink
      arrow-up
      102
      ·
      11 months ago

      Modern USB keyboards need to be asked what’s being pressed by the CPU multiple times a second, but old PS/2 keyboards will actually interrupt the CPU to send the key press command

      • 0x4E4F
        link
        fedilink
        English
        arrow-up
        15
        arrow-down
        2
        ·
        edit-2
        11 months ago

        Oh, didn’t actually know what’s being done behind the scene…

        Why is this relevant to Linux only?

          • 0x4E4F
            link
            fedilink
            English
            arrow-up
            7
            arrow-down
            11
            ·
            11 months ago

            Hm… then why is it posted in a Linux comm?

            • renzev@lemmy.world
              link
              fedilink
              arrow-up
              3
              ·
              edit-2
              10 months ago

              It’s kind of a tradition among the r*ddit refugees from s*bs like linuxmemes and linuxmasterrace. Posting things that aren’t strictly linux-related, but would still be appreciated in general by computer nerds.

              • 0x4E4F
                link
                fedilink
                English
                arrow-up
                3
                ·
                10 months ago

                Ah, didn’t know that 👍.

      • Turun@feddit.de
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        11 months ago

        Why e in this context? I have seen sei() and cli() before, but not E.

        • marcos@lemmy.world
          link
          fedilink
          arrow-up
          29
          ·
          11 months ago

          That’s the very important information you got from the keyboard.

          Some context may come later, but it will take ages.

          • Turun@feddit.de
            link
            fedilink
            arrow-up
            2
            ·
            edit-2
            11 months ago

            Thanks, apparently I can’t read. I somehow missed the top right yellow speech bubble.

    • dan@upvote.au
      link
      fedilink
      arrow-up
      24
      ·
      edit-2
      11 months ago

      PS/2 still works the same as it always has. No changes there. It’s not really possible to change how PS/2 operates because it wouldn’t be backwards compatible with old keyboards or software.

      Legacy stuff sticks around for a while and generally doesn’t change, since it needs to retain backwards compatibility. Modern x86 processors also still have a “real mode” with 1MB RAM max, like what the 286 versions of DOS and Windows 3.0 used to use.

      You can buy industrial PCs and motherboards today that not only have a PS/2 port, but also other legacy stuff like parallel and serial ports, ISA slots, etc. There’s actually motherboards that have ISA, PCI, and PCIe all on the same board. There’s 25+ year old machinery that’s still in use and extremely expensive to replace, so it’s not uncommon to have new computers with legacy connectors/ports in industrial environments.

      • TwanHE@lemmy.world
        link
        fedilink
        arrow-up
        11
        ·
        11 months ago

        Enthusiast motherboards still have the ps/2 ports as well. Usually because the usb controller is the first thing to stop working when the bclk gets too high or you’re going sub 0 cooling.

        • dan@upvote.au
          link
          fedilink
          arrow-up
          3
          ·
          11 months ago

          PS/2 keyboards are more likely to support n-key rollover, too (USB is maximum 6-key rollover by default).

        • dan@upvote.au
          link
          fedilink
          arrow-up
          5
          ·
          11 months ago

          Apparently some enthusiasts still use PS/2 keyboards because they have slightly faster response times / lower latency, and better support for n-key rollover.

        • zzx@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          11 months ago

          Recently did OSDEV on my machine running an ryzen 5 series. I was rolling my own bootloader and I still had to enable the A20 Line

    • AMDIsOurLord@lemmy.ml
      link
      fedilink
      arrow-up
      7
      ·
      11 months ago

      The absolute lowest level of computers haven’t changed much, we still fuck around with interrupts. However, USB peripherals are a LOT more complicated than this, and if I’m not mistaken they’re polled by the connection master

    • zzx@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      11 months ago

      We still kinda do, just depends on the kernel you’re using. On Windows any IRQL > 2 is pretty much instant like the bird