Thinkpad X1 Carbon Suspend issue

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Thinkpad X1 Carbon Suspend issue

Bojan Nastic-2
Hello misc,

Anyone having much luck with 5.7 or -current on Thinkpad X1 Carbon
2nd gen (Haswell chip)?

Everything seems to be working fine, except for waking from suspend.
Suspend works fine, either via 'zzz' or closing the lid, but waking
it up doesn't work -- hardware seems unresponsive, the sleep light stays on
regardless of what I do to it (pressing buttons, opening the lid...)

Tried 5.7 release, then upgraded to -current (as of 23.05.), still the same
problems. (Haven't cheked 5.6 for regressions, though).

Dmesg given below. Thinkpad runs a full disk encryption on root, if that
matters.
There are some Intel HD errors reported, which I've neer seen before:
error: [drm:pid0:i915_write32] *ERROR* Unknown unclaimed register before
writing to 100000
error: [drm:pid0:intel_dp_set_link_train] *ERROR* Timed out waiting for DP
idle patterns
error: [drm:pid0:i915_write32] *ERROR* Unknown unclaimed register before
writing to 64040

Any ideas? How can I debug this further?

Cheers,
Bojan





OpenBSD 5.7-current (GENERIC.MP) #1006: Sat May 23 10:30:01 MDT 2015
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8233517056 (7852MB)
avail mem = 7980146688 (7610MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xbcd3d000 (61 entries)
bios0: vendor LENOVO version "GRET40WW (1.17 )" date 09/02/2014
bios0: LENOVO 20A7CTO1WW
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP ASF! DBGP ECDT HPET APIC MCFG SSDT SSDT SSDT SSDT
SSDT SSDT TCPA UEFI MSDM BATB FPDT UEFI DMAR
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP2(S4) XHCI(S3) EHC1(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-4550U CPU @ 1.50GHz, 798.31 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEA
DLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,
BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i7-4550U CPU @ 1.50GHz, 798.16 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEA
DLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,
BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i7-4550U CPU @ 1.50GHz, 798.16 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEA
DLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,
BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i7-4550U CPU @ 1.50GHz, 798.16 MHz
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX
,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEA
DLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,
BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 40 pins
acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP3)
acpicpu0 at acpi0: C3, C1, PSS
acpicpu1 at acpi0: C3, C1, PSS
acpicpu2 at acpi0: C3, C1, PSS
acpicpu3 at acpi0: C3, C1, PSS
acpipwrres0 at acpi0: PUBS, resource for XHCI, EHC1
acpitz0 at acpi0: critical temperature is 200 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "45N1703" serial   558 type LiP oem "SMP"
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit offline
acpithinkpad0 at acpi0
cpu0: Enhanced SpeedStep 798 MHz: speeds: 2101, 2100, 2000, 1900, 1800,
1700, 1600, 1500, 1400, 1300, 1200, 1100, 1000, 900, 800, 777 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 4G Host" rev 0x09
vga1 at pci0 dev 2 function 0 "Intel HD Graphics 5000" rev 0x09
intagp at vga1 not configured
inteldrm0 at vga1
drm0 at inteldrm0
error: [drm:pid0:i915_write32] *ERROR* Unknown unclaimed register before
writing to 100000
error: [drm:pid0:intel_dp_set_link_train] *ERROR* Timed out waiting for DP
idle patterns
error: [drm:pid0:i915_write32] *ERROR* Unknown unclaimed register before
writing to 64040
inteldrm0: 2560x1440
wsdisplay0 at vga1 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
azalia0 at pci0 dev 3 function 0 "Intel Core 4G HD Audio" rev 0x09: msi
azalia0: No codecs found
xhci0 at pci0 dev 20 function 0 "Intel 8 Series xHCI" rev 0x04: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
"Intel 8 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
em0 at pci0 dev 25 function 0 "Intel I218-V" rev 0x04: msi, address
54:ee:75:32:08:d7
azalia1 at pci0 dev 27 function 0 "Intel 8 Series HD Audio" rev 0x04: msi
azalia1: codecs: Realtek ALC292
audio0 at azalia1
ppb0 at pci0 dev 28 function 0 "Intel 8 Series PCIE" rev 0xe4: msi
pci1 at ppb0 bus 2
ppb1 at pci0 dev 28 function 1 "Intel 8 Series PCIE" rev 0xe4: msi
pci2 at ppb1 bus 3
iwm0 at pci2 dev 0 function 0 "Intel Dual Band Wireless AC 7260" rev 0x83,
msi
ehci0 at pci0 dev 29 function 0 "Intel 8 Series USB" rev 0x04: apic 2 int 23
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
pcib0 at pci0 dev 31 function 0 "Intel 8 Series LPC" rev 0x04
ahci0 at pci0 dev 31 function 2 "Intel 8 Series AHCI" rev 0x04: msi, AHCI
1.3
ahci0: port 0: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, SAMSUNG MZNTE256, EXT2> SCSI3 0/direct
fixed naa.5002538844584d30
sd0: 244198MB, 512 bytes/sector, 500118192 sectors, thin
ichiic0 at pci0 dev 31 function 3 "Intel 8 Series SMBus" rev 0x04: apic 2
int 18
iic0 at ichiic0
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
wsmouse1 at pms0 mux 0
pms0: Synaptics clickpad, firmware 8.1
pcppi0 at isa0 port 0x61 irq 0
spkr0 at pcppi0
umodem0 at uhub0 port 4 configuration 1 interface 2 "Sierra Wireless Inc.
Sierra Wireless EM7345 4G LTE" rev 2.00/17.29 addr 2
umodem0: data interface 3, has no CM over data, has break
umodem0: status change notification available
ucom0 at umodem0
ugen0 at uhub0 port 4 configuration 1 "Sierra Wireless Inc. Sierra Wireless
EM7345 4G LTE" rev 2.00/17.29 addr 2
ugen1 at uhub0 port 6 "Validity Sensors product 0x0017" rev 1.10/0.78 addr 3
ugen2 at uhub0 port 7 "Intel product 0x07dc" rev 2.00/0.01 addr 4
uhub2 at uhub1 port 1 "Intel Rate Matching Hub" rev 2.00/0.04 addr 2
uvideo0 at uhub2 port 8 configuration 1 interface 0 "Chicony Electronics
Co.,Ltd. Integrated Camera" rev 2.00/25.09 addr 3
video0 at uvideo0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
sd1 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 005> SCSI2 0/direct fixed
sd1: 243163MB, 512 bytes/sector, 497998407 sectors
root on sd1a (cba6f07810abbd46.a) swap on sd1b dump on sd1b
iwm0: hw rev: 0x140, fw ver 25.228 (API ver 9), address e8:b1:fc:43:76:f5

Reply | Threaded
Open this post in threaded view
|

Re: Thinkpad X1 Carbon Suspend issue

Laurence Tratt
On Mon, May 25, 2015 at 08:21:19PM +0100, Bojan Nastic wrote:

> Anyone having much luck with 5.7 or -current on Thinkpad X1 Carbon 2nd gen
> (Haswell chip)?

It works pretty well (including wireless), although on my machine the lack
of a specific video driver means that things in X can be painfully slow
(forget about watching a video!).

> Everything seems to be working fine, except for waking from suspend.
> Suspend works fine, either via 'zzz' or closing the lid, but waking it up
> doesn't work -- hardware seems unresponsive, the sleep light stays on
> regardless of what I do to it (pressing buttons, opening the lid...)

When I do this, the OS is still working, but the screen doesn't wake back up
(whether this is related to X running in the background or not, I don't know
-- I never run without X). I can see this happening as follows. Log in as
root on console 1. Suspend with zzz (I don't use suspend-with-lid). Resume
by pressing the power button. [At this point the screen is blank.] Type
"reboot". Wait a little while and the machine will reboot. I appreciate
that's not hugely useful, but it does mean that, if I want to test
suspend/resume support ever so often, I don't have to fsck afterwards...


Laurie
--
Personal                                             http://tratt.net/laurie/
Software Development Team                                http://soft-dev.org/
   https://github.com/ltratt              http://twitter.com/laurencetratt

Reply | Threaded
Open this post in threaded view
|

Re: Thinkpad X1 Carbon Suspend issue

Bojan Nastic-2
On 26 May 2015 at 10:44, Laurence Tratt <[hidden email]> wrote:

> On Mon, May 25, 2015 at 08:21:19PM +0100, Bojan Nastic wrote:
>
> > Anyone having much luck with 5.7 or -current on Thinkpad X1 Carbon 2nd
> gen
> > (Haswell chip)?
>
> It works pretty well (including wireless), although on my machine the lack
> of a specific video driver means that things in X can be painfully slow
> (forget about watching a video!).
>
> > Everything seems to be working fine, except for waking from suspend.
> > Suspend works fine, either via 'zzz' or closing the lid, but waking it up
> > doesn't work -- hardware seems unresponsive, the sleep light stays on
> > regardless of what I do to it (pressing buttons, opening the lid...)
>
> When I do this, the OS is still working, but the screen doesn't wake back
> up
> (whether this is related to X running in the background or not, I don't
> know
> -- I never run without X). I can see this happening as follows. Log in as
> root on console 1. Suspend with zzz (I don't use suspend-with-lid). Resume
> by pressing the power button. [At this point the screen is blank.] Type
> "reboot". Wait a little while and the machine will reboot. I appreciate
> that's not hugely useful, but it does mean that, if I want to test
> suspend/resume support ever so often, I don't have to fsck afterwards...
>
>
Thanks for the tip, but unfortunatelly, it doesn't work in this case.
The whole machine goes to sleep, so even the LED strip at the top,
with F "keys", is switched off, no way to switch to console.

Apparently, this all works fine for people with Haswell and HD4000 GPU,
but mine is an i7 Haswell with HD5000. (Fwiw, it does throw video
driver errors when switching from X to console).


--Bojan

Reply | Threaded
Open this post in threaded view
|

Re: Thinkpad X1 Carbon Suspend issue

Bojan Nastic-2
As an update - fiddling with BIOS and holding power button for 2-3 seconds
seems to wake up the machine now!

(Again, this is an i7-4550u with HD5000 GPU)

What works:
- Waking up!

What doesn't quite work:
- Lid opening still doesn't wake
- HD5000 driver is spewing errors on sleep/wake,
so waking from within X will show console errors
before rendering the screen properly.



On 26 May 2015 at 20:58, Bojan Nastic <[hidden email]> wrote:

>
>
> On 26 May 2015 at 10:44, Laurence Tratt <[hidden email]> wrote:
>
>> On Mon, May 25, 2015 at 08:21:19PM +0100, Bojan Nastic wrote:
>>
>> > Anyone having much luck with 5.7 or -current on Thinkpad X1 Carbon 2nd
>> gen
>> > (Haswell chip)?
>>
>> It works pretty well (including wireless), although on my machine the lack
>> of a specific video driver means that things in X can be painfully slow
>> (forget about watching a video!).
>>
>> > Everything seems to be working fine, except for waking from suspend.
>> > Suspend works fine, either via 'zzz' or closing the lid, but waking it
>> up
>> > doesn't work -- hardware seems unresponsive, the sleep light stays on
>> > regardless of what I do to it (pressing buttons, opening the lid...)
>>
>> When I do this, the OS is still working, but the screen doesn't wake back
>> up
>> (whether this is related to X running in the background or not, I don't
>> know
>> -- I never run without X). I can see this happening as follows. Log in as
>> root on console 1. Suspend with zzz (I don't use suspend-with-lid). Resume
>> by pressing the power button. [At this point the screen is blank.] Type
>> "reboot". Wait a little while and the machine will reboot. I appreciate
>> that's not hugely useful, but it does mean that, if I want to test
>> suspend/resume support ever so often, I don't have to fsck afterwards...
>>
>>
> Thanks for the tip, but unfortunatelly, it doesn't work in this case.
> The whole machine goes to sleep, so even the LED strip at the top,
> with F "keys", is switched off, no way to switch to console.
>
> Apparently, this all works fine for people with Haswell and HD4000 GPU,
> but mine is an i7 Haswell with HD5000. (Fwiw, it does throw video
> driver errors when switching from X to console).
>
>
> --Bojan

Reply | Threaded
Open this post in threaded view
|

Re: Thinkpad X1 Carbon Suspend issue

Bojan Nastic-2
OK, in case someone finds this useful - got the Lid working as well.
Disabling everything suspicious and not needed in the BIOS seems to have
done the job. (esp. disabling the Intel Rapid Start, as it seems to
interfere with sleep states. But this could be just a coincidence).

X1 Carbon 2nd Gen is now 99% operational (harmless Intel drm errors
remaining).





On 28 May 2015 at 21:36, Bojan Nastic <[hidden email]> wrote:

> As an update - fiddling with BIOS and holding power button for 2-3 seconds
> seems to wake up the machine now!
>
> (Again, this is an i7-4550u with HD5000 GPU)
>
> What works:
> - Waking up!
>
> What doesn't quite work:
> - Lid opening still doesn't wake
> - HD5000 driver is spewing errors on sleep/wake,
> so waking from within X will show console errors
> before rendering the screen properly.
>
>
>
> On 26 May 2015 at 20:58, Bojan Nastic <[hidden email]> wrote:
>
>>
>>
>> On 26 May 2015 at 10:44, Laurence Tratt <[hidden email]> wrote:
>>
>>> On Mon, May 25, 2015 at 08:21:19PM +0100, Bojan Nastic wrote:
>>>
>>> > Anyone having much luck with 5.7 or -current on Thinkpad X1 Carbon 2nd
>>> gen
>>> > (Haswell chip)?
>>>
>>> It works pretty well (including wireless), although on my machine the
>>> lack
>>> of a specific video driver means that things in X can be painfully slow
>>> (forget about watching a video!).
>>>
>>> > Everything seems to be working fine, except for waking from suspend.
>>> > Suspend works fine, either via 'zzz' or closing the lid, but waking it
>>> up
>>> > doesn't work -- hardware seems unresponsive, the sleep light stays on
>>> > regardless of what I do to it (pressing buttons, opening the lid...)
>>>
>>> When I do this, the OS is still working, but the screen doesn't wake
>>> back up
>>> (whether this is related to X running in the background or not, I don't
>>> know
>>> -- I never run without X). I can see this happening as follows. Log in as
>>> root on console 1. Suspend with zzz (I don't use suspend-with-lid).
>>> Resume
>>> by pressing the power button. [At this point the screen is blank.] Type
>>> "reboot". Wait a little while and the machine will reboot. I appreciate
>>> that's not hugely useful, but it does mean that, if I want to test
>>> suspend/resume support ever so often, I don't have to fsck afterwards...
>>>
>>>
>> Thanks for the tip, but unfortunatelly, it doesn't work in this case.
>> The whole machine goes to sleep, so even the LED strip at the top,
>> with F "keys", is switched off, no way to switch to console.
>>
>> Apparently, this all works fine for people with Haswell and HD4000 GPU,
>> but mine is an i7 Haswell with HD5000. (Fwiw, it does throw video
>> driver errors when switching from X to console).
>>
>>
>> --Bojan