Sleep and hybrid mode not working?

Hi there,

So after many years I decided to switch from Debian to Arch and so far no complains except small stuff. Unfortunately I never had a recent laptop with hybrid graphics so I can´t really compare with other OSses.

So far what I am missing/not working is:

  • Sleep seems never kicking in so far(mostly the screen goes off, but fans keep spinning all the time). Tried to play around with kernel flags with no success.
  • Hybrid GPU mode seems not really offloading to Nvidia card(tried some benchmark tools but it kept running on the internal CPU). So far I circumnavigated the problem by using Switchero but shouldnt the system switch by itself?

Here some info about my HW:
https://0x0.st/8pZv.txt

Here the boot logs:
https://0x0.st/8pZ3.txt

And here the fail logs after a sleep is attempted:
https://0x0.st/8pZl.txt

Thanks in advace
Cheers

Welcome!

Please show the output of commands

sudo pacman -S --needed nvidia-inst
nvidia-inst --test

There might be BIOS updates, but let’s deal with them later.

Hello Manuel,

here the verbose of your commands requested…

Summary
[aleksandar@endeavour-os-6506mv ~]$ sudo pacman -S --needed nvidia-inst
[sudo] password for aleksandar: 
warning: nvidia-inst-25.4.4-1 is up to date -- skipping
 there is nothing to do
[aleksandar@endeavour-os-6506mv ~]$ nvidia-inst --test
2025-04-12 13:47:00: Note: 0000:01:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD107M [GeForce RTX 4060 Max-Q / Mobile] [10de:28a0] (rev a1) (prog-if 00 [VGA controller])
2025-04-12 13:47:00: Info: Running: nvidia-inst v25.4.4-1
2025-04-12 13:47:00: Info: Command line: nvidia-inst --test
2025-04-12 13:47:00: Info: Selected mode: nvidia (open source)
NVIDIA card id: 28a0
Fetching driver data from nvidia.com ...
2025-04-12 13:47:02: Info: Installing packages: nvidia-open-dkms
2025-04-12 13:47:02: Info: Removing packages: nvidia-dkms
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COMMANDS TO RUN:
    pacman -Rs --noconfirm --noprogressbar --nodeps nvidia-dkms
    pacman -Syuq --noconfirm --noprogressbar --needed nvidia-open-dkms
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[aleksandar@endeavour-os-6506mv ~]$

Regarding the BIOS update, I have already installed the latest available at the provider’s website.
BTW, I do see now that I am using the proprietary drivers and not the opensource ones, might this be the reason the sleep is miss-behaving?

Edit: I tried to dig deeper and apparently I managed to identify that the RP12 is causing the issue where the sleep is not working.

Summary
cat /proc/acpi/wakeup
Device  S-state   Status   Sysfs node
RP01      S4    *disabled
PXSX      S4    *disabled
RP02      S4    *disabled
PXSX      S4    *disabled
RP03      S4    *disabled
PXSX      S4    *disabled
RP04      S4    *disabled
PXSX      S4    *disabled
RP05      S4    *disabled
PXSX      S4    *disabled
RP06      S4    *enabled   pci:0000:00:1c.0
PXSX      S4    *disabled  pci:0000:2c:00.0
RP07      S4    *enabled   pci:0000:00:1c.6
PXSX      S4    *disabled  pci:0000:2d:00.0
RP08      S4    *disabled
PXSX      S4    *disabled
RP09      S4    *disabled
PXSX      S4    *disabled
RP10      S4    *disabled
PXSX      S4    *disabled
RP11      S4    *disabled
PXSX      S4    *disabled
RP12      S4    *enabled   pci:0000:00:01.0
PXSX      S4    *disabled  pci:0000:01:00.0
AWAC      S4    *enabled   platform:ACPI000E:00
XDCI      S4    *disabled
XHCI      S3    *enabled   pci:0000:00:14.0
HDAS      S4    *disabled  pci:0000:00:1f.3
I3C0      S4    *disabled
CNVW      S4    *disabled  pci:0000:00:14.3
TXHC      S4    *enabled   pci:0000:00:0d.0
TDM0      S4    *enabled   pci:0000:00:0d.2
TDM1      S4    *disabled
TRP0      S4    *enabled   pci:0000:00:07.0
PXSX      S4    *disabled
TRP1      S4    *disabled
PXSX      S4    *disabled
TRP2      S4    *disabled
PXSX      S4    *disabled
TRP3      S4    *disabled
PXSX      S4    *disabled

lspci -v | grep -A 10 00:01.0
0000:00:01.0 PCI bridge: Intel Corporation Device 7ecc (rev 10) (prog-if 00 [Normal decode])
        Subsystem: ASUSTeK Computer Inc. Device 1d43
        Flags: bus master, fast devsel, latency 0, IRQ 122, IOMMU group 2
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 4000-4fff [size=4K] [16-bit]
        Memory behind bridge: 87000000-880fffff [size=17M] [32-bit]
        Prefetchable memory behind bridge: 4000000000-4201ffffff [size=8224M] [32-bit]
        Capabilities: [40] Express Root Port (Slot+), IntMsgNum 0
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [98] Subsystem: ASUSTeK Computer Inc. Device 1d43
        Capabilities: [a0] Power Management version 3
--
0000:01:00.0 VGA compatible controller: NVIDIA Corporation AD107M [GeForce RTX 4060 Max-Q / Mobile] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: ASUSTeK Computer Inc. Device 36a8
        Physical Slot: 1
        Flags: bus master, fast devsel, latency 0, IRQ 163, IOMMU group 19
        Memory at 87000000 (32-bit, non-prefetchable) [size=16M]
        Memory at 4000000000 (64-bit, prefetchable) [size=8G]
        Memory at 4200000000 (64-bit, prefetchable) [size=32M]
        I/O ports at 4000 [size=128]
        Expansion ROM at 88000000 [virtual] [disabled] [size=512K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
--
0000:01:00.1 Audio device: NVIDIA Corporation AD107 High Definition Audio Controller (rev a1)
        Subsystem: ASUSTeK Computer Inc. Device 36a8
        Physical Slot: 1
        Flags: bus master, fast devsel, latency 0, IRQ 17, IOMMU group 19
        Memory at 88080000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, IntMsgNum 0
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [160] Data Link Feature <?>
        Kernel driver in use: snd_hda_intel

If I disable the apci the sleep works fine and it restores normally, so now I do wonder if I can just didable it or what is used for?

nvidia-inst recommends using nvidia-open-dkms instead of nvidia-dkms because NVIDIA itself recommends it for your GPU (which is Ada Lovelace family).

So simply I’d run nvidia-inst and see if it works better than before.
Hope this helps. If not, please look at the Arch wiki which includes lots of useful information about NVIDIA GPUs.

Hello again,

I switched to the open version and so far nothing changed, but as i wrote before seems like disabling the apci wakeup via custom sustemctl service did the trick and the sleep function works :victory_hand:

1 Like