From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755395AbbBGCiM (ORCPT ); Fri, 6 Feb 2015 21:38:12 -0500 Received: from bombadil.infradead.org ([198.137.202.9]:41936 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753938AbbBGCiK (ORCPT ); Fri, 6 Feb 2015 21:38:10 -0500 Date: Fri, 6 Feb 2015 18:38:09 -0800 From: Darren Hart To: Julijonas Kikutis Cc: Corentin Chary , "open list:ABI/API" , open list , "open list:SAMSUNG LAPTOP DR..." Subject: Re: [PATCH v3] samsung-laptop: enable better lid handling Message-ID: <20150207023809.GA36295@fury.dvhart.com> References: <1418332715-10547-1-git-send-email-julijonas.kikutis@gmail.com> <1422536696-1718-1-git-send-email-julijonas.kikutis@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1422536696-1718-1-git-send-email-julijonas.kikutis@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 29, 2015 at 01:04:37PM +0000, Julijonas Kikutis wrote: > Some Samsung laptops with SABI3 delay the sleep for 10 seconds after > the lid is closed and do not wake up from sleep after the lid is opened. > A SABI command is needed to enable the better behavior. > > Command = 0x6e, d0 = 0x81 enables this behavior. Returns d0 = 0x01. > Command = 0x6e, d0 = 0x80 disables this behavior. Returns d0 = 0x00. > > Command = 0x6d and any d0 queries the state. This returns: > d0 = 0x00000*01, d1 = 0x00, d2 = 0x00, d3 = 0x0* when it is enabled. > d0 = 0x00000*00, d1 = 0x00, d2 = 0x00, d3 = 0x0* when it is disabled. > Where * is 0 - laptop has never slept or hibernated after switch on, > 1 - laptop has hibernated just before, > 2 - laptop has slept just before. > > Patch addresses bug https://bugzilla.kernel.org/show_bug.cgi?id=75901 . > It adds a sysfs attribute lid_handling with a description and also an > addition to the quirks structure to enable the mode by default. > > A user with another laptop in the bug report says that "power button has > to be pressed twice to wake the machine" when he or she enabled the mode > manually using the SABI command. Therefore, it is enabled by default > only for the single laptop that I have tested. > > Signed-off-by: Julijonas Kikutis Queued up, thanks Jujijonas. -- Darren Hart Intel Open Source Technology Center