laptop - Disable suspend after screen lock - Ask Ubuntu


i use ubuntu 16.10 on laptop (with closed lid) attached docking station , external monitor.

after lock (i.e. through ctrl+alt+l) machine, ubuntu suspends after few minutes. how can disable behavior?

i aware of power options in system settings. choices follows:enter image description here maybe problem solved disabling "suspend when lid closed" (as technically, lid closed when device attached docking station). however, prefer keep "suspend when lid closed" option since use laptop without docking station.

thanks help!

you can try this. open terminal , type:

gksu gedit /etc/systemd/logind.conf 

set these 2 lines this:

handlelidswitch=suspend handlelidswitchdocked=ignore 

save file, reboot , test under 2 environments (docked , undocked).

if unacceptable results, change power settings "do nothing" on lid close event have set "suspend" now. shouldn't have reboot test 2 environments again.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User