Difference between revisions of "HowTo Prevent A Laptop Lid Close Suspension"

From NST Wiki
Jump to navigationJump to search
(Edit Configuration File for systemd-logind.service)
(Overview)
Line 1: Line 1:
 
__TOC__
 
__TOC__
 
= Overview =
 
= Overview =
This page demonstrates how one can shut the lid of a laptop computer running '''NST''' and still have '''NST''' run without being suspended. This is especially useful when '''NST''' is booted in console mode. The '''[https://www.freedesktop.org/software/systemd/man/systemd-logind.service.html systemd-logind.service]''' can be configured to "'''ignore'''" the ''suspension'' system power action. This '''[https://www.freedesktop.org/software/systemd/man/systemd.html systemd]''' service handles various hardware state system power functionality.
+
This page demonstrates how one can shut the lid of a laptop computer running NST and still have NST run without being suspended. This is especially useful when NST is booted in console mode. The '''[https://www.freedesktop.org/software/systemd/man/systemd-logind.service.html systemd-logind.service]''' can be configured to "'''ignore'''" the ''suspension'' system power action. This '''[https://www.freedesktop.org/software/systemd/man/systemd.html systemd]''' service handles various hardware state system power functionality.
  
 
== Edit Configuration File for systemd-logind.service ==
 
== Edit Configuration File for systemd-logind.service ==
The '''systemd-logind.service''' has a configuration file: "'''[https://www.freedesktop.org/software/systemd/man/logind.conf.html /etc/systemd/logind.conf]'''" that contains an entry for controlling the system power when the lid switch is in the '''Closed''' position. If one wants to allow an '''NST''' system running on a laptop computer not to enter the '''Suspension''' power state, then the '''HandleLidSwitch''' entry needs to be set to: "'''ignore'''".
+
The '''systemd-logind.service''' has a configuration file: "'''[https://www.freedesktop.org/software/systemd/man/logind.conf.html /etc/systemd/logind.conf]'''" that contains an entry for controlling the system power when the lid switch is in the '''Closed''' position. If one wants to allow an NST system running on a laptop computer not to enter the '''Suspension''' power state, then the '''HandleLidSwitch''' entry needs to be set to: "'''ignore'''".

Revision as of 08:30, 4 January 2018

Overview

This page demonstrates how one can shut the lid of a laptop computer running NST and still have NST run without being suspended. This is especially useful when NST is booted in console mode. The systemd-logind.service can be configured to "ignore" the suspension system power action. This systemd service handles various hardware state system power functionality.

Edit Configuration File for systemd-logind.service

The systemd-logind.service has a configuration file: "/etc/systemd/logind.conf" that contains an entry for controlling the system power when the lid switch is in the Closed position. If one wants to allow an NST system running on a laptop computer not to enter the Suspension power state, then the HandleLidSwitch entry needs to be set to: "ignore".