plasma-optimus/ 000775 001750 001750 00000000000 15212040642 014255 5 ustar 00erich erich 000000 000000 plasma-optimus/README.md 000664 001750 001750 00000003503 15212036110 015530 0 ustar 00erich erich 000000 000000 # Plasma Optimus
A fork from [Prime Render Switch and Status](https://store.kde.org/p/1425330/) for [optimus-manager](https://github.com/Askannz/optimus-manager)
This is a simple widget for KDE Plasma 6 to display the active Nvidia GPU mode, switch between GPU modes using prime-select, and view processes running on the GPU.
#### Prerequisites
- prime-select (nvidia-prime)
- python3
- python3-pyqt6
#### Usage/Install
```bash
On an Ubuntu system:
sudo apt install plasma-optimus
```
Widget will be automatically added to Plasma notification area on next login.
#### Changelog
- 26.04.4 — Fix GPU detection under Wayland (glxinfo reports wrong GPU via XWayland); use nvidia-smi/sysfs instead
- Fix system tray popup not opening on click
- 26.04.3 — Fix fullRepresentation to use PlasmaExtras.Representation for popup menu
- 26.04.2 — Fix metadata.json for system tray integration
- 26.04.1 — Consolidate plasma-prime-select into switch.py with token-based security; remove obsolete scripts
- 26.04.0 — Ported to KDE Plasma 6 / Qt 6
- Replaced `metadata.desktop` with `metadata.json`
- Updated QML imports for Plasma 6 (`PlasmoidItem`, `Kirigami`, `plasma5support`)
- Replaced kdialog/zenity with native PyQt6 dialogs
- 22.04.2 — Reboots instead of logout due to changes in the Nvidia driver
- 22.04.0
- Sets false variables for modes not in use
- Power-saving changes
- Only sniffs the gpu in use upon load
- `prime-select query` now runs only once every 10 seconds
- 21.10.0 — Initial Release
#### Author
###### Erich Eickmeyer
[LinkedIn](https://www.linkedin.com/in/erich-eickmeyer-a8954623/)
#### Original Author
###### Rui Guilherme
[GitHub](https://github.com/RuiGuilherme/)
[Linkedin](https://www.linkedin.com/in/rui-guilherme/)
#### Contributing
Contributions, issues and feature requests are welcome!
plasma-optimus/LICENSE 000664 001750 001750 00000002132 15212036110 015253 0 ustar 00erich erich 000000 000000 MIT License
Copyright (c) 2020 Rui Guilherme da Cunha
Copyright (c) 2021 Erich Eickmeyer
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
plasma-optimus/usr/ 000775 001750 001750 00000000000 15212036110 015061 5 ustar 00erich erich 000000 000000 plasma-optimus/usr/share/ 000775 001750 001750 00000000000 15212037754 016202 5 ustar 00erich erich 000000 000000 plasma-optimus/usr/share/polkit-1/ 000775 001750 001750 00000000000 15212036110 017623 5 ustar 00erich erich 000000 000000 plasma-optimus/usr/share/polkit-1/actions/ 000775 001750 001750 00000000000 15212036110 021263 5 ustar 00erich erich 000000 000000 plasma-optimus/usr/share/polkit-1/actions/org.kubuntu.plasma-prime.policy 000664 001750 001750 00000001326 15212036110 027357 0 ustar 00erich erich 000000 000000