Asus Tuf Gaming fx505dy

CPU
The CPU is an AMD Ryzen 5 3550H with four cores.

Graphics
The CPU provides Radeon Vega Mobile graphics, and there is a Radeon RX 560X GPU (List_of_AMD_graphics_processing_units) with 4Gb of dedicated memory. Follow the instructions in the AMDGPU article.

Note that once the amdgpu driver is working, Xorg will use the Vega graphics by default. To use the faster RX 560 GPU, export the DRI_PRIME variable before executing your program.

NVME SSD
In order to boot any linux device, it may be necessary to use the following kernel parameter with the laptop's included NVME SSD.

nvme_core.default_ps_max_latency_us=5500

The above parameter may also help if the system shows signs of intermittant stalling during frequent writes to disc (e.g. ext4 journalling), after the original SSD has been upgraded.

Wireless
The rtl8821ce wifi is not supported by the 5.3.1 kernel. The simplest way to enable it is to download Tomás Pinho's driver for Archlinux, and copy the directory tree into the corresponding directory of gentoo-sources.

Run make nconfig and select the option:

Then compile and install the kernel.

Sound
The laptop features AMD/Realtek HD audio.

Configure ALSA with the following driver settings:

Touchpad
The laptop's touchpad will probably be an Elan 1200 model, which may not be detected by system tools, including lspci.

To enable it, use the following kernel configuration settings:

Keyboard
This model does not come with RGB keyboard lighting, only red backlight. Kernel 5.3 and later support changing the keyboard backlight brightness through the standard hotkeys, without any extra configuration.