Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:howtos-tips [2014/03/20 13:44]
cyril [Lock on wake up]
linux:howtos-tips [2014/03/28 16:18] (current)
cyril
Line 431: Line 431:
 May be due to some USB devices, even if not plugged. Look if some USB* or EHC* or XHC* are enabled in ''/proc/acpi/wakeup'', and disable them:<code> May be due to some USB devices, even if not plugged. Look if some USB* or EHC* or XHC* are enabled in ''/proc/acpi/wakeup'', and disable them:<code>
 echo EHC1 > /proc/acpi/wakeup echo EHC1 > /proc/acpi/wakeup
 +</code>
 +
 +You can run it in a script at boot time right before suspending:<code>
 +for usb in "EHC1" "EHC2" "XHC"; do
 +        state=`cat /proc/acpi/wakeup | grep $usb | cut -f3 | cut -d' ' -f1 | tr -d '*'`
 +        echo "device = $usb, state = $state"
 +        if [ "$state" == "enabled" ]; then echo $usb > /proc/acpi/wakeup; fi
 +done
 </code> </code>
 ===== Keep screen off when lid shut ===== ===== Keep screen off when lid shut =====
Line 556: Line 564:
 +gvalue = gclient.get('/desktop/gnome/session/idle_delay') +gvalue = gclient.get('/desktop/gnome/session/idle_delay')
 </code> </code>
 +
 +===== Automatically enable/disable second screen =====
 +
 +disper -s
 +disper -e
 +
 +autodisper
 +
 +for completely automatic with dock:
 +http://askubuntu.com/questions/42741/how-to-automatically-switch-monitors-with-my-laptop-dock/48627#48627
linux/howtos-tips.1395323086.txt.gz ยท Last modified: 2014/03/20 13:44 by cyril
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0