Commit graph

5 commits

Author SHA1 Message Date
pongsn
2b758047d2 Remove far-right gold contact pin from tray icon
Five pins looked crowded at 16px; four reads cleaner.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-03 08:30:47 -05:00
pongsn
4e13f08b07 Redesign icon, fix dGPU process detection, polish menu
- Replace chip-outline icon with a GPU card shape (PCIe card body,
  two cooling fans, gold contact fingers) — fixes color stripping
  introduced by Qt 6.11 + KDE Plasma 6.6 tray icon colorization
- Active GPU indicator: yellow-tinted fan disc + bright ring on the
  active side in Hybrid mode (replaces the invisible 2px hub dot)
- dGPU process list now scans /proc/<pid>/fd for open NVIDIA devices
  instead of nvidia-smi --query-compute-apps, so graphics/rendering
  processes (Lutris, games, Vulkan/OpenGL apps) are included
- "Show dGPU processes" menu item is now hidden unless the dGPU is
  actually active (was shown whenever mode == hybrid)
- Menu labels changed from AMD/NVIDIA to generic iGPU/dGPU
- Popup dialogs now inherit the tray icon via QApplication.setWindowIcon

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-30 00:58:48 -05:00
pongsn
b03f0a182d Add active GPU indicator and dGPU process viewer in hybrid mode
In hybrid mode, the tray icon chip body now fills red (iGPU active) or
green (dGPU active) based on whether any process has /dev/nvidia0 open,
polled every 5s. Uses fuser instead of runtime_status because
nvidia-drm.modeset=1 keeps the PCI device active regardless of user-space
usage. Also adds a "Show dGPU processes" menu item (nvidia-smi, hybrid
mode only).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-29 14:11:12 -05:00
pongsn
5e45d157d1 Rename project to legion-gpu-mode-switcher
Update all name references in README, install.sh, and desktop file.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-29 02:25:43 -05:00
pongsn
bbfc1f165b Initial release: GPU mode tray app for Lenovo Legion
PyQt6 system tray app for switching between Hybrid and NVIDIA-only
GPU modes via lenovolegionlinux (legion_cli). Includes polkit policy
for passwordless switching, KDE autostart entry, and install script.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-29 02:23:11 -05:00