Skip to content

Instantly share code, notes, and snippets.

@mmatczuk
Last active September 7, 2020 20:01
Show Gist options
  • Save mmatczuk/a6298c0b7ab646e03f111d71457295ac to your computer and use it in GitHub Desktop.
Save mmatczuk/a6298c0b7ab646e03f111d71457295ac to your computer and use it in GitHub Desktop.
Powertop turn off auto power mode for mouse and keyboard
Description=Powertop overtuning fixes
After=powertop.service
[Service]
Type=oneshot
ExecStart=/usr/bin/echo 'on' > '/sys/bus/usb/devices/1-2/power/control'
ExecStart=/usr/bin/echo 'on' > '/sys/bus/usb/devices/1-4/power/control'
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment