Parcourir la source

dell/xps/13-9370: init

wip-nanopi-m4v2
André-Patrick Bubel il y a 8 ans
committed by Jörg Thalheim
Parent
révision
86cbb3256b
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: CA4106B8D7CC79FA
4 fichiers modifiés avec 35 ajouts et 0 suppressions
  1. +2
    -0
      README.md
  2. +1
    -0
      default.nix
  3. +16
    -0
      dell/xps/13-9370/README.wiki
  4. +16
    -0
      dell/xps/13-9370/default.nix

+ 2
- 0
README.md Voir le fichier

@@ -31,6 +31,7 @@ imports = [
| [Apple MacBook Pro 10,1][] | `<nixos-hardware/apple/macbook-pro/10-1>` |
| Apple MacBook Pro 12,1 | `<nixos-hardware/apple/macbook-pro/12-1>` |
| BeagleBoard PocketBeagle | `<nixos-hardware/beagleboard/pocketbeagle>` |
| [Dell XPS 13 9370][] | `<nixos-hardware/dell/xps/13-9370>` |
| [Dell XPS 15 9550][] | `<nixos-hardware/dell/xps/15-9550>` |
| [Inverse Path USB armory][] | `<nixos-hardware/inversepath/usbarmory>` |
| Lenovo IdeaPad Z510 | `<nixos-hardware/lenovo/ideapad/z510>` |
@@ -57,6 +58,7 @@ imports = [

[Acer Aspire 4810T]: acer/aspire/4810t
[Apple MacBook Pro 10,1]: apple/macbook-pro/10-1
[Dell XPS 13 9370]: dell/xps/13-9370
[Dell XPS 15 9550]: dell/xps/15-9550
[Inverse Path USB armory]: inversepath/usbarmory
[Lenovo ThinkPad X1 (6th Gen)]: lenovo/thinkpad/x1/6th-gen


+ 1
- 0
default.nix Voir le fichier

@@ -31,6 +31,7 @@ in
apple-macbook-pro-11-5 = buildProfile ./apple/macbook-pro/11-5;
apple-macbook-pro-12-1 = buildProfile ./apple/macbook-pro/12-1;

dell-xps-13-9370 = buildProfile ./dell/xps/13-9370;
dell-xps-15-9550 = buildProfile ./dell/xps/15-9550;

lenovo-thinkpad-t410 = buildProfile ./lenovo/thinkpad/t410;


+ 16
- 0
dell/xps/13-9370/README.wiki Voir le fichier

@@ -0,0 +1,16 @@
= Dell XPS 13 9370 =

== Battery drain when sleeping ==

The laptop uses the S2 sleep mode by default instead of S3, which leads to
draining a lot of battery during sleep.

Though this is intentional by the manufacturer and might cause lockups when
forced I - @moredread - never had any issues with it.

See https://wiki.archlinux.org/index.php/Dell_XPS_13_(9370)#Power_Management
and https://bugzilla.kernel.org/show_bug.cgi?id=199689#c3 for reference

== Additional resources ==

* Arch linux wiki: [https://wiki.archlinux.org/index.php/Dell_XPS_13_(9370) Dell XPS 13 9370]

+ 16
- 0
dell/xps/13-9370/default.nix Voir le fichier

@@ -0,0 +1,16 @@
{ lib, pkgs, ... }:

{
imports = [
../../../common/cpu/intel/kaby-lake
../../../common/pc/laptop
../../../lenovo/thinkpad/acpi_call.nix
../../../lenovo/thinkpad/cpu-throttling-bug.nix
];

# Force S3 sleep mode. See README.wiki for details.
boot.kernelParams = [ "mem_sleep_default=deep" ];

# touchpad goes over i2c
boot.blacklistedKernelModules = [ "psmouse" ];
}

Chargement…
Annuler
Enregistrer