limited hardware support AMD 4700u HP Envy x360 13-ay003nd

Bug #1886937 reported by rud
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Suspend/Hibernate:
screen goes off, nothing else happens. After user interaction, screen turns on. Login screen is shown. Sometimes screen does not turn on: physical reboot required.
kernel upgrade to 5.8rc3 or 5.8rc4 has no effect.

Brightness:
Adjusting brightness has no effect, nightmode has no effect.
Partial solution: kernel upgrade 5.8rc3 or 5.8rc4 solves this partially, brightness can be adjusted and nightmode works But after a reboot brightness is always at max. Also brightness cannot be lowered as much as normally expected.

CPU & fan:
CPU is always high, 5.8rc3 solves this partially, fan is still always on and quite high (after clean Ubuntu install, nothing configured or installed).

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: linux-image-5.4.0-40-generic 5.4.0-40.44
ProcVersionSignature: Ubuntu 5.4.0-40.44-generic 5.4.44
Uname: Linux 5.4.0-40-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.3
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC2: asterix 881 F.... pulseaudio
 /dev/snd/controlC1: asterix 881 F.... pulseaudio
 /dev/snd/controlC0: asterix 881 F.... pulseaudio
CasperMD5CheckResult: skip
CurrentDesktop: Budgie:GNOME
Date: Thu Jul 9 12:21:02 2020
InstallationDate: Installed on 2020-07-09 (0 days ago)
InstallationMedia: Ubuntu-Budgie 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
MachineType: HP HP ENVY x360 Convertible 13-ay0xxx
ProcFB: 0 EFI VGA
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-40-generic root=UUID=e2b48a5b-5ae8-41c4-a6d0-7eb17bb02dd3 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-5.4.0-40-generic N/A
 linux-backports-modules-5.4.0-40-generic N/A
 linux-firmware 1.187.1
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 05/07/2020
dmi.bios.vendor: Insyde
dmi.bios.version: F.06
dmi.board.asset.tag: Type2 - Board Asset Tag
dmi.board.name: 876E
dmi.board.vendor: HP
dmi.board.version: 12.30
dmi.chassis.asset.tag: Chassis Asset Tag
dmi.chassis.type: 31
dmi.chassis.vendor: HP
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnInsyde:bvrF.06:bd05/07/2020:svnHP:pnHPENVYx360Convertible13-ay0xxx:pvrType1ProductConfigId:rvnHP:rn876E:rvr12.30:cvnHP:ct31:cvrChassisVersion:
dmi.product.family: 103C_5335KV HP Envy
dmi.product.name: HP ENVY x360 Convertible 13-ay0xxx
dmi.product.sku: 1D5H9EA#ABH
dmi.product.version: Type1ProductConfigId
dmi.sys.vendor: HP

Revision history for this message
rud (jazco) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
rud (jazco)
description: updated
Revision history for this message
AaronMa (mapengyu) wrote :

Please confirm if it is is s2idle:
cat /sys/power/mem_sleep

If it is s2idle, then try find a way to disable "Windows Modern standy" in BIOS.

brightness:
Please try this patch:
https://<email address hidden>/

Revision history for this message
rud (jazco) wrote :

Thanks for the quick reply.

it is s2idle and the BIOS has no option to modify anything related to this. There are only boot options, TPM that can be configured unfortunately.

Should I provide more extensive logs as described here? I just do not know how to execute the pmtrace command, which arguments to use.
https://wiki.ubuntu.com/DebuggingKernelSuspend

Revision history for this message
AaronMa (mapengyu) wrote :

Please append "mem_sleep_default=deep" in kernel cmdline (/etc/default/grub; update-grub)
Try to use s3.

AMD claims that s2idle is not supported.

Revision history for this message
AaronMa (mapengyu) wrote :

For backlight issue.
Use 5.7.7 kernel should be OK, no patches needs.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

New HP AMD laptops only supports s2idle.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

AMD is currently bringing proper support for LPS0 device. Please stay tuned.

Changed in linux (Ubuntu):
assignee: nobody → Kai-Heng Feng (kaihengfeng)
Revision history for this message
rud (jazco) wrote :

Adding "mem_sleep_default=deep" to the grub file and running 'sudo update-grub' didn't do the trick.

In general, is a Lenovo laptop a better option when one wants to run Ubuntu on the latest AMD (4700u)? It is strange HP only supports s2idle when that consumes more power.

Note Hibernate also does not work.

I will now try to update kernel to 5.7.7 to check if brightness works.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

> Adding "mem_sleep_default=deep" to the grub file and running 'sudo update-grub' didn't do the trick.
Because it doesn't support S3.

> In general, is a Lenovo laptop a better option when one wants to run Ubuntu on the latest AMD (4700u)?
For now, yes. But this should be addressed pretty soon.

> It is strange HP only supports s2idle when that consumes more power.
If all drivers behaves correctly, power consumption under s2idle and s3 should be nearly identical.

> Note Hibernate also does not work.
Are resume= and resume_offset= correctly set?

Revision history for this message
rud (jazco) wrote :

> Are resume= and resume_offset= correctly set?
Where can I do that?
I simply did a clean install of Ubuntu Budgie 20.04, selected to wipe the drive completely during setup.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :
Revision history for this message
rud (jazco) wrote :

Unfortunately, suspend still does not work even with the final 5.8 kernel. Ubuntu 20.04 on the same HP x360 ay0003nd Ryzen 4700U laptop. But Askubuntu.com is filled with similar issues, since 18.04:

https://askubuntu.com/questions/1239367/ubuntu-20-04-will-not-resume-from-suspend-on-hp-laptop-why
https://askubuntu.com/questions/1220824/hp-envy-x360-cant-suspend
https://askubuntu.com/questions/1051062/ubuntu-hp-probook-suspend-problem
https://askubuntu.com/questions/1029474/ubuntu-18-04-dell-xps13-9370-no-longer-suspends-on-lid-close/1044270

and a massive topic summarizing all workarounds here:
https://ubuntuforums.org/showthread.php?t=2395562&p=13780724#post13780724

still nothing works for me.

Revision history for this message
rud (jazco) wrote :

I sold the laptop and bought a Lenovo instead which has working suspend with kernel 5.8.5. Also I haven't heard the fan of this Lenovo yet.. which is a big difference compared to the HP.

Revision history for this message
Adam Štrauch (cx-initd) wrote :

I have the same laptop and I want to keep it. I would like to say that practically everything is working except:

* Suspend and hibernation,
* 4k60 via USB-C's display port. I use HP's G5 docking station and this is working in Windows.

Both issues can be replicated on kernels 5.8.5 and 5.9.0rc3.

The 4k30 works just fine but 4k60 freezes both screens until it's switched back to 30 hz after 20 seconds.

I tried to use fwts to test the suspend so I am attaching results.txt here. Maybe it will help to identify the issue.

Revision history for this message
Adam Štrauch (cx-initd) wrote :

And dmesg with some debug info.

I would really like to help to fix this issue but I have no idea what to look for. Can I ask somebody here for help with reading those two files?

Revision history for this message
Adam Štrauch (cx-initd) wrote :

I noticed I accidently aborted the suspend test earlier so here are both files again properly run til the end.

Revision history for this message
Adam Štrauch (cx-initd) wrote :
Revision history for this message
Dustin Nisbet-Jones (d.nisbetjones) wrote :

>Suspend/Hibernate:
>screen goes off, nothing else happens. After user interaction, screen turns on. Login screen is >shown. Sometimes screen does not turn on: physical reboot required.
>kernel upgrade to 5.8rc3 or 5.8rc4 has no effect.

I wanted to chime in that I also have this issue on my Acer Swift 3 with 4700U. It also only appears to support s2idle and I have no options in my BIOS to adjust regarding this.

I have tried this with even kernel 5.10rc3 and no fix has come just yet.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :
Revision history for this message
Gytis Raciukaitis (noxxious) wrote :

The patch above is only a part of the picture, it's actually the amdgpu driver that is at fault and causes the machine not to wake up, the Renoir support is in the works for it. More details here: https://gitlab.freedesktop.org/drm/amd/-/issues/1230

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

It should be supported after the SRU is completed: LP: #1927067.

Changed in linux (Ubuntu):
assignee: Kai-Heng Feng (kaihengfeng) → nobody
Revision history for this message
Mario Limonciello (superm1) wrote :

The support is landed in 5.15.y kernels like those in Jammy.

Changed in linux (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.