You are not logged in.

#1 2024-02-04 07:55:13

munzirtaha
Member
Registered: 2013-09-03
Posts: 15

supergfxctl can no longer switch Lenovo Legion 7 Gen 7 to Integrated

Hi,

Operating System: Arch Linux
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.12
Kernel Version: 6.7.3-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 9 6900HX with Radeon Graphics
Memory: 30.5 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 82UH
System Version: Legion 7 16ARHA7

I installed supergfxctl after reading https://wiki.archlinux.org/title/Supergfxctl and realizing that it functions with any laptop with hybrid graphics and not Asus specific. Surprisingly, it works great, and switching to Integrated removed the dGPU altogether and the battery showed 6+ hours rather than 3+ hours with hybrid. So, it's indeed useful. The next day I couldn't switch!

~> supergfxctl -s
[Integrated, Hybrid]
~> supergfxctl -g
Hybrid

~> sudo supergfxctl -m Integrated
Graphics mode changed to Integrated. Required user action is: Logout required to complete mode change
~> sudo lspci -k | rg -A 2 VGA
pcilib: Error reading /sys/bus/pci/devices/0000:00:08.3/label: Operation not permitted
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT] (rev c2)
	DeviceName: Realtek
	Subsystem: Lenovo Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT]
--
36:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] (rev c7)
	Subsystem: Lenovo Rembrandt [Radeon 680M]
	Kernel driver in use: amdgpu

~> systemctl status supergfxd.service
● supergfxd.service - SUPERGFX
     Loaded: loaded (/usr/lib/systemd/system/supergfxd.service; enabled; preset: disabled)
     Active: active (running) since Sun 2024-02-04 07:23:11 +03; 3h 38min ago
   Main PID: 721 (supergfxd)
      Tasks: 17 (limit: 37489)
     Memory: 6.1M (peak: 7.9M)
        CPU: 5.060s
     CGroup: /system.slice/supergfxd.service
             └─721 /usr/bin/supergfxd

Feb 04 11:00:16 lenovo supergfxd[721]: DEBUG: do_driver_action: action = rmmod, [Device { dev_path: "/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/0000:02:00.0/0000:03:00.0", hotplug_path: None, vendor: Amd, is_dgpu: true, name: "0000:03:00.0", pci_id: "1002:73DF" }, Device { dev_path: "/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/0000:02:00.0/0000:03:00.1", hotplug_path: None, vendor: Amd, is_dgpu: false, name: "0000:03:00.1", pci_id: "1002:AB28" }]
Feb 04 11:00:16 lenovo supergfxd[721]: DEBUG: Doing action: UnbindRemoveGpu
Feb 04 11:00:16 lenovo supergfxd[721]: INFO: Unbound "/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/0000:02:00.0/0000:03:00.1"
Feb 04 11:00:16 lenovo supergfxd[721]: INFO: Unbound "/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/0000:02:00.0/0000:03:00.0"
Feb 04 11:00:16 lenovo supergfxd[721]: INFO: Removed "/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/0000:02:00.0/0000:03:00.1"
Feb 04 11:00:16 lenovo supergfxd[721]: INFO: Removed "/sys/devices/pci0000:00/0000:00:01.1/0000:01:00.0/0000:02:00.0/0000:03:00.0"
Feb 04 11:00:16 lenovo supergfxd[721]: DEBUG: Doing action: WriteModprobeConf
Feb 04 11:00:16 lenovo supergfxd[721]: DEBUG: Doing action: DevTreeManaged
Feb 04 11:00:16 lenovo supergfxd[721]: DEBUG: Doing action: StartDisplayManager
Feb 04 11:00:16 lenovo supergfxd[721]: INFO: Running systemctl command Start on display-manager.service

Logged out and logged in again but still I can see both cards. I rebooted, nothing changed. I removed supergfxctl and reinstalled to no avail.

I am afraid supergfxctl or me has messed something on the system somehow. I don't remember I was getting this "pcilib: Error reading" error before. I don't remember the "DeviceName: Realtek" where it should be AMD! May be I didn't notice or paid attension when it worked! I can't say for sure, but the sure thing is something is seriously wrong and I can no longer switch to "Integrated".

Last edited by munzirtaha (2024-02-04 08:03:26)

Offline

#2 2024-11-07 21:49:34

dybbuk
Member
Registered: 2024-10-18
Posts: 11

Re: supergfxctl can no longer switch Lenovo Legion 7 Gen 7 to Integrated

same issue here on an asus laptop (nvidia + intel) supergfxctl used to wrok but no longer does for some reason

Offline

Board footer

Powered by FluxBB