ps2_sliced_command(9)
โจ 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 thingcommandโ 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 ๐
- Kernel file
./drivers/input/serio/libps2.c ps2_sendbyte(9)ps2_begin_command(9)ps2_end_command(9)ps2_drain(9)ps2_is_keyboard_id(9)__ps2_command(9)ps2_command(9)ps2_init(9)ps2_interrupt(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms