SD card is unwritable after resume from suspend
I'm using suspend on battery for some weeks now. One big issue is, that sometimes (once a day or more often) the SD card is non-writable after resuming from suspend.
My /home
partition is on the SD card so I need to reboot in order to resolve this issue.
I tried on Sebastian's advice the kernel from !711 but it didn't resolve the problem nor mitigated it.
The kernel log when this happens has entries like this:
Jun 17 11:21:13 claudii kernel: sd 0:0:0:0: [sda] tag#0 device offline or changed
Jun 17 11:21:13 claudii kernel: I/O error, dev sda, sector 50403224 op 0x0:(READ) flags 0x3000 phys_seg 1 prio class 2
Jun 17 11:21:13 claudii kernel: EXT4-fs warning (device dm-0): ext4_dx_find_entry:1791: inode #1586190: lblock 2: comm pool-org.gnome.: error -5 reading directory block
Jun 17 11:21:13 claudii kernel: sd 0:0:0:0: [sda] tag#0 device offline or changed
Jun 17 11:21:13 claudii kernel: I/O error, dev sda, sector 50403480 op 0x0:(READ) flags 0x3000 phys_seg 1 prio class 2
Jun 17 11:21:13 claudii kernel: EXT4-fs warning (device dm-0): ext4_dx_find_entry:1791: inode #1586190: lblock 6: comm gnome-clocks: error -5 reading directory block
Jun 17 11:22:11 claudii kernel: edt_ft5x06 2-0038: Unable to fetch data, error: -6
Jun 17 11:23:05 claudii kernel: sd 0:0:0:0: [sda] tag#0 device offline or changed
$ lsblk /dev/sda
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 1 119,1G 0 disk
├─vg_home-lv_home 254:0 0 80G 0 lvm /home
├─vg_home-lv_boot 254:1 0 1G 0 lvm
└─vg_home-lv_root 254:2 0 38,1G 0 lvm
$ uname -r
6.3.0-1-librem5
$ sudo journalctl --since=2023-06-17 | grep Librem
Jun 17 10:29:07 claudii kernel: Machine model: Purism Librem 5r4
If you need more debug information, just let me know how to obtain/collect them.