There have been numerous issues getting the Envy x360 with Ryzen 5 to cooperate with Ubuntu. Several issues have been solved, and several remain.
I am currently running Ubuntu 18.04 with Linux kernel 4.18rc1. I am using the most up-to-date set up possible as the amdgpu drivers seem to be getting regular updates in the latest kernels.
The desktop only loads using Wayland. Default or Unity immediately returns me to the log in screen. Unity was working previously using Ubuntu 16.04 and kernels 4.15-4.17. I'm not sure if this is a Wayland issue or not, but the screen is a bit flickery in Firefox, and there are other signs of minor graphical issues following log in. It would be ideal for all of the display options to be available.
The entire system locks up and requires a hard reset using the power button. This happens frequently enough to be a major problem. Likely related to the graphics drivers? I turned hardware acceleration in Firefox off, but it can be hard to tell if the problem is solved, because sometimes it doesn't freeze for hours (while other times it freezes after a few minutes).
Rotating the screen 90 degrees leads to a blank screen. Rotating back restores the screen. Rotating 180 degrees leads to an upside down screen (i.e. not possible to use in tent mode). Flipping the screen into tablet mode does disable the mouse and keyboard properly.
Touch screen does not work.
This issue seems to have been figured out (https://bugzilla.kernel.org/show_bug.cgi?id=198715#c14) Add I would also recommend then this fix to Firefox, if that is your browser of choice (How to make touch-screen scrolling work in Firefox Quantum?). However, it is very difficult for the average user to implement, and needs to be re-done each time there is a kernel update (which I install in the hopes that it fixes the random crashing issue). I also may have made some errors when I tried it, because the OS loaded slower and sometimes failed to load, but I can confirm that the touchscreen and pen input were working well after this. This needs a permanent solution.
The wifi driver issue was fixed as far back as kernel 4.15.
Closing the lid to sleep seems to work properly on Ubuntu 18.04. This was not working as of Ubuntu 16.04 with kernel 4.17.
Any help with any of these issues would be appreciated!