I am running suspend on my laptop using apm -z and zzz as
explained in apm(8). As far as I can tell, the system successfully
suspends (keyboard lights go out, power button light goes out,
screen blanks, fans go quiet).
The system them immediately starts wakeup showing the dmesg
output and then starts right into X without prompting login.

I believe that the USB3.0 device is waking up the system. Should
I disable USB Wakeup? How would I do this? Can I be sure that
acpitoshiba is running properly? I would like X to prompt user login
on wakup. I would like only the powerbutton to start wakeup.

I am running OpenBSD 6.0 amd64.

cat /etc/rc.conf.local

$cat /etc/apm/suspend
pkill -USR1 xidle

Console log output after suspend:
ugen0 detached
video0 detached
uvideo0 detached
uhub0 detached
uhub2 detached
uhub1 detached
uhub0 at usb0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ugen0 at uhub0 port 6 "Intel product 0x0a2a" rev 2.01/0.01 addr 2
uvideo0 at uhub0 port 7 configuration 1 interface 0
    "Azurewave TOSHIBA Web Camera - HD" rev 2.00/6.05 addr 3
video0 at uvideo0
uhub2 at uhub1 port 1 "Intel Rate Matching Hub" rev 2.00/0.03 addr 2

Note: No USB devices were plugged in or mounted.

dmesg output for acpi0 wakeup device:
acpi0: wakeup devices PEGP(S4) PEG0(S4) PEGP(S4) PEG1(S4)
    PEG2(S4) GLAN(S4) EHC1(S4) EHC2(S4) XHC_(S3) TPD4(S4)
    TPD7(S0) TPD8(S0) HDEF(S4) PXSX(S4) RP01(S4) [...]

Thanks for the work.


Reply via email to