Open gulafaran opened 2 years ago
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
.
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.
You could also try blacklisting that particular device id in
runtime-pm.conf
.
s3nt fr0m a $martph0ne, excuse typ0s
On Thu, 9 Dec, 2021, 22:51 Tom Englund, @.***> wrote:
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.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rickysarraf/laptop-mode-tools/issues/174#issuecomment-990057406, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAP7SFWBHCW7II3OEGZ6STUQDQQTANCNFSM5JTLV3NQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
does that mean adding "0000:01:00.0" to the blacklist or do i use "01:00.0" from lspci?
On Fri, 2021-12-10 at 04:01 -0800, Tom Englund wrote:
does that mean adding "0000:01:00.0" to the blacklist or do i use "01:00.0" from lspci?
I think the lspci device ids should work. Please try it out.
-- Ritesh Raj Sarraf RESEARCHUT - http://www.researchut.com Necessity is the mother of invention आव्श्यक्ता आविष्कार की जननी है
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.