You are not logged in.

#1 2013-11-21 19:26:18

rgomes
Member
Registered: 2013-11-15
Posts: 43

First LID close works, but state never changes back to open

I am using a Razer Blade 14" with linux-ck kernel (although I have tested in the main kernel and the issue remains).
I like to be able to close the lid to suspend. But it is not working properly.

Note: I am using

cat /proc/acpi/button/lid/LID0/state

to figure out the state of the lid.

When I start the laptop, the lid is correctly reported as open. When I first close it, the laptop goes to sleep, and when I open it again, it wakes up.
However, it is now reported as closed, although I just woke it up by opening the lid.
If I close the lid, it also does not suspend (I have to manually suspend).
A related bug: when I manually suspend, if I close the lid before it is done suspending, the laptop just hangs and needs to be hard-rebooted.
I am not sure what logs I can post here, but will provide anything that people think is useful.

Thanks in advance for the help!
Rodrigo

EDIT: After some investigation, the related bug seems to be unrelated. It seems like suspend randomly hangs, and I got lucky enough to hang on the few times I tried to close the lid while it was suspended.

Last edited by rgomes (2013-11-23 19:03:59)

Offline

#2 2013-11-22 17:04:56

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,372

Re: First LID close works, but state never changes back to open

What does dmesg show?  Sometimes it prints messages showing that it cannot use the power button or lid switch.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#3 2013-11-22 17:59:14

rgomes
Member
Registered: 2013-11-15
Posts: 43

Re: First LID close works, but state never changes back to open

dmesg doesn't report anything about the lid.
It it's of any use, here's the report when I close the lid for the first time, it suspends, I open it and it wakes back up, and I close and open it again (no action happens then).

[  855.735445] PM: Syncing filesystems ... done.
[  855.743716] PM: Preparing system for mem sleep
[  855.743832] bbswitch: enabling discrete graphics
[  856.273631] Freezing user space processes ... (elapsed 0.001 seconds) done.
[  856.275441] Freezing remaining freezable tasks ... (elapsed 0.000 seconds) done.
[  856.276063] PM: Entering mem sleep
[  856.276116] Suspending console(s) (use no_console_suspend to debug)
[  856.276512] wlan0: deauthenticating from 00:21:d8:49:a1:b3 by local choice (reason=3)
[  856.303042] cfg80211: Calling CRDA for country: US
[  856.303058] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[  856.305387] sd 0:0:0:0: [sda] Stopping disk
[  856.337313] mei_me 0000:00:16.0: suspend
[  856.902051] PM: suspend of devices complete after 625.631 msecs
[  856.902253] PM: late suspend of devices complete after 0.198 msecs
[  856.913157] ehci-pci 0000:00:1d.0: System wakeup enabled by ACPI
[  856.924119] ehci-pci 0000:00:1a.0: System wakeup enabled by ACPI
[  856.946045] xhci_hcd 0000:00:14.0: System wakeup enabled by ACPI
[  856.957112] PM: noirq suspend of devices complete after 54.857 msecs
[  856.957425] ACPI: Preparing to enter system sleep state S3
[  856.957634] PM: Saving platform NVS memory
[  856.958313] Disabling non-boot CPUs ...
[  856.959891] smpboot: CPU 1 is now offline
[  856.961339] smpboot: CPU 2 is now offline
[  856.963019] smpboot: CPU 3 is now offline
[  856.964410] smpboot: CPU 4 is now offline
[  856.965803] smpboot: CPU 5 is now offline
[  856.967169] smpboot: CPU 6 is now offline
[  856.968529] smpboot: CPU 7 is now offline
[  856.968709] ACPI: Low-level resume complete
[  856.968709] PM: Restoring platform NVS memory
[  856.968709] Enabling non-boot CPUs ...
[  856.968709] smpboot: Booting Node 0 Processor 1 APIC 0x2
[  856.981274] Intel pstate controlling: cpu 1
[  856.981329] CPU1 is up
[  856.981355] smpboot: Booting Node 0 Processor 2 APIC 0x4
[  856.993715] Intel pstate controlling: cpu 2
[  856.993767] CPU2 is up
[  856.993787] smpboot: Booting Node 0 Processor 3 APIC 0x6
[  857.006143] Intel pstate controlling: cpu 3
[  857.006193] CPU3 is up
[  857.006215] smpboot: Booting Node 0 Processor 4 APIC 0x1
[  857.018466] Intel pstate controlling: cpu 4
[  857.018516] CPU4 is up
[  857.018536] smpboot: Booting Node 0 Processor 5 APIC 0x3
[  857.030876] Intel pstate controlling: cpu 5
[  857.030919] CPU5 is up
[  857.030936] smpboot: Booting Node 0 Processor 6 APIC 0x5
[  857.043269] Intel pstate controlling: cpu 6
[  857.043311] CPU6 is up
[  857.043328] smpboot: Booting Node 0 Processor 7 APIC 0x7
[  857.055674] Intel pstate controlling: cpu 7
[  857.055712] CPU7 is up
[  857.063860] ACPI: Waking up from system sleep state S3
[  857.097072] xhci_hcd 0000:00:14.0: System wakeup disabled by ACPI
[  857.119078] ehci-pci 0000:00:1a.0: System wakeup disabled by ACPI
[  857.141070] ehci-pci 0000:00:1d.0: System wakeup disabled by ACPI
[  857.163187] PM: noirq resume of devices complete after 98.903 msecs
[  857.163364] PM: early resume of devices complete after 0.147 msecs
[  857.163388] i915 0000:00:02.0: setting latency timer to 64
[  857.163399] xhci_hcd 0000:00:14.0: setting latency timer to 64
[  857.163433] mei_me 0000:00:16.0: irq 45 for MSI/MSI-X
[  857.163449] ahci 0000:00:1f.2: setting latency timer to 64
[  857.163521] ehci-pci 0000:00:1a.0: setting latency timer to 64
[  857.163538] snd_hda_intel 0000:00:03.0: irq 46 for MSI/MSI-X
[  857.163595] mei_me 0000:00:16.0: version message write failed
[  857.163596] mei_me 0000:00:16.0: unexpected reset: dev_state = RESETTING
[  857.163602] snd_hda_intel 0000:00:1b.0: irq 48 for MSI/MSI-X
[  857.163717] ehci-pci 0000:00:1d.0: setting latency timer to 64
[  857.468028] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[  857.470879] ata1.00: configured for UDMA/133
[  857.470917] sd 0:0:0:0: [sda] Starting disk
[  857.494196] usb 1-13: reset full-speed USB device number 3 using xhci_hcd
[  857.505658] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8802225df540
[  857.505659] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8802225df5c0
[  857.505660] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8802225df580
[  857.505660] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880222be98c0
[  857.505661] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880222be9880
[  857.658222] usb 1-14: reset high-speed USB device number 4 using xhci_hcd
[  857.714527] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880037982080
[  857.873499] PM: resume of devices complete after 712.120 msecs
[  857.875809] PM: Finishing wakeup.
[  857.875918] ath9k 0000:03:00.0: no hotplug settings from platform
[  857.875810] Restarting tasks ... done.
[  857.877445] video LNXVIDEO:00: Restoring backlight state
[  857.877449] video LNXVIDEO:01: Restoring backlight state
[  857.877452] bbswitch: disabling discrete graphics
[  857.877462] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20130725/nsarguments-95)
[  858.699065] [drm] Enabling RC6 states: RC6 on, RC6p off, RC6pp off
[  861.567705] wlan0: authenticate with c8:4c:75:d1:0f:ec
[  861.582025] wlan0: direct probe to c8:4c:75:d1:0f:ec (try 1/3)
[  861.783072] wlan0: send auth to c8:4c:75:d1:0f:ec (try 2/3)
[  861.784100] wlan0: authenticated
[  861.785101] wlan0: associate with c8:4c:75:d1:0f:ec (try 1/3)
[  861.787455] wlan0: RX AssocResp from c8:4c:75:d1:0f:ec (capab=0x11 status=0 aid=1)
[  861.787524] wlan0: associated

The only thing that seems to error is mei_me, but I don't know if that would be associated with the lid switch.

Last edited by rgomes (2013-11-22 17:59:44)

Offline

Board footer

Powered by FluxBB