From: Nick Warne <nick@linicks.net>
To: linux-kernel@vger.kernel.org, linux-apci@vger.kernel.org
Subject: Samsung N145 Plus lid state issue on sleep
Date: Thu, 26 Sep 2013 18:25:00 +0100 [thread overview]
Message-ID: <20130926172500.GA7036@sauron> (raw)
In-Reply-To: <20130922104023.GA2332@sauron>
Hi all,
I have a strange problem, which has been on going on for ages, and I finally decided to look at it (as it is a pain in the arse).
Brief details:
Samsung N145 Plus running Slack 14 with handbuilt kernel
Kernel: Linux 3.11.1 #3 SMP Mon Sep 23 19:09:00 BST 2013 i686 Intel(R) Atom(TM) CPU N455 @ 1.66GHz GenuineIntel GNU/Linux
I have no modules built in (.config on request if it helps).
This issue also happened with 'distro' kernel builds... so either it is BIOS issue or hardware fault. But just in case:
Boot laptop into console - no X - so running pure acpi events.
cat /proc/acpi/button/lid/LID0/state
state: open
shut lid
laptop goes to sleep all great.
open lid. Laptop wakes up, video, wlan0 all comes on line, everything hunky dory - but:
cat /proc/acpi/button/lid/LID0/state
state: closed
The lid is open, of course!
OK, shut lid. LCD backlight goes off (so something knows the lid is shut), but no sleep event. Open lid after a few seconds (maybe 10), and screen lights up and then laptop goes to sleep!
Shut lid (wait for a few seconds), open lid, laptop wakes up fine again, and now:
cat /proc/acpi/button/lid/LID0/state
state: open
!
So it appears that closing lid flags 'closed' state but opening it doesn't flag 'open' state... unless I then close it again and open which then flags 'closed' state when open so goes to sleep. So no open it again, and 'state now reports 'open' again. At this point, back to square one (confused? I am!).
Using Fn [sleep] in any mode above works OK. The same happens in X using xfce4 PM or similar.
What is confusing me is that something can see the lid flapping as backlight works on lid open/close.
acpi_listen reports the events as described above, but I can't work out how to record the events when a sleep :)
And ideas/help etc. appreciated, and also I am in the position to be able to debug (with help, of course)!
Thanks,
Nick
--
http://linicks.net/
next prev parent reply other threads:[~2013-09-26 17:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-20 19:59 [PATCH] Correct wording in config COMPILE_TEST Nick Warne
2013-09-22 10:40 ` Samsung laptop - missing documentation Nick Warne
2013-09-22 10:51 ` IGNORE_THIS " Nick Warne
2013-09-22 10:54 ` Borislav Petkov
2013-09-26 17:25 ` Nick Warne [this message]
2013-09-28 21:14 ` Samsung N145 Plus lid state issue on sleep Nick Warne
2013-10-03 17:07 ` Nick Warne
2013-09-24 7:19 ` Linux 3.12-rc2 Nick Warne
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=20130926172500.GA7036@sauron \
--to=nick@linicks.net \
--cc=linux-apci@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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