Why does my 5.7 laptop suspend when I close the lid?

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

Why does my 5.7 laptop suspend when I close the lid?

alan01346
I didn't ask it to do that and I don't know how to unsuspend.  As far
as I'm concerned this is an undocumented "feature".  If I want to
suspend I'll type zzz.  I haven't found a way to turn this off.

--
Credit is the root of all evil.  - AB1JX

Reply | Threaded
Open this post in threaded view
|

Re: Why does my 5.7 laptop suspend when I close the lid?

Adam Van Ymeren
On Tue, Jun 30, 2015 at 2:38 PM, Alan Corey <[hidden email]> wrote:
> I didn't ask it to do that and I don't know how to unsuspend.  As far
> as I'm concerned this is an undocumented "feature".  If I want to
> suspend I'll type zzz.  I haven't found a way to turn this off.
>
> --
> Credit is the root of all evil.  - AB1JX
>

# sysctl hw.lidsuspend=0

Or maybe is machdep.lidsuspend, I forget.

Reply | Threaded
Open this post in threaded view
|

Re: Why does my 5.7 laptop suspend when I close the lid?

Theo de Raadt
In reply to this post by alan01346
> I didn't ask it to do that and I don't know how to unsuspend.
> As far as I'm concerned this is an undocumented "feature".

This is a full operating system, and cannot be exhaustively
documented.  I doubt you trawled every single manual page to come to
that determination.  Seems a bit unkind.  It is simply a nice default.

Much like my phone blanking the screen if I don't use it for a while:
"I didn't ask for it to do that, and it is undocumented".

> If I want to suspend I'll type zzz.  I haven't found a way to
> turn this off.

In /etc/sysctl.conf, add:

machdep.lidsuspend=0

And rather than rebooting to have it apply, apply manually using
# sysctl machdep.lidsuspend=0

Reply | Threaded
Open this post in threaded view
|

Re: Why does my 5.7 laptop suspend when I close the lid?

patrick keshishian
In reply to this post by alan01346
On 6/30/15, Alan Corey <[hidden email]> wrote:
> I didn't ask it to do that and I don't know how to unsuspend.  As far
> as I'm concerned this is an undocumented "feature".  If I want to
> suspend I'll type zzz.  I haven't found a way to turn this off.

$ sysctl | grep suspend
machdep.lidsuspend=1


to un-suspend, it depends on your machine. One laptop I own
will wake by pressing the spacebar, and another wakes if I press
the Fn key. I would try the power-button as a last possibility
as well.

--patrick

Reply | Threaded
Open this post in threaded view
|

Re: Why does my 5.7 laptop suspend when I close the lid?

Adam Van Ymeren
In reply to this post by Adam Van Ymeren
On Tue, Jun 30, 2015 at 2:42 PM, Adam Van Ymeren <[hidden email]> wrote:

> On Tue, Jun 30, 2015 at 2:38 PM, Alan Corey <[hidden email]> wrote:
>> I didn't ask it to do that and I don't know how to unsuspend.  As far
>> as I'm concerned this is an undocumented "feature".  If I want to
>> suspend I'll type zzz.  I haven't found a way to turn this off.
>>
>> --
>> Credit is the root of all evil.  - AB1JX
>>
>
> # sysctl hw.lidsuspend=0
>
> Or maybe is machdep.lidsuspend, I forget.

It is machdep.

To turn it off always put.

machdep.lidsuspend=0

in your /etc/sysctl.conf file.

Also the installer prompts you if you want this behaviour, so its
hardly undocumented.

http://www.openbsd.org/faq/faq4.html

Reply | Threaded
Open this post in threaded view
|

Re: Why does my 5.7 laptop suspend when I close the lid?

Luis Coronado-3
In reply to this post by alan01346
sysctl machdep.lidsuspend=0

wiil disable suspending when closing the laptop.

Machine should resume when opening the laptop or pressing the power button.
If not should could have some problems with acpi but for folks to help you
out you need to provide a lot more details.

-luis

On Tue, Jun 30, 2015 at 12:38 PM, Alan Corey <[hidden email]> wrote:

> I didn't ask it to do that and I don't know how to unsuspend.  As far
> as I'm concerned this is an undocumented "feature".  If I want to
> suspend I'll type zzz.  I haven't found a way to turn this off.
>
> --
> Credit is the root of all evil.  - AB1JX

Reply | Threaded
Open this post in threaded view
|

Re: Why does my 5.7 laptop suspend when I close the lid?

Peter Hessler
In reply to this post by Adam Van Ymeren
On 2015 Jun 30 (Tue) at 14:45:16 -0400 (-0400), Adam Van Ymeren wrote:
:Also the installer prompts you if you want this behaviour, so its
:hardly undocumented.

not in -current.


--
"Do not meddle in the affairs of wizards, for you are crunchy and good
with ketchup."

Reply | Threaded
Open this post in threaded view
|

Re: Why does my 5.7 laptop suspend when I close the lid?

Theo de Raadt
In reply to this post by alan01346
> I didn't ask it to do that and I don't know how to unsuspend.  As far
> as I'm concerned this is an undocumented "feature".  If I want to
> suspend I'll type zzz.  I haven't found a way to turn this off.

One more thing to add.

Since we moved to lid-suspend by default, we have received more
reports regarding ACPI suspend/resume testing.

The essential lessons are that code which is used gets tested; and
code which is tested gets improved.

Beyond that, we really don't know what the default should be, or where
to take the semantics.  In a perfect world, a hibernate store to disk
would occur, then the kernel would enter suspend.  It would return
from suspend, or if power had been lost, unhibernate.  This does
require the hibernate store operation to become a lot faster though.

And this is a very tricky area of the kernel to work in, to say
the least...

Reply | Threaded
Open this post in threaded view
|

Re: Why does my 5.7 laptop suspend when I close the lid?

Raf Czlonka-2
In reply to this post by alan01346
On Tue, Jun 30, 2015 at 07:38:50PM BST, Alan Corey wrote:

> I didn't ask it to do that and I don't know how to unsuspend.  As far
> as I'm concerned this is an undocumented "feature".  If I want to
> suspend I'll type zzz.

Documented it is - https://marc.info/?l=openbsd-cvs&m=142108042300724

> I haven't found a way to turn this off.

You haven't looked very far :^)

Raf

Reply | Threaded
Open this post in threaded view
|

Re: Why does my 5.7 laptop suspend when I close the lid?

Eric Furman-3
In reply to this post by alan01346
A lot of people worked very hard to add this "feature",
because most people wanted it.
Search the archives

On Tue, Jun 30, 2015, at 02:38 PM, Alan Corey wrote:
> I didn't ask it to do that and I don't know how to unsuspend.  As far
> as I'm concerned this is an undocumented "feature".  If I want to
> suspend I'll type zzz.  I haven't found a way to turn this off.
>
> --
> Credit is the root of all evil.  - AB1JX

Reply | Threaded
Open this post in threaded view
|

Re: Why does my 5.7 laptop suspend when I close the lid?

alan01346
Yes it was harsh, but I still don't know how to resume and I didn't
appreciate having to do an unclean shutdown by holding down the power
button for 10 seconds.  Neither the apm or acpi man pages says how to
resume (or mentions lid), I guess it depends on the hardware.  I've
been using OpenBSD since 2.7 and I don't like surprises.  I close the
lids on my laptops to carry them or use them as a writing surface.
With my past few Dell laptops sound didn't work after suspend so I
stopped using it.  My newest is from 2008 so it didn't seem worth
mentioning.

I don't remember seeing the option to enable or disable in the
install, it reminded me of something Windows might do.

Yes, it's machdep.lidsuspend=0 to turn it off.  I thought there used
to be an apm.con or acpi.conf, I looked for those first.

On 6/30/15, Eric Furman <[hidden email]> wrote:

> A lot of people worked very hard to add this "feature",
> because most people wanted it.
> Search the archives
>
> On Tue, Jun 30, 2015, at 02:38 PM, Alan Corey wrote:
>> I didn't ask it to do that and I don't know how to unsuspend.  As far
>> as I'm concerned this is an undocumented "feature".  If I want to
>> suspend I'll type zzz.  I haven't found a way to turn this off.
>>
>> --
>> Credit is the root of all evil.  - AB1JX
>>
>


--
Credit is the root of all evil.  - AB1JX

Reply | Threaded
Open this post in threaded view
|

Re: Why does my 5.7 laptop suspend when I close the lid?

Theo de Raadt
In reply to this post by alan01346
Alan, stop behaving like a cry baby.

Reply | Threaded
Open this post in threaded view
|

Re: Why does my 5.7 laptop suspend when I close the lid?

Mike Larkin
In reply to this post by alan01346
On Tue, Jun 30, 2015 at 04:28:52PM -0400, Alan Corey wrote:
> Yes it was harsh, but I still don't know how to resume and I didn't
> appreciate having to do an unclean shutdown by holding down the power
> button for 10 seconds.  Neither the apm or acpi man pages says how to
> resume (or mentions lid), I guess it depends on the hardware.  I've
> been using OpenBSD since 2.7 and I don't like surprises.  I close the

Then stay on 2.7. Problem solved. You'll not be subjected to any more
surprises that way.

-ml

> lids on my laptops to carry them or use them as a writing surface.
> With my past few Dell laptops sound didn't work after suspend so I
> stopped using it.  My newest is from 2008 so it didn't seem worth
> mentioning.
>
> I don't remember seeing the option to enable or disable in the
> install, it reminded me of something Windows might do.
>
> Yes, it's machdep.lidsuspend=0 to turn it off.  I thought there used
> to be an apm.con or acpi.conf, I looked for those first.
>
> On 6/30/15, Eric Furman <[hidden email]> wrote:
> > A lot of people worked very hard to add this "feature",
> > because most people wanted it.
> > Search the archives
> >
> > On Tue, Jun 30, 2015, at 02:38 PM, Alan Corey wrote:
> >> I didn't ask it to do that and I don't know how to unsuspend.  As far
> >> as I'm concerned this is an undocumented "feature".  If I want to
> >> suspend I'll type zzz.  I haven't found a way to turn this off.
> >>
> >> --
> >> Credit is the root of all evil.  - AB1JX
> >>
> >
>
>
> --
> Credit is the root of all evil.  - AB1JX

Reply | Threaded
Open this post in threaded view
|

Re: Why does my 5.7 laptop suspend when I close the lid?

Joel Rees-2
In reply to this post by alan01346
FWIW, I just tried shutting the lid on this netbook, to see what would happen.

Disks went quiet quickly enough to assume it was sleep and not hibernate.

I waited maybe a minute, then opened the lid. No response. On keyboard
activity, i could hear the disks spin up.

Tried ssh from outside, but I had disabled password access and hadn't
copied the relevant tokens to the other box. Did get a Permission
denied (publickey, keyboard-interactive) response once, but a few
minutes later, there was no route to host. I woud guess it went back
to sleep and wouldn't wake up, except this time the disks did not go
quiet.

Ended up with a long press on the power button.

Is this failure of the screen to wake up likely to be caused by my
putting off installing something to manage sleep states? Is it perhaps
a result of some BIOS setting? (Guess I should poke around in there.)

Some of the contents of /var/log, in case anyone is interested:

In /var/log/Xorg.0.log.old, these lines seem relevant. (Should I post more?):
------------------
[  1251.334] (==) ws: /dev/wsmouse: Buttons: 7
[  1251.334] (**) ws: /dev/wsmouse: YAxisMapping: buttons 4 and 5
[  1251.334] (II) XINPUT: Adding extended input device "/dev/wsmouse"
(type: MOUSE, id 8)
[  1251.334] (**) /dev/wsmouse: (accel) keeping acceleration scheme 1
[  1251.335] (**) /dev/wsmouse: (accel) acceleration profile 0
[  1251.335] (**) /dev/wsmouse: (accel) acceleration factor: 2.000
[  1251.335] (**) /dev/wsmouse: (accel) acceleration threshold: 4
[  6931.125] (II) VESA(0): Setting up VESA Mode 0x1D4 (1366x768)
[  6931.127] (II) VESA(0): VBESetVBEMode failed
[  6931.128] (EE)
Fatal server error:
[  6931.128] (EE) EnterVT failed for screen 0
[  6931.128] (EE)
[  6931.128] (EE)
Please consult the The X.Org Foundation support
     at http://wiki.x.org
 for help.
[  6931.128] (EE) Please also check the log file at
"/var/log/Xorg.0.log" for additional information.
[  6931.128] (EE)
[  6931.129] (EE) ws: /dev/wsmouse: unknown command 4
------------------
/var/log/messages from around that point look like this. (Again,
should I post more?):
------------------
Jul  3 08:18:37 phool savecore: no core dump
Jul  3 09:00:01 phool syslogd: restart
Jul  3 10:07:50 phool /bsd: uhub0 detached
Jul  3 10:13:59 phool /bsd: uhub3 detached
Jul  3 10:13:59 phool /bsd: video0 detached
Jul  3 10:13:59 phool /bsd: uvideo0 detached
Jul  3 10:13:59 phool /bsd: uhub1 detached
Jul  3 10:13:59 phool /bsd: uhub4 detached
Jul  3 10:13:59 phool /bsd: uhub2 detached
Jul  3 10:13:59 phool /bsd: uhub0 at usb0 "AMD xHCI root hub" rev
3.00/1.00 addr 1
Jul  3 10:13:59 phool /bsd: uhub1 at usb3 "AMD OHCI root hub" rev
1.00/1.00 addr 1
Jul  3 10:13:59 phool /bsd: uhub2 at usb1 "AMD EHCI root hub" rev
2.00/1.00 addr 1
Jul  3 10:13:59 phool /bsd: uhub3 at usb4 "AMD OHCI root hub" rev
1.00/1.00 addr 1
Jul  3 10:13:59 phool /bsd: uhub4 at usb2 "AMD EHCI root hub" rev
2.00/1.00 addr 1
Jul  3 10:13:59 phool /bsd: uvideo0 at uhub2
Jul  3 10:13:59 phool /bsd:  port 4 configuration 1 interface 0
"Generic HP Webcam-50" rev 2.00/5.26 addr 2
Jul  3 10:13:59 phool /bsd: video0 at uvideo0
Jul  3 10:25:27 phool /bsd: splassert: assertwaitok: want 0 have 9
Jul  3 10:27:26 phool /bsd: splassert: bufcache_take: want 6 have 9
Jul  3 10:29:27 phool /bsd: splassert: buf_acquire: want 6 have 9
Jul  3 10:31:27 phool /bsd: splassert: buf_map: want 6 have 9
Jul  3 10:33:27 phool /bsd: splassert: reassignbuf: want 6 have 9
Jul  3 10:35:27 phool /bsd: splassert: buf_release: want 6 have 9
Jul  3 10:40:36 phool syslogd: start
Jul  3 10:40:36 phool /bsd: OpenBSD 5.7-current (GENERIC_GPT.MP) #0:
Sun Jun 14 23:13:31 JST 2015
Jul  3 10:40:36 phool /bsd:
[hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC_GPT.MP
Jul  3 10:40:36 phool /bsd: real mem = 1835790336 (1750MB)
Jul  3 10:40:36 phool /bsd: avail mem = 1776336896 (1694MB)
Jul  3 10:40:36 phool /bsd: mpath0 at root
Jul  3 10:40:36 phool /bsd: scsibus0 at mpath0: 256 targets
Jul  3 10:40:36 phool /bsd: mainbus0 at root
Jul  3 10:40:36 phool /bsd: bios0 at mainbus0: SMBIOS rev. 2.8 @
0xe4800 (43 entries)
Jul  3 10:40:36 phool /bsd: bios0: vendor Insyde version "F.0A" date 07/16/2014
Jul  3 10:40:36 phool /bsd: bios0: Hewlett-Packard HP Pavilion 10 Notebook PC
Jul  3 10:40:36 phool /bsd: acpi0 at bios0: rev 2
Jul  3 10:40:36 phool /bsd: acpi0: sleep states S0 S3 S4 S5
Jul  3 10:40:36 phool /bsd: acpi0: tables DSDT FACP UEFI HPET APIC
MCFG ASF! BOOT FPDT MSDM SSDT SSDT SSDT SSDT SSDT
Jul  3 10:40:36 phool /bsd: acpi0: wakeup devices GPP0(S5) GPP1(S4)
OHC1(S3) OHC2(S3) OHC3(S3) EHC1(S3) EHC2(S3) EHC3(S3) XHC0(S4)
AWAD(S4)
Jul  3 10:40:36 phool /bsd: acpitimer0 at acpi0: 3579545 Hz, 32 bits
Jul  3 10:40:36 phool /bsd: acpihpet0 at acpi0: 14318180 Hz
Jul  3 10:40:36 phool /bsd: acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
Jul  3 10:40:36 phool /bsd: cpu0 at mainbus0: apid 0 (boot processor)
Jul  3 10:40:36 phool /bsd: cpu0: AMD A4-1200 APU with Radeon(TM) HD
Graphics, 998.25 MHz
------------------
dmesg:
------------------
OpenBSD 5.7-current (GENERIC_GPT.MP) #0: Sun Jun 14 23:13:31 JST 2015
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC_GPT.MP
real mem = 1835790336 (1750MB)
avail mem = 1776336896 (1694MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xe4800 (43 entries)
bios0: vendor Insyde version "F.0A" date 07/16/2014
bios0: Hewlett-Packard HP Pavilion 10 Notebook PC
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP UEFI HPET APIC MCFG ASF! BOOT FPDT MSDM SSDT
SSDT SSDT SSDT SSDT
acpi0: wakeup devices GPP0(S5) GPP1(S4) OHC1(S3) OHC2(S3) OHC3(S3)
EHC1(S3) EHC2(S3) EHC3(S3) XHC0(S4) AWAD(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD A4-1200 APU with Radeon(TM) HD Graphics, 998.25 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 1MB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD A4-1200 APU with Radeon(TM) HD Graphics, 998.13 MHz
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 1MB
64b/line 16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 0 pa 0xfec00000, version 21, 24 pins
ioapic1 at mainbus0: apid 5 pa 0xfec01000, version 21, 32 pins
ioapic1: misconfigured as apic 0, remapped to apid 5
acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (GPP0)
acpiprt2 at acpi0: bus 5 (GPP1)
acpiprt3 at acpi0: bus -1 (GPP2)
acpiprt4 at acpi0: bus -1 (GPP3)
acpiprt5 at acpi0: bus -1 (GFX_)
acpiec0 at acpi0
acpicpu0 at acpi0: PSS
acpicpu1 at acpi0: PSS
acpipwrres0 at acpi0: FN00, resource for FAN0
acpitz0 at acpi0: critical temperature is 118 degC
acpibtn0 at acpi0: PWRB
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 model "Primary" serial 43346 03/09/2014 type
LIon oem "Hewlett-Packard"
acpibtn1 at acpi0: LID_
acpivideo0 at acpi0: VGA_
acpivideo1 at acpi0: VGA_
cpu0: 998 MHz: speeds: 1000 900 800 700 600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 16h Host" rev 0x00
vga1 at pci0 dev 1 function 0 vendor "ATI", unknown product 0x9839 rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
azalia0 at pci0 dev 1 function 1 vendor "ATI", unknown product 0x9840
rev 0x00: msi
azalia0: no supported codecs
pchb1 at pci0 dev 2 function 0 vendor "AMD", unknown product 0x1538 rev 0x00
ppb0 at pci0 dev 2 function 2 "AMD AMD64 16h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
rtsx0 at pci1 dev 0 function 0 "Realtek RTL8402 Card Reader" rev 0x01: msi
sdmmc0 at rtsx0
re0 at pci1 dev 0 function 2 "Realtek 8101E" rev 0x06: RTL8402
(0x4400), msi, address 14:58:d0:06:96:26
rlphy0 at re0 phy 7: RTL8201E 10/100 PHY, rev. 2
ppb1 at pci0 dev 2 function 3 "AMD AMD64 16h PCIE" rev 0x00: msi
pci2 at ppb1 bus 5
"Ralink RT3290" rev 0x00 at pci2 dev 0 function 0 not configured
"Ralink Bluetooth" rev 0x00 at pci2 dev 0 function 1 not configured
xhci0 at pci0 dev 16 function 0 vendor "AMD", unknown product 0x7814
rev 0x01: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 "AMD xHCI root hub" rev 3.00/1.00 addr 1
ahci0 at pci0 dev 17 function 0 "AMD Hudson-2 SATA" rev 0x00: apic 0
int 19, AHCI 1.3
ahci0: port 0: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, TOSHIBA MQ01ABF0, AM0P> SCSI3
0/direct fixed naa.50000395a340583a
sd0: 305245MB, 512 bytes/sector, 625142448 sectors
ohci0 at pci0 dev 18 function 0 "AMD Hudson-2 USB" rev 0x39: apic 0
int 18, version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "AMD Hudson-2 USB2" rev 0x39: apic 0 int 17
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 "AMD EHCI root hub" rev 2.00/1.00 addr 1
ohci1 at pci0 dev 19 function 0 "AMD Hudson-2 USB" rev 0x39: apic 0
int 18, version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 "AMD Hudson-2 USB2" rev 0x39: apic 0 int 17
usb2 at ehci1: USB revision 2.0
uhub2 at usb2 "AMD EHCI root hub" rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 "AMD Hudson-2 SMBus" rev 0x3a: polling
iic0 at piixpm0
azalia1 at pci0 dev 20 function 2 "AMD Hudson-2 HD Audio" rev 0x02: msi
azalia1: codecs: Realtek ALC269, 0x0000/0x0000, using Realtek ALC269
audio0 at azalia1
pcib0 at pci0 dev 20 function 3 "AMD Hudson-2 LPC" rev 0x11
sdhc0 at pci0 dev 20 function 7 vendor "AMD", unknown product 0x7813
rev 0x01: apic 0 int 16
sdhc0 at 0x10: can't map registers
pchb2 at pci0 dev 24 function 0 "AMD AMD64 16h Link Cfg" rev 0x00
pchb3 at pci0 dev 24 function 1 "AMD AMD64 16h Address Map" rev 0x00
pchb4 at pci0 dev 24 function 2 "AMD AMD64 16h DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 16h Misc Cfg" rev 0x00
pchb5 at pci0 dev 24 function 4 "AMD AMD64 16h CPU Power" rev 0x00
pchb6 at pci0 dev 24 function 5 vendor "AMD", unknown product 0x1535 rev 0x00
usb3 at ohci0: USB revision 1.0
uhub3 at usb3 "AMD OHCI root hub" rev 1.00/1.00 addr 1
usb4 at ohci1: USB revision 1.0
uhub4 at usb4 "AMD OHCI root hub" rev 1.00/1.00 addr 1
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
pms0: Elantech Touchpad, version 3, firmware 0x354f00
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
uvideo0 at uhub1 port 4 configuration 1 interface 0 "Generic HP
Webcam-50" rev 2.00/5.26 addr 2
video0 at uvideo0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (c910159e72666593.a) swap on sd0b dump on sd0b
------------------

Reply | Threaded
Open this post in threaded view
|

Re: Why does my 5.7 laptop suspend when I close the lid?

Theo de Raadt
In reply to this post by alan01346
> FWIW, I just tried shutting the lid on this netbook, to see what would happen.
>
> Disks went quiet quickly enough to assume it was sleep and not hibernate.
>
> I waited maybe a minute, then opened the lid. No response. On keyboard
> activity, i could hear the disks spin up.
>
> Tried ssh from outside, but I had disabled password access and hadn't
> copied the relevant tokens to the other box. Did get a Permission
> denied (publickey, keyboard-interactive) response once, but a few
> minutes later, there was no route to host. I woud guess it went back
> to sleep and wouldn't wake up, except this time the disks did not go
> quiet.
>
> Ended up with a long press on the power button.

Congratulations.

You have a laptop that suspend/resume does not work on.  It needs
to be fixed.

Back we were super active working on suspend/resume we asked EVERYONE
TO TEST repeatedly.

Many people did not test.

Almost like they assumed others would do the testing.  Even after lots
of notice from us that suspend/resume is entirely undocumented BS.
Also, like they didn't understand when a group of developers is super
active, and asks for testing, that is because they are in the thick of
it, understand almost all the pieces better, have enthusiasm, etc.  That
is the time to try to help.   Later on, it is more difficult to get
back into it.

Since suspend/resume was highly functioning, lid suspend was turned on
so that the remaining systems could be tested and we'd finally get
reports.

Hurray.  We are finally getting reports.  Eventually we'll collect
enough information and make further advancements resolving these
suspend/resume probblems.

Maybe we'll even find someone out there pulling up their sleeves and
providing more insight into the remaining issues.

Reply | Threaded
Open this post in threaded view
|

Re: Why does my 5.7 laptop suspend when I close the lid?

Joel Rees-2
On Fri, Jul 3, 2015 at 11:58 AM, Theo de Raadt <[hidden email]> wrote:
>> FWIW, I just tried shutting the lid on this netbook, to see what would happen.
>>
>> Disks went quiet quickly enough to assume it was sleep and not hibernate.
>>
>> I waited maybe a minute, then opened the lid. No response. On keyboard
>> activity, i could hear the disks spin up.

Tried it again, and lifting the lid spun the disks up.

>> Tried ssh from outside, but I had disabled password access and hadn't
>> copied the relevant tokens to the other box. Did get a Permission
>> denied (publickey, keyboard-interactive) response once, but a few
>> minutes later, there was no route to host. I woud guess it went back
>> to sleep and wouldn't wake up, except this time the disks did not go
>> quiet.
>>
>> Ended up with a long press on the power button.

After that, a short press on the power button started the power-down
sequence properly, so there was no need of fsck on the next boot.

If one refrains from trying too many things in the dark, it looks like
one can avoid losing control, so it's just a matter of figuring out
what gets the screen fired back up.

> Congratulations.
>
> You have a laptop that suspend/resume does not work on.  It needs
> to be fixed.

I'll try to find the threads and dig in, but I'd kind of like to focus
on WIFI and dual-boot with GPT-only MSWindows for this beast first.
Lots of unsupported fun on it. Hopefully, I'll be able to make some
time for something useful next week.

(I'd almost say that when I bought this box about a month and a half
ago, I should have gone for an older box, but I need the motivation to
dig in. :)

--
Joel Rees

Reply | Threaded
Open this post in threaded view
|

Re: Why does my 5.7 laptop suspend when I close the lid?

Mike Larkin
In reply to this post by Joel Rees-2
On Fri, Jul 03, 2015 at 11:45:44AM +0900, Joel Rees wrote:

> FWIW, I just tried shutting the lid on this netbook, to see what would happen.
>
> Disks went quiet quickly enough to assume it was sleep and not hibernate.
>
> I waited maybe a minute, then opened the lid. No response. On keyboard
> activity, i could hear the disks spin up.
>
> Tried ssh from outside, but I had disabled password access and hadn't
> copied the relevant tokens to the other box. Did get a Permission
> denied (publickey, keyboard-interactive) response once, but a few
> minutes later, there was no route to host. I woud guess it went back
> to sleep and wouldn't wake up, except this time the disks did not go
> quiet.
>
> Ended up with a long press on the power button.

This:
> vga1 at pci0 dev 1 function 0 vendor "ATI", unknown product 0x9839 rev 0x00

... is likely your problem. We can't resume something we don't even properly
work with to begin with.

One thing is to try 'ZZZ' which will hibernate the machine and will
repost video properly on resume (usually, no promises here either).

-ml


>
> Is this failure of the screen to wake up likely to be caused by my
> putting off installing something to manage sleep states? Is it perhaps
> a result of some BIOS setting? (Guess I should poke around in there.)
>
> Some of the contents of /var/log, in case anyone is interested:
>
> In /var/log/Xorg.0.log.old, these lines seem relevant. (Should I post more?):
> ------------------
> [  1251.334] (==) ws: /dev/wsmouse: Buttons: 7
> [  1251.334] (**) ws: /dev/wsmouse: YAxisMapping: buttons 4 and 5
> [  1251.334] (II) XINPUT: Adding extended input device "/dev/wsmouse"
> (type: MOUSE, id 8)
> [  1251.334] (**) /dev/wsmouse: (accel) keeping acceleration scheme 1
> [  1251.335] (**) /dev/wsmouse: (accel) acceleration profile 0
> [  1251.335] (**) /dev/wsmouse: (accel) acceleration factor: 2.000
> [  1251.335] (**) /dev/wsmouse: (accel) acceleration threshold: 4
> [  6931.125] (II) VESA(0): Setting up VESA Mode 0x1D4 (1366x768)
> [  6931.127] (II) VESA(0): VBESetVBEMode failed
> [  6931.128] (EE)
> Fatal server error:
> [  6931.128] (EE) EnterVT failed for screen 0
> [  6931.128] (EE)
> [  6931.128] (EE)
> Please consult the The X.Org Foundation support
>      at http://wiki.x.org
>  for help.
> [  6931.128] (EE) Please also check the log file at
> "/var/log/Xorg.0.log" for additional information.
> [  6931.128] (EE)
> [  6931.129] (EE) ws: /dev/wsmouse: unknown command 4
> ------------------
> /var/log/messages from around that point look like this. (Again,
> should I post more?):
> ------------------
> Jul  3 08:18:37 phool savecore: no core dump
> Jul  3 09:00:01 phool syslogd: restart
> Jul  3 10:07:50 phool /bsd: uhub0 detached
> Jul  3 10:13:59 phool /bsd: uhub3 detached
> Jul  3 10:13:59 phool /bsd: video0 detached
> Jul  3 10:13:59 phool /bsd: uvideo0 detached
> Jul  3 10:13:59 phool /bsd: uhub1 detached
> Jul  3 10:13:59 phool /bsd: uhub4 detached
> Jul  3 10:13:59 phool /bsd: uhub2 detached
> Jul  3 10:13:59 phool /bsd: uhub0 at usb0 "AMD xHCI root hub" rev
> 3.00/1.00 addr 1
> Jul  3 10:13:59 phool /bsd: uhub1 at usb3 "AMD OHCI root hub" rev
> 1.00/1.00 addr 1
> Jul  3 10:13:59 phool /bsd: uhub2 at usb1 "AMD EHCI root hub" rev
> 2.00/1.00 addr 1
> Jul  3 10:13:59 phool /bsd: uhub3 at usb4 "AMD OHCI root hub" rev
> 1.00/1.00 addr 1
> Jul  3 10:13:59 phool /bsd: uhub4 at usb2 "AMD EHCI root hub" rev
> 2.00/1.00 addr 1
> Jul  3 10:13:59 phool /bsd: uvideo0 at uhub2
> Jul  3 10:13:59 phool /bsd:  port 4 configuration 1 interface 0
> "Generic HP Webcam-50" rev 2.00/5.26 addr 2
> Jul  3 10:13:59 phool /bsd: video0 at uvideo0
> Jul  3 10:25:27 phool /bsd: splassert: assertwaitok: want 0 have 9
> Jul  3 10:27:26 phool /bsd: splassert: bufcache_take: want 6 have 9
> Jul  3 10:29:27 phool /bsd: splassert: buf_acquire: want 6 have 9
> Jul  3 10:31:27 phool /bsd: splassert: buf_map: want 6 have 9
> Jul  3 10:33:27 phool /bsd: splassert: reassignbuf: want 6 have 9
> Jul  3 10:35:27 phool /bsd: splassert: buf_release: want 6 have 9
> Jul  3 10:40:36 phool syslogd: start
> Jul  3 10:40:36 phool /bsd: OpenBSD 5.7-current (GENERIC_GPT.MP) #0:
> Sun Jun 14 23:13:31 JST 2015
> Jul  3 10:40:36 phool /bsd:
> [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC_GPT.MP
> Jul  3 10:40:36 phool /bsd: real mem = 1835790336 (1750MB)
> Jul  3 10:40:36 phool /bsd: avail mem = 1776336896 (1694MB)
> Jul  3 10:40:36 phool /bsd: mpath0 at root
> Jul  3 10:40:36 phool /bsd: scsibus0 at mpath0: 256 targets
> Jul  3 10:40:36 phool /bsd: mainbus0 at root
> Jul  3 10:40:36 phool /bsd: bios0 at mainbus0: SMBIOS rev. 2.8 @
> 0xe4800 (43 entries)
> Jul  3 10:40:36 phool /bsd: bios0: vendor Insyde version "F.0A" date 07/16/2014
> Jul  3 10:40:36 phool /bsd: bios0: Hewlett-Packard HP Pavilion 10 Notebook PC
> Jul  3 10:40:36 phool /bsd: acpi0 at bios0: rev 2
> Jul  3 10:40:36 phool /bsd: acpi0: sleep states S0 S3 S4 S5
> Jul  3 10:40:36 phool /bsd: acpi0: tables DSDT FACP UEFI HPET APIC
> MCFG ASF! BOOT FPDT MSDM SSDT SSDT SSDT SSDT SSDT
> Jul  3 10:40:36 phool /bsd: acpi0: wakeup devices GPP0(S5) GPP1(S4)
> OHC1(S3) OHC2(S3) OHC3(S3) EHC1(S3) EHC2(S3) EHC3(S3) XHC0(S4)
> AWAD(S4)
> Jul  3 10:40:36 phool /bsd: acpitimer0 at acpi0: 3579545 Hz, 32 bits
> Jul  3 10:40:36 phool /bsd: acpihpet0 at acpi0: 14318180 Hz
> Jul  3 10:40:36 phool /bsd: acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> Jul  3 10:40:36 phool /bsd: cpu0 at mainbus0: apid 0 (boot processor)
> Jul  3 10:40:36 phool /bsd: cpu0: AMD A4-1200 APU with Radeon(TM) HD
> Graphics, 998.25 MHz
> ------------------
> dmesg:
> ------------------
> OpenBSD 5.7-current (GENERIC_GPT.MP) #0: Sun Jun 14 23:13:31 JST 2015
>     [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC_GPT.MP
> real mem = 1835790336 (1750MB)
> avail mem = 1776336896 (1694MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xe4800 (43 entries)
> bios0: vendor Insyde version "F.0A" date 07/16/2014
> bios0: Hewlett-Packard HP Pavilion 10 Notebook PC
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP UEFI HPET APIC MCFG ASF! BOOT FPDT MSDM SSDT
> SSDT SSDT SSDT SSDT
> acpi0: wakeup devices GPP0(S5) GPP1(S4) OHC1(S3) OHC2(S3) OHC3(S3)
> EHC1(S3) EHC2(S3) EHC3(S3) XHC0(S4) AWAD(S4)
> acpitimer0 at acpi0: 3579545 Hz, 32 bits
> acpihpet0 at acpi0: 14318180 Hz
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: AMD A4-1200 APU with Radeon(TM) HD Graphics, 998.25 MHz
> cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
> cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 1MB
> 64b/line 16-way L2 cache
> cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
> cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 99MHz
> cpu0: mwait min=64, max=64, IBE
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: AMD A4-1200 APU with Radeon(TM) HD Graphics, 998.13 MHz
> cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
> cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 1MB
> 64b/line 16-way L2 cache
> cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
> cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
> cpu1: smt 0, core 1, package 0
> ioapic0 at mainbus0: apid 0 pa 0xfec00000, version 21, 24 pins
> ioapic1 at mainbus0: apid 5 pa 0xfec01000, version 21, 32 pins
> ioapic1: misconfigured as apic 0, remapped to apid 5
> acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 1 (GPP0)
> acpiprt2 at acpi0: bus 5 (GPP1)
> acpiprt3 at acpi0: bus -1 (GPP2)
> acpiprt4 at acpi0: bus -1 (GPP3)
> acpiprt5 at acpi0: bus -1 (GFX_)
> acpiec0 at acpi0
> acpicpu0 at acpi0: PSS
> acpicpu1 at acpi0: PSS
> acpipwrres0 at acpi0: FN00, resource for FAN0
> acpitz0 at acpi0: critical temperature is 118 degC
> acpibtn0 at acpi0: PWRB
> acpiac0 at acpi0: AC unit online
> acpibat0 at acpi0: BAT0 model "Primary" serial 43346 03/09/2014 type
> LIon oem "Hewlett-Packard"
> acpibtn1 at acpi0: LID_
> acpivideo0 at acpi0: VGA_
> acpivideo1 at acpi0: VGA_
> cpu0: 998 MHz: speeds: 1000 900 800 700 600 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "AMD AMD64 16h Host" rev 0x00
> vga1 at pci0 dev 1 function 0 vendor "ATI", unknown product 0x9839 rev 0x00
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> azalia0 at pci0 dev 1 function 1 vendor "ATI", unknown product 0x9840
> rev 0x00: msi
> azalia0: no supported codecs
> pchb1 at pci0 dev 2 function 0 vendor "AMD", unknown product 0x1538 rev 0x00
> ppb0 at pci0 dev 2 function 2 "AMD AMD64 16h PCIE" rev 0x00: msi
> pci1 at ppb0 bus 1
> rtsx0 at pci1 dev 0 function 0 "Realtek RTL8402 Card Reader" rev 0x01: msi
> sdmmc0 at rtsx0
> re0 at pci1 dev 0 function 2 "Realtek 8101E" rev 0x06: RTL8402
> (0x4400), msi, address 14:58:d0:06:96:26
> rlphy0 at re0 phy 7: RTL8201E 10/100 PHY, rev. 2
> ppb1 at pci0 dev 2 function 3 "AMD AMD64 16h PCIE" rev 0x00: msi
> pci2 at ppb1 bus 5
> "Ralink RT3290" rev 0x00 at pci2 dev 0 function 0 not configured
> "Ralink Bluetooth" rev 0x00 at pci2 dev 0 function 1 not configured
> xhci0 at pci0 dev 16 function 0 vendor "AMD", unknown product 0x7814
> rev 0x01: msi
> usb0 at xhci0: USB revision 3.0
> uhub0 at usb0 "AMD xHCI root hub" rev 3.00/1.00 addr 1
> ahci0 at pci0 dev 17 function 0 "AMD Hudson-2 SATA" rev 0x00: apic 0
> int 19, AHCI 1.3
> ahci0: port 0: 6.0Gb/s
> scsibus1 at ahci0: 32 targets
> sd0 at scsibus1 targ 0 lun 0: <ATA, TOSHIBA MQ01ABF0, AM0P> SCSI3
> 0/direct fixed naa.50000395a340583a
> sd0: 305245MB, 512 bytes/sector, 625142448 sectors
> ohci0 at pci0 dev 18 function 0 "AMD Hudson-2 USB" rev 0x39: apic 0
> int 18, version 1.0, legacy support
> ehci0 at pci0 dev 18 function 2 "AMD Hudson-2 USB2" rev 0x39: apic 0 int 17
> usb1 at ehci0: USB revision 2.0
> uhub1 at usb1 "AMD EHCI root hub" rev 2.00/1.00 addr 1
> ohci1 at pci0 dev 19 function 0 "AMD Hudson-2 USB" rev 0x39: apic 0
> int 18, version 1.0, legacy support
> ehci1 at pci0 dev 19 function 2 "AMD Hudson-2 USB2" rev 0x39: apic 0 int 17
> usb2 at ehci1: USB revision 2.0
> uhub2 at usb2 "AMD EHCI root hub" rev 2.00/1.00 addr 1
> piixpm0 at pci0 dev 20 function 0 "AMD Hudson-2 SMBus" rev 0x3a: polling
> iic0 at piixpm0
> azalia1 at pci0 dev 20 function 2 "AMD Hudson-2 HD Audio" rev 0x02: msi
> azalia1: codecs: Realtek ALC269, 0x0000/0x0000, using Realtek ALC269
> audio0 at azalia1
> pcib0 at pci0 dev 20 function 3 "AMD Hudson-2 LPC" rev 0x11
> sdhc0 at pci0 dev 20 function 7 vendor "AMD", unknown product 0x7813
> rev 0x01: apic 0 int 16
> sdhc0 at 0x10: can't map registers
> pchb2 at pci0 dev 24 function 0 "AMD AMD64 16h Link Cfg" rev 0x00
> pchb3 at pci0 dev 24 function 1 "AMD AMD64 16h Address Map" rev 0x00
> pchb4 at pci0 dev 24 function 2 "AMD AMD64 16h DRAM Cfg" rev 0x00
> km0 at pci0 dev 24 function 3 "AMD AMD64 16h Misc Cfg" rev 0x00
> pchb5 at pci0 dev 24 function 4 "AMD AMD64 16h CPU Power" rev 0x00
> pchb6 at pci0 dev 24 function 5 vendor "AMD", unknown product 0x1535 rev 0x00
> usb3 at ohci0: USB revision 1.0
> uhub3 at usb3 "AMD OHCI root hub" rev 1.00/1.00 addr 1
> usb4 at ohci1: USB revision 1.0
> uhub4 at usb4 "AMD OHCI root hub" rev 1.00/1.00 addr 1
> 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
> pms0: Elantech Touchpad, version 3, firmware 0x354f00
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> uvideo0 at uhub1 port 4 configuration 1 interface 0 "Generic HP
> Webcam-50" rev 2.00/5.26 addr 2
> video0 at uvideo0
> vscsi0 at root
> scsibus2 at vscsi0: 256 targets
> softraid0 at root
> scsibus3 at softraid0: 256 targets
> root on sd0a (c910159e72666593.a) swap on sd0b dump on sd0b
> ------------------

Reply | Threaded
Open this post in threaded view
|

Re: Why does my 5.7 laptop suspend when I close the lid?

Joel Rees-2
On Fri, Jul 3, 2015 at 3:05 PM, Mike Larkin <[hidden email]> wrote:

> On Fri, Jul 03, 2015 at 11:45:44AM +0900, Joel Rees wrote:
>> FWIW, I just tried shutting the lid on this netbook, to see what would happen.
>>
>> Disks went quiet quickly enough to assume it was sleep and not hibernate.
>>
>> I waited maybe a minute, then opened the lid. No response. On keyboard
>> activity, i could hear the disks spin up.
>>
>> Tried ssh from outside, but I had disabled password access and hadn't
>> copied the relevant tokens to the other box. Did get a Permission
>> denied (publickey, keyboard-interactive) response once, but a few
>> minutes later, there was no route to host. I woud guess it went back
>> to sleep and wouldn't wake up, except this time the disks did not go
>> quiet.
>>
>> Ended up with a long press on the power button.
>
> This:
>> vga1 at pci0 dev 1 function 0 vendor "ATI", unknown product 0x9839 rev 0x00
>
> ... is likely your problem. We can't resume something we don't even properly
> work with to begin with.

Sure are a lot of unknowns in this box. I guess that's where I'll
start when I get a chance to try to work on this.

> One thing is to try 'ZZZ' which will hibernate the machine and will
> repost video properly on resume (usually, no promises here either).

      Cannot connect to apmd: No such file or directory.

I don't even have /etc/apm, much less any scripts in there.

Thanks. Those are good clues for me.

Reply | Threaded
Open this post in threaded view
|

Re: Why does my 5.7 laptop suspend when I close the lid?

Theo Buehler
On Fri, Jul 03, 2015 at 07:29:08PM +0900, Joel Rees wrote:
> On Fri, Jul 3, 2015 at 3:05 PM, Mike Larkin <[hidden email]> wrote:
> > One thing is to try 'ZZZ' which will hibernate the machine and will
> > repost video properly on resume (usually, no promises here either).
>
>       Cannot connect to apmd: No such file or directory.
>
> I don't even have /etc/apm, much less any scripts in there.

You need a running apmd(8) to be able to use `zzz' or `ZZZ', as
explained in the man page for apm(8) (zzz and ZZZ are just hard links to
apm):
 
``apm communicates with the Advanced Power Management daemon, apmd(8),
making requests of it for current power status or to place the system
into a suspend or stand-by state.''

Try again after issuing

# rcctl -f start apmd

or, if you want to enable apmd(8) permanently:

# rcctl enable apmd
# rcctl start apmd

Reply | Threaded
Open this post in threaded view
|

Re: Why does my 5.7 laptop suspend when I close the lid?

Joel Rees-2
Not sure how much use posting the results of this will be at this
point, but, for the record --

On Fri, Jul 3, 2015 at 7:43 PM, Theo Buehler <[hidden email]> wrote:

> On Fri, Jul 03, 2015 at 07:29:08PM +0900, Joel Rees wrote:
>> On Fri, Jul 3, 2015 at 3:05 PM, Mike Larkin <[hidden email]> wrote:
>> > One thing is to try 'ZZZ' which will hibernate the machine and will
>> > repost video properly on resume (usually, no promises here either).
>>
>>       Cannot connect to apmd: No such file or directory.
>>
>> I don't even have /etc/apm, much less any scripts in there.
>
> You need a running apmd(8) to be able to use `zzz' or `ZZZ', as
> explained in the man page for apm(8) (zzz and ZZZ are just hard links to
> apm):
>
> ``apm communicates with the Advanced Power Management daemon, apmd(8),
> making requests of it for current power status or to place the system
> into a suspend or stand-by state.''
>
> Try again after issuing
>
> # rcctl -f start apmd
>
> or, if you want to enable apmd(8) permanently:
>
> # rcctl enable apmd
> # rcctl start apmd
>

Either way, /etc/apm and the scripts that the man pages for apm/apmd
mention under that directory remain missing in action.

However, the -f option does start the daemon without permanently
enabling it and the enable command does leave the daemon enabled.

Relative to the "unknown" hardware, ZZZ (hibernating) seems to work
fine. zzz (sleeping) does not.

Wish I had eight of me, to attack the three pressing problems getting
this netbook fully supported on openbsd, and to take care of my day
job, and to take care of the projects I need the functioning openbsd
netbook for. (Just like everyone here, I'm sure.)

I'll have to leave this one for later.

--
Joel Rees

12