Skip to content

Instantly share code, notes, and snippets.

View RodJLinux's full-sized avatar

RodJLinux

  • New Zealand
View GitHub Profile
@rutsky
rutsky / 45fix-usb-wakup
Created June 8, 2014 19:25
pm-utils script to disable wakup by events from USB devices on Sony Vaio 1311s9rb
#!/bin/bash
# /usr/lib/pm-utils/sleep.d/45fix-usb-wakup
# Disable wakup from USB devices on Sony Vaio 1311s9rb
function print_state {
cat /proc/acpi/wakeup | grep $1 | cut -f3 | cut -d' ' -f1 | tr -d '*'
}
function disable_wakup {