I booted into minimal non-GUI ubuntu20.04 1.4G with 5.4.22-050422 kernel I removed all possible kernel modules by repeating few times next two commands: lsmod | grep 0$ | sed 's/^\([^ ]*\).*/rmmod \1/g' > rmmods.sh source rmmods.sh
root@kubuntu2004:/home/marian# cat /mnt/ub2004min/root/lsmod_fail_s2disk_5.4.22-050422-generic.txt Module Size Used by crct10dif_pclmul 16384 1 i915 1982464 1 drm_kms_helper 184320 1 i915 drm 487424 3 drm_kms_helper,i915 i2c_algo_bit 16384 1 i915 fb_sys_fops 16384 1 drm_kms_helper syscopyarea 16384 1 drm_kms_helper sysfillrect 16384 1 drm_kms_helper sysimgblt 16384 1 drm_kms_helper sch_fq_codel 20480 1 autofs4 45056 2 nvme 45056 2 nvme_core 102400 4 nvme video 49152 1 i915 dmesg [ 1242.425985] Filesystems sync: 0.000 seconds [ 1242.425988] Freezing user space processes ... (elapsed 0.001 seconds) done. [ 1242.427321] OOM killer disabled. [ 1242.427555] PM: Marking nosave pages: [mem 0x00000000-0x00000fff] [ 1242.427557] PM: Marking nosave pages: [mem 0x00058000-0x00058fff] [ 1242.427558] PM: Marking nosave pages: [mem 0x0009e000-0x000fffff] [ 1242.427562] PM: Marking nosave pages: [mem 0x28e10000-0x28e11fff] [ 1242.427563] PM: Marking nosave pages: [mem 0x2c8f5000-0x2c955fff] [ 1242.427567] PM: Marking nosave pages: [mem 0x2ce62000-0x2ce62fff] [ 1242.427568] PM: Marking nosave pages: [mem 0x2e4de000-0x2fffefff] [ 1242.427750] PM: Marking nosave pages: [mem 0x30000000-0xffffffff] [ 1242.430613] PM: Basic memory bitmaps created [ 1242.431558] PM: Preallocating image memory... done (allocated 163748 pages) [ 1242.788826] PM: Allocated 654992 kbytes in 0.35 seconds (1871.40 MB/s) [ 1242.788827] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 1242.790321] printk: Suspending console(s) (use no_console_suspend to debug) [ 1243.078179] ACPI: EC: interrupt blocked [ 1243.086425] ACPI: Preparing to enter system sleep state S4 [ 1243.098213] ACPI: EC: event blocked [ 1243.098214] ACPI: EC: EC stopped [ 1243.098214] PM: Saving platform NVS memory [ 1243.100159] Disabling non-boot CPUs ... [ 1243.101448] smpboot: CPU 1 is now offline [ 1243.103291] smpboot: CPU 2 is now offline [ 1243.104851] smpboot: CPU 3 is now offline [ 1243.106522] smpboot: CPU 4 is now offline [ 1243.108200] smpboot: CPU 5 is now offline [ 1243.109928] smpboot: CPU 6 is now offline [ 1243.111501] smpboot: CPU 7 is now offline [ 1243.113364] PM: Creating hibernation image: [ 1243.597752] PM: Need to copy 161991 pages [ 1243.597756] PM: Normal pages needed: 161991 + 1024, available pages: 3967507 [ 1244.202907] PM: Hibernation image created (161991 pages copied) [ 1243.113966] PM: Restoring platform NVS memory [ 1243.114826] ACPI: EC: EC started [ 1243.115498] Enabling non-boot CPUs ... [ 1243.115562] x86: Booting SMP configuration: [ 1243.115563] smpboot: Booting Node 0 Processor 1 APIC 0x2 [ 1243.116889] CPU1 is up [ 1243.116938] smpboot: Booting Node 0 Processor 2 APIC 0x4 [ 1243.118201] CPU2 is up [ 1243.118241] smpboot: Booting Node 0 Processor 3 APIC 0x6 [ 1243.119427] CPU3 is up [ 1243.119465] smpboot: Booting Node 0 Processor 4 APIC 0x1 [ 1243.120893] CPU4 is up [ 1243.120932] smpboot: Booting Node 0 Processor 5 APIC 0x3 [ 1243.121918] CPU5 is up [ 1243.121951] smpboot: Booting Node 0 Processor 6 APIC 0x5 [ 1243.122932] CPU6 is up [ 1243.122961] smpboot: Booting Node 0 Processor 7 APIC 0x7 [ 1243.123889] CPU7 is up [ 1243.128176] ACPI: Waking up from system sleep state S4 [ 1243.152424] ACPI: EC: interrupt unblocked [ 1243.176573] ACPI: EC: event unblocked [ 1243.394880] nvme nvme0: 7/0/0 default/read/poll queues [ 1243.461317] acpi LNXPOWER:00: Turning OFF [ 1243.556111] Restarting kernel threads ... done. [ 1243.556347] PM: Basic memory bitmaps freed [ 1243.556348] OOM killer enabled. [ 1243.556348] Restarting tasks ... done. There was not shutting off laptop when using s2disk. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux-5.4 in Ubuntu. https://bugs.launchpad.net/bugs/1864930 Title: brightness setting and sleep/suspend (echo mem > /sys/power/state) , s2ram and s2disk fail for 5.4.0 and s2disk fail for 5.4.22 Status in linux-5.4 package in Ubuntu: New Bug description: 1) After resuming from suspend (uswsusp/s2ram) and/or after resuming from "echo mem > /sys/power/state" there is a black screen on laptop after resume with 5.4.0-14-generic kernel only. Kernel seems to be working as CTRL+ALT+F2 and CTRL+ALT+DEL restarts laptop. A) 3 Different combinations of this distro with other kernels work well: kubunut20.04 + linux-image-5.3.0-40-generic (copied from kubuntu 19.10 from /lib/modules/5.3.0-40-generic and /boot/vmlinuz-5.3.0-40-generic) Installed from https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6-rc3/ kubuntu20.04 + linux-image-unsigned-5.5.6-050506-generic is working. kubuntu20.04 + linux-image-unsigned-5.6.0-050600rc3-generic is working. B) This kernel 5.4.0-14-generic when copied manually into kubuntu 19.10 behaves the same as in 20.04 (NOT WORKING for suspend to ram) 2) setting brightness with keys on laptop keyboard does not work for this kernel 5.4.0-14-generic only Neither using this command line method marian@kubuntu2004:~/Downloads$ cat /sys/class/backlight/intel_backlight/max_brightness 255 marian@kubuntu2004:~/Downloads$ cat /sys/class/backlight/intel_backlight/max_brightness 255 marian@kubuntu2004:~/Downloads$ cat /sys/class/backlight/intel_backlight/actual_brightness 255 marian@kubuntu2004:~/Downloads$ cat /sys/class/backlight/intel_backlight/brightness 242 marian@kubuntu2004:~/Downloads$ echo 200 | sudo tee /sys/class/backlight/intel_backlight/brightness 200 marian@kubuntu2004:~/Downloads$ cat /sys/class/backlight/intel_backlight/brightness Again kernel 5.3 copied into kubuntu20.04 got working brigthness keys. However this works for all tested kernels above (including 5.4.0-14-generic) xrandr --output eDP-1 --brightness 0.8 3) after uswsusp/hibernate (s2disk) and "echo disk > /sys/power/state" do not seem to resume/thaw for those kernels: linux-image-5.4.0-14-generic, linux-image-unsigned-5.5.6-050506-generic , linux-image-unsigned-5.6.0-050600rc3-generic, on the other hand kernel linux-image-5.3.0-40-generic manually copied from kubuntu 19.10 into kubuntu 20.04 seems to be working fine when thawing/resuming from hibernation. Again I tested different combination of kernels and distros for this issue. This kernel (5.4.0-14-generic) also does not work for hibernate/resume even when copied from kubuntu20.04 into kubuntu19.10 4) Starting kubuntu without installation from daily build from 25th Feb 2020 shows the same problem for brightness setting and for black screen after resuming from sleep. http://cdimage.ubuntu.com/kubuntu/daily-live/current/ Note I always recreated imagerd in target place when copied kernels manually: update-initramfs -u -k 5.3.0-40-generic ProblemType: Bug DistroRelease: Ubuntu 20.04 Package: linux-image-5.4.0-14-generic 5.4.0-14.17 ProcVersionSignature: Ubuntu 5.4.0-14.17-generic 5.4.18 Uname: Linux 5.4.0-14-generic x86_64 ApportVersion: 2.20.11-0ubuntu18 Architecture: amd64 AudioDevicesInUse: USER PID ACCESS COMMAND /dev/snd/controlC0: marian 1214 F.... pulseaudio CurrentDesktop: KDE Date: Wed Feb 26 22:20:29 2020 Lsusb: Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 8087:0a2b Intel Corp. Bus 001 Device 002: ID 05c8:0815 Cheng Uei Precision Industry Co., Ltd (Foxlink) HP Wide Vision FHD Camera Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub MachineType: HP HP Spectre x360 Convertible 13-ae0xx ProcEnviron: LANGUAGE= TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> SHELL=/bin/bash ProcFB: 0 i915drmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-14-generic root=/dev/mapper/sysvg-ub2004deboot ro resume=/dev/nvme0n1p8 quiet splash resume=/dev/nvme0n1p8 vt.handoff=7 RelatedPackageVersions: linux-restricted-modules-5.4.0-14-generic N/A linux-backports-modules-5.4.0-14-generic N/A linux-firmware 1.186 SourcePackage: linux-5.4 UpgradeStatus: No upgrade log present (probably fresh install) WifiSyslog: dmi.bios.date: 01/07/2019 dmi.bios.vendor: AMI dmi.bios.version: F.24 dmi.board.asset.tag: Base Board Asset Tag dmi.board.name: 83B9 dmi.board.vendor: HP dmi.board.version: 56.43 dmi.chassis.type: 31 dmi.chassis.vendor: HP dmi.chassis.version: Chassis Version dmi.modalias: dmi:bvnAMI:bvrF.24:bd01/07/2019:svnHP:pnHPSpectrex360Convertible13-ae0xx:pvr:rvnHP:rn83B9:rvr56.43:cvnHP:ct31:cvrChassisVersion: dmi.product.family: 103C_5335KV HP Spectre dmi.product.name: HP Spectre x360 Convertible 13-ae0xx dmi.product.sku: 2QH34EA#ABU dmi.sys.vendor: HP To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux-5.4/+bug/1864930/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp