b278c718ad
Linux Driver Management (aka LDM) allows easy configuration of different hardware. Currently this hook does GPU configuration on systems with multiple GPUs (aka Optimus/PRIME).
18 lines
307 B
Bash
Executable File
18 lines
307 B
Bash
Executable File
#!/bin/sh -efu
|
|
# initiate LDM hook on boot
|
|
|
|
cat << EOF > /etc/systemd/system/ldm.service
|
|
[Unit]
|
|
Description=Runs LDM configuration hooks
|
|
|
|
[Service]
|
|
ExecStart=/usr/bin/linux-driver-management configure gpu
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
|
|
[Install]
|
|
WantedBy=default.target
|
|
EOF
|
|
|
|
systemctl enable ldm.service
|