Reading the initial bug report I see kolAflash said

>  nomodeset seems to be essential, but not sufficient.

When I added nomodeset to /etc/default/grub (
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset" ) then I can boot
without issues, but suspend does not work. To reiterate:

 * the TTY1 screen is not blank on boot
 * sleep works
 * suspend does not work - you get this bug

Given this error in syslog:

> kernel: [    0.047848] You have booted with nomodeset. This means your GPU 
> drivers are DISABLED
> kernel: [    0.047849] Unless you actually understand what nomodeset does, 
> you should reboot without enabling it
> [    0.047849] Any video related functionality will be severely degraded, and 
> you may not even be able to suspend the system properly
> [    0.047849] Unless you actually understand what nomodeset does, you should 
> reboot without enabling it

I tried a few things without nomodeset in grub options. In this case:

  * the default screen, TTY1, (CTRL-ALT-F1)  is blank on boot (or has the HP 
logo only)
  * sleep works
  * suspend doesn't seem to work. If you leave the laptop in suspend mode for a 
long time it does not resume. The screen is black with just a white underscore 
on it. The last log lines in /var/log/syslog is

 systemd[1]: Reached target Sleep.
 systemd[1]: Starting Suspend...
 systemd-sleep[8263]: Suspending system...
 kernel: [ 9425.088936] PM: suspend entry (s2idle)


As a workaround for the default screen being blank on boot, you can go to TTY2 
(CTRL-ALT-F2),  log in and run startx from the command prompt.

Some tests:

* This does not seem to be the same issue as
https://bugzilla.kernel.org/show_bug.cgi?id=204241

because the following command works just fine.

for i in $(seq 30); do sudo rtcwake -m mem -s 5; sleep 15; done

* I've tried adding GRUB_GFXMODE=1920x1080 to /etc/default/grub but that
doesn't seem to solve the issue with the screen on TTY1 being blank on
boot.

The commands pm-hibernate and pm-suspend give the errors in /var/log/syslog 
> [ 2566.154192] Lockdown: grep: hibernation is restricted; see man 
> kernel_lockdown.7
and nothing happens

The command pm-powersave gives the same "hibernation is restricted"
error in /var/log/syslog but the system goes blank and the is
unresponsive.

** Bug watch added: Linux Kernel Bug Tracker #204241
   https://bugzilla.kernel.org/show_bug.cgi?id=204241

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1881494

Title:
  [amdgpu] suspend to ram (standby) crashes amdgpu (Ryzen-7 Vega - HP
  Envy x360)

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  suspend to ram crashes amdgpu.
  System is still accessible via SSH after resume from standby.
  Happens when X is running (gdm/gnome with 3d acceleration) and also when X is 
stopped.

  Also the computer never really goes into standby. The cpu fan is
  running all the time and the power button is fully lighted up.
  Nevertheless, I need to press CTRL to "wake" it, so I can access it
  via SSH.

  I'll attach the dmesg output of several attempts.
  This is the hardware:
  
https://store.hp.com/GermanyStore/Merch/Product.aspx?id=9YN58EA&opt=ABD&sel=NTB
  Tested EFI and BIOS bootmode.

  Please let me know if I can help tracking this down.
  I'm a software developer (sadly not a kernel developer), so you can ask dirty 
technical questions ;-)

  Workaround:
  Enable hibernation (suspend to disk) and use instead of suspend to ram 
(standby).

  What didn't help:
  Kernel parameters: no_console_suspend nomodeset amdgpu.gpu_recovery=1 
init_on_free=0 idle=nowait amd_iommu=flush
  echo mem > /sys/power/state
  systemctl start suspend.target
  echo 0 > /sys/power/pm_async
  Upgrading kernel from 5.4 to: 5.6.0-1010-oem

  Using the kernel parameters
    no_console_suspend nomodeset amdgpu.gpu_recovery=1 init_on_free=0
    idle=nowait amd_iommu=flush
  and doing
    echo mem > /sys/power/state
  before suspend made the system acutally not crash.
  Nevertheless, the cpu fan and the power button stay full on/lighted. So the 
system doesn't really go to standby either.

  I'll try to find the minimal combination of kernel parameters.
  nomodeset seems to be essential, but not sufficient.
  Without nomodeset the system wakes again for a few seconds, but freezes a 
moment later (ssh still accessible).

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: xorg 1:7.7+19ubuntu14
  ProcVersionSignature: Ubuntu 5.6.0-1010.10-oem 5.6.8
  Uname: Linux 5.6.0-1010-oem x86_64
  ApportVersion: 2.20.11-0ubuntu27.2
  Architecture: amd64
  BootLog: Error: [Errno 13] Keine Berechtigung: '/var/log/boot.log'
  CasperMD5CheckResult: skip
  CompositorRunning: None
  CurrentDesktop: ubuntu:GNOME
  Date: Sun May 31 18:43:54 2020
  DistUpgraded: Fresh install
  DistroCodename: focal
  DistroVariant: ubuntu
  ExtraDebuggingInterest: Yes, including running git bisection searches
  GpuHangFrequency: Continuously
  GpuHangReproducibility: Yes, I can easily reproduce it
  GpuHangStarted: Immediately after installing this version of Ubuntu
  GraphicsCard:
   Advanced Micro Devices, Inc. [AMD/ATI] Picasso [1002:15d8] (rev c1) (prog-if 
00 [VGA controller])
     Subsystem: Hewlett-Packard Company Picasso [103c:85de]
  InstallationDate: Installed on 2020-05-29 (1 days ago)
  InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
  MachineType: HP HP ENVY x360 Convertible 13-ar0xxx
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=de_DE.UTF-8
   SHELL=/bin/bash
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.6.0-1010-oem 
root=/dev/mapper/vgubuntu-root ro quiet splash vt.handoff=7
  SourcePackage: xorg
  Symptom: display
  Title: Xorg freeze
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 12/26/2019
  dmi.bios.vendor: AMI
  dmi.bios.version: F.19
  dmi.board.asset.tag: Base Board Asset Tag
  dmi.board.name: 85DE
  dmi.board.vendor: HP
  dmi.board.version: 41.36
  dmi.chassis.type: 31
  dmi.chassis.vendor: HP
  dmi.chassis.version: Chassis Version
  dmi.modalias: 
dmi:bvnAMI:bvrF.19:bd12/26/2019:svnHP:pnHPENVYx360Convertible13-ar0xxx:pvr:rvnHP:rn85DE:rvr41.36:cvnHP:ct31:cvrChassisVersion:
  dmi.product.family: 103C_5335KV HP Envy
  dmi.product.name: HP ENVY x360 Convertible 13-ar0xxx
  dmi.product.sku: 9YN58EA#ABD
  dmi.sys.vendor: HP
  version.compiz: compiz N/A
  version.libdrm2: libdrm2 2.4.101-2
  version.libgl1-mesa-dri: libgl1-mesa-dri 20.0.4-2ubuntu1
  version.libgl1-mesa-glx: libgl1-mesa-glx N/A
  version.xserver-xorg-core: xserver-xorg-core 2:1.20.8-2ubuntu2
  version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
  version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-1
  version.xserver-xorg-video-intel: xserver-xorg-video-intel 
2:2.99.917+git20200226-1
  version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.16-1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1881494/+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

Reply via email to