Bug 255329

Summary: system lockup on lid close, Thinkpad T470s
Product: Base System Reporter: Andrew Payne <phalange>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me CC: freebsd, grahamperrin, peo, phalange
Priority: ---    
Version: 13.0-RELEASE   
Hardware: amd64   
OS: Any   

Description Andrew Payne 2021-04-22 15:38:29 UTC
When you close the lid on a T470s and reopen, the computer is frozen. No caps light, no keyboard.

Expected behavior, system enters S3

Tested on full install of 13.0
Tested on "live cd" i.e., booted from DVD image on USB stick.

Problem is not intermittent, it happens every time.
Comment 1 Graham Perrin freebsd_committer freebsd_triage 2021-08-07 05:41:25 UTC
> Thinkpad T470s

What's the graphics hardware?

Cross-reference: 

System freeze on lid close only, FreeBSD-13 | The FreeBSD Forums
<https://forums.freebsd.org/threads/79894/>

▶ bug 255745
Comment 2 Andrew Payne 2021-08-07 15:41:57 UTC
It's Intel.

vgapci0@pci0:0:2:0:     class=0x030000 card=0x224b17aa chip=0x59168086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'HD Graphics 620'
    class      = display
    subclass   = VGA
Comment 3 Harry Matthiesen Jensen 2021-08-22 05:14:00 UTC
I have the same problem with a T470s, pciconf listing:

vgapci0@pci0:0:2:0:	class=0x030000 rev=0x07 hdr=0x00 vendor=0x8086 device=0x1916 subvendor=0x17aa subdevice=0x224b
    vendor     = 'Intel Corporation'
    device     = 'Skylake GT2 [HD Graphics 520]'
    class      = display
    subclass   = VGA

If the charger is connected/powered will it NOT happen, so only if on battery power and close the lid(!?)
Comment 4 peo 2022-10-09 15:48:54 UTC
Thinkpad T470s

vgapci0@pci0:0:2:0:     class=0x030000 rev=0x07 hdr=0x00 vendor=0x8086 device=0x1916 subvendor=0x17aa subdevice=0x224b
    vendor     = 'Intel Corporation'
    device     = 'Skylake GT2 [HD Graphics 520]'
    class      = display
    subclass   = VGA

13.1-STABLE FreeBSD 13.1-STABLE #0 stable/13-f42139db6

The lid close freeze still happens when on battery so I assume this is different from
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261207
that was commited 2022-03-24. Did I miss something? The only difference I see from other reports is that I want "Do nothing" when lid is closed, not suspend.

What can be done appart from reinstalling 12.x?