LAPTOP-DETECT(1)
๐ LAPTOP-DETECT ๐
okay bestie, so this is laptop-detect(1) from the User Commands section of the manual, and it's literally exactly what it sounds like ๐
โจ NAME โจ
laptop-detect โ attempt to detect a laptop ๐ซถ
๐ธ SYNOPSIS ๐ธ
laptop-detect [-h|--help|-v|--verbose|-V|--version|-D|--debug]
๐ฆ DESCRIPTION ๐ฆ
So laptop-detect is out here trying to figure out whether it's being run on a laptop or a desktop, and then it tells whoever called it what it found. That's it. That's the whole vibe. it's giving detective but make it chassis ๐โจ
๐ OPTIONS ๐
-h,--helpโ spits out the help info and then dips. so helpful, so polite ๐-v,--verboseโ be verbose, bestie! the messages go toSTDOUT๐ฃ๏ธโจ-V,--versionโ outputs the version info and then exits, iconic behavior ๐-D,--debugโ debug mode. we're getting into the weeds fr fr ๐ฅ
๐ EXIT STATUS ๐
0โ most likely running on a laptop ๐ปโจ1โ most likely NOT running on a laptop ๐2โ usage error (you supplied arguments, and it did not care for that) ๐ญ
lowkey important: that 2 only shows up when arguments get supplied, so mind your flags bestie ๐ซถ
๐ FILES ๐
these are the little places it goes snooping, no cap:
/proc/acpi/battery/proc/pmu/info/dev/mem/sys/devices/virtual/dmi/id/chassis_type/sys/class/power_supply/*/type/proc/apm
๐ SEE ALSO ๐
dmidecode(8) โ go read that one too, it's the main character of hardware snooping ๐ง
mwah ๐ this little page is from laptop-detect 0.14, dated March 2017 โ and the manpage itself is LAPTOP-DETECT(1). bye bestie, go touch grass (or don't, the laptop needs you) ๐ธ๐ฆ
๐ฆ where this page comes from
- arch rolling: laptop-detect 0.16-2 ยท BSD
- debian bookworm: laptop-detect 0.16 ยท BSD-3-Clause
- debian trixie: laptop-detect 0.16+nmu1 ยท BSD-3-Clause
- ubuntu jammy: laptop-detect 0.16 ยท BSD-3-Clause
- ubuntu noble: laptop-detect 0.16 ยท BSD-3-Clause
- ubuntu questing: laptop-detect 0.16+nmu1
- ubuntu resolute: laptop-detect 0.16+nmu1build1 ยท BSD-3-Clause
- ubuntu stonking: laptop-detect 0.17 ยท BSD-3-Clause
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms