[Samsung NP530U3B-A01UK] Laptop does not suspend on lid close

Bug #1027368 reported by Pat Robinson
38
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Linux
Incomplete
Medium
linux (Ubuntu)
Incomplete
Medium
Unassigned

Bug Description

I've installed Ubuntu 12.04 on my wife's laptop, (a Samsung NP530U3B), all goes well except when I close the lid it does not suspend. I've checked the settings and it is set to suspend on lid close, though does not. Things I've noticed are:
1 - Clicking suspend in the power menu works fine.
2 - When I cat /proc/acpi/button/lid/LID0/state it always returns open, even when closed, (I ran a script that looped the cat then closed the lid)
3 - Running the latest Ubuntu 12.10 alpha 2 does not work either.
4 - The latest mainstream kernel 'linux-image-3.5.0-999-generic_3.5.0-999.201207190406_i386' does not work either.
5 - One odd thing was that after installing the latest bios on the laptop using Windows 7, then restarting into Ubuntu worked once, then it never worked again. I tried booting in to Windows then rebooting back in to Ubuntu to see if that is what changed something but it did not work that time.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: linux-image-3.2.0-26-generic-pae 3.2.0-26.41
ProcVersionSignature: Ubuntu 3.2.0-26.41-generic-pae 3.2.19
Uname: Linux 3.2.0-26-generic-pae i686
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0.1-0ubuntu11
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: PCH [HDA Intel PCH], device 0: ALC269VC Analog [ALC269VC Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: lou 2512 F.... pulseaudio
Card0.Amixer.info:
 Card hw:0 'PCH'/'HDA Intel PCH at 0xf0700000 irq 50'
   Mixer name : 'Intel CougarPoint HDMI'
   Components : 'HDA:10ec0269,144dc0c7,00100202 HDA:80862805,80860101,00100000'
   Controls : 24
   Simple ctrls : 11
Date: Sat Jul 21 09:37:25 2012
HibernationDevice: RESUME=UUID=3c27803e-5c58-4d5f-b649-d7357db99120
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423)
MachineType: SAMSUNG ELECTRONICS CO., LTD. 530U3BI/530U4BI/530U4BH
ProcEnviron:
 LANGUAGE=en_GB:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-26-generic-pae root=UUID=36b0eced-301e-4fa8-a3e4-2c1466de4955 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-3.2.0-26-generic-pae N/A
 linux-backports-modules-3.2.0-26-generic-pae N/A
 linux-firmware 1.79
SourcePackage: linux
StagingDrivers: mei
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 07/11/2012
dmi.bios.vendor: Phoenix Technologies Ltd.
dmi.bios.version: 08XK
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: 530U3BI/530U4BI/530U4BH
dmi.board.vendor: SAMSUNG ELECTRONICS CO., LTD.
dmi.board.version: FAB1
dmi.chassis.asset.tag: Asset Tag
dmi.chassis.type: 9
dmi.chassis.vendor: SAMSUNG ELECTRONICS CO., LTD.
dmi.chassis.version: 0.1
dmi.modalias: dmi:bvnPhoenixTechnologiesLtd.:bvr08XK:bd07/11/2012:svnSAMSUNGELECTRONICSCO.,LTD.:pn530U3BI/530U4BI/530U4BH:pvr0.1:rvnSAMSUNGELECTRONICSCO.,LTD.:rn530U3BI/530U4BI/530U4BH:rvrFAB1:cvnSAMSUNGELECTRONICSCO.,LTD.:ct9:cvr0.1:
dmi.product.name: 530U3BI/530U4BI/530U4BH
dmi.product.version: 0.1
dmi.sys.vendor: SAMSUNG ELECTRONICS CO., LTD.

Revision history for this message
Pat Robinson (source-v) wrote :
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
tags: added: quantal
Revision history for this message
Pat Robinson (source-v) wrote :

Hi

I've been doing a bit of digging and found out some new info, hope this can help...

1 - acpi_listen does not have any output for any keys so I guess this is not functional in Ubuntu.
2 - showkey does not have any output for the lid close button, but shows other key presses ok.
3 - dmesg does not have any output for lid close.

The fact that dmesg does not show anything for the lid close and show key doesn't makes me think the kernel does not support the lid close button, is there any way I can prove this?

Thanks for any help

Pat

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v3.5kernel[0] (Not a kernel in the daily directory) and install both the linux-image and linux-image-extra .deb packages.

Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag(Only that one tag, please leave the other tags). This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text.

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.5-rc7-quantal/

Changed in linux (Ubuntu):
importance: Undecided → Medium
tags: added: needs-upstream-testing
tags: added: kernel-da-key
Pat Robinson (source-v)
tags: added: kernel-bug-exists-upstream
removed: needs-upstream-testing
Revision history for this message
Pat Robinson (source-v) wrote :

Hi

I've tested with kernel http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.5-rc7-quantal/

This did not work, I also noted the lid state was still always open in /proc/acpi/button/lid/LID0/state.

Thanks

Pat

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

It would be helpful to know if this is a regression. That will allow us to perform a kernel bisect to find the offending commit. Would it be possible for you to try an earlier kernels, such as the Lucid kernel[0]?

Thanks in advance!

[0] https://launchpad.net/~canonical-kernel-team/+archive/ppa/+build/3635399/+files/linux-image-2.6.32-41-generic-pae_2.6.32-41.94_i386.deb

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Pat Robinson (source-v) wrote :

Hi

I tried the kernel you suggested, 2.6.32-41, this did not work either.

It still did not change the lid state in /proc/acpi/button/lid/LID0/state

Thanks

Pat

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

This issue appears to be an upstream bug, since you tested the latest upstream kernel. Would it be possible for you to open an upstream bug report at bugzilla.kernel.org [1]? That will allow the upstream Developers to examine the issue, and may provide a quicker resolution to the bug.

If you are comfortable with opening a bug upstream, It would be great if you can report back the upstream bug number in this bug report. That will allow us to link this bug to the upstream report.

[1] https://wiki.ubuntu.com/Bugs/Upstream/kernel

Changed in linux (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Pat Robinson (source-v) wrote :

Hi

I've opened a bug upstream >https://bugzilla.kernel.org/show_bug.cgi?id=45461<

Thanks for your help

Pat

no longer affects: linux
Changed in linux:
importance: Unknown → Medium
status: Unknown → Confirmed
Changed in linux:
status: Confirmed → Incomplete
Changed in linux:
status: Incomplete → In Progress
Changed in linux:
status: In Progress → Incomplete
Revision history for this message
Francisco Cribari (cribari) wrote :

Tested on kernel 3.9.0-030900 (Ubuntu 13.04 64 bit). The problem stays.

penalvch (penalvch)
tags: added: needs-full-computer-model needs-upstream-testing regression-potential
description: updated
tags: added: lucid
removed: regression-potential
Changed in linux (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Pat Robinson (source-v) wrote :

Hi

The laptop model is exactly the same a the one you quoted NP530U3B-A01UK.

penalvch (penalvch)
summary: - Samsung NP530U3B laptop does not suspend on lid close
+ [Samsung NP530U3B-A01UK] Laptop does not suspend on lid close
penalvch (penalvch)
tags: removed: needs-full-computer-model
Revision history for this message
Pat Robinson (source-v) wrote :

Hi Christopher,

The result is

09XK
08/03/2012

penalvch (penalvch)
tags: added: kernel-bug-exists-upstream-v3.5-rc7
removed: kernel-bug-exists-upstream
Revision history for this message
Pat Robinson (source-v) wrote :

Hi Christopher,

I've updated the BIOS as suggested and it is now suspending when I close the lid.

I will however try this for a while as I have heard that the process of updating the BIOS resets something and it does then work for a while.

Many thanks for your help either way, I will let you know how it goes.

I ran the command again and it responded with:
13XK
03/28/2013

penalvch (penalvch)
Changed in linux (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Pat Robinson (source-v) wrote :

I've opened the bug again as the update only made it work for a few suspends

It now doesn't work again

I think an earlier comment said much the same.

Changed in linux (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Pat Robinson, could you please test the latest mainline kernel via http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13-rc2-trusty/ and advise to the results?

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
juanmanuel (rockerito99) wrote :

For those of you with a Samsung laptop showing this problem, please see this issue:

           https://bugs.launchpad.net/ubuntu/+source/acpi/+bug/971061

in particular my last two posts.

I think a kernel patch can be made to flush the events (LID, AC plug/unplug, etc) from the Embedded Controller, at resume, in the same way that I do it with my C program that I attached to that issue for Samsung laptops (and maybe others with the problem).

TL;DR: If the events don't get flushed (queried), the GPE of the EC is never triggered again (chicken and egg situation), my little program queries the events and "unstucks" the EC immediatly.

After that, LID and AC plugged events are reported normally.

Revision history for this message
penalvch (penalvch) wrote :

juanmanuel, thank you for your comment. So your hardware and problem may be tracked, could you please file a new report with Ubuntu by executing the following in a terminal while booted into a Ubuntu repository kernel (not a mainline one) via:
ubuntu-bug linux

For more on this, please read the official Ubuntu documentation:
Ubuntu Bug Control and Ubuntu Bug Squad: https://wiki.ubuntu.com/Bugs/BestPractices#X.2BAC8-Reporting.Focus_on_One_Issue
Ubuntu Kernel Team: https://wiki.ubuntu.com/KernelTeam/KernelTeamBugPolicies#Filing_Kernel_Bug_reports
Ubuntu Community: https://help.ubuntu.com/community/ReportingBugs#Bug_reporting_etiquette

When opening up the new report, please feel free to subscribe me to it.

Thank you for your understanding.

Helpful bug reporting tips:
https://wiki.ubuntu.com/ReportingBugs

Revision history for this message
madbiologist (me-again) wrote :

Problem is fixed in the upstream 3.14 and 3.13.7 kernels by "ACPI / EC: Clear stale EC events on Samsung systems". This patch was included in Ubuntu's 3.13.0-17.37 kernel update for Ubuntu 14.04 "Trusty Tahr" and in Ubuntu's 3.2.0-65.98 kernel update for Ubuntu 12.04 "Precise Pangolin".

Can you confirm that this laptop now suspends on lid close? If so please click the word "Incomplete" next to linux (Ubuntu) at the top of this page and change it to "Fix Released".

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.