From 2fec073a8675cd315de4f38db8a4b9c3f0ffd567 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Fri, 30 Jun 2023 11:23:51 +0200 Subject: [PATCH] i915.service: Add After we disabled autoloading of i915 to avoid loosing the startup console on an nvidia card, we need to load it manually. Add service to do so. --- install.sh | 1 + misc_systemd_units/i915.service | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 misc_systemd_units/i915.service diff --git a/install.sh b/install.sh index 20fc226..01c2993 100755 --- a/install.sh +++ b/install.sh @@ -267,6 +267,7 @@ install_data mxrouter/mxrouter.service "$DESTDIR$systemdunitd install_data misc_systemd_units/wait-network-online.service \ "$DESTDIR$systemdunitdir/wait-network-online.service" install_data misc_etc_files/modprobe.d/disable-i915.conf "$DESTDIR$sysconfdir/modprobe.d/disable-i915.conf" +install_data misc_systemd_units/i915.service "$DESTDIR$systemdunitdir/i915.service" postinstall exit diff --git a/misc_systemd_units/i915.service b/misc_systemd_units/i915.service new file mode 100644 index 0000000..419a2e0 --- /dev/null +++ b/misc_systemd_units/i915.service @@ -0,0 +1,10 @@ +[Unit] +After=getty-pre.target + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=modprobe -C /dev/null i915 + +[Install] +WantedBy=multi-user.target