fix lid close, other improvements
[automated-distro-installer] / fai / config / scripts / IANK / 11-iank
index 5245b35ae7a210dd1bf4733f61a86d4f2dfe417f..262e5599e439e51ed6235ffa57ed5d996004c0da 100755 (executable)
@@ -28,6 +28,8 @@ fcopy -riB /boot
 # this is also done by FAIBASE/10-misc by default (without B)
 fcopy -riB /usr/local/bin
 
+fcopy -riB /etc/apt/logind.conf.d
+
 # this gets done by fai, but just happens too often that
 # I add sources due to new distros, whatever.
 fcopy -riB /etc/apt/preferences.d
@@ -143,7 +145,9 @@ esac
 # xorg stopped load nouveau
 #  https://www.linuxquestions.org/questions/slackware-14/kernel-modules-conflicting-with-nouveau-driver-4175623867/
 # https://nouveau.freedesktop.org/InstallNouveau.html
-if lspci|grep -q 'GeForce GTX 6[0-9][0-9]\]'; then
+# And now in t11, things got worse with a newer card also not loading
+# nouveau when it did in t10.
+if lspci|grep -q 'VGA compatible controller: NVIDIA'; then
   mkdir -p $target/etc/X11/xorg.conf.d/
   cat >$target/etc/X11/xorg.conf.d/10-nouveau.conf <<'EOF'
 Section "Device"