Skip to content

Commit 45a9ca6

Browse files
committed
Merge branch 'master' of github.com:AgenttiX/linux-scripts
2 parents 1546ab7 + 2c76a35 commit 45a9ca6

File tree

4 files changed

+55
-3
lines changed

4 files changed

+55
-3
lines changed

.profile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,6 @@ fi
3636
if [ -f "${HOME}/.ssh-agent-info" ]; then
3737
eval "$(<"${HOME}/.ssh-agent-info")" > /dev/null
3838
fi
39+
40+
export NVM_DIR="$HOME/.nvm"
41+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm

drivers/install_cuda.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ fi
2727
apt-get update
2828
# https://www.reddit.com/r/linux_gaming/comments/1dnccoq/ubuntu_2404_wayland_on_nvidia_troubleshoot_guide/
2929
# https://askubuntu.com/questions/1514352/ubuntu-24-04-with-nvidia-driver-libegl-warning-egl-failed-to-create-dri2-scre
30-
apt-get install cuda nvidia-container-toolkit libnvidia-egl-wayland1
30+
apt-get install cuda nvidia-container-toolkit # libnvidia-egl-wayland1

git/config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
[pager]
2525
diff = delta
2626
# diff = diff-so-fancy | less -RFX #--tabs=8
27-
[pull]
28-
rebase = true
27+
# [pull]
28+
# rebase = true
2929

3030

3131
# -----

startup/agx_startup.py

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,55 @@ class ALPM_LevelOptions(enum.Enum):
152152
# Nvidia MX 150
153153
"/sys/bus/pci/devices/0000:01:00.0",
154154
],
155+
# ThinkPad L14 Gen 5
156+
"21L2S0V400": [
157+
# Intel DTT
158+
"/sys/bus/pci/devices/0000:00:04.0/power/control",
159+
# Intel GNA
160+
"/sys/bus/pci/devices/0000:00:08.0/power/control",
161+
# Intel IPMT
162+
"/sys/bus/pci/devices/0000:00:0a.0/power/control",
163+
# Intel NPU
164+
"/sys/bus/pci/devices/0000:00:0b.0/power/control",
165+
# Wi-Fi
166+
"/sys/bus/pci/devices/0000:00:14.3/power/control",
167+
# Audio
168+
"/sys/bus/pci/devices/0000:00:1f.3/power/control",
169+
# Thunderbolt 4
170+
"/sys/bus/pci/devices/0000:00:07.0/power/control",
171+
"/sys/bus/pci/devices/0000:00:0d.3/power/control",
172+
# Ethernet
173+
"/sys/bus/pci/devices/0000:49:00.0/power/control",
174+
175+
# Intel PCI
176+
"/sys/bus/pci/devices/0000:00:14.2/power/control",
177+
"/sys/bus/pci/devices/0000:00:1f.0/power/control",
178+
"/sys/bus/pci/devices/0000:00:1f.6/power/control",
179+
"/sys/bus/pci/devices/0000:00:1c.0/power/control",
180+
"/sys/bus/pci/devices/0000:00:1c.4/power/control",
181+
"/sys/bus/pci/devices/0000:00:00.0/power/control",
182+
183+
# I2C
184+
"/sys/bus/pci/devices/0000:00:15.0/power/control",
185+
"/sys/bus/i2c/devices/i2c-1/device/power/control",
186+
"/sys/bus/i2c/devices/i2c-3/device/power/control",
187+
188+
# SPI
189+
"/sys/bus/pci/devices/0000:00:1f.5/power/control",
190+
191+
# NVMe SSD
192+
"/sys/bus/pci/devices/0000:04:00.0/power/control"
193+
194+
# ThinkPad Thunderbolt 4 dock
195+
"/sys/bus/usb/devices/1-1.1/power/control",
196+
"/sys/bus/usb/devices/1-1.4.4.4/power/control",
197+
198+
# Lenovo USB keyboard
199+
"/sys/bus/usb/devices/1-1.4.4.1/power/control",
200+
201+
# USB mouse
202+
# "/sys/bus/usb/devices/1-1.4.4.2.4/power/control",
203+
],
155204
# ThinkPad S230u
156205
"334729G": [
157206
# I2C

0 commit comments

Comments
 (0)