Re: Thinkpad X1 Carbon Suspend issue

2015-05-29 Thread Bojan Nastic
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 bnas...@gmail.com 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 bnas...@gmail.com wrote:



 On 26 May 2015 at 10:44, Laurence Tratt lau...@tratt.net 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



Re: Thinkpad X1 Carbon Suspend issue

2015-05-28 Thread Bojan Nastic
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 bnas...@gmail.com wrote:



 On 26 May 2015 at 10:44, Laurence Tratt lau...@tratt.net 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



Re: Thinkpad X1 Carbon Suspend issue

2015-05-26 Thread 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 Teamhttp://soft-dev.org/
   https://github.com/ltratt  http://twitter.com/laurencetratt



Re: Thinkpad X1 Carbon Suspend issue

2015-05-26 Thread Bojan Nastic
On 26 May 2015 at 10:44, Laurence Tratt lau...@tratt.net 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



Thinkpad X1 Carbon Suspend issue

2015-05-25 Thread Bojan Nastic
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 10
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
dera...@amd64.openbsd.org:/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 0xfee0: 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 0xfec0, version 20, 40 pins
acpimcfg0 at acpi0 addr 0xf800, 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