From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Ripard Subject: Re: [PATCH 2/2] arm64: allwinner: a64: allow laptops to wake up from lid Date: Mon, 25 Jun 2018 19:09:13 +0200 Message-ID: <20180625170913.p335obgr3rfa4skt@flea> References: <20180622160631.8578-1-icenowy@aosc.io> <20180622160631.8578-2-icenowy@aosc.io> Reply-To: maxime.ripard-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ehcemc3meyriletb" Return-path: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Content-Disposition: inline In-Reply-To: <20180622160631.8578-2-icenowy-h8G6r0blFSE@public.gmane.org> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Icenowy Zheng Cc: Chen-Yu Tsai , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Id: devicetree@vger.kernel.org --ehcemc3meyriletb Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline On Sat, Jun 23, 2018 at 12:06:31AM +0800, Icenowy Zheng wrote: > Currently all ARM kernels will have s2idle enabled if CONFIG_SUSPEND is > present. In this case if the lid is closed, systemd-logind will enter > s2idle mode by default; however there's no possible wakeup source > defined, so the system will enter a forever idle. > > Add the lid itself as a wakeup source, thus the system can wakeup when > the lid is opened. > > Signed-off-by: Icenowy Zheng Applied both, thanks! Maxime -- Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --ehcemc3meyriletb--