linux-leds.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Russell King - ARM Linux <linux@armlinux.org.uk>
To: Fabio Estevam <festevam@gmail.com>
Cc: jacek.anaszewski@gmail.com, Richard Purdie <rpurdie@rpsys.net>,
	Linux LED Subsystem <linux-leds@vger.kernel.org>
Subject: Re: pwm-led turns on during suspend
Date: Fri, 17 Nov 2017 12:45:06 +0000	[thread overview]
Message-ID: <20171117124505.GP31757@n2100.armlinux.org.uk> (raw)
In-Reply-To: <CAOMZO5BukO0LmYL7D+nyozGJzkDZiqUo_bNAUJT7RkkYkJUvhw@mail.gmail.com>

On Fri, Nov 17, 2017 at 10:31:23AM -0200, Fabio Estevam wrote:
> Hi,
> 
> On a imx6q-cubox-i board there is an LED controlled via pwm-leds and
> it works as expected:
> 
> # cd /sys/class/leds/imx6\:red\:front/
> # echo 248 > brightness  (LED is turned on with its maximum brightness)
> # echo 0 > brightness (LED is turned off)
> 
> However after entering in suspend mode:
> 
> # echo enabled > /sys/class/tty/ttymxc0/power/wakeup
> # echo mem > /sys/power/state
> 
> The LED is turned on with its maximum brightness.
> 
> Press a key in the console, system resumes and LED is turned off.
> 
> I would expect that the LED gets turned off in suspend, but this is
> not happening.
> 
> Any ideas?

The LED is wired to the 3.3V supply, and most likely the PWM output goes
low when the SoC suspends.  As SolidRun boards don't have support for
powering down the board supplies, the 3.3V supply does not collapse on
suspend.

-- 
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up
According to speedtest.net: 8.21Mbps down 510kbps up

  reply	other threads:[~2017-11-17 12:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-17 12:31 pwm-led turns on during suspend Fabio Estevam
2017-11-17 12:45 ` Russell King - ARM Linux [this message]
2017-11-17 13:27   ` Fabio Estevam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171117124505.GP31757@n2100.armlinux.org.uk \
    --to=linux@armlinux.org.uk \
    --cc=festevam@gmail.com \
    --cc=jacek.anaszewski@gmail.com \
    --cc=linux-leds@vger.kernel.org \
    --cc=rpurdie@rpsys.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).