archcraft-os / archcraft

// Source : ISO
https://archcraft.io
GNU General Public License v3.0
3.07k stars 104 forks source link

Screen stays blank after Suspend #287

Closed riquezjp closed 2 years ago

riquezjp commented 2 years ago

Detailed Description

The laptop does not wake from suspend after closing lid or choosing 'sleep' in the power menu, or allowing inactivity to trigger suspend. Suspend seems to trigger correctly, the power button on the laptop pulses slowly as is normal for suspend state. When attempting to wake via a key press, the light becomes solid as it should when waking up, but the screen remains black. It's possible that suspend has ended but the display is not walking, I'm not sure. There seems no way to get any response other than holding power button to force shutdown.

I should note that when I bought this laptop 2 years ago (new, Lenovo Thinkbook 14 G2 ARE) there was an issue with waking from suspend on all Linux distros. The universal fix was to set iommu=soft in the grub. Using this fix I have installed 10+ distros & suspend has worked in every case. This hasn't worked for archcraft, but it has for other arch flavours - I wonder if this may be display wake or compositor issue rather than suspend.

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

sudo inxi -v7azy      
System:
  Kernel: 5.18.9-arch1-1 arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-linux
    root=UUID=9716c0f3-a4eb-47d3-8f68-7c34f2a525ae rw quiet splash loglevel=3
    udev.log_level=3 vt.global_cursor_default=0
  Desktop: Openbox v: 3.6.1 info: polybar, plank dm: SDDM Distro: Archcraft
    base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 20VF v: ThinkBook 14 G2 ARE
    serial: <filter> Chassis: type: 10 v: ThinkBook 14 G2 ARE serial: <filter>
  Mobo: LENOVO model: LNVNB161216 v: SDK0J40700 WIN serial: <filter>
    UEFI: LENOVO v: FACN28WW(V1.11) date: 05/18/2021
Battery:
  ID-1: BAT1 charge: 32.1 Wh (80.0%) condition: 40.1/45.0 Wh (89.1%)
    volts: 12.1 min: 11.5
    model: 0x43 0x65 0x6C 0x78 0x70 0x 0x4C 0x31 0x39 0x43 0x33 0x50 0x4500
    type: Li-ion serial: <filter> status: discharging cycles: 345
  Device-1: hidpp_battery_0 model: Logitech M585/M590 Multi-Device Mouse
    serial: <filter> charge: 55% (should be ignored) rechargeable: yes
    status: discharging
Memory:
  RAM: total: 19.41 GiB used: 2.58 GiB (13.3%)
  Array-1: capacity: 64 GiB slots: 2 EC: None max-module-size: 32 GiB
    note: est.
  Device-1: DIMM 0 type: DDR4 detail: synchronous unbuffered (unregistered)
    size: 16 GiB speed: 3200 MT/s volts: curr: 1.2 min: 1.2 max: 1.2
    width (bits): data: 64 total: 64 manufacturer: Crucial
    part-no: CT16G4SFD832A.M16FRS serial: <filter>
  Device-2: DIMM 0 type: DDR4 detail: synchronous unbuffered (unregistered)
    size: 8 GiB speed: 3200 MT/s volts: curr: 1.2 min: 1.2 max: 1.2
    width (bits): data: 64 total: 64 manufacturer: Samsung
    part-no: M471A1G44AB0-CWE serial: N/A
CPU:
  Info: model: AMD Ryzen 5 4500U with Radeon Graphics socket: FP6 bits: 64
    type: MCP arch: Zen 2 gen: 3 built: 2020-22 process: TSMC n7 (7nm)
    family: 0x17 (23) model-id: 0x60 (96) stepping: 1 microcode: 0x8600106
  Topology: cpus: 1x cores: 6 smt: <unsupported> cache: L1: 384 KiB
    desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB L3: 8 MiB
    desc: 2x4 MiB
  Speed (MHz): avg: 1400 min/max: 1400/2375 boost: enabled
    base/boost: 2375/4000 scaling: driver: acpi-cpufreq governor: schedutil
    volts: 1.2 V ext-clock: 100 MHz cores: 1: 1400 2: 1400 3: 1400 4: 1400
    5: 1400 6: 1400 bogomips: 28462
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
    bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
    constant_tsc cpb cppc cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total
    cqm_occup_llc cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid
    f16c flushbyasid fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb ibrs ibs
    irperf lahf_lm lbrv lm mba mca mce misalignsse mmx mmxext monitor movbe
    msr mtrr mwaitx nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae
    pat pausefilter pclmulqdq pdpe1gb perfctr_core perfctr_llc perfctr_nb
    pfthreshold pge pni popcnt pse pse36 rapl rdpid rdpru rdrand rdseed rdt_a
    rdtscp rep_good sep sha_ni skinit smap smca smep ssbd sse sse2 sse4_1
    sse4_2 sse4a ssse3 stibp succor svm svm_lock syscall tce topoext tsc
    tsc_scale umip v_spec_ctrl v_vmsave_vmload vgif vmcb_clean vme vmmcall
    wbnoinvd wdt xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: disabled, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Renoir vendor: Lenovo driver: amdgpu v: kernel arch: GCN 5.1
    process: TSMC n7 (7nm) built: 2018-21 pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s ports: active: eDP-1
    empty: DP-1,DP-2,HDMI-A-1 bus-ID: 05:00.0 chip-ID: 1002:1636
    class-ID: 0300
  Device-2: IMC Networks Integrated Camera type: USB driver: uvcvideo
    bus-ID: 1-3:2 chip-ID: 13d3:56ff class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.3 compositor: Picom v: git-c4107
    driver: X: loaded: amdgpu unloaded: fbdev,modesetting,vesa gpu: amdgpu
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 mapped: eDP model: ChiMei InnoLux 0x14d4 built: 2016
    res: 1920x1080 hz: 60 dpi: 158 gamma: 1.2 size: 309x173mm (12.17x6.81")
    diag: 354mm (13.9") ratio: 16:9 modes: max: 1920x1080 min: 640x480
  OpenGL: renderer: AMD RENOIR (LLVM 14.0.6 DRM 3.46 5.18.9-arch1-1)
    v: 4.6 Mesa 22.1.3 direct render: Yes
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 05:00.1 chip-ID: 1002:1637
    class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Lenovo driver: N/A
    pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s
    bus-ID: 05:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio vendor: Lenovo driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
    speed: 16 GT/s bus-ID: 05:00.6 chip-ID: 1022:15e3 class-ID: 0403
  Sound Server-1: ALSA v: k5.18.9-arch1-1 running: yes
  Sound Server-2: JACK v: 1.9.21 running: no
  Sound Server-3: PulseAudio v: 16.1 running: yes
  Sound Server-4: PipeWire v: 0.3.54 running: no
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    port: 3000 bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: eno1 state: down mac: <filter>
  Device-2: Realtek RTL8852AE 802.11ax PCIe Wireless Network Adapter
    vendor: Lenovo driver: rtw89_8852ae v: kernel pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 port: 2000 bus-ID: 04:00.0 chip-ID: 10ec:8852 class-ID: 0280
  IF: wlan0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
    bus-ID: 3-4:4 chip-ID: 0bda:4852 class-ID: e001 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 3 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 704.24 GiB used: 245.41 GiB (34.8%)
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: MZALQ256HAJD-000L2 size: 238.47 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: BL2QFXV7 temp: 30.9 C scheme: GPT
  SMART: yes health: PASSED on: 22d 17h cycles: 2,150
    read-units: 9,131,742 [4.67 TB] written-units: 8,056,295 [4.12 TB]
  ID-2: /dev/sda maj-min: 8:0 vendor: Crucial model: CT500MX500SSD1
    family: Micron Client SSDs size: 465.76 GiB block-size: physical: 4096 B
    logical: 512 B sata: 3.3 speed: 6.0 Gb/s type: SSD serial: <filter>
    rev: 032 temp: 36 C scheme: MBR
  SMART: yes state: enabled health: PASSED on: 170d 13h cycles: 1792
    written: 967.03 GiB
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 58.59 GiB size: 57.37 GiB (97.92%) used: 8.57 GiB (14.9%)
    fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p3 maj-min: 259:3 label: N/A
    uuid: 9716c0f3-a4eb-47d3-8f68-7c34f2a525ae
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
    used: 8.1 MiB (1.6%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1
    maj-min: 259:1 label: N/A uuid: EB07-8818
  ID-3: /mnt/SSD500 raw-size: 465.76 GiB size: 457.38 GiB (98.20%)
    used: 236.83 GiB (51.8%) fs: ext4 block-size: 4096 B dev: /dev/sda1
    maj-min: 8:1 label: SSD500 uuid: a1936d96-6ea6-4cb5-b62d-618a8ec8a2a8
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/nvme0n1p2 maj-min: 259:2 size: 179.38 GiB fs: ext4 label: N/A
    uuid: b9ee3b75-9ee6-4c8c-9edf-fd672dd6813c
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-3:2 info: IMC Networks Integrated Camera type: Video
    driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 13d3:56ff class-ID: 0e02
  Hub-2: 2-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Hub-3: 3-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 3-2:2 info: Logitech Unifying Receiver type: Keyboard,Mouse,HID
    driver: logitech-djreceiver,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s
    power: 98mA chip-ID: 046d:c52b class-ID: 0300
  Device-2: 3-3:3 info: Elan Micro ELAN:Fingerprint type: <vendor specific>
    driver: N/A interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 100mA
    chip-ID: 04f3:0c4b class-ID: 0000
  Device-3: 3-4:4 info: Realtek Bluetooth Radio type: Bluetooth
    driver: btusb interfaces: 2 rev: 1.0 speed: 12 Mb/s power: 500mA
    chip-ID: 0bda:4852 class-ID: e001 serial: <filter>
  Hub-4: 4-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 37.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 220 Uptime: 1h 7m wakeups: 7 Init: systemd v: 251
  default: graphical tool: systemctl Compilers: gcc: 12.1.0 Packages:
  pacman: 963 lib: 225 Shell: Zsh (sudo) v: 5.9 running-in: xfce4-terminal
  inxi: 3.3.19
riquezjp commented 2 years ago

well, this issue has just gone away. Either something in the recent batch of updates or divine intervention. Suspend is now working normally.