Compare commits

..

20 Commits

Author SHA256 Message Date
Ana Guerrero
3443d8b347 Accepting request 1246276 from hardware
- Update to version 5.2.7:
  * Various fixes. Use display port method to find gpu
  * Bump zbus and version
  * Update deps
  * Remove unnecessary debug info
  * For loop no longer ends when it encounters an error while reading the hwmon directory.
  * Update CHANGELOG.md
  * Fix dGPU detection for FA401WV
  * Bump version and deps
- Superseded GPUDetection.patch

OBS-URL: https://build.opensuse.org/request/show/1246276
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/supergfxctl?expand=0&rev=3
2025-02-17 19:54:22 +00:00
Ana Guerrero
cc0cacaa99 Accepting request 1225914 from hardware
OBS-URL: https://build.opensuse.org/request/show/1225914
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/supergfxctl?expand=0&rev=2
2024-11-24 10:04:22 +00:00
R N
b0a8f86da2 - Added prime-run binary that just links process to the nvidia libraries
OBS-URL: https://build.opensuse.org/package/show/hardware/supergfxctl?expand=0&rev=18
2024-11-23 00:02:43 +00:00
Ana Guerrero
0e929b5bff Accepting request 1225425 from hardware
supergfxctl - a super graphics mode controller for laptops with hybrid nvidia.
This tool can provide dGPU disabling and it will not be available for system and will not drain the battery, after switching the mode requires only relogin.

OBS-URL: https://build.opensuse.org/request/show/1225425
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/supergfxctl?expand=0&rev=1
2024-11-21 14:17:24 +00:00
R N
4de0dc36b2 - Added upstream GPU detection patch
OBS-URL: https://build.opensuse.org/package/show/hardware/supergfxctl?expand=0&rev=16
2024-11-18 16:45:44 +00:00
R N
89dbf8d30c - Clean up the .spec
OBS-URL: https://build.opensuse.org/package/show/hardware/supergfxctl?expand=0&rev=15
2024-11-18 15:21:46 +00:00
R N
a0c60847ce - Added patch for user groups
- Removed `users`, `sudo`, `adm` and `wheel` groups
- Added `video` group and separated `supergfxctl`

OBS-URL: https://build.opensuse.org/package/show/hardware/supergfxctl?expand=0&rev=14
2024-11-18 13:14:44 +00:00
R N
d32441b427 Replaced script in .spec file with %ghost macros.
OBS-URL: https://build.opensuse.org/package/show/hardware/supergfxctl?expand=0&rev=13
2024-11-05 04:40:21 +00:00
R N
9fc5cee966 - Added a Copyright comment
OBS-URL: https://build.opensuse.org/package/show/hardware/supergfxctl?expand=0&rev=12
2024-11-04 23:08:05 +00:00
R N
51909fa039 - Update to version 5.2.4 release:
* Update CHANGELOG.md
  * Fix dGPU detection for FA401WV

OBS-URL: https://build.opensuse.org/package/show/hardware/supergfxctl?expand=0&rev=11
2024-10-03 16:34:37 +00:00
R N
5a9c72e605 - Update to version 5.2.4:
* Bump version and deps
  * fix: check alternate path for egpu_enable flag
  * Bump deps and version
  * Bump deps
  * Remove the nvidia/false config stuff as too problematic
  * Further tweaks to asus dgpu safety check
  * asus egpu fixes
  * Update deps
  * Update changelog

OBS-URL: https://build.opensuse.org/package/show/hardware/supergfxctl?expand=0&rev=10
2024-09-25 01:56:56 +00:00
R N
88f28b46b9 - Fixing update process bug
OBS-URL: https://build.opensuse.org/package/show/hardware/supergfxctl?expand=0&rev=9
2024-06-12 18:18:28 +00:00
R N
9b9aa5accf - Fixing update process bug
OBS-URL: https://build.opensuse.org/package/show/hardware/supergfxctl?expand=0&rev=8
2024-06-12 18:00:59 +00:00
R N
7161d37978 - Update to 5.2.1
- Better sanity check for booting without egpu after it was previously set
- Added Vulkan ICD profile switching

OBS-URL: https://build.opensuse.org/package/show/hardware/supergfxctl?expand=0&rev=7
2024-03-28 20:34:36 +00:00
R N
1700946adb OBS-URL: https://build.opensuse.org/package/show/hardware/supergfxctl?expand=0&rev=6 2024-03-09 19:43:53 +00:00
R N
06c1a96ddd OBS-URL: https://build.opensuse.org/package/show/hardware/supergfxctl?expand=0&rev=5 2023-12-28 17:18:30 +00:00
R N
0a31753bba OBS-URL: https://build.opensuse.org/package/show/hardware/supergfxctl?expand=0&rev=4 2023-12-28 17:17:39 +00:00
R N
5f1bd139d2 OBS-URL: https://build.opensuse.org/package/show/hardware/supergfxctl?expand=0&rev=3 2023-12-28 16:39:13 +00:00
R N
cf996aa449 - Avoid bashisms in build recipe
OBS-URL: https://build.opensuse.org/package/show/hardware/supergfxctl?expand=0&rev=2
2023-12-28 06:42:23 +00:00
796289d1bb supergfxctl is able to manage with nvidia hybrid graphics on laptops, users can just turn off the dGPU even without reboot (logout and automatically restart display manager is enough).
OBS-URL: https://build.opensuse.org/package/show/hardware/supergfxctl?expand=0&rev=1
2023-12-27 22:55:35 +00:00
2 changed files with 0 additions and 36 deletions

View File

@ -1,33 +0,0 @@
diff --git a/src/pci_device.rs b/src/pci_device.rs
index ef15d03..5645d9e 100644
--- a/src/pci_device.rs
+++ b/src/pci_device.rs
@@ -317,18 +317,21 @@ impl Device {
// Assume all Nvidia GPUs are dGPU
class.starts_with("30") && (boot_vga == "0" || id.starts_with("10DE"))
} else if id.starts_with("1002") {
- debug!("Found AMD GPU {id} without boot_vga attribute at {:?}", device.sysname());
-
+ debug!("Found AMD Device {id} without boot_vga attribute at {:?}", device.sysname());
// Sometimes AMD iGPU doesn't get a boot_vga attribute even in Hybrid mode
// Fallback to the following method for telling iGPU apart from dGPU:
// https://github.com/fastfetch-cli/fastfetch/blob/fed2c87f67de43e3672d1a4a7767d59e7ff22ba2/src/detection/gpu/gpu_linux.c#L148
let mut dev_path = PathBuf::from(device.syspath());
dev_path.push("hwmon");
-
- let hwmon_n_opt = dev_path.read_dir().map_err(
- |e| GfxError::from_io(e, dev_path)
- )?.next();
-
+
+ let hwmon_n_opt = match dev_path.read_dir() {
+ Ok(mut entries) => {
+ entries.next()
+ }
+ Err(_e) => {
+ None // Continue with the assumption it's not a dGPU
+ }
+ };
match hwmon_n_opt {
Some(hwmon_n_result) => {
let mut hwmon_n = hwmon_n_result?.path();

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:300c5ca2f0449ea65ed3d9d4ce8e6933971c96a80a2949928c4834bfbba3480e
size 224267