lsgpu(1)
π lsgpu β the manual page, bestie edition π
okay so you opened lsgpu(1) and you want the tea? say less. this is the whole page, every flag, every path, every vibe. no cap. π«Ά
β¨ NAME β¨
lsgpu β list and inspect GPUs by scanning the PCI bus, DRM, and sysfs
literally what it says on the tin, and honestly? iconic.
πΈ SYNOPSIS πΈ
lsgpu [OPTIONS]
that's it. that's the whole thing. one command, all the options. she's low maintenance. π
π¦ DESCRIPTION π¦
so lsgpu is part of the igt-gpu-tools suite, and she was literally designed to help with GPU enumeration and debugging. think of her as your group chat's most organized friend who knows exactly which GPU is which and will not let you forget it. π₯
we're talking a command-line tool for listing and inspecting the GPUs hanging out on your system. she scans the PCI bus, the DRM subsystem, and sysfs to gather up all the info about detected GPU devices and their properties. all three. the whole scavenger hunt. β¨
by default, lsgpu shows you a list of GPUs with the basic details. but bestie, that's just the appetizer. the tool also supports extra options to:
- print detailed properties and sysfs attributes
- apply filters so you can pick out specific devices
- verify access permissions to GPU nodes
filtering happens with the -d or --device option, and it lets you match GPUs based on vendor, PCI attributes, or other criteria. π heads up though: when you apply a filter, only the first matching device is displayed. so don't come for her when you only see one result β that's the assignment.
on top of all that, lsgpu will try to open the matching DRM device nodes β /dev/dri/cardX and /dev/dri/renderDX β to check whether you actually have access permissions. nosy? maybe. useful? absolutely. π
she follows the IGT variable search order for picking the target device:
- The
--deviceoption, if provided - The
IGT_DEVICEenvironment variable, if set - The
.igtrcconfiguration file (Common::Devicesetting), if neither of the above is specified
it's giving β¨priority list energyβ¨ and honestly? respect.
π OPTIONS π
-h,--helpβ Show help text.-n,--numericβ Print vendor/device as hex-c,--codenameβ Print codename instead pretty device name-s,--print-simpleβ Print simple (legacy) device details-p,--print-detailsβ Print devices with details-P,--pci-scanβ Print PCI GPU devices-v,--list-vendorsβ List recognized vendors-l,--list-filter-typesβ List registered device filters types-d,--device<filter> β Apply a device filter (e.g.'pci:vendor=Intel,device=discrete,card=0'). Can be used multiple times.-V,--versionβ Print version information and exit
okay real talk:-d/--devicecan be used multiple times, so stack them filters like stickers on a laptop. π«Ά and copy that example filter exactly if you're using it, bestie β character for character. no improvising.
π Default print mode options π
these ones? only valid when you're using the default printout mode. don't try to sneak them in anywhere else, she will not play. π
--drmβ Default: Print DRM filters for each device--sysfsβ Print sysfs filters for each device--pciβ Print PCI filters for each device
π REPORTING BUGS π
found a bug? spill. report bugs on fd.o GitLab:
https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues
girl help, a bug π β but like, a reported one, which is the correct way to handle it.
π AUTHOR π
IGT Developers <igt-dev@lists.freedesktop.org>
π COPYRIGHT π
2009,2011,2012,2016,2018,2019,2020,2023,2024,2025 Intel Corporation
and that's the whole manual, bestie. this was lsgpu, served fresh from igt-gpu-tools 2.5, dated 2025-03-27. she ate, no crumbs, periodt. πβ¨π¦πΈπ
π«Ά
π¦ where this page comes from
- ubuntu stonking: igt-gpu-tools 2.5-1
- π the page's license: MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms