Article 5CDFK Can't figure out how to load v4l2loopback module with options at startup

Can't figure out how to load v4l2loopback module with options at startup

by
TheJooomes
from LinuxQuestions.org on (#5CDFK)
I'm using Fedora 33 Workstation.

According to the readme on the v4l2loopback github, this can be done by making the file "/etc/modules-load.d/v4l2loopback.conf" and making it contain "options v4l2loopback video_nr=2". That didn't work, the module simply didn't start. Manually starting it with "modprobe v4l2loopback video_nr=2" works just fine. As per the arch wiki, I put "v4l2loopback.video_nr=2" on the "GRUB_CMDLINE_LINUX_DEFAULT=" line, right along side "rhgb quiet". I then updated grub, and it still won't start the module automatically.

/etc/modules-load.d/v4l2loopback.conf:
Code:options 4l2loopback video_nr=2/etc/default/grub:
Code:RUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rhgb quiet v4l2loopback.video_nr=2"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=trueCould someone please help me get this module to start automatically at boot with the option video_nr=2 set?latest?d=yIl2AUoC8zA latest?i=YinYeGfCxQY:TwsyJETJpnI:F7zBnMy latest?i=YinYeGfCxQY:TwsyJETJpnI:V_sGLiP latest?d=qj6IDK7rITs latest?i=YinYeGfCxQY:TwsyJETJpnI:gIN9vFwYinYeGfCxQY
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments