i tried several tutorials to poweroff my discrete graphic along the internet, like this also tried TLP, and this
the laptop that i use is HP Pavilion 15 p002la (it comes with R5 IGP & R7 m260 (DIS)
Points:
-> Switcheroo its enabled (cat /etc/default/grub):
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.runpm=0"
GRUB_CMDLINE_LINUX=""
-> Status of switcheroo (cat /sys/kernel/debug/vgaswitcheroo/switch):
0:DIS: :DynPwr:0000:01:00.0
1:IGD:+:Pwr:0000:00:01.0
-> The driver that i'm using (xrandr --listproviders):
Providers: number : 2
Provider 0: id: 0x53 cap: 0x9, Source Output, Sink Offload crtcs: 2 outputs: 2 associated providers: 1 name:MULLINS @ pci:0000:00:01.0
Provider 1: id: 0x7c cap: 0x4, Source Offload crtcs: 0 outputs: 0 associated providers: 1 name:AMD Radeon R7 M260 @ pci:0000:01:00.0
-> TLP info (tlp-stat):
--- TLP 1.3.1 --------------------------------------------
+++ Configured Settings:
/etc/tlp.conf L0026: TLP_ENABLE="1"
defaults.conf L0005: TLP_PERSISTENT_DEFAULT="0"
defaults.conf L0006: DISK_IDLE_SECS_ON_AC="0"
defaults.conf L0007: DISK_IDLE_SECS_ON_BAT="2"
defaults.conf L0008: MAX_LOST_WORK_SECS_ON_AC="15"
defaults.conf L0009: MAX_LOST_WORK_SECS_ON_BAT="60"
defaults.conf L0010: CPU_ENERGY_PERF_POLICY_ON_AC="balance_performance"
defaults.conf L0011: CPU_ENERGY_PERF_POLICY_ON_BAT="balance_power"
/etc/tlp.conf L0128: SCHED_POWERSAVE_ON_AC="0"
/etc/tlp.conf L0130: SCHED_POWERSAVE_ON_BAT="1"
defaults.conf L0014: NMI_WATCHDOG="0"
defaults.conf L0015: DISK_DEVICES="nvme0n1 sda"
defaults.conf L0016: DISK_APM_LEVEL_ON_AC="254 254"
defaults.conf L0017: DISK_APM_LEVEL_ON_BAT="128 128"
defaults.conf L0018: DISK_IOSCHED="keep keep"
defaults.conf L0019: SATA_LINKPWR_ON_AC="med_power_with_dipm max_performance"
defaults.conf L0020: SATA_LINKPWR_ON_BAT="med_power_with_dipm min_power"
defaults.conf L0021: AHCI_RUNTIME_PM_TIMEOUT="15"
defaults.conf L0022: PCIE_ASPM_ON_AC="default"
defaults.conf L0023: PCIE_ASPM_ON_BAT="default"
defaults.conf L0024: RADEON_POWER_PROFILE_ON_AC="default"
/etc/tlp.conf L0248: RADEON_POWER_PROFILE_ON_BAT="low"
defaults.conf L0026: RADEON_DPM_PERF_LEVEL_ON_AC="auto"
/etc/tlp.conf L0261: RADEON_DPM_PERF_LEVEL_ON_BAT="low"
defaults.conf L0028: WIFI_PWR_ON_AC="off"
defaults.conf L0029: WIFI_PWR_ON_BAT="on"
defaults.conf L0030: WOL_DISABLE="Y"
defaults.conf L0031: SOUND_POWER_SAVE_ON_AC="0"
defaults.conf L0032: SOUND_POWER_SAVE_ON_BAT="1"
defaults.conf L0033: SOUND_POWER_SAVE_CONTROLLER="Y"
defaults.conf L0034: BAY_POWEROFF_ON_AC="0"
defaults.conf L0035: BAY_POWEROFF_ON_BAT="0"
defaults.conf L0036: BAY_DEVICE="sr0"
/etc/tlp.conf L0304: RUNTIME_PM_ON_AC="auto"
/etc/tlp.conf L0305: RUNTIME_PM_ON_BAT="auto"
/etc/tlp.conf L0320: RUNTIME_PM_DRIVER_BLACKLIST="amdgpu mei_me nouveau nvidia pcieport radeon"
/etc/tlp.conf L0325: USB_AUTOSUSPEND="1"
defaults.conf L0041: USB_BLACKLIST_BTUSB="0"
defaults.conf L0042: USB_BLACKLIST_PHONE="0"
defaults.conf L0043: USB_BLACKLIST_PRINTER="1"
defaults.conf L0044: USB_BLACKLIST_WWAN="0"
defaults.conf L0045: USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN="0"
defaults.conf L0046: RESTORE_DEVICE_STATE_ON_STARTUP="0"
defaults.conf L0047: RESTORE_THRESHOLDS_ON_BAT="0"
defaults.conf L0048: NATACPI_ENABLE="1"
defaults.conf L0049: TPACPI_ENABLE="1"
defaults.conf L0050: TPSMAPI_ENABLE="1"
/etc/tlp.conf L0032: TLP_DEFAULT_MODE="AC"
/etc/tlp.conf L0076: CPU_SCALING_GOVERNOR_ON_AC="conservative"
/etc/tlp.conf L0077: CPU_SCALING_GOVERNOR_ON_BAT="conservative"
/etc/tlp.conf L0121: CPU_BOOST_ON_AC="1"
/etc/tlp.conf L0122: CPU_BOOST_ON_BAT="0"
/etc/tlp.conf L0253: RADEON_DPM_STATE_ON_AC="performance"
/etc/tlp.conf L0254: RADEON_DPM_STATE_ON_BAT="battery"
+++ System Info
System = Hewlett-Packard 0977100000405F00000610180 HP Pavilion 15 Notebook PC
BIOS = F.46
Kernel = 5.11.0-40-generic #44~20.04.2-Ubuntu Tue Oct 26 18:07:44 UTC 2021 x86_64
/proc/cmdline = BOOT_IMAGE=/vmlinuz-5.11.0-40-generic root=UUID=252c0da9-8c9a-47c3-aeb7-596bda2c3f6c ro quiet splash radeon.runpm=0 vt.handoff=7
Init system = systemd v245 (245.4-4ubuntu3.13)
Boot mode = UEFI
+++ TLP Status
State = enabled
RDW state = enabled
Last run = 11:03:15, 5554 sec(s) ago
Mode = AC
Power source = AC
+++ Processor
CPU model = AMD A8-6410 APU with AMD Radeon R5 Graphics
/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver = acpi-cpufreq
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor = conservative
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq = 1000000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 2000000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies = 2000000 1800000 1600000 1400000 1200000 1000000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver = acpi-cpufreq
/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor = conservative
/sys/devices/system/cpu/cpu1/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq = 1000000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq = 2000000 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_available_frequencies = 2000000 1800000 1600000 1400000 1200000 1000000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_driver = acpi-cpufreq
/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor = conservative
/sys/devices/system/cpu/cpu2/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil
/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq = 1000000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq = 2000000 [kHz]
/sys/devices/system/cpu/cpu2/cpufreq/scaling_available_frequencies = 2000000 1800000 1600000 1400000 1200000 1000000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_driver = acpi-cpufreq
/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor = conservative
/sys/devices/system/cpu/cpu3/cpufreq/scaling_available_governors = conservative ondemand userspace powersave performance schedutil
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq = 1000000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq = 2000000 [kHz]
/sys/devices/system/cpu/cpu3/cpufreq/scaling_available_frequencies = 2000000 1800000 1600000 1400000 1200000 1000000 [kHz]
/sys/devices/system/cpu/cpufreq/boost = 1
Intel EPB: unsupported CPU.
/sys/module/workqueue/parameters/power_efficient = Y
/proc/sys/kernel/nmi_watchdog = 0
+++ AHCI Link Power Management (ALPM)
/sys/class/scsi_host/host0/link_power_management_policy = med_power_with_dipm
/sys/class/scsi_host/host1/link_power_management_policy = med_power_with_dipm
+++ AHCI Host Controller Runtime Power Management
/sys/bus/pci/devices/0000:00:11.0/ata1/power/control = on
/sys/bus/pci/devices/0000:00:11.0/ata2/power/control = on
+++ Radeon Graphics
/sys/class/drm/card0/device/power_dpm_state = performance
/sys/class/drm/card0/device/power_dpm_force_performance_level = auto
+++ PCIe Active State Power Management
/sys/module/pcie_aspm/parameters/policy = [default] performance powersave powersupersave
Obs:
The command echo OFF > /sys/kernel/debug/vgaswitcheroo/switch does nothing (not showing DynOff on DIS)
Update:
After severals times to trying poweroff the card, last atempt was
add ppa from "updated graphic drivers" from Oibaf's launchpad and the output of switcheroo (cat /sys/kernel/debug/vgaswitcheroo/switch) was:
0:IGD:+:Pwr:0000:00:01.0
1:DIS: :DynPwr:0000:01:00.0
(note zero changed...)