Skip to content

Instantly share code, notes, and snippets.

@chutsu
Last active February 5, 2022 13:30
Show Gist options
  • Save chutsu/93a14941896eba495d4c0b16ba30c75c to your computer and use it in GitHub Desktop.
Save chutsu/93a14941896eba495d4c0b16ba30c75c to your computer and use it in GitHub Desktop.
# Manual Fan Control
# Source: https://www.thinkwiki.org/wiki/How_to_control_fan_speed
echo level 7 | sudo tee /proc/acpi/ibm/fan
echo level auto | sudo tee /proc/acpi/ibm/fan
# Sleep
# For some reason since Ubuntu 20 closing lid does not sleep laptop
# only alternative I have found is to issue the following command
# Note: Tried `systemctl sleep` to no avail
systemctl hybrid-sleep
# Display
# When using i3 as the window manager, ubuntu has a habbit of dimming
# the screen out of the blue. To set brightness to max again
# issue the following:
echo 100 | sudo tee /sys/class/backlight/nv_backlight/brightness
# Screen Lock
# https://askubuntu.com/questions/1048774/disabling-lock-screen-18-04
gsettings get org.gnome.desktop.lockdown disable-lock-screen
gsettings set org.gnome.desktop.lockdown disable-lock-screen 'true'
gsettings set org.gnome.desktop.lockdown disable-lock-screen 'false'
# Screen Saver
# https://askubuntu.com/questions/1048774/disabling-lock-screen-18-04
gsettings get org.gnome.desktop.screensaver lock-enabled
gsettings set org.gnome.desktop.screensaver lock-enabled false
gsettings set org.gnome.desktop.screensaver lock-enabled true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment