1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-23 11:29:42 +01:00
nixos-hardware/microsoft/surface
2021-08-25 16:57:46 +12:00
..
firmware/surface-go/ath10k Fix outputHash 2021-08-25 16:57:46 +12:00
kernel linux_surface 5.10.19->5.13.4 2021-08-02 13:34:29 -05:00
default.nix surface: add iptsd 2021-05-27 18:41:26 +00:00
hardware_configuration.nix Move a modprobe option for Surface Go Wifi device (ath10k) into that specific derivative 2021-02-23 17:59:34 +13:00
README.md Merge branch 'master' into surface-control 2021-03-17 15:45:28 -04:00
repos.nix linux_surface 5.10.19->5.13.4 2021-08-02 13:34:29 -05:00
TODO.org Merge branch 'up/master' into microsoft/surface/firmware-surface-go 2021-03-06 22:18:02 +13:00

Derivatives for Microsoft Surface notebooks

These derivatives use the patches from the linux-surface repo.

Kernel

The kernel needs several patches to make it work correctly with some of the hardware on various Surface models, e.g. keyboard/trackpad, camera, wifi.

Not all hardware is fully supported, but the linux-surface feature matrix provides details on which devices are supported on which types of machine.

The kernel-specific derivations are under the kernel/ sub-directory. In order to simplify maintenance of the Nix code, only the most-recent kernel patch-set is expected to be maintained in this repo.

NOTE: Some built-in Kernel config items need to be set, that aren't set by default:

Firmware, Drivers and Support Tools

WiFi

For the Surface Go, please see the "Issues" sections below.

IPTS

IPTS is used on most of the Surface range, except for Surface Go and Surface Laptop 3 (AMD version).

Older kernels used specialised firmware which used a method that's no longer supported by the more-recent kernels.

Newer kernels use the kernel-space intel-precise-touch driver and user-space ipstd daemon.

The iptsd daemon works with the intel-precise-touch driver to convert raw touch data from the kernel-space driver into events for the HID / input sub-system.

DTX, surface-control

surface-control

For controlling the performance modes and other aspects of the device, the surface-control tool is included.

To be able to control the performance mode without using sudo, add your user to the surface-control group.

ToDo's Not Done

See: TODO.org

Issues

TLP daemon

TLP is known to cause problems on Surface unless correctly configured. See: https://github.com/linux-surface/linux-surface/blob/master/README.md

Wifi Firmware for Surface Go

On the Surface Go, the standard firmware from the official Linux Firmware repo has issues with the ath10k QCA6174 Wifi device. You will see messages like "Can't ping firmware".

The most effective fix to-date is to remove the board-2.bin file or replace it with a copy of the board.bin file.

The derivative in firmware/surface-go/ath10k/ can configure this, if you set the option config.hardware.microsoft-surface.firmware.surface-go-ath10k.replace to true.

NOTE: This is destructive, as it deletes all the board.bin and board-2.bin files for the ath10k QCA6174 device, and replaces them with KillerNetworking's version. This is the only way (currently) to force the driver to use the new firmware.

For more details, see: https://github.com/linux-surface/linux-surface/wiki/Surface-Go#wifi-firmware

NOTE: There's some work to patch the kernel to make it easier to override which firmware file to use for QCA6174, which would obviate this more-destructuve approach:

NOTE: There was an attempt to get this firmware incorporated into the aggregate board-2.bin, but (as of this writing) the request appears to have been ignored:

References: