HP Zbook Studio G5
The HP Zbook Studio G5 is a workstation replacement laptop.
Since the Zbook does not allow a no security option for Thunderbolt in the bios, a thunderbolt manager has to be installed see.
This laptop works out of the box with nouveau graphics from the latest kernel, including HDMI audio. The performance is 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.
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).
In the bios you can choose between three different modes: "Discrete", "Hybrid" and "Integrated", referring to which GPU('s) to turn on. The default of "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.
All external displays are routed to the Nvidia gpu. The internal display is routed to the internal Intel gpu therefore, Nvidia drivers or nouveau has to be installed to use external displays.
To make use of both the onboard graphics and the Nvidia gpu, install bumblebee (and add user to bumblebee group and systemctl 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 in bumblebee.conf file in /etc/bumblebee.
This prevents the nvidia chip from powering off after turning on. Next in xorg.conf.nvidia edit the following:
Option "AutoAddDevices" "true"
Option "UseEDID" "true" Option "AllowEmptyInitialConfiguration" #Option "UseDisplayDevice" "none"
Next a virtual output needs to be added to the intel gpu. Change to the /etc/X11/xorg.conf.d folder and edit or create an entry for the intel gpu (e.g. 20-intel.conf).
Section "Device" Identifier "intelgpu0" Driver "intel" Option "VirtualHeads" "1" EndSection
Thats all the configuration, now to enable external monitor:
$ optirun true $ intel-virtual-output
- Recommended to put this in a script and create a desktop entry or similar to quickly enable the external display(s).
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 erpalma on GitHub. Start and enable the servicepackage by
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  for the bug report. If this does not work you can try to perform a power reset (see ). This problem seems to be related to the HP Hotkey Service in Windows, that changes how the keys are handled (see ), so after you boot to Windows it might reappear.