Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp585880imm; Wed, 8 Aug 2018 02:06:20 -0700 (PDT) X-Google-Smtp-Source: AA+uWPy/3VIAGy0jU2V6nPHsyBsI4mhPvB1AmX7lZQrKx69g2vqf99/gtLaOUHZaPxs6ndaIFxw5 X-Received: by 2002:a63:b213:: with SMTP id x19-v6mr1694844pge.393.1533719180364; Wed, 08 Aug 2018 02:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533719180; cv=none; d=google.com; s=arc-20160816; b=vw5z2KvsWA8f6Zu9pyVZ3C3dlYvTY7kcFCkxYBeHzXAJJfIzPz0nhwzfRffVvmXFvX D1ti1G/emYcbBnj1Y4zyYp6VAzoDqY8G8GCPXllvVJqwc8zGDVHIjoZcj1Xmb+7yEETq kAxH0t0YPL9tDQAdr0vRnkym1zoI0Tm7ldTPfyRJ4tjz8yH2eMKmZynzDbnNa3NKvqN+ HJkvVJBdmNgo9Vm+k7A4XG4pUjNW8Ww+VMdH7xSmiIKcDBCu7LPH4UTg6aaYSq950+lK ZzrJCxEZUE/gbaGfwY9hva9+FD478i6iBk/CRTybhAujDdIdgkxQkMCMRRY4QpfarlDj 59Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=N+PUFjQ7I0jdCbAfiugyodXk15AMPM67/uHUf9gs4wA=; b=JQ0HA4bxjEMC3yuUfNtISFaTUMeOUegG+v1gbHp51lEXWnHlb0rfPtl4jCfdMxCy6p hpF3OVKhuk4f3Iw4/8bUMM5id4zi65jPsCR0sOKVQVu94DH9+XkzPYwPsnrUlloTeUSl QLT3TVYC30qel34M9R0IUB3tW5SXjcRRal/RvGWUNr6fECJD+JNX2n7TioBbW3Fo2o1M phDkaUHzPgZjBy8bNc/R9T+pu7nSretNJom5MHiFkEz8YPOcXafiXLBuS9suYpSornwX YSjeCjwe7Ykb5kkAJhgrT/z2ZRPjDvu0IOdYT+dFzSYRaZZhQcZKO+CkY7SRkwSKpM+F eDfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z15-v6si3881679pgf.293.2018.08.08.02.06.05; Wed, 08 Aug 2018 02:06:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727383AbeHHLYC (ORCPT + 99 others); Wed, 8 Aug 2018 07:24:02 -0400 Received: from muru.com ([72.249.23.125]:53058 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727229AbeHHLYC (ORCPT ); Wed, 8 Aug 2018 07:24:02 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id C9C06805C; Wed, 8 Aug 2018 09:08:47 +0000 (UTC) Date: Wed, 8 Aug 2018 02:05:12 -0700 From: Tony Lindgren To: Pavel Machek Cc: Michael Nazzareno Trimarchi , kernel list , linux-arm-kernel , Linux OMAP Mailing List , Sebastian Reichel , nekit1000@gmail.com, mpartap@gmx.net, Merlijn Wajer Subject: Re: Droid 4: suspend to RAM? Message-ID: <20180808090512.GQ99251@atomide.com> References: <20180725200205.GA29594@amd> <20180725212853.GA1965@amd> <20180727113214.GA32069@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180727113214.GA32069@amd> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Pavel Machek [180727 11:35]: > Hi! > > > > high even before modem (and thus USB) is enabled. > > > > > > > > Interestingly, CyanogenMod and Jolla seem to have higher power > > > > consumption than stock operating system. > > > > > > > > (My Linux can survive for 10 hours, stock system could survive for 4 > > > > days if I'm not mistaken). > > > > > > > > I thought I would experiment with suspend to RAM.. and it indeed > > > > seemed to suspend ok, but I could not wake it up. Do I need to set up > > > > wakeup with button somehow? Is suspend to RAM required for good power > > > > consumption? > > > > > > Sorry but pm subsystem has debug mode that you can test in a easy way. > > > You can even wakeup by any rtc alarm easily. > > > > Yes, that is how it works on PC (but there power button works, > > too). Is it expected to work on Droid in v4.18? > > I tried setting up wakeup using RTC, but no, it does not seem to work: > > root@devuan:/my/tui/d4# rtcwake -m no -s 5 > rtcwake: wakeup using /dev/rtc0 at Fri Jul 27 11:28:44 2018 > root@devuan:/my/tui/d4# echo mem > /sys/power/state Works for me here as tested on next-20180808, maybe you don't have CONFIG_RTC_DRV_CPCAP? Maybe you are trying to use CONFIG_RTC_DRV_OMAP? Then for deeper idle modes, you need to also idle UARTs, and unbind or unload USB related modules. You should get to something like 160mW power consumption with mdm6600 enabled and SoC suspended that way. Then again system running idle is about the same with timers and interrupts working so I'd just idle UARTs and unload USB modules :) My UART idle script below for reference. Regards, Tony 8< ---------------- #!/bin/bash # Configure PM runtime autosuspend uarts=$(find /sys/bus/platform/devices/4*.serial/power/ -type d) for uart in $uarts; do echo -n 3000 > $uart/autosuspend_delay_ms echo -n enabled > $uart/wakeup echo -n auto > $uart/control done # Configure wake-up from suspend uarts=$(find /sys/class/tty/tty[SO]*/power/ -type d 2>/dev/null) for uart in $uarts; do echo -n enabled > $uart/wakeup done echo -n 1 > /sys/kernel/debug/pm_debug/enable_off_mode