dglt1 / optimus-switch

*installer finished* installs nvidia prime and makes switching to intel only and back again easy as one command. intel mode fully disables the nvidia gpu to extend battery life.
71 stars 9 forks source link

Fully Power Down Discrete GPU #8

Closed fdiblen closed 4 years ago

fdiblen commented 4 years ago

Hi,

I am using https://github.com/dglt1/optimus-switch-gdm

I realized that it doesn't power down the nvidia card which reduces the battery life. Please see: https://wiki.archlinux.org/index.php/Hybrid_graphics#Fully_Power_Down_Discrete_GPU

It would be very nice too add this as well.

Thanks!

dglt1 commented 4 years ago

I know the instructions are a bit of a mess, if you read further down you’ll see the instructions that need to be run from intel mode explain which acpi call to use and what lines to edit and uncomment from /etc/switch/intel/no-optimus.sh

The reason I did it this way is for stability rather than using something like bbswitch or nouveau that both come with their own issues (black screen, lockups, etc..). that said, the scripts are simple so if you wanted to use bbswitch instead of acpi_call you could leave the acpi_call line commented out and instead add “options bbswitch load_state=0” to /etc/switch/intel/intel-modprobe.conf

You would obviously need bbswitch installed. I’m not suggesting you do this, but it’s an alternative in case acpi_call fails to power down the gpu but I’ve only seen that happen once or twice and the ones where the acpi_call detection script fails to return a “Works!” result. Some gpu’s don’t need anything other than making sure all nvidia modules are unloaded and power themselves down.


From: Faruk D. notifications@github.com Sent: Wednesday, September 25, 2019 5:27:32 AM To: dglt1/optimus-switch optimus-switch@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [dglt1/optimus-switch] Fully Power Down Discrete GPU (#8)

Hi,

I am using https://github.com/dglt1/optimus-switch-gdm

I realized that it doesn't power down the nvidia card which reduces the battery life. Please see: https://wiki.archlinux.org/index.php/Hybrid_graphics#Fully_Power_Down_Discrete_GPU

It would be very nice too add this as well.

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/dglt1/optimus-switch/issues/8?email_source=notifications&email_token=ALLJBBDQQXR7KXOO2BPHN7LQLMVIJA5CNFSM4I2KEUJ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HNRLMNQ, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALLJBBEXOBMGGGHLUXULDBDQLMVIJANCNFSM4I2KEUJQ.

dglt1 commented 4 years ago

It would be very nice too add this as well.

can you confirm if you did the additional steps to detect the right acpi call and edit/uncomment the lines in /etc/switch/intel/no-optimus.sh ?

fdiblen commented 4 years ago

Hi,

The method dind't work. My computer was freezing. Just to let you know that I switched to experimental nvidia drivers which has gpu offloading support. This solved the issue.