HP Envy x360 13z-ag000

From ArchWiki

This article or section does not follow the Laptop page guidelines.

Reason: Missing an Accessibility, Firmware and "Function keys" section. (Discuss in Talk:HP Envy x360 13z-ag000)

The HP Envy X360 13z-ag000 was released in 2018. It has variable processors/ram and displays, from a Ryzen Mobile 2300U to a 2700U, from 4GB RAM to 16GB RAM, and a 1080p display to a 4K display.

Hardware PCI/USB ID Working?
GPU 1002:15dd Yes
WiFi 10ec:b822 Yes
Bluetooth 0bda:b00b Yes
Audio 1022:15e3 Yes
Touchpad PS/2 Yes
Camera 04f2:b653 Yes
IR Camera 04f2:b654 Yes
Card reader 10ec:522a Untested
Sensors 1022:15e4 No

Installation

This laptop has Secure Boot enabled by default. To start the installer you need to disable it in the UEFI. Then you can just boot the installer in UEFI mode and just install like a normal UEFI system.

There appears to be an option to use your own Secure Boot keys.

Battery and Power Management

4 hour of battery life because of the 4K display.

Display, Video Card

The integrated Vega GPU works with the AMDGPU drivers. GDK_SCALE=2 is somewhat necessary for most applications.

Audio

The"Bang & Olufsen" top-soundbar is by default disabled. You can activate it by using the "hdajackretask" utility provided by alsa-tools. More information can be found in this thread: https://bugzilla.kernel.org/show_bug.cgi?id=189331

The exact pinout can be found in this attachment: https://bugzilla.kernel.org/attachment.cgi?id=282109&action=edit

   Options : [x] Show unconnected
             [ ] Set model  =  auto
             [X] Advanced ovveride
             [ ] Parser hints
   Pin ID; 0x14 
   [x] Override
   Connectivity : Jack; Location : Internal; Device : Speaker; Jack : Other Analog
   Color : Unknown; Jack detection : Not present; Channel group : 5; Channel : Front
   Pin ID: 0x17
   [X] Override
   Connectivity : Jack; Location : Internal; Device : Speaker; Jack : Other Analog
   Color : Unknown; Jack detection : Not present; Channel group : 5; Channel : Back

Note: that the top-soundbar only fires when using close to the max volume.

Touchscreen and Stylus

Kernel 4.19.5 or greater is needed. [1] [2]

The built in ELAN digitizer does not use the wacom driver by default, but it can be configured to do so. Switching to the wacom driver allows easier configuration of the digitizer and pen through tools like xsetwacom. This can be achieved with the following xorg configuration file:

/etc/X11/xorg.conf.d/99-ELAN-stylus.conf
Section "InputClass"
    Identifier "Elan driver override"
    MatchUSBID "04f3:*"
    MatchDevicePath "/dev/input/event*"
    MatchIsTablet "true"
    Driver "wacom"
EndSection

After a reboot xsetwacom should now correctly register the device.

$ xsetwacom --list devices
ELAN0732:00 04F3:262A stylus    	id: 13	type: STYLUS    
ELAN0732:00 04F3:262A eraser    	id: 18	type: ERASER

You can use xinput to probe the different devices and find out what actions get triggered by which buttons. For instance, the "wacom bamboo ink" pen triggers the eraser device while touching the screen while maintaining the second side button pressed.

$ xinput test $deviceID

The following simple example script will bind rightclick to the eraser device.

device=$(xsetwacom --list | grep -i "eraser" |  awk '{print $(NF-2)}') 
xsetwacom --set "$device" button 1 3

Orientation Sensor

No IIO sensors are enumerated as of 4.18-rc7, even with all possible IIO modules compiled. iio-sensor-proxy (from iio-sensor-proxy) returns no sensors detected.

Wireless Networking

Using the aspm=0 kernel parameter seems to prevent the card from dropping offline as much, but also worsens battery life.

Hard Drive

Built-in NVMe drive works with advertised speed. Blockdevices are located at /dev/nvme0n1p*.