Last active
September 3, 2024 06:20
-
Star
(104)
You must be signed in to star a gist -
Fork
(18)
You must be signed in to fork a gist
-
-
Save tomwwright/f88e2ddb344cf99f299935e1312da880 to your computer and use it in GitHub Desktop.
Revisions
-
tomwwright revised this gist
Mar 26, 2018 . No changes.There are no files selected for viewing
-
tomwwright revised this gist
Nov 26, 2017 . No changes.There are no files selected for viewing
-
tomwwright revised this gist
Nov 20, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -23,7 +23,7 @@ sudo powertop --auto-tune # auto-tune parameter will configure some recommen # install Nvidia 384.90 drivers sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt update sudo apt-get install nvidia-384=384.90-0ubuntu3.17.10.1 sudo apt-mark hold nvidia-384 # stop this package being auto-updated during package resolution # test that the nvidia drivers are working: nvidia-smi should output some GPU stats -
tomwwright revised this gist
Nov 20, 2017 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,6 +24,7 @@ sudo powertop --auto-tune # auto-tune parameter will configure some recommen sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt update sudo apt-get install nvidia-384 sudo apt-mark hold nvidia-384 # stop this package being auto-updated during package resolution # test that the nvidia drivers are working: nvidia-smi should output some GPU stats nvidia-smi -
tomwwright created this gist
Oct 30, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,54 @@ # perform a fresh install of Ubuntu 17.10 # upgrade the kernel to v4.13.10 mkdir ~/kernel-v4.13.10 cd ~/kernel-v4.13.10 wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-headers-4.13.10-041310_4.13.10-041310.201710270531_all.deb wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-headers-4.13.10-041310-generic_4.13.10-041310.201710270531_amd64.deb wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.10/linux-image-4.13.10-041310-generic_4.13.10-041310.201710270531_amd64.deb sudo dpkg -i *.deb # configure required kernel parameter (https://github.com/Bumblebee-Project/bbswitch/issues/148) sudo nano /etc/default/grub # change this parameter to: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_rev_override=1" # rebuild the bootloader sudo update-grub2 # install and configure TLP and PowerTOP sudo apt-get install tlp tlp-rdw powertop sudo tlp start # PowerTOP should be reporting a battery discharge rate of ~8-12W sudo powertop --auto-tune # auto-tune parameter will configure some recommended power-saving tweaks # install Nvidia 384.90 drivers sudo add-apt-repository ppa:graphics-drivers/ppa sudo apt update sudo apt-get install nvidia-384 # test that the nvidia drivers are working: nvidia-smi should output some GPU stats nvidia-smi # PowerTOP should now be reporting a battery discharge rate of ~15-20W sudo powertop # install Nvidia Prime: so we can disable the dedicated GPU when we don't want it sudo apt-get install nvidia-prime sudo prime-select intel # REBOOT: when we boot back in, GPU should now be disabled sudo powertop # PowerTOP should be reporting ~8-12W dischargehe nvidia-smi # nvidia-smi should complain about missing drivers sudo prime-select nvidia # switch back to dedicated graphics sudo powertop # PowerTOP should start reporting ~15-20W discharge nvidia-smi # nvidia-smi should report GPU info sudo prime-select intel # the GOTCHA: prime-select intel doesn't re-disable the graphics card sudo powertop # PowerTOP still reporting ~15-20W discharge nvidia-smi # nvidia-smi correctly complaining about missing drivers