Skip to content

Commit

Permalink
i915.service: Add
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
donald committed Jul 4, 2023
1 parent ec038cd commit 2fec073
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 10 additions & 0 deletions misc_systemd_units/i915.service
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2fec073

Please sign in to comment.