Debian 9.2 runs quite smoothly on ZBook 15 G4 Workstation

## Functionality

What works: nearly everything (tested: sound, camera, suspend, lid-close, 3D)
What does not work (at least as fast as I tried it) but has an easy fix:
 1. non-uefi
 2. hybrid graphics mode

To fix the problems:
 1. Force UEFI during installation (I was asked during the installation to force UEFI)
    Saying no, I got a "DiskError No Operating System found" after the installer rebooted
 2. bumblebee/primus did not work? (did not invest much time, I saw a black screen after login, no hdmi), so
    I changed the option for the graphic cards in UEFI/BIOS:
    - Advanced
    - Built-in Device Options
    - Graphics: from "Auto" -> "Discrete Graphics"
    You can use intel, nouveau, or nvidia driver
    intel seems to not support external hdmi (Debian 9)
    nouveau did not support external hdmi (Debian 9)
    In Linux Mint, nouveau supported external hdmi, but had some glinches in redrawing the screen
    Tried again at 07.02.2019 with Bumblebee Version 3.2.1, NVidia 390.87-6~bpo9+1, Kernel 4.19
      see https://wiki.debian.org/Bumblebee#Installation
      switch in BIOS to "Hybride Graphics" -> freezes at bootup; fix see
      https://unix.stackexchange.com/questions/321151/do-not-manage-to-activate-hdmi-on-a-laptop-that-has-optimus-bumblebee/321276
      GRUB_CMDLINE_LINUX_DEFAULT="quiet blacklist.nouveau=1 i915.modeset=1 gfxpayload=640x480 acpi_backlight=vendor acpi_osi=! acpi_osi=\"Windows 2009\""
      in /etc/default/grub
    And it worked and it pays off: up to 16h Batterylife. Only drawback:
    https://github.com/Bumblebee-Project/Bumblebee/issues/1029
3. External Monitors, see: https://wiki.archlinux.org/index.php/HP_Zbook_Studio_G5


What does not work, (currently) without fix:
 1. Docking Station seems to be problematic
 2. Gets quite loud when GPU/CPU is under stress (otherwise very silent)
 3. strange noise from soundspeaker when restarting (some capacitor still charged?)
 4. fn buttons do not work (tested with xfce)
    - brightness control shows current %, but does not change anything
      - might be nvidia 384.90 problem
        https://devtalk.nvidia.com/default/topic/539462/linux/-nvidia-319-12-brightness-controls-not-working-on-laptop-ubuntu-13-03-/5
      - proposed fix with nvidia_drm module parameter modeset=1 does not work
      - proposed fix with "EnableBrightnessControl" in xorg.conf does not work
      - installing acpi-support does not work
      - what works is nvidia-settings -n -a BacklightBrightness=X (where X is a value from 0 to 100)
      - acpi_listen also detects the events, so it is only a matter of configuration ;)
    - sleep does nothing (workaround: close lid or by menu/command)

## Logs

Some "ACPI Error" are reported (also with 4.12 kernel)


## Firmware

- firmware-iwlwifi (to make wifi work)
- firmware-misc-nonfree (to make a warning about intel i915 go away, did not see a functional difference)


## Links/Other Info


ZBook 15 G4 Workstation
 + official linux support (hp_linux_matrix.pdf)
  - https://forum.ubook.at/thread/3538-linux-auf-dem-zbook-15u-g4/?postID=33641#post33641
  - Kaby Lake Update (BIOS update notwendig? Ubuntu geht dann)
 + battery
  - web surfing at 100 nits, it lasted just 4 hours and 33 https://www.laptopmag.com/reviews/laptops/hp-zbook-15-g4
  + fast charge (50% in 30min)
  + up to 18h battery time, At around 9 hours daily use, https://www.notebookcheck.net/HP-ZBook-15-G4-Xeon-Quadro-M2200-Full-HD-Workstation-Review.256708.0.html
  + up to 11h watching lord of the rings http://www.computershopper.com/laptops/reviews/hp-zbook-15-g4/(page)/2#review-body
 + NVIDIA Quadro M2200, 4 GB (does not share main memory), support since 378.13, debian stretch libgl1-nvidia-glx
 + CPU EliteBook: +11% faster than EliteBook +16% multi-core; +23% multi-core fp  http://cpu.userbenchmark.com/Compare/Intel-Core-i7-7700HQ-vs-Intel-Core-i7-3740QM/m211019vsm2919
 + CPU Vergleich T470s: +47%, +100% multi-core http://cpu.userbenchmark.com/Compare/Intel-Core-i7-7700HQ-vs-Intel-Core-i5-7300U/m211019vsm223355
 Info (german): https://www.golem.de/news/zbook-g4-hp-stellt-grafiker-workstations-fuer-unterwegs-vor-1704-127566.html
 ? P5Q58AA ZBook 15 TB3 Docking Station 150W (might not work)
 - Installation for newer Nvidia drivers: https://wiki.debian.org/NvidiaGraphicsDrivers#Building_newer_releases_from_SVN

Fr Jul 30 13:54:24 CEST 2021
patent_button.gif valid-html401.png elektra.jpg fsfe-logo.png valid-css.png vim.gif anybrowser.gif