pax_global_header00006660000000000000000000000064152103115120014501gustar00rootroot0000000000000052 comment=16729768c2d841139fd936f507299725d719f3a8 AGuyMarc-lsgpu-ce4c7bd/000077500000000000000000000000001521031151200150565ustar00rootroot00000000000000AGuyMarc-lsgpu-ce4c7bd/.gitignore000066400000000000000000000001311521031151200170410ustar00rootroot00000000000000__pycache__/ *.pyc *.egg-info/ dist/ build/ *.deb *.info debian_backup/ *.bak notes_*.md AGuyMarc-lsgpu-ce4c7bd/CHANGELOG.md000066400000000000000000000073451521031151200167000ustar00rootroot00000000000000# Changelog All notable changes to **lsgpus**. This is the canonical upstream changelog; `debian/changelog` tracks Debian packaging only. > The installed binary, man page and Debian package are named `lsgpus` (with a > trailing `s`) since 0.2.0. The GitHub repository and the Python module stay > `lsgpu`. ## 0.2.4 — 2026-06-04 * watch: the `--watch` header now carries the same identity as the default listing — the canonical PCI bus id + nvidia-smi GPU index (`[PCI 02:00.0 | nvidia-smi GPU0]`) and the `Driver:` line. These were only in the non-watch output before; nothing is lost in watch mode anymore. * docs: refresh the README demo GIF and the man OUTPUT sample to the new header. ## 0.2.3 — 2026-06-04 * watch: show the **full card name** in `--watch` headers. The previous code kept only the bracketed model and left a dangling `]` (e.g. `GeForce RTX 3050 6GB] (rev a1)`); it now shows the complete name. * docs(README): add an animated demo of `lsgpus --watch` during an Ollama run (VRAM climbing, GPU pegged, process list) in the real-time monitoring section. * docs(man): add a static sample of a `--watch` frame to the OUTPUT section. ## 0.2.2 — 2026-06-04 * docs(man): document the two options that were missing from the man page — `--all`/`-a` (show disconnected outputs) and `--watch`/`-w [SEC]` (live in-place refresh; stop with **Ctrl+C** — there is no quit key). Add matching EXAMPLES. The man had drifted behind the binary. ## 0.2.1 — 2026-05-29 * Show the canonical **PCI bus id** and the **nvidia-smi GPU index** next to each card — e.g. `card1: … [PCI 02:00.0 | nvidia-smi GPU0]`. This resolves the long-standing confusion between the kernel DRM `cardN` numbering (probe order, what `lsgpus` lists) and the bus-sorted `GPU N` index reported by `nvidia-smi` on multi-GPU machines — the PCI bus id is the only stable, unambiguous identifier. Also surfaced in `--short` and as `nvidia_index` in `--json`. * Declare the license as the SPDX expression `GPL-2.0-or-later` and drop the deprecated `License :: OSI Approved ::` classifier in `setup.py`. * tests: add a version-consistency guard that fails if the version sources (`setup.py`, `__version__`, man `.TH`, `debian/changelog`, this file) diverge. ## 0.2.0 — 2026-05-19 * Rename the installed binary `lsgpu` → `lsgpus` and the man page `lsgpu(1)` → `lsgpus(1)` to avoid the clash with the `lsgpu(1)` tool shipped by `igt-gpu-tools`. The Debian source/binary package is renamed to `lsgpus` with `Replaces`/`Breaks` for a clean migration. The GitHub repository keeps the name `AGuyMarc/lsgpu`. (Reported by seraf1 while packaging the AUR build.) ## 0.1.5 — 2026-05-18 * Clarify the dependency model in the README: Python 3.7+ and `/sys/class/drm` only; reads `nvidia-smi` / `rocm-smi` when present, but no CUDA / ROCm / pycuda required. ## 0.1.4 — 2026-05-15 * Packaging fixes: ship the man page and README, add a `debian/copyright`, move the `/usr/bin/lsgpu` symlink to `debian/lsgpu.links`, drop the postinst hack. Fix maintainer name `Aprin` → `APRIN`. ## 0.1.3 — 2026-05-15 * Lower `debhelper-compat` from 13 to 11 so the source package builds out of the box on Ubuntu 22.04 LTS. (Reported by bigbob.) ## 0.1.2 — 2026-05-14 * Add the SPDX license header (`GPL-2.0-or-later`). * EDID DTD sanity check: prefer the coarse size when the DTD diagonal exceeds 2× the coarse diagonal — fixes ~8" panels reported as 59" (e.g. SGN L01N8A, BOE panels). (Reported by Blaise on LinuxFr.org.) ## 0.1.1 — 2026-05-03 * Initial release: NVIDIA stats (`nvidia-smi`), AMD stats (sysfs), GPU process listing, real-time `--watch` sparklines, EDID monitor identification, override-file support, connected-only default (`-a` for all). AGuyMarc-lsgpu-ce4c7bd/LICENSE000066400000000000000000000431001521031151200160610ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, see . Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Moe Ghoul, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. AGuyMarc-lsgpu-ce4c7bd/README.md000066400000000000000000000264761521031151200163540ustar00rootroot00000000000000# lsgpus List GPUs with details, outputs, and connected monitors. Like `lscpu`, `lsusb`, `lspci`, `lsblk`, `lsmem` — but for graphics cards. A useful CLI tool for Linux users and admins. Zero-dependency — just Python 3.7+ and /sys/class/drm. Reads info from standard tools (nvidia-smi/rocm-smi) when present — no CUDA, no ROCm, no pycuda needed. > **Binary renamed in v0.2.0.** The installed command is now `lsgpus` (with a trailing `s`) instead of `lsgpu`, to avoid a name clash with the `lsgpu(1)` utility shipped by [`igt-gpu-tools`](https://gitlab.freedesktop.org/drm/igt-gpu-tools) on both Debian/Ubuntu and Arch. The GitHub repository keeps its original name (`AGuyMarc/lsgpu`). **Companion tool:** [`lsdisplay`](https://github.com/AGuyMarc/lsdisplay) — list the connected displays/monitors that those GPUs drive. ## Why this exists I built `lsgpus` and its companion [`lsdisplay`](https://github.com/AGuyMarc/lsdisplay) in parallel, both for the same reason: setting up my sysadmin workstation — six monitors driven by three GPUs (two NVIDIA cards plus the Arrow Lake iGPU), one of them a 65" overview TV — and finding that no single Linux command could tell me which card was driving which physical screen, doing what. Try answering this concretely: *which* GPU is driving the 32" Samsung sitting in the bottom-right corner of my desk right now, and what is that card actually doing? `lsgpus` answers the silicon side. It lists each card, its driver, current load, and the processes pinning its VRAM: ``` GRAPHICS CARDS ============== card0: NVIDIA Corporation GA107 [GeForce RTX 3050 6GB] (rev a1) Driver: nvidia | GPU:26% MEM:4422/6144MB 48°C 27.3W ├─ DP-4: connected ← Iiyama PL2792Q 27" ├─ HDMI-A-2: connected ← Iiyama PL2792Q 27" ├─ HDMI-A-3: connected ← Iiyama PL2792Q 27" card1: NVIDIA Corporation AD106 [GeForce RTX 4060 Ti] (rev a1) Driver: nvidia | GPU:0% MEM:12794/16380MB 48°C 15.1W ├─ HDMI-A-1: connected ← Samsung QE32Q50A 32" Processes: PID 9728 ollama 12744MB card2: Intel Corporation Arrow Lake-S [Intel Graphics] (rev 06) Driver: i915 ├─ HDMI-A-4: connected ← Iiyama PL2793Q 27" ├─ HDMI-A-5: connected ← Samsung TQ65QN800DTXXC 65" Total: 3 GPUs, 6 outputs connected ``` → `HDMI-A-1` lives on `card1`, the RTX 4060 Ti, currently pinned by Ollama with 12.7 GB of VRAM. `lsdisplay` answers the screen-and-cable side. It identifies each physical panel and shows where it sits on my desk: ``` CONNECTED DISPLAYS ================== HDMI-A-2 1440x2560+1441+0 27" 75Hz Iiyama PL2792Q HDMI S/N:1152032422031 rot=left [PRIMARY] HDMI-A-3 1440x2560+2881+0 27" 75Hz Iiyama PL2792Q HDMI S/N:1152032422030 rot=left HDMI-A-5 5376x3024+0+2561 65" 60Hz Samsung TQ65QN800DTXXC HDMI S/N:94:e6:ba:dd:9a:7a DP-4 1440x2560+0+0 27" 75Hz Iiyama PL2792Q DisplayPort S/N:1152031921274 rot=left HDMI-A-4 1440x2560+4322+0 27" 75Hz Iiyama PL2793Q HDMI S/N:12464540C1808 rot=left HDMI-A-1 1920x1080+5376+2561 32" 60Hz Samsung QE32Q50A HDMI S/N:bc:45:5b:e4:e8:13 Total: 6 displays connected LAYOUT ====== +-------------+-------------+------------+-------------+ | | | | | | | | | | | | | | | | | | | | | | | | | | DP-4 | HDMI-A-2* | HDMI-A-3 | HDMI-A-4 | | | | | | | | | | | | | | | | | | | | | | | | | | +-------------+-------------+------------+----------+-----------------+ | | | | | HDMI-A-1 | | | | | | | | +-----------------+ | | | HDMI-A-5 | | | | | | | | | | | | | | | +---------------------------------------------------+ ``` → that `HDMI-A-1` is the 32" Samsung in the bottom-right corner of my desk. The three Iiyama 27" on the top row are all on `card0` (RTX 3050 6 GB); the fourth 27" and the 65" overview TV come straight out of the Intel Arrow Lake iGPU (`card2`). Together they tell the whole story: the silicon, the cable, the panel, and what each card is currently doing. That's the workflow `lsgpus` exists for — and zero-dependency Python is what makes it work on the locked-down sysadmin boxes where I actually need it. ## Daily use: tracking VRAM for local AI If you run local LLMs (Ollama, vLLM, llama.cpp, text-generation-webui) or image/video models (ComfyUI, Forge, Stable Diffusion WebUI, Fooocus), you spend half your day asking the same four questions: - *Which card has enough free VRAM to load this model right now?* - *What is currently pinning 12 GB on `card1` — Ollama still loaded, ComfyUI that didn't release, an orphaned `python` process?* - *Did Ollama actually land on the 4060 Ti, or did it fall back to the iGPU / a smaller card?* - *Why is inference suddenly slow — is something else competing for the GPU?* `lsgpus` answers all of those in a single shot. The `Processes:` block under each card (NVIDIA cards today) shows the PIDs that own VRAM and how much, **broken out by card** — no need to grep `nvidia-smi` and cross-reference `/proc//cmdline` to figure out which Python process is which. Looking at `card1` from the workstation above: ``` card1: NVIDIA Corporation AD106 [GeForce RTX 4060 Ti] (rev a1) Driver: nvidia | GPU:0% MEM:12794/16380MB 48°C 15.1W ├─ HDMI-A-1: connected ← Samsung QE32Q50A 32" Processes: PID 9728 ollama 12744MB ``` Reading this: the card is idle (`GPU:0%`), but 12.7 GB of its 16.4 GB are pinned by `ollama` — typical of a model loaded and waiting for the next request. From those four lines I now know: - I have ~3.6 GB of headroom left on this card before the next load OOMs, - the heavy tenant is Ollama (not a forgotten ComfyUI worker I should kill), - if I want to load a bigger model, my options are: close Ollama, drop to a smaller quant, or move to a card with more free VRAM — and `lsgpus` shows the headroom on all cards in the same call. For real-time monitoring — watching a model load, diagnosing a sudden inference slowdown, seeing tokens-per-second pressure on the GPU — `lsgpus --watch` redraws in place with a rolling 20-sample utilization sparkline (▁▂▃▄▅▆▇█) and a progress bar next to each card, while keeping the process list visible so VRAM creep is observable as it happens: ```bash lsgpus --watch # default 2 s interval lsgpus --watch 5 # 5 s interval (gentler on the system) # press Ctrl+C to stop (there is no quit key; Esc / q / Ctrl+D do nothing) ``` ![lsgpus --watch during an Ollama run: VRAM climbing and the RTX 4060 Ti pegged at 98%, while a second model runs on the RTX 3050](docs/lsgpus-watch.gif) In a typical local-AI workflow that looks like: launch `lsgpus --watch` in a side terminal, start `ollama run ` in another, see the VRAM of the chosen card climb to its plateau, then watch the utilization sparkline pulse as each generation runs. ## Features - **GPU details**: name, driver, PCI address, VRAM - **NVIDIA stats**: utilization, memory, temperature, power draw (via nvidia-smi) - **Output mapping**: each port mapped to its connected monitor via EDID - **Monitor identification**: manufacturer, model, serial, diagonal size - **JSON output** for scripting - No external Python dependencies, works with Python 3.7+ ## Installation ### Debian / Ubuntu (.deb) Download the `.deb` from the [Releases page](https://github.com/AGuyMarc/lsgpu/releases/latest), then: ```bash sudo dpkg -i lsgpus_0.2.0-1_all.deb ``` The package installs `/usr/bin/lsgpus`, the man page `lsgpus(1)`, and documentation. **Upgrading from v0.1.x** (when the package was named `lsgpu`): the new package declares `Replaces: lsgpu (<< 0.2.0)` and `Breaks: lsgpu (<< 0.2.0)`, so `dpkg -i lsgpus_0.2.0-1_all.deb` cleanly removes the old `lsgpu` package on install. If you prefer an explicit cleanup first: ```bash sudo apt remove lsgpu sudo dpkg -i lsgpus_0.2.0-1_all.deb ``` ### Arch Linux / Manjaro (AUR) Available in the AUR thanks to [@seraf1](https://aur.archlinux.org/account/seraf1): ```bash yay -S lsgpu-git ``` Package page: https://aur.archlinux.org/packages/lsgpu-git (The AUR package name may follow the binary rename to `lsgpus-git` after seraf1's next update — check the AUR page for the current name.) ### From source ```bash git clone https://github.com/AGuyMarc/lsgpu cd lsgpu sudo cp lsgpu.py /usr/local/bin/lsgpus sudo chmod +x /usr/local/bin/lsgpus ``` ## Usage ```bash lsgpus # Full output lsgpus --short # Compact one-line-per-GPU lsgpus --all # Include disconnected outputs lsgpus --watch # Real-time monitoring (Ctrl+C to stop) lsgpus --json # JSON output ``` ## Example output ``` GRAPHICS CARDS ============== card0: NVIDIA Corporation GA107 [GeForce RTX 3050 6GB] (rev a1) Driver: nvidia | VRAM: 6 GB | GPU:0% MEM:2077/6144MB 37°C 16.7W ├─ DP-4: connected ← Iiyama PL2792Q 27" ├─ HDMI-A-2: connected ← Iiyama PL2792Q 27" ├─ HDMI-A-3: connected ← Iiyama PL2792Q 27" card1: NVIDIA Corporation AD106 [GeForce RTX 4060 Ti] (rev a1) Driver: nvidia | VRAM: 16 GB | GPU:0% MEM:277/16380MB 41°C 14.9W ├─ DP-1: - ├─ DP-2: - ├─ DP-3: - ├─ HDMI-A-1: connected ← Samsung SAMSUNG 32" card2: Intel Corporation Arrow Lake-S [Intel Graphics] (rev 06) Driver: i915 ├─ HDMI-A-4: connected ← Iiyama PL2793Q 27" ├─ HDMI-A-5: connected ← Samsung SAMSUNG 65" Total: 3 GPU(s), 6 output(s) connected ``` ## Requirements - Python 3.7+ - Linux with `/sys/class/drm` - `lspci` (from pciutils) - `nvidia-smi` (optional, for NVIDIA stats) ## See also Hardware enumeration `ls*` family on Linux: - [`lsdisplay`](https://github.com/AGuyMarc/lsdisplay) — connected displays/monitors (companion to this tool) - `lsgpu(1)` from `igt-gpu-tools` — low-level Intel Graphics Tests utility (different audience) - `lscpu` — CPU architecture info - `lspci` — PCI devices - `lsusb` — USB devices - `lsblk` — block devices (disks, partitions) - `lsmem` — memory ranges - `lsmod` — kernel modules - `lsipc` — IPC facilities - `lsns` — namespaces ## License GPL-2.0. See [LICENSE](LICENSE) for the full text. AGuyMarc-lsgpu-ce4c7bd/debian/000077500000000000000000000000001521031151200163005ustar00rootroot00000000000000AGuyMarc-lsgpu-ce4c7bd/debian/changelog000066400000000000000000000104751521031151200201610ustar00rootroot00000000000000lsgpus (0.2.4-1) unstable; urgency=medium * New upstream release 0.2.4; see CHANGELOG.md for the upstream changes. No Debian packaging changes. -- Guy-Marc APRIN <2026@gm.casa> Thu, 04 Jun 2026 17:01:28 +0200 lsgpus (0.2.3-1) unstable; urgency=medium * New upstream release 0.2.3; see CHANGELOG.md for the upstream changes. No Debian packaging changes. -- Guy-Marc APRIN <2026@gm.casa> Thu, 04 Jun 2026 14:56:41 +0200 lsgpus (0.2.2-1) unstable; urgency=medium * New upstream release 0.2.2; see CHANGELOG.md for the upstream changes. No Debian packaging changes. -- Guy-Marc APRIN <2026@gm.casa> Thu, 04 Jun 2026 13:18:31 +0200 lsgpus (0.2.1-1) unstable; urgency=medium * New upstream release 0.2.1 — see CHANGELOG.md for the full list of software changes (each card now shows its PCI bus id + nvidia-smi GPU index). * Packaging: declare the license as the SPDX expression GPL-2.0-or-later and drop the deprecated "License :: OSI Approved ::" classifier in setup.py (aligns with the SPDX headers already in the sources). * Packaging: the project's canonical changelog now lives in CHANGELOG.md at the repo root; this debian/changelog tracks packaging changes only. -- Guy-Marc APRIN <2026@gm.casa> Fri, 29 May 2026 22:19:09 +0200 lsgpus (0.2.0-1) unstable; urgency=medium * Rename installed binary from /usr/bin/lsgpu to /usr/bin/lsgpus and man page from lsgpu(1) to lsgpus(1), to avoid a name clash with the lsgpu(1) tool shipped by the igt-gpu-tools package (low-level Intel Graphics Tests utility, present in /usr/bin/lsgpu on both Arch and Debian/Ubuntu). Reported by Philippe Séraphin (seraf1) while packaging the AUR build. * Debian source/binary package renamed from lsgpu to lsgpus to match. Replaces/Breaks lsgpu (<< 0.2.0) so dpkg can clean-migrate users of the v0.1.x .deb. Upgrade procedure documented in README. * GitHub repository keeps its original name (AGuyMarc/lsgpu) so existing links from the LinuxFr.org journal and elsewhere stay valid; only the installed binary and the Debian package were renamed. -- Guy-Marc APRIN <2026@gm.casa> Tue, 19 May 2026 01:00:00 +0200 lsgpu (0.1.5-1) unstable; urgency=medium * Update README description to clarify dependency model: Python 3.7+ and /sys/class/drm only, reads info from standard tools (nvidia-smi/rocm-smi) when present, but no CUDA / no ROCm / no pycuda required. * Match GitHub repo description with the new README phrasing. -- Guy-Marc APRIN <2026@gm.casa> Mon, 18 May 2026 22:18:00 +0200 lsgpu (0.1.4-1) unstable; urgency=medium * Fix Debian packaging regression introduced in 0.1.3: - Install man page via debian/lsgpu.manpages (was missing from .deb). - Install README.md via debian/lsgpu.docs. - Add Debian-format debian/copyright file. - Move /usr/bin/lsgpu symlink from postinst hack to debian/lsgpu.links (the symlink now appears in dpkg-deb -c output, no runtime hack). - Remove now-unused debian/postinst (debhelper auto-handles man-db). * Fix Maintainer in debian/control: 'Aprin' -> 'APRIN' to match the upstream convention applied across all source headers. -- Guy-Marc APRIN <2026@gm.casa> Fri, 15 May 2026 19:30:00 +0200 lsgpu (0.1.3-1) unstable; urgency=medium * Lower debhelper-compat level from 13 to 11 in Build-Depends so the source package builds out of the box on Ubuntu 22.04 LTS. Reported by Creteil (bigbob) in lsdisplay#2 (same root cause). -- Guy-Marc APRIN <2026@gm.casa> Fri, 15 May 2026 00:21:00 +0200 lsgpu (0.1.2-1) unstable; urgency=medium * Add SPDX license header (GPL-2.0-or-later) * Sanity check on EDID detailed timing (DTD): prefer coarse size from bytes 21-22 when DTD diagonal exceeds 2× coarse diagonal — fixes ~8" displays appearing as 59" when the DTD field contains pixels instead of millimetres (e.g. SGN L01N8A, BOE panels). Reported by Blaise on LinuxFr.org. -- Guy-Marc APRIN <2026@gm.casa> Thu, 14 May 2026 21:51:04 +0200 lsgpu (0.1.1-1) unstable; urgency=medium * Initial release * NVIDIA stats via nvidia-smi * AMD stats via sysfs * GPU process listing * Real-time monitoring with sparklines (--watch) * EDID monitor identification * Override file support * Connected-only default (-a for all) -- Guy-Marc Aprin <2026@gm.casa> Sat, 03 May 2026 12:00:00 +0200 AGuyMarc-lsgpu-ce4c7bd/debian/control000066400000000000000000000015471521031151200177120ustar00rootroot00000000000000Source: lsgpus Section: utils Priority: optional Maintainer: Guy-Marc APRIN <2026@gm.casa> Build-Depends: debhelper-compat (= 11), python3 Standards-Version: 4.6.2 Homepage: https://github.com/AGuyMarc/lsgpu Package: lsgpus Architecture: all Depends: python3 (>= 3.7), ${misc:Depends} Recommends: pciutils, nvidia-utils Replaces: lsgpu (<< 0.2.0) Breaks: lsgpu (<< 0.2.0) Description: List GPUs with details, outputs, and connected monitors lsgpus lists all graphics cards with driver, VRAM, PCI address, and for NVIDIA: utilization, memory, temperature, power draw. Each output port is mapped to its connected monitor via EDID. Supports real-time monitoring (--watch), GPU process listing, AMD and NVIDIA stats, and sparkline history. . Binary renamed from lsgpu to lsgpus in v0.2.0 to avoid a clash with the lsgpu(1) tool shipped by the igt-gpu-tools package. AGuyMarc-lsgpu-ce4c7bd/debian/copyright000066400000000000000000000020161521031151200202320ustar00rootroot00000000000000Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: lsgpus Upstream-Contact: Guy-Marc APRIN <2026@gm.casa> Source: https://github.com/AGuyMarc/lsgpu Files: * Copyright: 2026 Guy-Marc APRIN <2026@gm.casa> License: GPL-2+ License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". AGuyMarc-lsgpu-ce4c7bd/debian/install000066400000000000000000000000211521031151200176620ustar00rootroot00000000000000lsgpu.py usr/bin AGuyMarc-lsgpu-ce4c7bd/debian/lsgpus.docs000066400000000000000000000000121521031151200204600ustar00rootroot00000000000000README.md AGuyMarc-lsgpu-ce4c7bd/debian/lsgpus.links000066400000000000000000000000401521031151200206510ustar00rootroot00000000000000usr/bin/lsgpu.py usr/bin/lsgpus AGuyMarc-lsgpu-ce4c7bd/debian/lsgpus.manpages000066400000000000000000000000111521031151200213220ustar00rootroot00000000000000lsgpus.1 AGuyMarc-lsgpu-ce4c7bd/debian/rules000077500000000000000000000001771521031151200173650ustar00rootroot00000000000000#!/usr/bin/make -f %: dh $@ override_dh_auto_clean: override_dh_auto_build: override_dh_auto_install: override_dh_auto_test: AGuyMarc-lsgpu-ce4c7bd/docs/000077500000000000000000000000001521031151200160065ustar00rootroot00000000000000AGuyMarc-lsgpu-ce4c7bd/docs/lsgpus-watch.gif000066400000000000000000002553051521031151200211300ustar00rootroot00000000000000GIF89am(*6)+7*,8')5(*6*,8+-8+-9,.9,.:.013?24@35@46A57B68C78C79C8:D9;E:H=?I>@J?AJ@BKABLACMBDNCENDFOEGPEFQFGQFHRGIRHJSIKTJKTKLUKMVLNWMOXNPXOPYPQZQR[QS[RT\SU]TU^UV_VW_VX`WY`XZaYZbZ[b[\c[]d\^e]_f^_f_`g`ahabiacibckbdjcdkcdldemefmegnfhoghohipijpjlrkmslntmntnouopvpqwprwqsxrsystztu{uv{uw|vx}wx~xy~yz~xzz{{|{}|}}~~! NETSCAPE2.0!!gif.ski,m H*\ȰÇ#JHŋ3jȱǏ CIɓ(S\ɲ˗0cʜI͛8sɳϟ@ JѣH*]ʴӧPJJիXjʵׯ`ÊKٳhӪ]˶۷pʝKݻx˷߿ LÇ +^̸㞈#?L##̹Ϗ5'MpEnyck԰c˞P?i۳mܽ-vq?μɕ.;}dسv1NHHgW_-?>_7Z?z_Qh64` 6T >(af!Ln ~a$hC#,0(4h8<@)DiH&L6PF)TViXf\v`)dihlp)tix襟|%!JW1Q*iXU]r( ڔ0jJvrfkgʢ+k&6F+Vkfv+ K覫+Nfn,l' 7G,Wlg ,$l(,0,4l8<@-DmŦz|L7PG-TWmXg\w`-y*Mfojv{-pKwލ7zn~ xn'7G.Wngw砇.褗n騧ꬷ.nqNث(Nޠ>ߧeԾ/o DS:Z |'H Z̠7z GH(L W0 gH8̡w@ H"d &:PH*ZX̢--:^dh1RB1y5 e#9¦v< > IBL"=2r0q#'i-IR2Sۊ%/N m (GIRL*WVi|,gX!-wˍ鲗 0IbL2f:M|4h3̦6ofmz 8IrL:vɁ~ @LDF>ZY"eЗG&4HGJҒ(MJWҖ0LgJSI8nӞ@ PJԢHMRԦ:PTJժZ !, G;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Ç#JHŋ3jȱǏ C\)\ɲ˗0cʜIS8sɳϟjѣH*]ڒ?9A´իX[ rJٳh:9iʝK7'3˷ߋn}oÈ-hgOKL˘3k̹ϠCMӨS^ͺװc˞M۸sͻ Nȓ+_μУKNسkνËOӫ_Ͼ˟OϿ(h& 6F(Vhfv ($h(,0(4ֈ"A:@7BiH&L6PFi?TVIYi%\v`)dihlp)tix橧p?^(*0 怢X9A/|p)H U" C ZUjH3T*Yjd|O?zU KⓇDC9'*Ԫ A*,SQp1&p0ԶJ BD!)MDQ`&8&e? H@<(rͣgw ,$l(,0,4l8<@-DmH'L7PG-TWmXg\w`-dmhlp-iY%v_I|u߀.n'78b !6(ژ!p@*B|G5&0@6 DiEhB7/P4YL _/O 6aﲻBH>1L;AGuyMarc-lsgpu-ce4c7bd/lsgpu.py000077500000000000000000000755761521031151200166110ustar00rootroot00000000000000#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2026 Guy-Marc APRIN <2026@gm.casa> # NB: contact email rotates yearly — 2027@gm.casa in 2027, etc. """ lsgpu - List GPUs with details, outputs, and connected monitors. Similar to lscpu, lsusb, lspci but for graphics cards. Shows GPU name, driver, VRAM, utilization, temperature, power draw, and maps each output port to the connected monitor via EDID. Author: Guy-Marc APRIN <2026@gm.casa> NB: contact email rotates yearly — 2027@gm.casa in 2027, etc. « La perfection est atteinte non quand il n'y a plus rien à ajouter, mais quand il n'y a plus rien à retirer. » « L'essentiel est invisible pour les yeux. » — Antoine de Saint-Exupéry "Perfection is achieved not when there is nothing more to add, but when there is nothing left to take away." "What is essential is invisible to the eye." Usage: lsgpu Full output lsgpu --json JSON output for scripting lsgpu --short Compact one-line-per-GPU output License: GPL-2.0 """ import argparse import glob as glob_mod import json as json_mod import math import os import re import subprocess import sys try: from dataclasses import dataclass, field, asdict except ImportError: print("Error: Python 3.7+ is required (dataclasses module missing).", file=sys.stderr) print("On AlmaLinux/RHEL 8: dnf install python39 && python3.9 lsgpu.py", file=sys.stderr) sys.exit(1) from typing import List, Optional, Dict __version__ = "0.2.4" def _get_version_string() -> str: """Build version string with build date from git or file modification time.""" import locale try: locale.setlocale(locale.LC_TIME, "fr_FR.UTF-8") except locale.Error: pass try: script_dir = os.path.dirname(os.path.abspath(__file__)) ts = subprocess.check_output( ["git", "log", "-1", "--format=%ct"], text=True, stderr=subprocess.DEVNULL, cwd=script_dir ).strip() from datetime import datetime dt = datetime.fromtimestamp(int(ts)) except Exception: try: from datetime import datetime dt = datetime.fromtimestamp(os.path.getmtime(__file__)) except Exception: return __version__ day_name = dt.strftime("%a").lower().rstrip(".") return f"{__version__} ({dt.strftime(f'%Y-%m-%d {day_name} %Hh%Mm%Ss')})" # PNP manufacturer IDs (subset of the official PNP ID registry) # Source: https://uefi.org/PNP_ID_List # History: https://github.com/onkoe/pnpid/blob/main/list.csv # See also: /usr/share/hwdata/pnp.ids (hwdata package) PNP_MANUFACTURERS = { "AAC": "AcerView", "ACR": "Acer", "AOC": "AOC", "AUS": "ASUS", "BNQ": "BenQ", "CMN": "Chimei Innolux", "DEL": "Dell", "ENC": "Eizo", "FUS": "Fujitsu Siemens", "GSM": "LG (GoldStar)", "HPN": "HP", "HWP": "HP", "IVM": "Iiyama", "LEN": "Lenovo", "LGD": "LG Display", "MAX": "Maxdata", "MEI": "Panasonic", "MEL": "Mitsubishi", "NEC": "NEC", "PHL": "Philips", "SAM": "Samsung", "SDC": "Samsung Display", "SNY": "Sony", "SHP": "Sharp", "TSB": "Toshiba", "VSC": "ViewSonic", "HSD": "HannStar", "BOE": "BOE", "AUO": "AU Optronics", "INL": "InnoLux", "MSI": "MSI", "GBT": "Gigabyte", } # Sparkline block characters (8 levels) SPARK_CHARS = "▁▂▃▄▅▆▇█" @dataclass class Monitor: """Monitor connected to a GPU output.""" manufacturer: str = "" model: str = "" serial: str = "" diagonal_inches: int = 0 @dataclass class Output: """A GPU output port.""" name: str = "" connected: bool = False monitor: Optional[Monitor] = None @dataclass class NvidiaStats: """Runtime stats from nvidia-smi.""" gpu_util: int = 0 # percent mem_used: int = 0 # MB mem_total: int = 0 # MB temperature: int = 0 # celsius power_draw: float = 0.0 # watts @dataclass class AmdStats: """Runtime stats from sysfs for AMD GPUs.""" gpu_util: int = 0 # percent mem_used: int = 0 # bytes mem_total: int = 0 # bytes temperature: int = 0 # celsius power_draw: float = 0.0 # watts @property def mem_used_mb(self) -> int: return self.mem_used // (1024 * 1024) if self.mem_used else 0 @property def mem_total_mb(self) -> int: return self.mem_total // (1024 * 1024) if self.mem_total else 0 @dataclass class GpuProcess: """A process running on a GPU.""" pid: int = 0 name: str = "" used_memory_mb: int = 0 @dataclass class GPU: """Represents a graphics card.""" card: str = "" # card0, card1, ... (kernel DRM probe order) name: str = "" # full GPU name pci_address: str = "" nvidia_index: Optional[int] = None # nvidia-smi GPU index (bus-sorted), NVIDIA only driver: str = "" vram_bytes: int = 0 outputs: List[Output] = field(default_factory=list) nvidia_stats: Optional[NvidiaStats] = None amd_stats: Optional[AmdStats] = None processes: List[GpuProcess] = field(default_factory=list) @property def vram_gb(self) -> float: return self.vram_bytes / (1024 ** 3) if self.vram_bytes else 0 @property def connected_outputs(self) -> List[Output]: return [o for o in self.outputs if o.connected] @property def gpu_util(self) -> Optional[int]: if self.nvidia_stats: return self.nvidia_stats.gpu_util if self.amd_stats: return self.amd_stats.gpu_util return None def _load_overrides(): """Load monitor overrides from config (model name, diagonal, serial). Searches ~/.config/lsdisplay/overrides.json then /etc/lsdisplay/overrides.json. Keys prefixed with '_' are treated as comments and ignored. """ home = os.environ.get("HOME", os.path.expanduser("~")) paths = [ os.path.join(home, ".config/lsdisplay/overrides.json"), os.path.expanduser("~/.config/lsdisplay/overrides.json"), "/etc/lsdisplay/overrides.json", ] for p in paths: if os.path.exists(p): try: with open(p) as f: import json data = json.load(f) return {k: v for k, v in data.items() if not k.startswith("_")} except Exception: pass return {} # Lazy-loaded singleton for overrides config _OVERRIDES = None def get_overrides(): global _OVERRIDES if _OVERRIDES is None: _OVERRIDES = _load_overrides() return _OVERRIDES def parse_edid(data: bytes) -> Monitor: """Parse EDID binary data to identify a monitor. EDID is a 128-byte (minimum) structure stored in monitor firmware. Bytes 8-9: manufacturer ID (3 letters packed in 2 bytes, 5 bits each, A=1). Bytes 10-11: product code (little-endian). Bytes 21-22: max horizontal/vertical size in cm (coarse fallback). Bytes 54-125: four 18-byte descriptor blocks (timing or metadata). """ if len(data) < 128: return Monitor() # Decode 3-letter PNP manufacturer ID from bytes 8-9 (5 bits per char, A=1=0x41) m1, m2 = data[8], data[9] mfg_id = chr(((m1 >> 2) & 0x1F) + 64) + chr(((m1 & 0x3) << 3 | (m2 >> 5)) + 64) + chr((m2 & 0x1F) + 64) name = "" serial_str = "" w_mm, h_mm = 0, 0 # Walk the four 18-byte descriptor blocks starting at offset 54 for i in range(4): offset = 54 + i * 18 if offset + 18 > len(data): break if data[offset] != 0 or data[offset + 1] != 0: # Detailed timing descriptor — physical screen size in mm # byte 12: low 8 bits of width, byte 13: low 8 bits of height # byte 14: high nibble = width[11:8], low nibble = height[11:8] w = data[offset + 12] | ((data[offset + 14] & 0xF0) << 4) h = data[offset + 13] | ((data[offset + 14] & 0x0F) << 8) if w > 0 and h > 0 and w_mm == 0: w_mm, h_mm = w, h else: # Display descriptor: tag at byte 3 identifies the content tag = data[offset + 3] text = data[offset + 5:offset + 18].decode("ascii", errors="replace").strip().rstrip("\n\r") if tag == 0xFC: # Monitor name descriptor name = text elif tag == 0xFF: # Serial number descriptor serial_str = text # Sanity check: some cheap displays put pixel dimensions in the DTD mm fields # (e.g. 800x1280 pixels reported as 800x1280 mm). Prefer coarse size if DTD is bogus. coarse_w, coarse_h = data[21] * 10, data[22] * 10 if w_mm > 0 and coarse_w > 0 and coarse_h > 0: dtd_diag = math.sqrt(w_mm**2 + h_mm**2) / 25.4 coarse_diag = math.sqrt(coarse_w**2 + coarse_h**2) / 25.4 if dtd_diag > 2 * coarse_diag and coarse_diag > 0: w_mm, h_mm = coarse_w, coarse_h # Bytes 21-22 give max H/V size in cm — fallback when no detailed timing if w_mm == 0: w_mm, h_mm = coarse_w, coarse_h # Diagonal in inches from Pythagorean theorem on mm dimensions diagonal = round(math.sqrt(w_mm**2 + h_mm**2) / 25.4) if w_mm and h_mm else 0 # Allow config-file overrides keyed by manufacturer + product code product_code = data[10] | (data[11] << 8) key = f"{mfg_id}{product_code:04X}" overrides = get_overrides() if key in overrides: ov = overrides[key] if "model" in ov: name = ov["model"] if "diagonal" in ov: diagonal = ov["diagonal"] if "serial" in ov: serial_str = ov["serial"] return Monitor( manufacturer=PNP_MANUFACTURERS.get(mfg_id, mfg_id), model=name, serial=serial_str, diagonal_inches=diagonal, ) def get_nvidia_stats(pci_addr: str) -> Optional[NvidiaStats]: """Get runtime stats from nvidia-smi for a given PCI address. Uses nvidia-smi CSV mode to query a single GPU by PCI bus ID, avoiding XML parsing overhead. """ try: out = subprocess.check_output( ["nvidia-smi", "--query-gpu=utilization.gpu,memory.used,memory.total,temperature.gpu,power.draw", "--format=csv,noheader,nounits", "-i", pci_addr], text=True, stderr=subprocess.DEVNULL ).strip() parts = [p.strip() for p in out.split(",")] if len(parts) >= 5: return NvidiaStats( gpu_util=int(parts[0]), mem_used=int(parts[1]), mem_total=int(parts[2]), temperature=int(parts[3]), power_draw=float(parts[4]), ) except (subprocess.CalledProcessError, FileNotFoundError, ValueError): pass return None def _read_sysfs_int(path: str, default: int = 0) -> int: """Read an integer from a sysfs file.""" try: with open(path) as f: return int(f.read().strip()) except (IOError, ValueError, PermissionError): return default def get_amd_stats(card_path: str) -> Optional[AmdStats]: """Get runtime stats from sysfs for an AMD GPU. AMD GPUs expose stats under /sys/class/drm/cardN/device/: gpu_busy_percent, mem_info_vram_used, mem_info_vram_total (bytes), hwmon/hwmonN/temp1_input (millidegrees), power1_average (microwatts). """ device_path = os.path.join(card_path, "device") gpu_busy = os.path.join(device_path, "gpu_busy_percent") if not os.path.exists(gpu_busy): return None gpu_util = _read_sysfs_int(gpu_busy) mem_used = _read_sysfs_int(os.path.join(device_path, "mem_info_vram_used")) mem_total = _read_sysfs_int(os.path.join(device_path, "mem_info_vram_total")) # hwmon subdirectory contains thermal and power sensors temperature = 0 power_draw = 0.0 hwmon_dirs = glob_mod.glob(os.path.join(device_path, "hwmon", "hwmon*")) if hwmon_dirs: hwmon = hwmon_dirs[0] temp_raw = _read_sysfs_int(os.path.join(hwmon, "temp1_input")) temperature = temp_raw // 1000 # millidegrees to degrees power_raw = _read_sysfs_int(os.path.join(hwmon, "power1_average")) power_draw = power_raw / 1_000_000.0 # microwatts to watts return AmdStats( gpu_util=gpu_util, mem_used=mem_used, mem_total=mem_total, temperature=temperature, power_draw=power_draw, ) def get_gpu_processes() -> Dict[str, List[GpuProcess]]: """Get processes running on NVIDIA GPUs. Returns dict keyed by PCI address (lowercase) so callers can match processes to the correct GPU. Two strategies: 1. Query by UUID, then map UUID->PCI for multi-GPU correctness. 2. Fallback: query without UUID (keyed by "" for single-GPU setups). """ processes: Dict[str, List[GpuProcess]] = {} try: out = subprocess.check_output( ["nvidia-smi", "--query-compute-apps=gpu_uuid,pid,name,used_gpu_memory", "--format=csv,noheader,nounits"], text=True, stderr=subprocess.DEVNULL ).strip() if not out: return processes # Build UUID -> PCI address mapping for multi-GPU disambiguation uuid_out = subprocess.check_output( ["nvidia-smi", "--query-gpu=gpu_uuid,pci.bus_id", "--format=csv,noheader"], text=True, stderr=subprocess.DEVNULL ).strip() uuid_to_pci = {} for line in uuid_out.splitlines(): parts = [p.strip() for p in line.split(",")] if len(parts) >= 2: uuid_to_pci[parts[0]] = parts[1].lower() for line in out.splitlines(): parts = [p.strip() for p in line.split(",")] if len(parts) >= 4: gpu_uuid = parts[0] pci = uuid_to_pci.get(gpu_uuid, gpu_uuid) proc = GpuProcess( pid=int(parts[1]), name=parts[2], used_memory_mb=int(parts[3]) if parts[3].strip() else 0, ) processes.setdefault(pci, []).append(proc) except (subprocess.CalledProcessError, FileNotFoundError, ValueError): pass # Fallback for older nvidia-smi or single-GPU: query without UUID if not processes: try: out = subprocess.check_output( ["nvidia-smi", "--query-compute-apps=pid,name,used_gpu_memory", "--format=csv,noheader,nounits"], text=True, stderr=subprocess.DEVNULL ).strip() if out: for line in out.splitlines(): parts = [p.strip() for p in line.split(",")] if len(parts) >= 3: proc = GpuProcess( pid=int(parts[0]), name=parts[1], used_memory_mb=int(parts[2]) if parts[2].strip() else 0, ) # Empty key = unassigned; scan_gpus() assigns to first GPU processes.setdefault("", []).append(proc) except (subprocess.CalledProcessError, FileNotFoundError, ValueError): pass return processes def _sparkline(values: List[int], max_val: int = 100) -> str: """Generate a sparkline string from a list of values. Maps each value to one of 8 Unicode block characters (▁..█) proportional to max_val. """ if not values: return "" chars = [] for v in values: # Scale value to index 0..7 in SPARK_CHARS, clamped idx = int(v / max_val * (len(SPARK_CHARS) - 1)) idx = max(0, min(idx, len(SPARK_CHARS) - 1)) chars.append(SPARK_CHARS[idx]) return "".join(chars) def get_nvidia_index_map() -> Dict[str, int]: """Map 'bus:slot.func' suffix -> nvidia-smi GPU index. nvidia-smi numbers GPUs by PCI bus id (ascending), counting NVIDIA cards only — this differs from the kernel DRM 'cardN' numbering (probe order) used here. One nvidia-smi call lets us cross-reference the two so the output is unambiguous on multi-GPU boxes. """ result: Dict[str, int] = {} try: out = subprocess.check_output( ["nvidia-smi", "--query-gpu=index,pci.bus_id", "--format=csv,noheader"], text=True, stderr=subprocess.DEVNULL) for line in out.strip().splitlines(): parts = [p.strip() for p in line.split(",")] if len(parts) == 2 and parts[0].isdigit(): suffix = ":".join(parts[1].lower().split(":")[-2:]) result[suffix] = int(parts[0]) except (OSError, subprocess.CalledProcessError, ValueError): pass return result def scan_gpus() -> List[GPU]: """Scan /sys/class/drm for GPUs and their outputs. /sys/class/drm contains entries like: card0 -> GPU device (symlink to PCI device) card0-HDMI-A-1 -> output port with status and edid files card0-DP-1 -> another output port This function enumerates cardN entries, reads GPU info via lspci and sysfs, then matches cardN-* entries as output ports. """ drm_dir = "/sys/class/drm" if not os.path.isdir(drm_dir): return [] # Pre-fetch NVIDIA process list (one nvidia-smi call for all GPUs) all_processes = get_gpu_processes() # Map PCI suffix -> nvidia-smi index, to annotate each card unambiguously nv_index = get_nvidia_index_map() gpus = [] for entry in sorted(os.listdir(drm_dir)): # Only match "cardN" entries, not "cardN-DP-1" output entries if not re.match(r"^card\d+$", entry): continue card_path = os.path.join(drm_dir, entry) device_link = os.path.join(card_path, "device") gpu = GPU(card=entry) # Resolve PCI address from sysfs symlink, then query lspci for the name try: pci_addr = os.path.basename(os.readlink(device_link)) gpu.pci_address = pci_addr lspci_out = subprocess.check_output( ["lspci", "-s", pci_addr], text=True, stderr=subprocess.DEVNULL ).strip() # Strip "XX:XX.X VGA compatible controller: " prefix from lspci output gpu.name = re.sub(r"^[0-9a-f:.]+\s+\S+\s+\S+\s+controller:\s*", "", lspci_out, flags=re.IGNORECASE) except (OSError, subprocess.CalledProcessError): pass # Driver name from the driver symlink (e.g. "nvidia", "amdgpu", "i915") driver_link = os.path.join(device_link, "driver") if os.path.islink(driver_link): gpu.driver = os.path.basename(os.readlink(driver_link)) # VRAM total (AMD exposes this directly in sysfs; NVIDIA uses nvidia-smi) vram_file = os.path.join(device_link, "mem_info_vram_total") if os.path.exists(vram_file): try: with open(vram_file) as f: gpu.vram_bytes = int(f.read().strip()) except (IOError, ValueError): pass # NVIDIA: get stats via nvidia-smi and match processes by PCI suffix if gpu.driver == "nvidia": gpu.nvidia_stats = get_nvidia_stats(gpu.pci_address) # Match on bus:slot.func suffix since domain width differs # (sysfs "0000:82:00.0" vs nvidia-smi "00000000:82:00.0") pci_suffix = gpu.pci_address.lower().split(":")[-2] + ":" + gpu.pci_address.lower().split(":")[-1] gpu.nvidia_index = nv_index.get(pci_suffix) for key, procs in all_processes.items(): if key == "" and len(all_processes) == 1: gpu.processes = procs elif key: key_suffix = key.lower().split(":")[-2] + ":" + key.lower().split(":")[-1] if pci_suffix == key_suffix: gpu.processes = procs break if gpu.driver in ("amdgpu", "radeon"): gpu.amd_stats = get_amd_stats(card_path) # Scan output ports: entries named "cardN-" (e.g. card0-HDMI-A-1) for sub in sorted(os.listdir(drm_dir)): if sub.startswith(entry + "-"): port_name = sub[len(entry) + 1:] port_dir = os.path.join(drm_dir, sub) connected = False status_file = os.path.join(port_dir, "status") try: with open(status_file) as f: connected = f.read().strip() == "connected" except (IOError, PermissionError): pass # Parse EDID blob if present — also confirms connection monitor = None edid_file = os.path.join(port_dir, "edid") if os.path.exists(edid_file): try: with open(edid_file, "rb") as f: edid_data = f.read() if len(edid_data) >= 128: connected = True monitor = parse_edid(edid_data) except (IOError, PermissionError): pass gpu.outputs.append(Output(name=port_name, connected=connected, monitor=monitor)) gpus.append(gpu) return gpus def _format_stats_line(gpu: GPU) -> str: """Format the stats portion of a GPU details line.""" if gpu.nvidia_stats: s = gpu.nvidia_stats return f" | GPU:{s.gpu_util}% MEM:{s.mem_used}/{s.mem_total}MB {s.temperature}°C {s.power_draw:.1f}W" if gpu.amd_stats: s = gpu.amd_stats return f" | GPU:{s.gpu_util}% MEM:{s.mem_used_mb}/{s.mem_total_mb}MB {s.temperature}°C {s.power_draw:.1f}W" return "" def _id_tag(gpu: GPU) -> str: """Compact identity tag: canonical PCI bus + nvidia-smi index. Resolves the confusion between the kernel DRM 'cardN' number (probe order, what this tool lists) and the bus-sorted 'GPU N' index reported by nvidia-smi. The PCI bus id is the only stable, unambiguous identifier. """ parts = [] if gpu.pci_address: parts.append("PCI " + ":".join(gpu.pci_address.lower().split(":")[-2:])) if gpu.nvidia_index is not None: parts.append(f"nvidia-smi GPU{gpu.nvidia_index}") return (" [" + " | ".join(parts) + "]") if parts else "" def print_gpus(gpus: List[GPU], show_all: bool = False): """Print GPU information.""" print("GRAPHICS CARDS") print("=" * 14) print() for gpu in gpus: print(f" {gpu.card}: {gpu.name}{_id_tag(gpu)}") # Details line details = f" Driver: {gpu.driver}" if gpu.vram_bytes: details += f" | VRAM: {gpu.vram_gb:.0f} GB" details += _format_stats_line(gpu) print(details) # Outputs outputs_to_show = gpu.outputs if show_all else [o for o in gpu.outputs if o.connected] for out in outputs_to_show: if out.connected and out.monitor: m = out.monitor diag = f' {m.diagonal_inches}"' if m.diagonal_inches else "" model = m.model if m.model.upper() != m.manufacturer.upper() else "" print(f" \u251c\u2500 {out.name}: connected \u2190 {m.manufacturer} {model}{diag}".rstrip()) elif out.connected: print(f" \u251c\u2500 {out.name}: connected") else: print(f" \u251c\u2500 {out.name}: -") # GPU processes if gpu.processes: print(f" Processes:") for proc in gpu.processes: pname = os.path.basename(proc.name) if proc.name else "?" print(f" PID {proc.pid} {pname} {proc.used_memory_mb}MB") print() # Summary total_gpu = len(gpus) total_out = sum(len(g.connected_outputs) for g in gpus) print(f"Total: {total_gpu} GPU{'s' if total_gpu != 1 else ''}, {total_out} output{'s' if total_out != 1 else ''} connected") def print_short(gpus: List[GPU]): """Print compact one-line-per-GPU output.""" for gpu in gpus: vram = f"{gpu.vram_gb:.0f}GB" if gpu.vram_bytes else "" n_conn = len(gpu.connected_outputs) n_total = len(gpu.outputs) stats = "" if gpu.nvidia_stats: s = gpu.nvidia_stats stats = f" [{s.gpu_util}% {s.temperature}\u00b0C {s.power_draw:.0f}W]" elif gpu.amd_stats: s = gpu.amd_stats stats = f" [{s.gpu_util}% {s.temperature}\u00b0C {s.power_draw:.0f}W]" print(f" {gpu.card}: {gpu.name}{_id_tag(gpu)} | {gpu.driver} {vram} | {n_conn}/{n_total} outputs{stats}") def watch_gpus(interval=2): """Monitor GPU stats in real-time with sparkline history. Uses ANSI escape codes to redraw in-place (cursor home without clear to avoid flicker). Maintains a rolling window of utilization values per GPU, rendered as a sparkline beside the progress bar. """ import time from datetime import datetime # Rolling utilization history per card for sparkline rendering history: Dict[str, List[int]] = {} max_history = 20 print("GPU MONITOR (Ctrl+C to stop)") print("=" * 27) print() # ANSI: clear screen + cursor home on first frame only print("\033[2J\033[H", end="") try: while True: # ANSI cursor home — overwrite previous frame without clearing print("\033[H", end="") ts = datetime.now().strftime("%H:%M:%S") print(f"GPU MONITOR \u2014 {ts} (Ctrl+C to stop) ") print() gpus = scan_gpus() for gpu in gpus: card_name = gpu.name # nom complet (l'ancienne troncature laissait un "]" orphelin) has_stats = gpu.nvidia_stats or gpu.amd_stats if not has_stats: print(f" {gpu.card}: {card_name}{_id_tag(gpu)}") print(f" Driver: {gpu.driver}") continue if gpu.nvidia_stats: util = gpu.nvidia_stats.gpu_util mem_used = gpu.nvidia_stats.mem_used mem_total = gpu.nvidia_stats.mem_total temp = gpu.nvidia_stats.temperature power = gpu.nvidia_stats.power_draw else: util = gpu.amd_stats.gpu_util mem_used = gpu.amd_stats.mem_used_mb mem_total = gpu.amd_stats.mem_total_mb temp = gpu.amd_stats.temperature power = gpu.amd_stats.power_draw # Append to rolling history and trim to max_history if gpu.card not in history: history[gpu.card] = [] history[gpu.card].append(util) if len(history[gpu.card]) > max_history: history[gpu.card] = history[gpu.card][-max_history:] spark = _sparkline(history[gpu.card]) # Render fixed-width progress bars (30 chars) using block characters bar_w = 30 gpu_filled = int(util / 100 * bar_w) gpu_bar = "\u2588" * gpu_filled + "\u2591" * (bar_w - gpu_filled) mem_pct = mem_used / mem_total * 100 if mem_total else 0 mem_filled = int(mem_pct / 100 * bar_w) mem_bar = "\u2588" * mem_filled + "\u2591" * (bar_w - mem_filled) print(f" {gpu.card}: {card_name}{_id_tag(gpu)}") print(f" Driver: {gpu.driver}") print(f" GPU [{gpu_bar}] {util:3d}% {spark} ") print(f" MEM [{mem_bar}] {mem_used}/{mem_total}MB ({mem_pct:.0f}%) ") print(f" TEMP {temp}\u00b0C POWER {power:.1f}W ") # Show processes in watch mode too if gpu.processes: for proc in gpu.processes: pname = os.path.basename(proc.name) if proc.name else "?" print(f" \u2514 PID {proc.pid} {pname} {proc.used_memory_mb}MB ") print() time.sleep(interval) except KeyboardInterrupt: print("\nMonitoring stopped.") def main(): parser = argparse.ArgumentParser( prog="lsgpus", description="List graphics cards with driver, VRAM, utilization, and connected monitors.", epilog="""examples: lsgpus list all GPUs with connected outputs lsgpus -a list all GPUs with all outputs (including disconnected) lsgpus --short compact one-line-per-GPU output lsgpus --json JSON output for scripting lsgpus --watch real-time GPU monitoring (Ctrl+C to stop) lsgpus --json | jq '.[].name' info shown per GPU: name, PCI address, driver, VRAM NVIDIA: utilization %, memory, temperature, power draw AMD: utilization %, memory, temperature, power draw (via sysfs) output ports with connected monitor (manufacturer, model, size from EDID) source: https://github.com/AGuyMarc/lsgpu license: GPL-2.0""", formatter_class=argparse.RawDescriptionHelpFormatter, ) parser.add_argument("--json", action="store_true", help="output as JSON (for scripting)") parser.add_argument("--short", "-s", action="store_true", help="compact one-line-per-GPU output") parser.add_argument("--all", "-a", action="store_true", help="show all outputs including disconnected") parser.add_argument("--watch", "-w", nargs="?", const=2, type=int, metavar="SEC", help="real-time monitoring (default: 2s interval)") parser.add_argument("--version", "-V", action="version", version=f"%(prog)s {_get_version_string()}") args = parser.parse_args() if args.watch is not None: watch_gpus(args.watch) return gpus = scan_gpus() if not gpus: print("No GPUs found.", file=sys.stderr) sys.exit(1) if args.json: data = [] for gpu in gpus: d = { "card": gpu.card, "name": gpu.name, "pci_address": gpu.pci_address, "nvidia_index": gpu.nvidia_index, "driver": gpu.driver, "vram_gb": round(gpu.vram_gb, 1), "outputs": [], } if gpu.nvidia_stats: d["nvidia_stats"] = asdict(gpu.nvidia_stats) if gpu.amd_stats: d["amd_stats"] = { "gpu_util": gpu.amd_stats.gpu_util, "mem_used_mb": gpu.amd_stats.mem_used_mb, "mem_total_mb": gpu.amd_stats.mem_total_mb, "temperature": gpu.amd_stats.temperature, "power_draw": gpu.amd_stats.power_draw, } if gpu.processes: d["processes"] = [asdict(p) for p in gpu.processes] for out in gpu.outputs: od = {"name": out.name, "connected": out.connected} if out.monitor: od["monitor"] = asdict(out.monitor) d["outputs"].append(od) data.append(d) print(json_mod.dumps(data, indent=2, ensure_ascii=False)) return if args.short: print_short(gpus) return print_gpus(gpus, show_all=args.all) if __name__ == "__main__": main() AGuyMarc-lsgpu-ce4c7bd/lsgpus.1000066400000000000000000000105351521031151200164610ustar00rootroot00000000000000.\" SPDX-License-Identifier: GPL-2.0-or-later .\" Copyright (C) 2026 Guy-Marc APRIN <2026@gm.casa> .\" NB: contact email rotates yearly - 2027@gm.casa in 2027, etc. .TH LSGPUS 1 "2026-06-04" "lsgpus 0.2.4" "User Commands" .SH NAME lsgpus \- list graphics cards with details, outputs, and connected monitors .SH SYNOPSIS .B lsgpus [\fIOPTIONS\fR] .SH DESCRIPTION .B lsgpus lists all graphics cards (GPUs) with their driver, VRAM, PCI address, and for NVIDIA cards: utilization, memory usage, temperature, and power draw. Each GPU output port is listed with its connection status and, when connected, the monitor's manufacturer, model, and size (parsed from EDID). .PP GPU information is obtained from .I /sys/class/drm and .BR lspci (8). NVIDIA runtime stats are obtained from .BR nvidia-smi (1) when available. Monitor identification uses EDID data from .IR /sys/class/drm/card*\-*/edid . .PP .B lsgpus is similar in spirit to .BR lscpu (1), .BR lsusb (8), and .BR lspci (8), but focused on graphics cards and their display outputs. .PP The binary is named .B lsgpus (with a trailing \(lqs\(rq) since v0.2.0, to avoid a name clash with the .BR lsgpu (1) utility shipped by .B igt-gpu-tools \(em a low-level debug/test tool for the Intel Graphics Tests framework (different audience, same Unix path namespace). .SH OPTIONS .TP .B \-\-json Output all GPU information as JSON. .TP .B \-\-short\fR, \fB\-s Compact output with one line per GPU. .TP .B \-\-all\fR, \fB\-a Show all output ports, including disconnected ones (hidden by default). .TP .B \-\-watch\fR, \fB\-w\fR [\fISEC\fR] Continuously refresh the listing in place every \fISEC\fR seconds (default 2), showing live NVIDIA stats. Press \fBCtrl+C\fR to stop \(em there is no quit key. .TP .B \-\-version\fR, \fB\-V Show version number and exit. .TP .B \-\-help\fR, \fB\-h Show help message and exit. .SH OUTPUT .TP .B GRAPHICS CARDS For each GPU: card name, full GPU model, driver, VRAM size, and NVIDIA runtime stats (utilization %, memory used/total, temperature, power draw). Below each GPU, output ports are listed with connection status and connected monitor details. .PP In .B \-\-watch mode the same data is redrawn in place, with a utilization progress bar and a rolling sparkline per card \(em e.g. while a model loads on card1 via Ollama: .PP .RS 3n .nf .ft CW GPU MONITOR \(em 15:26:01 (Ctrl+C to stop) card0: NVIDIA Corporation GA107 [GeForce RTX 3050 6GB] (rev a1) [PCI 82:00.0 | nvidia-smi GPU1] Driver: nvidia GPU [░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0% ▁▁▁▄▂▁ MEM [█████████████████░░░░░░░░░░░░░] 3608/6144MB (59%) TEMP 43°C POWER 28.1W card1: NVIDIA Corporation AD106 [GeForce RTX 4060 Ti] (rev a1) [PCI 02:00.0 | nvidia-smi GPU0] Driver: nvidia GPU [█████████████████████████████░] 98% ▇▇▇▇▇▇ MEM [████████████████████████░░░░░░] 13158/16380MB (80%) TEMP 62°C POWER 123.2W └ PID 1965377 python 122MB └ PID 2733331 ollama 5498MB └ PID 2775015 ollama 7492MB card2: Intel Corporation Arrow Lake-S [Intel Graphics] (rev 06) [PCI 00:02.0] Driver: i915 .ft .fi .RE .SH EXAMPLES .nf .B lsgpus .B lsgpus \-\-short .B lsgpus \-\-all .B lsgpus \-\-watch .B lsgpus \-\-watch 5 .B lsgpus \-\-json .B lsgpus \-\-json | jq '.[].name' .fi .SH FILES .TP .I /sys/class/drm/card[0\-9] DRM card entries for each GPU. .TP .I /sys/class/drm/card*\-*/edid EDID binary data for each output port. .TP .I /sys/class/drm/card*\-*/status Connection status (connected/disconnected). .TP .I /sys/class/drm/card*/device/mem_info_vram_total Total VRAM in bytes (NVIDIA/AMD). .TP .I /sys/class/drm/card*/device/driver Kernel driver in use (nvidia, i915, amdgpu, etc.). .SH SEE ALSO .BR lsdisplay (1), .BR lsgpu (1) from .BR igt-gpu-tools , .BR lspci (8), .BR lsusb (8), .BR lscpu (1), .BR nvidia-smi (1), .BR xrandr (1) .SH BUGS Report bugs at https://github.com/AGuyMarc/lsgpu/issues (GitHub repository keeps its original name .IR lsgpu \(em only the installed binary was renamed in v0.2.0). .SH AUTHOR Guy-Marc APRIN <2026@gm.casa> .br NB: contact email rotates yearly \(em 2027@gm.casa in 2027, etc. .SH LICENSE GPL\-2.0. See LICENSE for the full text. AGuyMarc-lsgpu-ce4c7bd/setup.py000066400000000000000000000017351521031151200165760ustar00rootroot00000000000000# SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2026 Guy-Marc APRIN <2026@gm.casa> # NB: contact email rotates yearly — 2027@gm.casa in 2027, etc. from setuptools import setup setup( name="lsgpus", version="0.2.4", description="List GPUs with details — like lscpu/lsusb but for graphics cards", long_description=open("README.md").read(), long_description_content_type="text/markdown", author="Guy-Marc APRIN", author_email="2026@gm.casa", license="GPL-2.0-or-later", py_modules=["lsgpu"], entry_points={ "console_scripts": [ "lsgpus=lsgpu:main", ], }, python_requires=">=3.7", classifiers=[ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: System Administrators", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3", "Topic :: System :: Hardware", "Topic :: Utilities", ], ) AGuyMarc-lsgpu-ce4c7bd/tests/000077500000000000000000000000001521031151200162205ustar00rootroot00000000000000AGuyMarc-lsgpu-ce4c7bd/tests/test_lsgpu.py000066400000000000000000000126501521031151200207670ustar00rootroot00000000000000#!/usr/bin/env python3 # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (C) 2026 Guy-Marc APRIN <2026@gm.casa> # NB: contact email rotates yearly — 2027@gm.casa in 2027, etc. """Tests unitaires pour lsgpu.""" import json import os import re import subprocess import sys import unittest sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from lsgpu import ( parse_edid, PNP_MANUFACTURERS, Monitor, GPU, Output, NvidiaStats, AmdStats, GpuProcess, ) class TestPNPManufacturers(unittest.TestCase): def test_known_manufacturers(self): self.assertEqual(PNP_MANUFACTURERS["SAM"], "Samsung") self.assertEqual(PNP_MANUFACTURERS["IVM"], "Iiyama") def test_manufacturer_count(self): self.assertGreater(len(PNP_MANUFACTURERS), 20) class TestParseEdid(unittest.TestCase): def test_empty_data(self): m = parse_edid(b"") self.assertEqual(m.manufacturer, "") def test_short_data(self): m = parse_edid(b"\x00" * 50) self.assertEqual(m.manufacturer, "") class TestDataclasses(unittest.TestCase): def test_monitor(self): m = Monitor(manufacturer="Samsung", model="QN65", diagonal_inches=65) self.assertEqual(m.manufacturer, "Samsung") self.assertEqual(m.diagonal_inches, 65) def test_gpu_vram(self): g = GPU(card="card0", vram_bytes=6 * 1024**3) self.assertAlmostEqual(g.vram_gb, 6.0) def test_gpu_vram_zero(self): g = GPU(card="card0", vram_bytes=0) self.assertEqual(g.vram_gb, 0) def test_gpu_connected_outputs(self): g = GPU(card="card0", outputs=[ Output(name="DP-1", connected=True), Output(name="DP-2", connected=False), Output(name="HDMI-1", connected=True), ]) self.assertEqual(len(g.connected_outputs), 2) def test_gpu_util_nvidia(self): g = GPU(card="card0", nvidia_stats=NvidiaStats(gpu_util=75)) self.assertEqual(g.gpu_util, 75) def test_gpu_util_amd(self): g = GPU(card="card0", amd_stats=AmdStats(gpu_util=50)) self.assertEqual(g.gpu_util, 50) def test_gpu_util_none(self): g = GPU(card="card0") self.assertIsNone(g.gpu_util) def test_amd_stats_mb(self): a = AmdStats(mem_used=1024 * 1024 * 512, mem_total=1024 * 1024 * 4096) self.assertEqual(a.mem_used_mb, 512) self.assertEqual(a.mem_total_mb, 4096) def test_gpu_process(self): p = GpuProcess(pid=1234, name="python", used_memory_mb=512) self.assertEqual(p.pid, 1234) class TestSparkline(unittest.TestCase): def test_sparkline_chars(self): from lsgpu import SPARK_CHARS self.assertEqual(len(SPARK_CHARS), 8) class TestCLI(unittest.TestCase): def _run(self, *args): script = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "lsgpu.py") return subprocess.run( [sys.executable, script] + list(args), capture_output=True, text=True, timeout=10 ) def test_help(self): r = self._run("--help") self.assertEqual(r.returncode, 0) self.assertIn("lsgpus", r.stdout) def test_version(self): r = self._run("--version") self.assertEqual(r.returncode, 0) self.assertIn("lsgpus", r.stdout) self.assertIn("0.", r.stdout) def test_json_output(self): r = self._run("--json") if r.returncode == 0: data = json.loads(r.stdout) self.assertIsInstance(data, list) def test_short_output(self): r = self._run("--short") if r.returncode == 0: self.assertGreater(len(r.stdout), 0) def test_all_flag(self): r = self._run("-a") if r.returncode == 0: # With -a, disconnected ports should show self.assertGreater(len(r.stdout), 0) class TestVersionConsistency(unittest.TestCase): """Garde-fou anti-récidive : les 4 déclarations de version doivent rester synchronisées. Sinon `lsgpus --version` ment et les paquets sont incohérents. Voir RELEASING.md (oubli classique sur __version__ et la page de man).""" def _read(self, relpath): root = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) with open(os.path.join(root, relpath), encoding="utf-8") as f: return f.read() def _grep(self, relpath, pattern, label): m = re.search(pattern, self._read(relpath), re.M) self.assertIsNotNone(m, f"{label}: version introuvable dans {relpath}") return m.group(1) def test_all_version_sources_match(self): versions = { "lsgpu.py (__version__)": self._grep("lsgpu.py", r'^__version__\s*=\s*["\']([^"\']+)["\']', "__version__"), "setup.py": self._grep("setup.py", r'version\s*=\s*["\']([^"\']+)["\']', "setup.py"), "lsgpus.1 (.TH)": self._grep("lsgpus.1", r'"lsgpus\s+([0-9][0-9.]*)"', "man .TH"), "debian/changelog": self._grep("debian/changelog", r'^\S+\s+\(([0-9][0-9.]*)-\d+\)', "changelog"), "CHANGELOG.md": self._grep("CHANGELOG.md", r'^##\s+([0-9][0-9.]*)', "CHANGELOG.md"), } self.assertEqual( len(set(versions.values())), 1, "Versions désynchronisées -> " + ", ".join(f"{k}={v}" for k, v in versions.items()), ) if __name__ == "__main__": unittest.main()