home · contact · privacy
Improve w530 setup.
[config] / bookworm / setup_scripts / setup_desktop.sh
index f265697f17c33726a7461019eb3e214deb27ec70..4b5a554f183f2f1c072f3061fdcf2b6720666994 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh
 set -e
+set -x
 debian_version="bookworm"
 legal_system_names="x220 w530"
 
@@ -25,3 +26,18 @@ config_tree_prefix="${HOME}/config/${debian_version}"
 setup_scripts_dir="${config_tree_prefix}/setup_scripts"
 cd "${setup_scripts_dir}"
 ./setup.sh "${system_name}" "" user desktop thinkpad "${system_name}"
+
+if [ "$system_name" = "w530" ]; then
+    cd
+    git clone https://github.com/NVIDIA/open-gpu-kernel-modules
+    cd open-gpu-kernel-modules
+    git checkout 337e28e
+    make modules -j($nproc)
+    make modules_install
+    cd
+    driver_version=535.86.05
+    runscript=NVIDIA-Linux-x86_64-${driver_version}.run
+    wget https://us.download.nvidia.com/XFree86/Linux-x86_64/${driver_version}/${runscript}
+    chmod u+x ${runscript} 
+    ./${runscript} --no-kernel-modules
+fi