Re: Troubleshooting laptop sleep/wake issue

2016-11-13 Thread Mike Larkin
On Sun, Nov 13, 2016 at 02:28:56PM -0800, Bryan Vyhmeister wrote:
> On Sun, Nov 13, 2016 at 03:28:27PM -0600, jordon wrote:
> > I recently got a new Thinkpad x260 that seems to run OpenBSD pretty
> > well, but it has some issues with suspend/resume.  It goes right to
> > sleep just fine when I close the lid, but when I open it, the screen
> > doesn???t wake up.  I can ssh into it from a different machine but the
> > display stays blank.  Also, I don???t think the power button works for
> > shutting it down.
> 
> I have a ThinkPad X260 as well. I haven't tried the power button for
> that purpose but resume will not work until inteldrm(4) has support for
> Intel Skylake graphics. Until then, I am using efifb(4) with wsfb(4) for
> Xorg which works reasonably well but without resume. A few developers
> have Skylake systems and Skylake inteldrm(4) support will get here at
> some point when some of the developers get the time to do it.
> Currently, inteldrm(4) supports up through Broadwell.
> 
> A newer -current snapshot will not make any difference for resume but
> there was an issue related to acpiec(4) that was fixed a few months
> back. Other than resume, my ThinkPad X260 works perfectly.
> 
> Bryan
> 

I've been told that ZZZ should work. (hibernate)

This may be an option for you. But it's slow.

-ml



Re: Troubleshooting laptop sleep/wake issue

2016-11-13 Thread Bryan Vyhmeister
On Sun, Nov 13, 2016 at 03:28:27PM -0600, jordon wrote:
> I recently got a new Thinkpad x260 that seems to run OpenBSD pretty
> well, but it has some issues with suspend/resume.  It goes right to
> sleep just fine when I close the lid, but when I open it, the screen
> doesn???t wake up.  I can ssh into it from a different machine but the
> display stays blank.  Also, I don???t think the power button works for
> shutting it down.

I have a ThinkPad X260 as well. I haven't tried the power button for
that purpose but resume will not work until inteldrm(4) has support for
Intel Skylake graphics. Until then, I am using efifb(4) with wsfb(4) for
Xorg which works reasonably well but without resume. A few developers
have Skylake systems and Skylake inteldrm(4) support will get here at
some point when some of the developers get the time to do it.
Currently, inteldrm(4) supports up through Broadwell.

A newer -current snapshot will not make any difference for resume but
there was an issue related to acpiec(4) that was fixed a few months
back. Other than resume, my ThinkPad X260 works perfectly.

Bryan



Troubleshooting laptop sleep/wake issue

2016-11-13 Thread jordon
I recently got a new Thinkpad x260 that seems to run OpenBSD pretty well, but 
it has some issues with suspend/resume.  It goes right to sleep just fine when 
I close the lid, but when I open it, the screen doesn’t wake up.  I can ssh 
into it from a different machine but the display stays blank.  Also, I don’t 
think the power button works for shutting it down.

Is there a document for troubleshooting this?  What do I need to learn to fix 
this?

Here is the dmesg - the machine is how I got it except I replaced the stock 4GB 
RAM with 16GB because it was cheaper that way! :)
Also, I thought I was running a recent snapshot, but looking at the dimes, I 
see a “Jul 26” on the kernel build date so maybe I got the wrong one…



OpenBSD 6.0 (GENERIC.MP) #2319: Tue Jul 26 13:00:43 MDT 2016
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 16546209792 (15779MB)
avail mem = 16040271872 (15297MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xd7bfd000 (65 entries)
bios0: vendor LENOVO version "R02ET50W (1.23 )" date 09/20/2016
bios0: LENOVO 20F6CTO1WW
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP TCPA SSDT SSDT TPM2 UEFI SSDT SSDT ECDT HPET APIC MCFG 
SSDT SSDT DBGP DBG2 BOOT BATB SSDT SSDT MSDM ASF! FPDT UEFI
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP8(S4) XHCI(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpihpet0 at acpi0: 2399 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2293.34 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
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 23MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2294.63 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2294.63 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 1, core 0, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2294.63 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 120 pins
acpimcfg0 at acpi0 addr 0xf800, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG0)
acpiprt2 at acpi0: bus -1 (PEG1)
acpiprt3 at acpi0: bus -1 (PEG2)
acpiprt4 at acpi0: bus 2 (EXP1)
acpiprt5 at acpi0: bus 4 (EXP3)
acpiprt6 at acpi0: bus -1 (EXP4)
acpiprt7 at acpi0: bus -1 (EXP5)
acpiprt8 at acpi0: bus -1 (EXP8)
acpicpu0 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PUBS, resource for XHCI
acpipwrres1 at acpi0: PG00, resource for PEG0
acpipwrres2 at acpi0: PG01, resource for