HP Zbook Studio G5

From ArchWiki

Tango-edit-clear.pngThis article or section does not follow the Laptop page guidelines.Tango-edit-clear.png

Reason: Stub (Discuss in Talk:HP Zbook Studio G5)
Hardware PCI/USB ID Working?
Touchpad Yes
Keyboard Partial
Webcam 05c8:0808 Yes
Backlight Yes
Bluetooth 8087:0aaa Yes
SD-Card slot 10ec:525a Yes
Audio 8086:a348 Yes
HDMI audio 10de:0fb9 Yes
Wireless 8086:a370 Yes
Fingerprint reader 138a:00ab No

The HP Zbook Studio G5 is a workstation replacement laptop.

Configuration

Thunderbolt

Since the Zbook does not allow a no security option for Thunderbolt in the BIOS, a Thunderbolt manager has to be installed see bolt.

Graphics

Nouveau

This laptop works out of the box with nouveau graphics from the latest kernel, including HDMI audio. The performance is worse than with Nvidia drivers, which is especially noticeable in video decoding. Frames might get dropped when trying to stream 1080p videos, depending on the bitrate. The biggest issue, though, is that when the laptop has been connected to an external monitor, the shutdown does not complete and you have to force shutdown.

Nvidia drivers

The proprietary Nvidia drivers work flawlessly on this laptop. This driver also has better performance than the nouveau driver, but for Wayland users using this driver is not an option (yet).

BIOS settings

In the BIOS you can choose between three different modes: "Discrete", "Hybrid" and "UMA graphics" (Intel Graphics), referring to which GPU('s) to turn on. The option "Hybrid" works well, but if you are experiencing issues with graphics performance you can try setting the "Discrete" option to disable the integrated GPU. This does come at the expense of the battery life.

External monitors

The HDMI port is routed to the Nvidia GPU and the internal display is routed to the internal Intel GPU. To use the HDMI output the Nvidia driver or nouveau has to be installed. There are two ways to use the USB-C ports as display outputs:

  • Disable the Nvidia graphics in the BIOS setup (Advanced > Built-in device options > Graphics > UMA graphics). This allows the user to use the USB-C port as display output without the Nvidia graphics and without additional configuration. The HDMI port will be disabled in this mode.
  • Use the "Hybrid" setting in the BIOS and configure Bumblebee as described below. This method allows the user to either use the HDMI port or the USB-C ports for display output purposes.

Bumblebee

To make use of both the onboard graphics and the Nvidia GPU, install bumblebee (and add user to bumblebee user group and start bumblebeed.service). For an output on the ports connected to the Nvidia chip, the chip always needs to be powered on. To do this change the following options:

/etc/bumblebee/bumblebee.conf
KeepUnusedXServer=true
[driver-nvidia]
PMMethod=none

This prevents the NVIDIA chip from powering off after turning on. Next edit the following:

/etc/xorg.conf.d/20-nvidia.conf
    Section "Device"
        Identifier "Nvidia Card"
        Driver "nvidia"
        Option "AutoAddDevices" "true"
        Option "UseEDID" "true"
        Option "AllowEmptyInitialConfiguration"
        #Option "UseDisplayDevice" "none"
    EndSection

Next a virtual output needs to be added to the Intel GPU. Edit or create an entry for the Intel GPU:

/etc/X11/xorg.conf.d/20-intel.conf
    Section "Device"
        Identifier "intelgpu0"
        Driver "intel"
        Option "VirtualHeads" "1"
    EndSection

That is all the configuration, now to enable external monitor:

 $ optirun true
 $ intel-virtual-output

It is recommended to put this in a script and create a desktop entry or similar to quickly enable the external display(s).

Troubleshooting

CPU throttling down under load

If your CPU throttles down under high load without reaching critical temperatures (e.g. >95°C) and you are absolutely sure the laptop is not overheating, install the throttled package by erpalma on GitHub. Start/enable lenovo_fix.service.

This service overrides the package power limit every 5 seconds (30 on battery) by overriding default values in MSR and MCHBAR. A static fix for this problem has not been tested thoroughly. The default configuration works fine, refer to the GitHub page for more information.

Framerate drops to 1 fps on discrete graphics

Refer to the Bumblebee troubleshooting page.

Framerate drops to 1 fps when using external display

In certain applications, eg. Discord, Zoom and Steam, the fps drops to an unusable level when connected to an external display. This is an issue with vsync not working correctly. Try to disable vsync on the intgrated GPU. If that does not work you can try to disable vsync on the dGPU.

Microphone not detected

If your internal microphone is not detected on boot you can force pulseaudio to detect it. See microphone not detected by Pulseaudio.

Brightness keys do not work

On some BIOS versions some of your functions keys, namely the brightness up, down and microphone mute keys, produce identical scan codes. You can try to update your BIOS to fix this. See [1] for the bug report. If this does not work you can try to perform a power reset (see [2]). This problem seems to be related to the HP Hotkey Service in Windows, that changes how the keys are handled (see [3]), so after you boot to Windows it might reappear.

No sound output from two front speakers

Out of the box there is no sound output from the two front speakers. To solve this, use hdajackretask and change the following: Under codec "Conexant CX11970", press "Show unconnected pins", and change for pin "0x17" the status to "Override" and set "Internal speaker (LFE)". Then press "Install boot override" and reboot. After this, specify "Analog Surround 4.0 Output" in sound settings.