pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.48k stars 87 forks source link

Resume from sleep renders file system `read only` #2671

Open nuke-web3 opened 2 years ago

nuke-web3 commented 2 years ago

Distribution

 NAME="Pop!_OS"
VERSION="22.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 22.04 LTS"
VERSION_ID="22.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
LOGO=distributor-logo-pop-os

Related Application and/or Package Version (run apt policy $PACKAGE NAME): (all)

Issue/Bug Description:

Most (but seemingly not all times) a 17" Gazelle with NVIDIA GeForce RTX 3060 I am running will resume from sleep but run into issue with interation with any app.

Steps to reproduce (if you know):

  1. Close lid, assume the device goes to sleep
  2. Resume, navigate between windows (works)
  3. Try to make any change on disk (doesn't work, user or system origin)
  4. Try to shutdown/restart the system normally, no effect, no errors.
  5. Hard power off (hold button) to restart

Other Notes:

Related maybe? #2465 #2641


Will try and take better notes next time it happens manually, as I cannot save to the machine itself when it happens :sweat_smile: .

leviport commented 2 years ago

Can you share the model numbers for the SSDs that are currently installed? This usually has to do with certain drives doing weird things when they try to enter power saving states, either during suspend cycles or during idle/inactivity.

LBWright commented 1 year ago

I am also having this issue on the brand new Lemur Pro, shipped with factory basics and defaults.

leviport commented 1 year ago

@LBWright Can you share the model of drive that this is happening with? You should be able to see that info with the Disks utility, or with lspci -v if you installed a different distro than it shipped with.

LBWright commented 1 year ago

I'm not really sure what info you need but here's a dump of lspci -v. I can go back and remove unnecessary info afterward.

00:00.0 Host bridge: Intel Corporation Device a708 (rev 01)
    Subsystem: CLEVO/KAPOK Computer Device 7724
    Flags: bus master, fast devsel, latency 0
    Capabilities: <access denied>

00:02.0 VGA compatible controller: Intel Corporation Device a7a1 (rev 04) (prog-if 00 [VGA controller])
    DeviceName: VGA compatible controller
    Subsystem: CLEVO/KAPOK Computer Device 7724
    Flags: bus master, fast devsel, latency 0, IRQ 158
    Memory at 81000000 (64-bit, non-prefetchable) [size=16M]
    Memory at 90000000 (64-bit, prefetchable) [size=256M]
    I/O ports at 1000 [size=64]
    Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
    Capabilities: <access denied>
    Kernel driver in use: i915
    Kernel modules: i915

00:06.0 PCI bridge: Intel Corporation Device a74d (rev 01) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 122
    Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
    I/O behind bridge: [disabled]
    Memory behind bridge: 80400000-804fffff [size=1M]
    Prefetchable memory behind bridge: [disabled]
    Capabilities: <access denied>
    Kernel driver in use: pcieport

00:07.0 PCI bridge: Intel Corporation Device a76e (rev 01) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 123
    Bus: primary=00, secondary=02, subordinate=2c, sec-latency=0
    I/O behind bridge: 00002000-00003fff [size=8K]
    Memory behind bridge: 82000000-8e1fffff [size=194M]
    Prefetchable memory behind bridge: 000000067fc00000-000000069bbfffff [size=448M]
    Capabilities: <access denied>
    Kernel driver in use: pcieport

00:0a.0 Signal processing controller: Intel Corporation Device a77d (rev 01)
    Subsystem: CLEVO/KAPOK Computer Device 7724
    Flags: fast devsel
    Memory at 80760000 (64-bit, non-prefetchable) [size=32K]
    Capabilities: <access denied>
    Kernel driver in use: intel_vsec
    Kernel modules: intel_vsec

00:0d.0 USB controller: Intel Corporation Device a71e (rev 01) (prog-if 30 [XHCI])
    Subsystem: CLEVO/KAPOK Computer Device 7724
    Flags: medium devsel, IRQ 141
    Memory at 80740000 (64-bit, non-prefetchable) [size=64K]
    Capabilities: <access denied>
    Kernel driver in use: xhci_hcd
    Kernel modules: xhci_pci

00:0d.2 USB controller: Intel Corporation Device a73e (rev 01) (prog-if 40 [USB4 Host Interface])
    Subsystem: CLEVO/KAPOK Computer Device 7724
    Flags: bus master, fast devsel, latency 0, IRQ 19
    Memory at 80700000 (64-bit, non-prefetchable) [size=256K]
    Memory at 80774000 (64-bit, non-prefetchable) [size=4K]
    Capabilities: <access denied>
    Kernel driver in use: thunderbolt
    Kernel modules: thunderbolt

00:14.0 USB controller: Intel Corporation Alder Lake PCH USB 3.2 xHCI Host Controller (rev 01) (prog-if 30 [XHCI])
    Subsystem: CLEVO/KAPOK Computer Device 7724
    Flags: medium devsel, IRQ 142
    Memory at 80750000 (64-bit, non-prefetchable) [size=64K]
    Capabilities: <access denied>
    Kernel driver in use: xhci_hcd
    Kernel modules: xhci_pci

00:14.2 RAM memory: Intel Corporation Alder Lake PCH Shared SRAM (rev 01)
    Subsystem: CLEVO/KAPOK Computer Device 7724
    Flags: bus master, fast devsel, latency 0
    Memory at fe010000 (64-bit, non-prefetchable) [size=16K]
    Memory at 80775000 (64-bit, non-prefetchable) [size=4K]
    Capabilities: <access denied>

00:14.3 Network controller: Intel Corporation Device 51f1 (rev 01)
    Subsystem: Intel Corporation Device 0094
    Flags: bus master, fast devsel, latency 0, IRQ 18
    Memory at 8076c000 (64-bit, non-prefetchable) [size=16K]
    Capabilities: <access denied>
    Kernel driver in use: iwlwifi
    Kernel modules: iwlwifi

00:15.0 Serial bus controller: Intel Corporation Alder Lake PCH Serial IO I2C Controller #0 (rev 01)
    Subsystem: CLEVO/KAPOK Computer Device 7724
    Flags: bus master, fast devsel, latency 0, IRQ 37
    Memory at 80776000 (64-bit, non-prefetchable) [size=4K]
    Capabilities: <access denied>
    Kernel driver in use: intel-lpss
    Kernel modules: intel_lpss_pci

00:15.1 Serial bus controller: Intel Corporation Alder Lake PCH Serial IO I2C Controller #1 (rev 01)
    Subsystem: CLEVO/KAPOK Computer Device 7724
    Flags: bus master, fast devsel, latency 0, IRQ 38
    Memory at 80777000 (64-bit, non-prefetchable) [size=4K]
    Capabilities: <access denied>
    Kernel driver in use: intel-lpss
    Kernel modules: intel_lpss_pci

00:1c.0 PCI bridge: Intel Corporation Device 51bd (rev 01) (prog-if 00 [Normal decode])
    Flags: bus master, fast devsel, latency 0, IRQ 124
    Bus: primary=00, secondary=2d, subordinate=2d, sec-latency=0
    I/O behind bridge: 00004000-00004fff [size=4K]
    Memory behind bridge: 80500000-805fffff [size=1M]
    Prefetchable memory behind bridge: 000000069bc00000-000000069bdfffff [size=2M]
    Capabilities: <access denied>
    Kernel driver in use: pcieport

00:1f.0 ISA bridge: Intel Corporation Device 519d (rev 01)
    Subsystem: CLEVO/KAPOK Computer Device 7724
    Flags: bus master, fast devsel, latency 0

00:1f.3 Audio device: Intel Corporation Device 51ca (rev 01)
    Subsystem: CLEVO/KAPOK Computer Device 7724
    Flags: bus master, fast devsel, latency 64, IRQ 173
    Memory at 80770000 (64-bit, non-prefetchable) [size=16K]
    Memory at 80600000 (64-bit, non-prefetchable) [size=1M]
    Capabilities: <access denied>
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl

00:1f.4 SMBus: Intel Corporation Alder Lake PCH-P SMBus Host Controller (rev 01)
    Subsystem: CLEVO/KAPOK Computer Device 7724
    Flags: medium devsel, IRQ 20
    Memory at 8077a000 (64-bit, non-prefetchable) [size=256]
    I/O ports at efa0 [size=32]
    Kernel driver in use: i801_smbus
    Kernel modules: i2c_i801

00:1f.5 Serial bus controller: Intel Corporation Alder Lake-P PCH SPI Controller (rev 01)
    Subsystem: CLEVO/KAPOK Computer Device 7724
    Flags: bus master, fast devsel, latency 0
    Memory at 80779000 (32-bit, non-prefetchable) [size=4K]
    Kernel driver in use: intel-spi
    Kernel modules: spi_intel_pci

01:00.0 Non-Volatile memory controller: Sandisk Corp WD Blue SN570 NVMe SSD (prog-if 02 [NVM Express])
    Subsystem: Sandisk Corp WD Blue SN570 NVMe SSD
    Flags: bus master, fast devsel, latency 0, IRQ 11, NUMA node 0
    Memory at 80400000 (64-bit, non-prefetchable) [size=16K]
    Memory at 80404000 (64-bit, non-prefetchable) [size=256]
    Capabilities: <access denied>
    Kernel driver in use: nvme
    Kernel modules: nvme

2d:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01) (prog-if 01)
    Subsystem: O2 Micro, Inc. SD/MMC Card Reader Controller
    Physical Slot: 5
    Flags: bus master, fast devsel, latency 0, IRQ 157
    Memory at 80500000 (32-bit, non-prefetchable) [size=4K]
    Memory at 80501000 (32-bit, non-prefetchable) [size=2K]
    Capabilities: <access denied>
    Kernel driver in use: sdhci-pci
    Kernel modules: sdhci_pci
leviport commented 1 year ago

01:00.0 Non-Volatile memory controller: Sandisk Corp WD Blue SN570 NVMe SSD (prog-if 02 [NVM Express])

Yep, that's the kind we had the most issue with. ASPM turns those WD Blue drives off for power savings, and something about them fails to return from the low-power state afterwards. If this is a drive that came with the machine from System76, please open a support ticket and we will help get this sorted out.

jacobgkau commented 3 months ago

Hello, do either of you still need assistance with this, or was the support team able to get it resolved for you?