Fix
This commit is contained in:
parent
2a123594c9
commit
3b0f6dc8a8
|
@ -0,0 +1 @@
|
|||
options nvidia-drm modeset=1
|
|
@ -0,0 +1,6 @@
|
|||
[Unit]
|
||||
Description=undervolt
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/bin/undervolt -v --core -125 --cache -125 --uncore -125 --analogio -125 --gpu -50
|
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=Apply undervolt settings
|
||||
|
||||
[Timer]
|
||||
Unit=undervolt.service
|
||||
# Wait 2 minutes after boot before first applying
|
||||
OnBootSec=2min
|
||||
# Run every 30 seconds
|
||||
OnUnitActiveSec=30
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Wakeup fix
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/sh -c '/bin/echo XHC > /proc/acpi/wakeup; /bin/echo LID0 > /proc/acpi/wakeup; /bin/echo PBTN > /proc/acpi/wakeup; /bin/echo deep > /sys/power/mem_sleep'
|
||||
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -5,6 +5,6 @@ sudo add-apt-repository -y -u ppa:snwh/ppa
|
|||
sudo add-apt-repository -y ppa:graphics-drivers
|
||||
sudo apt-get -y update
|
||||
sudo apt-get -y upgrade
|
||||
sudo apt install -y vim arc-theme gnome-tweak-tool paper-icon-theme ibus-pinyin clang lld qemu cmake nasm grub-pc-bin bochs bochs-sdl xorriso
|
||||
sudo apt install -y vim arc-theme gnome-tweak-tool paper-icon-theme ibus-pinyin clang lld qemu nasm grub-pc-bin bochs bochs-sdl xorriso git dconf-editor
|
||||
sudo apt-get -y autoremove
|
||||
ibus restart
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Installing power-saving packages"
|
||||
sudo apt install -y powertop tlp
|
||||
sudo apt-get -y autoremove
|
||||
|
||||
echo "Edit /etc/default/tlp such that the default mode is BAT"
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Installing undervolt packages"
|
||||
sudo apt install -y python-pip
|
||||
sudo apt-get -y autoremove
|
||||
sudo pip install undervolt
|
||||
|
||||
|
||||
echo "Applying undervolt"
|
||||
sudo cp _undervolt /etc/systemd/system/undervolt.service
|
||||
sudo cp _undervolt_timer /etc/systemd/system/undervolt-timer.service
|
||||
|
||||
sudo systemctl enable undervolt-timer
|
||||
sudo systemctl start undervolt-timer
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Applying wakeup fix"
|
||||
sudo cp _wakeup_fix /etc/systemd/system/wakeup-fix.service
|
||||
sudo systemctl enable wakeup-fix
|
||||
sudo systemctl start wakeup-fix
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
sudo cp _nv_modeset /etc/modprobe.d/zz-nvidia-modeset.conf
|
||||
sudo update-initramfs -u
|
Loading…
Reference in New Issue