Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

laptop-mode-tools changes nvidia's prime D3 power management. #174

Open
gulafaran opened this issue Dec 8, 2021 · 5 comments
Open

laptop-mode-tools changes nvidia's prime D3 power management. #174

gulafaran opened this issue Dec 8, 2021 · 5 comments

Comments

@gulafaran
Copy link

i havent exactly figured out what bits of laptop-mode-tools thats changing it but upon reboot or plugging in or out the power cord changes it.

/sys/bus/pci/devices/0000:01:00.0/power/control gets changed to "on" instead of "auto" meaning its constantly powered on. so currently i have to "echo auto | sudo tee /sys/bus/pci/devices/0000:01:00.0/power/control" on boot/AC/Battery changes. doesnt occur without laptop-mode-tools.

@rickysarraf
Copy link
Owner

That would be the runtime-pm module. Here's the specific line

auto is used when wanting to conserve power. OTOH, on is used when you want to run the device full power, which is the case when on AC.

So, as you mentioned, on power plug in, it'll be on.

@gulafaran
Copy link
Author

thanks, il modify that and add simply a line that sets nvidia to auto on AC aswell then. its mostly just generating heat and powers on by itself anyways when ran with prime-run so.

@rickysarraf
Copy link
Owner

rickysarraf commented Dec 10, 2021 via email

@gulafaran
Copy link
Author

gulafaran commented Dec 10, 2021

does that mean adding "0000:01:00.0" to the blacklist or do i use "01:00.0" from lspci?

ok so lspci -nn lists it 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] [10de:2520] (rev a1)

added 10de:2520 to the blacklist, and now it works as intended. thanks man <3

@rickysarraf
Copy link
Owner

rickysarraf commented Dec 13, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants