HP Spectre x360 (2015)

From Gentoo Wiki
Jump to: navigation, search

Installation

The 2016-07-04 LiveDVD boots successfully and supports most of the hardware.

Linux Configuration

While the Linux 4.5.2 kernel from the LiveDVD can get things started, here are some more customized configs:

Storage

Samsung Electronics Co Ltd Device a802 (rev 01) (prog-if 02 [NVM Express])

KERNEL
Device Drivers  --->
        <*> NVM Express block device

For details see NVMe

Video

Intel Corporation Sky Lake Integrated Graphics (rev 07) (prog-if 00 [VGA controller])

KERNEL
Device Drivers  --->
        Graphics support  --->
            <*> /dev/agpgart (AGP Support)  --->
                <*>   Intel 440LX/BX/GX, I8xx and E7x05 chipset support
            <*> Intel 8xx/9xx/G3x/G4x/HD Graphic

For details see Intel article.

Wireless

Intel Corporation Wireless 7265 (rev 61)

KERNEL
Device Drivers  --->
        [*] Network device support  --->
            [*]   Wireless LAN  --->
                  <M>     Intel Wireless WiFi Next Gen AGN - Wireless-N/Advanced-N/Ultimate-N (iwlwifi)
                  <M>       Intel Wireless WiFi MVM Firmware support

See the iwlwifi article for more information as this laptop does suffer from not being able to connect to some access points without disabling 802.11n and enabling software crypto.

Audio

Intel Corporation Device 9d70 (rev 21)

KERNEL
Device Drivers  --->
        <*> Sound card support  --->
            <*>   Advanced Linux Sound Architecture  --->
                  HD-Audio  --->
                      <*> HD Audio PCI
                  (2048) Pre-allocated buffer size for HD-audio driver

Bluetooth

KERNEL
-*- Networking support  --->
        <*>   Bluetooth subsystem support  --->
                  Bluetooth device drivers  --->
                  [*]   Intel AG6XX protocol support

For details see Bluetooth

Card Reader

Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)

KERNEL
Device Drivers  --->
            Multifunction device drivers  --->
                <*> Realtek PCI-E card reader

Touchscreen

KERNEL
Device Drivers  --->
            HID support  --->
                    Special HID drivers  --->
                        <M> HID Multitouch panels

Accelerometer

KERNEL
Device Drivers  --->
        <*> Industrial I/O support  --->
                    Accelerometers  --->
                        <*> HID Accelerometers 3D

Unknown keys

Brightness keys

Depending on the bios revision, the screen brightness keys may or may not be assigned to the XF86MonBrightnessUp or XF86MonBrightnessDown key symbols. Correct ACPI events can still be thrown even if the key symbols are not assigned.

The x11-apps/xbacklight or dev-libs/light packages provides tools for helping adjust the screen brightness.

The following messages are captured by xev (x11-apps/xev) indicating that the brightness keys are throwing key codes, if not key symbols.

This the is F2 key to decrease screen brightness:

 kernel: atkbd serio0: Unknown key pressed (translated set 2, code 0xab on isa0060/serio0).
 kernel: atkbd serio0: Use 'setkeycodes e02b <keycode>' to make it known.


This is from the F3 key to increase screen brightness:

 atkbd serio0: Unknown key pressed (translated set 2, code 0xab on isa0060/serio0).
 atkbd serio0: Use 'setkeycodes e02b <keycode>' to make it known.

Custom ACPI (sys-power/acpid) rules can be written to capture BRTDN and BRTUP actions. An example is given on Unix & Linux Stack Exchange.

Tablet vs Laptop mode

When opening the lid for tablet mode, the following key code is emitted:

 intel-vbtn INT33D6:00: unknown event index 0xcc
 atkbd serio0: Unknown key pressed (translated set 2, code 0xd8 on isa0060/serio0).
 atkbd serio0: Use 'setkeycodes e058 <keycode>' to make it known.

When returning to laptop mode from tablet mode, the following key code is emitted:

 intel-vbtn INT33D6:00: unknown event index 0xcd
 atkbd serio0: Unknown key pressed (translated set 2, code 0xd7 on isa0060/serio0).
 atkbd serio0: Use 'setkeycodes e057 <keycode>' to make it known.

ACPI events are also thrown in addition to the above key codes when the lid is opened far enough and closed back far enough, resp:

 video/tabletmode TBLT 0000008A 00000001
 video/tabletmode TBLT 0000008A 00000000