ps2_sliced_command(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

โœจ NAME โœจ

ps2_sliced_command โ€” bestie, this one sends an extended PS/2 command to a mouse ๐Ÿญ๐Ÿ’… and honestly it's giving "we do a little trolling with extra steps" (affectionate).

It's a <purple>Kernel API Manual</purple> moment, so grab a snack ๐Ÿ“ and let's get into it.


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

int ps2_sliced_command (struct ps2dev *ps2dev , u8 command );

๐ŸŽ€ ARGUMENTS ๐ŸŽ€

  • ps2dev โ€” the PS/2 device that should execute the command ๐Ÿซถ like, the little guy who's gonna do the thing
  • command โ€” the command byte โœจ one whole byte, that's the whole errand

๐Ÿ’– DESCRIPTION ๐Ÿ’–

okay so. The command gets sent using <hotpink>"sliced" syntax</hotpink> โ€” and no, that's not me being weird, that's the actual name ๐Ÿ“š. It's the fancy-pants syntax that advanced devices understand, the ones like Logitech or Synaptics touchpads ๐Ÿ‘‘ (iykyk).

And the way it gets encoded is literally this, no cap:

0xE6 0xE8 rr 0xE8 ss 0xE8 tt 0xE8 uu

where (rr*64)+(ss*16)+(tt*4)+uu is the command ๐Ÿงฎ๐Ÿ’€ โ€” yes, it's doing math inside a mouse command, main character energy fr fr. The four nibbles get sliced up and shipped out one by one with 0xE8 as the little bodyguard in front of each. Slay ๐Ÿ’…


๐ŸŒˆ SEE ALSO ๐ŸŒˆ


that's the whole page, bestie ๐ŸŽ€๐Ÿฆ‹ no crumbs left, every flag and byte accounted for โœจ

source: ./drivers/input/serio ยท version/date: October 2026 ยท manual: ps2_sliced_command(9) โ€” ok bye, go read the SEE ALSO, I believe in you ๐Ÿ’œ๐Ÿซถ

๐Ÿ“ฆ where this page comes from