Skip to content

Commit db7076a

Browse files
AndreasZacchiMic92
authored andcommitted
add asus-zenbook-ux481
1 parent daaae13 commit db7076a

File tree

6 files changed

+413
-306
lines changed

6 files changed

+413
-306
lines changed

Diff for: README.md

+308-306
Large diffs are not rendered by default.

Diff for: asus/zenbook/ux481/README.md

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Asus Zenbook Duo 14 UX481
2+
3+
These profiles has been tested on a slightly modified device as I have swapped the Intel Optane NVME for a Kingston NVME with a higher capacity.
4+
5+
# GPU
6+
7+
You need to pick between running only Intel iGPU or running both Intel iGPU and NVIDIA dGPU. By only running iGPU the battery life is a bit better as the dGPU is turned off. You can offload applications if running on NVIDIA dGPU using
8+
9+
```bash
10+
nvidia-offload
11+
```
12+
13+
## Battery charging limit:
14+
15+
Using the ASUS module you can limit the charging percentage. This can be done as follows:
16+
17+
```nix
18+
hardware.asus.battery =
19+
{
20+
chargeUpto = 90; # Maximum level of charge for your battery, as a percentage.
21+
enableChargeUptoScript = true; # Whether to add charge-upto to environment.systemPackages. `charge-upto 100` temporarily sets the charge limit to 100%, useful if you're going to need the extra battery on a longer journey.
22+
};
23+
```
24+
25+
## Hardware:
26+
27+
```bash
28+
$ lspci -nn
29+
00:00.0 Host bridge [0600]: Intel Corporation Comet Lake-U v1 4c Host Bridge/DRAM Controller [8086:9b61] (rev 0c)
30+
00:02.0 VGA compatible controller [0300]: Intel Corporation CometLake-U GT2 [UHD Graphics] [8086:9b41] (rev 02)
31+
00:04.0 Signal processing controller [1180]: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem [8086:1903] (rev 0c)
32+
00:08.0 System peripheral [0880]: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model [8086:1911]
33+
00:12.0 Signal processing controller [1180]: Intel Corporation Comet Lake Thermal Subsytem [8086:02f9]
34+
00:14.0 USB controller [0c03]: Intel Corporation Comet Lake PCH-LP USB 3.1 xHCI Host Controller [8086:02ed]
35+
00:14.2 RAM memory [0500]: Intel Corporation Comet Lake PCH-LP Shared SRAM [8086:02ef]
36+
00:14.3 Network controller [0280]: Intel Corporation Comet Lake PCH-LP CNVi WiFi [8086:02f0]
37+
00:15.0 Serial bus controller [0c80]: Intel Corporation Serial IO I2C Host Controller [8086:02e8]
38+
00:15.1 Serial bus controller [0c80]: Intel Corporation Comet Lake Serial IO I2C Host Controller [8086:02e9]
39+
00:15.2 Serial bus controller [0c80]: Intel Corporation Comet Lake PCH-LP LPSS: I2C Controller #2 [8086:02ea]
40+
00:15.3 Serial bus controller [0c80]: Intel Corporation Device [8086:02eb]
41+
00:16.0 Communication controller [0780]: Intel Corporation Comet Lake Management Engine Interface [8086:02e0]
42+
00:1c.0 PCI bridge [0604]: Intel Corporation Comet Lake PCI Express Root Port #1 [8086:02b8] (rev f0)
43+
00:1c.4 PCI bridge [0604]: Intel Corporation Comet Lake PCI Express Root Port #5 [8086:02bc] (rev f0)
44+
00:1d.0 PCI bridge [0604]: Intel Corporation Comet Lake PCI Express Root Port #9 [8086:02b0] (rev f0)
45+
00:1d.4 PCI bridge [0604]: Intel Corporation Comet Lake PCI Express Root Port #13 [8086:02b4] (rev f0)
46+
00:1f.0 ISA bridge [0601]: Intel Corporation Comet Lake PCH-LP LPC Premium Controller/eSPI Controller [8086:0284]
47+
00:1f.3 Audio device [0403]: Intel Corporation Comet Lake PCH-LP cAVS [8086:02c8]
48+
00:1f.4 SMBus [0c05]: Intel Corporation Comet Lake PCH-LP SMBus Host Controller [8086:02a3]
49+
00:1f.5 Serial bus controller [0c80]: Intel Corporation Comet Lake SPI (flash) Controller [8086:02a4]
50+
02:00.0 3D controller [0302]: NVIDIA Corporation GP108BM [GeForce MX250] [10de:1d52] (rev a1)
51+
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader [10ec:522a] (rev 01)
52+
04:00.0 Non-Volatile memory controller [0108]: Kingston Technology Company, Inc. NV2 NVMe SSD [TC2200] (DRAM-less) [2646:501d]
53+
```

Diff for: asus/zenbook/ux481/intelgpu/default.nix

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{ lib, ... }:
2+
{
3+
imports = [
4+
../shared.nix
5+
../../../../common/gpu/intel/comet-lake
6+
../../../../common/gpu/nvidia/disable.nix # Disabling nvidia
7+
];
8+
}

Diff for: asus/zenbook/ux481/nvidia/default.nix

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{lib, ...}:
2+
{
3+
imports = [
4+
../shared.nix
5+
../../../../common/gpu/nvidia/pascal
6+
../../../../common/gpu/nvidia/prime.nix
7+
];
8+
9+
hardware.nvidia = {
10+
prime = {
11+
intelBusId = "PCI:0:2:0";
12+
nvidiaBusId = "PCI:2:0:0";
13+
};
14+
15+
dynamicBoost.enable = lib.mkForce false; # Dynamic boost is not supported on Pascal architeture
16+
};
17+
}

Diff for: asus/zenbook/ux481/shared.nix

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
config,
3+
lib,
4+
...
5+
}:
6+
{
7+
imports = [
8+
../../../common/cpu/intel/comet-lake/cpu-only.nix
9+
../../../common/pc/laptop
10+
../../../common/pc/laptop/ssd
11+
../../battery.nix
12+
];
13+
14+
boot.kernelParams = [
15+
# These options are needed for suspend to work,
16+
# otherwise the nvme will be mounted read-only on resume
17+
"pcie_aspm=off"
18+
"pcie_port_pm=off"
19+
"nvme_core.default_ps_max_latency_us=0"
20+
"mem_sleep_default=deep"
21+
];
22+
23+
services.thermald.enable = lib.mkDefault true;
24+
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
25+
}

Diff for: flake.nix

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
asus-rog-strix-x570e = import ./asus/rog-strix/x570e;
4545
asus-zenbook-ux371 = import ./asus/zenbook/ux371;
4646
asus-zenbook-ux535 = import ./asus/zenbook/ux535;
47+
asus-zenbook-ux481-intelgpu = import ./asus/zenbook/ux481/intelgpu;
48+
asus-zenbook-ux481-nvidia = import ./asus/zenbook/ux481/nvidia;
4749
asus-zephyrus-ga401 = import ./asus/zephyrus/ga401;
4850
asus-zephyrus-ga402 = import ./asus/zephyrus/ga402;
4951
asus-zephyrus-ga402x = import ./asus/zephyrus/ga402x;

0 commit comments

Comments
 (0)