HP Elitebook 845 G8
Hardware
root #
lspci -nn
root #
lsusb
Standard
Device | Make/model | Status | Vendor ID / Product ID | Kernel driver(s) | Kernel version | Notes |
---|---|---|---|---|---|---|
Video card | Advanced Micro Devices, Inc. [AMD/ATI] Cezanne (rev d2) | Works | [1002:1638] | amdgpu | — | — |
Wireless network controller | Realtek Semiconductor Co., Ltd. RTL8822CE 802.11ac PCIe Wireless Network Adapter | Works | [10ec:c822] | rtw_8822ce | — | — |
Bluetooth | Realtek Semiconductor Corp. 802.11ac WLAN Adapter | Partial | [0bda:b00c] | btusb | — | — |
Web Camera | Quanta Computer, Inc. HP HD Camera | Works | [0408:5347] | uvcvideo | — | — |
Fingerprint Reader | Not tested | — | — | — | ||
Touchpad | Not working | — | — | Device not detected - probably missing some I2C bus driver in kernel config. |
Using M.2 SSD in WWAN NGFF slot
Although some laptops provide official or unofficial support for using a M.2 2242 B+E keyed SSD in the WWAN slot, this is not the case for this model according to both official HP statement and actual tests.
Installation
/etc/portage/make.conf
COMMON_FLAGS="-march=znver3 -O2 -pipe"
/etc/portage/package.use/00input
*/* INPUT_DEVICES: libinput synaptics
/etc/portage/package.use/00video
*/* VIDEO_CARDS: -* amdgpu radeonsi
Firmware
root #
emerge --ask sys-kernel/linux-firmware
Device | Firmware files |
---|---|
Video card | amdgpu/green_sardine_*.bin |
Wireless network controller | rtw88/rtw8822c_fw.bin rtw88/rtw8822c_wow_fw.bin |
Bluetooth | rtl_bt/rtl8822cu_fw.bin rtl_bt/rtl8822cu_config.bin |
Kernel
Processor type and features --->
Processor family (AMD Zen 3) --->
[*] CPU microcode loading support
[*] AMD microcode loading support
[*] AMD Secure Memory Encryption (SME) support
[ ] Activate AMD Secure Memory Encryption (SME) by default
[*] EFI runtime service support
Device Drivers --->
NVME Support --->
<*> NVM Express block device
Building the following device driver as module may be appropriate as it requires firmware during initialization.
Generic Driver Options --->
[*] Network device support ---
[*] Wireless LAN --->
[*] Realtek devices
<*> Realtek 802.11ac wireless chips support --->
<*> Realtek 8822CE PCI wireless network adapter
Building the following device driver as module may be appropriate as it requires firmware during initialization.
Networking Support --->
<*> Bluetooth subsystem support --->
<*> Bluetooth device drivers --->
<M> HCI USB driver --->
[*] Realtek protocol support
Device Drivers --->
<*> Sound card support --->
<*> Advanced Linux Sound Architecture --->
[*] PCI sound devices --->
HD-Audio --->
<*> HD Audio PCI
<*> Build Realtek HD-audio codec support
Device Drivers --->
<*> Multimedia support --->
Media Device Types --->
[*] Cameras and video grabbers
Media drivers -->
[*] Media USB Adapters --->
<*> USB Video Class (UVC)
Troubleshooting
X11/Wayland graphics freezes
AMDGPU driver is known not to work correctly with AMD Secure Memory Encryption (SME). Until proper support is implemented SME needs to be disabled either:
- by enabling the CONFIG_AMD_MEM_ENCRYPT kernel option and
- making sure CONFIG_AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT is not selected, or
- setting mem_encrypt=off in the kernel command line
- by disabling SME in BIOS Setup
RTL8822CE Bluetooth adapter crashes
The RTL8822CE is a WiFi/Bluetooth combo adapter. The Bluetooth part is available on the USB bus of the NGFF interface and is visible as a USB Bluetooth adapter.
Unfortunately the error handling inside the adapter hardware is not very resilient. In case when some communication error between the hardware and kernel driver occurs (e.g. a timeout or state machine lockup) the Bluetooth adapter is know to crash and as a result the device is kicked out of the USB bus. There is no way to recover from this situation other than a reboot. The WiFi part of the RTL8822CE works fine.
This is especially visible with kernel 5.17, which has a known bug in the Bluetooth stack, but on newer kernels it is also possible to get this to occur, although much less frequently. While such communication issues are known to also occur with adapters from other vendors, their HW is designed in a way that the Bluetooth part is able to reset itself and recover.
If you require stable Bluetooth operation it is best to avoid the RTL8822CE adapter and switch to using an Intel adapter, which also works fine (I have personally successfully tested the Intel WiFi 8265).
RTL8822CE Bluetooth refuses to pair devices
In case the Bluetooth adapter detects devices, but refuses to pair them, it may indicate that the adapter is missing firmware. Strangely enough the adapter is detected by the system and kernel driver and appears as if it was working fine, while actually not being able to function properly.
To fix the problem make sure the necessary firmware files are installed:
root #
emerge --ask sys-kernel/linux-firmware
When using an initrd it may be also necessary to copy them to the ramdisk.
Suspend does not work
This laptop lacks support for classic S3 suspend and exclusively uses the newer S2idle state (a.k.a. modern suspend). Unfortunately this mode is poorly supported by the Linux kernel as of this time (kernel 5.18), especially for AMD hardware.
This means that the laptop either fails to enter suspend or has problems resuming from it.