You are not logged in.

#1 2023-12-16 17:15:19

sidethorn
Member
Registered: 2023-12-16
Posts: 2

Resume from suspend enables nvidia card

As the title say.
Arch fresh install with nouveau drivers (proprietary are a nightmare for me).I own a MSI Pulse gl76 with nvidia rtx 3060 and intel tigerlake-h gt1. I need to stay on battery and nvidia drains power so fast (less than 30 mins). I followed arch wiki about hybrid graphics to switch off dgpu and after trying lot of methods the one that seems to work better is the one using udev rules (1.1.2). But when I close the lid or suspend, on resume nvidia card kicks in (orange led button on my keyboard indicating that is using dgpu and fast draining battery). Before I start to mess around with powertto or similar I have to resolve this issue. Please I really need help. I'm sort of newbie so please have patience, Thank you.

Update: when resuming from sleep executing neofetch brigs immediatly back integrated gpu (so weird)

Last edited by sidethorn (2023-12-18 11:41:01)

Offline

#2 2023-12-17 17:52:19

user2343
Member
Registered: 2023-12-17
Posts: 2

Re: Resume from suspend enables nvidia card

Hi~ GeForce MX150 user here.

I use https://wiki.archlinux.org/title/NVIDIA … Vidia-eXec as power management solution that allows turning of power of dGPU.

I also noticed that after waking up the gGPU wakes up as well even if I turned it off using `nvx off` command previously.

Therefore, I made systemd hook that executes `nvx off` every time after wakeup as explained here: https://wiki.archlinux.org/title/Power_ … leep_hooks (root-resume.service). I added to this command `sleep 2` pause (`sleep 2; nvx off`), because without it my laptop hanged sometimes on the wakeup. I also need to add a check that Xorg process does not use nVidia gGPU, I will do this later.

I use KDE on Wayland on Intel U620 on first tty and I start X server on NVidia MX150 on second tty with Steam when I want to play games. It is also possible to use nVidia GPU without starting X server, for example for CUDA computations.

This setup works fine for me, but since your GPU is newer and supports D3Cold energy saving state, I would recommend you firstly to follow this instruction:  https://wiki.archlinux.org/title/PRIME# … Management. With it power management should go automatically without requiring to start additional X server and such.

Hope this helps.

Last edited by user2343 (2023-12-17 17:53:13)

Offline

#3 2023-12-18 13:38:40

sidethorn
Member
Registered: 2023-12-16
Posts: 2

Re: Resume from suspend enables nvidia card

Thank you you're a lifesaver! It worked, I used resume hook with the neofetch command and it worked straight away. It's a little bit dirt as a solution but until someone comes up with a better one i'll stick to this.

Offline

Board footer

Powered by FluxBB