This is pretty much a copy of XPS 9370, without kaby-laky and the throttle bug. I was getting lockups with the kaby-laky changes and the throttle bug did not seem to have an impact either way.wip-nanopi-m4v2
| @@ -1,5 +1,6 @@ | |||||
| beagleboard/pocketbeagle @yegortimoshenko | beagleboard/pocketbeagle @yegortimoshenko | ||||
| dell/xps/13-9370 @moredread | dell/xps/13-9370 @moredread | ||||
| dell/xps/13-9380 @kalbasit | |||||
| lenovo/thinkpad/x230 @makefu @yegortimoshenko | lenovo/thinkpad/x230 @makefu @yegortimoshenko | ||||
| lenovo/thinkpad/x250 @Mic92 | lenovo/thinkpad/x250 @Mic92 | ||||
| pcengines/apu @yegortimoshenko | pcengines/apu @yegortimoshenko | ||||
| @@ -31,6 +31,7 @@ imports = [ | |||||
| | [Apple MacBook Pro 10,1][] | `<nixos-hardware/apple/macbook-pro/10-1>` | | | [Apple MacBook Pro 10,1][] | `<nixos-hardware/apple/macbook-pro/10-1>` | | ||||
| | Apple MacBook Pro 12,1 | `<nixos-hardware/apple/macbook-pro/12-1>` | | | Apple MacBook Pro 12,1 | `<nixos-hardware/apple/macbook-pro/12-1>` | | ||||
| | BeagleBoard PocketBeagle | `<nixos-hardware/beagleboard/pocketbeagle>` | | | BeagleBoard PocketBeagle | `<nixos-hardware/beagleboard/pocketbeagle>` | | ||||
| | [Dell XPS 13 9380][] | `<nixos-hardware/dell/xps/13-9380>` | | |||||
| | [Dell XPS 13 9370][] | `<nixos-hardware/dell/xps/13-9370>` | | | [Dell XPS 13 9370][] | `<nixos-hardware/dell/xps/13-9370>` | | ||||
| | [Dell XPS 15 9550][] | `<nixos-hardware/dell/xps/15-9550>` | | | [Dell XPS 15 9550][] | `<nixos-hardware/dell/xps/15-9550>` | | ||||
| | [Inverse Path USB armory][] | `<nixos-hardware/inversepath/usbarmory>` | | | [Inverse Path USB armory][] | `<nixos-hardware/inversepath/usbarmory>` | | ||||
| @@ -59,6 +60,7 @@ imports = [ | |||||
| [Acer Aspire 4810T]: acer/aspire/4810t | [Acer Aspire 4810T]: acer/aspire/4810t | ||||
| [Apple MacBook Pro 10,1]: apple/macbook-pro/10-1 | [Apple MacBook Pro 10,1]: apple/macbook-pro/10-1 | ||||
| [Dell XPS 13 9380]: dell/xps/13-9380 | |||||
| [Dell XPS 13 9370]: dell/xps/13-9370 | [Dell XPS 13 9370]: dell/xps/13-9370 | ||||
| [Dell XPS 15 9550]: dell/xps/15-9550 | [Dell XPS 15 9550]: dell/xps/15-9550 | ||||
| [Inverse Path USB armory]: inversepath/usbarmory | [Inverse Path USB armory]: inversepath/usbarmory | ||||
| @@ -0,0 +1,9 @@ | |||||
| = Dell XPS 13 9380 = | |||||
| == 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. | |||||
| 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 | |||||
| @@ -0,0 +1,14 @@ | |||||
| { lib, pkgs, ... }: | |||||
| { | |||||
| imports = [ | |||||
| ../../../common/pc/laptop | |||||
| ../../../common/pc/laptop/acpi_call.nix | |||||
| ]; | |||||
| # Force S3 sleep mode. See README.wiki for details. | |||||
| boot.kernelParams = [ "mem_sleep_default=deep" ]; | |||||
| # touchpad goes over i2c | |||||
| boot.blacklistedKernelModules = [ "psmouse" ]; | |||||
| } | |||||
| @@ -31,6 +31,7 @@ in | |||||
| apple-macbook-pro-11-5 = buildProfile ./apple/macbook-pro/11-5; | apple-macbook-pro-11-5 = buildProfile ./apple/macbook-pro/11-5; | ||||
| apple-macbook-pro-12-1 = buildProfile ./apple/macbook-pro/12-1; | apple-macbook-pro-12-1 = buildProfile ./apple/macbook-pro/12-1; | ||||
| dell-xps-13-9380 = buildProfile ./dell/xps/13-9380; | |||||
| dell-xps-13-9370 = buildProfile ./dell/xps/13-9370; | dell-xps-13-9370 = buildProfile ./dell/xps/13-9370; | ||||
| dell-xps-15-9550 = buildProfile ./dell/xps/15-9550; | dell-xps-15-9550 = buildProfile ./dell/xps/15-9550; | ||||