summarylogtreecommitdiffstats
path: root/nvbroadcast.install
blob: c80cca7684de1c0e6b1bf69f590106ef604803bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
post_install() {
  cat << EOF
==> NVIDIA Broadcast (nvbroadcast) installed

  v4l2loopback is configured for auto-load at boot
  (/usr/lib/modprobe.d/nvbroadcast.conf, /usr/lib/modules-load.d/nvbroadcast.conf).

  To load now without rebooting:
    sudo modprobe v4l2loopback devices=1 video_nr=10 \
      card_label="NVIDIA Broadcast" exclusive_caps=1 max_buffers=4

  To override the v4l2loopback options, copy the config to /etc/modprobe.d/
  and edit:
    sudo cp /usr/lib/modprobe.d/nvbroadcast.conf /etc/modprobe.d/

  Headless virtual-camera service (per-user):
    systemctl --user enable --now nvbroadcast-vcam.service

  Launch: nvbroadcast
EOF
}

post_upgrade() {
  post_install
}

pre_remove() {
  :
}