Skip to content

Instantly share code, notes, and snippets.

@jxu
Created October 18, 2019 21:42
Show Gist options
  • Save jxu/837e9f7599321c6568c0171548257270 to your computer and use it in GitHub Desktop.
Save jxu/837e9f7599321c6568c0171548257270 to your computer and use it in GitHub Desktop.
from old chromebook?
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
#iwconfig wlp3s0 power off
powertop --auto-tune
# Keep USB devices on
for i in /sys/bus/usb/devices/*/power/control; do echo on > $i; done
# Autosuspend USB device HD WebCam
echo 'auto' > '/sys/bus/usb/devices/1-7/power/control';
# Reduce Lenovo mouse sensitivity
xinput --set-prop "pointer:Lenovo Ultraslim Plus Wireless Keyboard & Mouse" "Device Accel Constant Deceleration" 2.0 || true
# Disable 3-finger tap for touchpad (moved to Startup Applications)
#synclient ClickFinger3=2
# Restart network-manager after hibernate
#sudo service network-manager restart
# Disable Caps Lock
setxkbmap -option caps:none
echo 'rc.local exiting.'
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment