DKMS modules not loading

When I install and load any DKMS module let’s just say v4l2loopback I first run sudo pamac install v4l2loopback-dkms and then run sudo modprobe v4l2loopback. Usually a modprobe takes a few seconds but when trying to load a DKMS module it takes forever. So I hit Ctrl+C and reboot then the reboot takes 1 minute on the “Loading Kernel Modules” which fails and then if I try to modprobe after a the reboot is complete it takes forever again. Here is
inxi --admin --verbosity=7 --filter --no-host --width

System:
  Kernel: 5.19.0-2-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.1.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.19-x86_64
    root=UUID=dae9727b-8cef-4e55-b5e1-9f5533258a08 rw quiet splash
    vt.global_cursor_default=0 udev.log_priority=3
  Console: pty pts/1 wm: kwin_x11 DM: SDDM Distro: Manjaro Linux
    base: Arch Linux
Machine:
  Type: Laptop System: HP product: HP Laptop 15-dw3xxx v: Type1ProductConfigId
    serial: <filter> Chassis: type: 10 serial: <filter>
  Mobo: HP model: 881D v: 50.29 serial: <filter> UEFI: Insyde v: F.54
    date: 05/11/2022
Battery:
  ID-1: BAT1 charge: 40.4 Wh (100.0%) condition: 40.4/41.0 Wh (98.4%)
    volts: 13.0 min: 11.3 model: Hewlett-Packard PABAS0241231 type: Li-ion
    serial: <filter> status: full
Memory:
  RAM: total: 7.51 GiB used: 3.33 GiB (44.3%)
  Array-1: capacity: 64 GiB slots: 2 EC: None max-module-size: 32 GiB
    note: est.
  Device-1: Bottom - Slot 1 (left) type: DDR4 detail: synchronous
    size: 8 GiB speed: 3200 MT/s volts: curr: 1.2 width (bits): data: 64
    total: 64 manufacturer: Micron Technology part-no: 8ATF1G64HZ-3G2R1
    serial: <filter>
  Device-2: Bottom - Slot 2 (right) type: no module installed
CPU:
  Info: model: 11th Gen Intel Core i3-1125G4 socket: U3E1 bits: 64
    type: MT MCP arch: Tiger Lake gen: core 11 built: 2020 process: Intel 10nm
    family: 6 model-id: 0x8C (140) stepping: 1 microcode: 0xA4
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 320 KiB desc: d-4x48 KiB; i-4x32 KiB L2: 5 MiB desc: 4x1.2 MiB L3: 8 MiB
    desc: 1x8 MiB
  Speed (MHz): avg: 884 high: 1200 min/max: 400/3700 base/boost: 2000/3700
    scaling: driver: intel_pstate governor: powersave volts: 0.7 V
    ext-clock: 100 MHz cores: 1: 644 2: 1200 3: 432 4: 488 5: 984 6: 1097
    7: 1139 8: 1088 bogomips: 31960
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 avx512_bitalg avx512_vbmi2
    avx512_vnni avx512_vp2intersect avx512_vpopcntdq avx512bw avx512cd
    avx512dq avx512f avx512ifma avx512vbmi avx512vl bmi1 bmi2 bts cat_l2
    cdp_l2 clflush clflushopt clwb cmov constant_tsc cpuid cpuid_fault cx16
    cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est f16c flexpriority
    flush_l1d fma fpu fsgsbase fsrm fxsr gfni ht hwp hwp_act_window hwp_epp
    hwp_notify hwp_pkg_req ibpb ibrs ibrs_enhanced ibt ida intel_pt invpcid
    invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe movdir64b
    movdiri msr mtrr nonstop_tsc nopl nx ospke pae pat pbe pcid pclmulqdq pdcm
    pdpe1gb pebs pge pku pln pni popcnt pse pse36 pts rdpid rdrand rdseed
    rdt_a rdtscp rep_good sdbg sep sha_ni smap smep split_lock_detect ss ssbd
    sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc
    tsc_adjust tsc_deadline_timer tsc_known_freq umip vaes vme vmx vnmi
    vpclmulqdq vpid x2apic xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel vendor: Hewlett-Packard driver: i915 v: kernel
    arch: Gen-12.1 process: Intel 10nm built: 2020-21 ports: active: eDP-1
    empty: DP-1, DP-2, DP-3, DP-4, HDMI-A-1 bus-ID: 0000:00:02.0
    chip-ID: 8086:9a78 class-ID: 0300
  Device-2: Quanta HP TrueVision HD Camera type: USB driver: uvcvideo
    bus-ID: 1-5:2 chip-ID: 0408:5365 class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.4 compositor: kwin_x11 driver: X:
    loaded: modesetting unloaded: fbdev alternate: vesa gpu: i915 display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: eDP-1 model: AU Optronics 0x3791 built: 2020 res: 1920x1080
    hz: 60 dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
    ratio: 16:9 modes: 1920x1080
  OpenGL: renderer: Mesa Intel UHD Graphics (TGL GT2) v: 4.6 Mesa 22.1.4
    direct render: Yes
Audio:
  Device-1: Intel Tiger Lake-LP Smart Sound Audio vendor: Hewlett-Packard
    driver: sof-audio-pci-intel-tgl
    alternate: snd_hda_intel,snd_sof_pci_intel_tgl bus-ID: 0000:00:1f.3
    chip-ID: 8086:a0c8 class-ID: 0401
  Sound Server-1: ALSA v: k5.19.0-2-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.21 running: no
  Sound Server-3: PulseAudio v: 16.1 running: yes
  Sound Server-4: PipeWire v: 0.3.56 running: yes
Network:
  Device-1: Intel Wi-Fi 6 AX201 driver: iwlwifi v: kernel bus-ID: 0000:00:14.3
    chip-ID: 8086:a0f0 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8168 v: 8.050.03-NAPI modules: r8169
    port: 3000 bus-ID: 0000:01:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: eno1 state: down mac: <filter>
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 1-10:4 chip-ID: 8087:0026 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
    v: 0.6 port: N/A bus-ID: 0000:00:0e.0 chip-ID: 8086:9a0b rev: class-ID: 0104
Drives:
  Local Storage: total: 238.47 GiB used: 20.95 GiB (8.8%)
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital model: PC SN530
    SDBPNPZ-256G-1006 size: 238.47 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: HPS2 temp: 43.9 C scheme: GPT
  SMART: yes health: PASSED on: 10d 9h cycles: 387 read-units: 6,838,230
    [3.50 TB] written-units: 4,699,968 [2.40 TB]
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 64 GiB size: 62.44 GiB (97.57%) used: 20.87 GiB (33.4%)
    fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p5 maj-min: 259:5 label: N/A
    uuid: dae9727b-8cef-4e55-b5e1-9f5533258a08
  ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%) used: 81.4 MiB
    (31.8%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1 maj-min: 259:1
    label: SYSTEM uuid: 60E2-68A1
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/nvme0n1p2 maj-min: 259:2 size: 16 MiB fs: N/A label: N/A
    uuid: N/A
  ID-2: /dev/nvme0n1p3 maj-min: 259:3 size: 173.68 GiB fs: bitlocker
    label: N/A uuid: N/A
  ID-3: /dev/nvme0n1p4 maj-min: 259:4 size: 529 MiB fs: ntfs label: Windows
    RE tools uuid: 762C89132C88D013
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 12 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-5:2 info: Quanta HP TrueVision HD Camera type: Video
    driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 0408:5365 class-ID: 0e02
  Device-2: 1-6:3 info: Elan Micro ELAN:ARM-M4 type: <vendor specific>
    driver: N/A interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 100mA
    chip-ID: 04f3:0c00 class-ID: 0000
  Device-3: 1-10:4 info: Intel AX201 Bluetooth type: Bluetooth driver: btusb
    interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0026
    class-ID: e001
  Hub-2: 2-0:1 info: Super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 37.0 C mobo: N/A
  Fan Speeds (RPM): cpu: 0 fan-2: 0
Info:
  Processes: 257 Uptime: 13h 27m wakeups: 6040 Init: systemd v: 251
  default: graphical tool: systemctl Compilers: gcc: 12.1.1 clang: 14.0.6
  Packages: 1264 pacman: 1262 lib: 334 flatpak: 0 snap: 2 Shell: Zsh (sudo)
  v: 5.9 default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.20

I have kernels linux519, linux518, and linux515. Any help will be appreciated.

Welcome to Manjaro! :smiling_face_with_three_hearts:

  1. Please read the information behind this link. It will help you to post necessary information. [HowTo] Provide System Information
  2. Please press the three dots below your post and then press the :pencil2:
  • If you give us information about your system, we can see what we’re talking about and make better suggestions.
  • You can do this by using inxi in a terminal or in console.
inxi --admin --verbosity=7 --filter --no-host --width
  • Personally identifiable information such as serial numbers and MAC addresses are filtered out by this command
  • Presenting the information in this way allows everyone to be familiar with the format and quickly find the items they need without missing anything.
  1. Copy the output from inxi (including the command) and paste it into your post.
  • To make it more readable, add 3 backticks ``` on an extra line before and after the pasted text.

What kernels do you use ?

Did you install the linux headers for your running kernels?
Here is how to do it:

sudo pacman -S $(pacman -Qsq "^linux" | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-headers"}' ORS=' ')

Try the AUR package
pamac build v4l2loopback-dkms-git

and see if that will serve you better.

If not, switch back to the v4l2loopback-dkms package.

Yes I already installed the kernel headers.

Maybe it’s linux519 then. Let me try with the other two kernels.

Ok this is sort of dumb but the problem got fixed by downgrading the kernel to 5.15. But I’m not sure it’s worth downgrading all the way to the last LTS just to get DKMS working. But I did find something interesting when running modprobe for the first time on the newer kernels: zsh throws a Segmentation fault. I really want to get DKMS on the newer kernels because those kernels have way better support for my relatively new laptop.

Actually, DKMS is working with other modules. But installing v4l2lookpack-dkms is still failing. Oh, well, guess it’s just something wrong in that specific module.

When I install v4l2loopback-dkms, the initial modprobe errors out with a Segfault, on the next modprobe it takes forever and then if I reboot it takes 4 minutes and fails on the Loading Kernel Modules step. This happens on both kernels linux518 and linux519. Any help will be appreciated.

Had the same problem two days ago! This is a known issue with v4l2loopback on kernel version 5.18+. It seems to be related to the Intel Indirect Branch Tracking feature added in 5.18. The upstream maintainer of v4l2loopback has implemented a fix for this issue. You can either wait for v0.12.7 to make it into the Manjaro repo, or use the v4l2loopback-dkms-git package from AUR until then.

See: Module fails to load on IBT-enabled kernels (e.g. Arch Linux with kernel>=5.18) · Issue #476 · umlaeute/v4l2loopback · GitHub

I installed v4l2loopback-dkms-git, and it doesn’t load either, so that doesn’t seem to be the problem. In fact, it says on the first post on that GitHub issue that:

v4l2loopback module is added to kernel, but OBS is not able to create a virtual webcam

For me, the module isn’t even getting added to the kernel! But hey, funny coincidence.

Interesting. Can you post the errors from the kernel (dmesg) log after attempting to load the module? There might be some clues in there.
Something like: sudo dmesg --level emerg,alert,crit,err,warn

I had the exact same issue with the module not loading at all and modprobe segfaulting, but I think the AUR package was enough to fix my version of the problem.

Oops, ok so that was not a coincidence. You were right, I got the exact same traps: Missing ENDBR: init_module+0x0/0x1000 [v4l2loopback] error as in the issue.

I don’t know what’s with me today but after a quick reboot v4l2loopback-dkms-git worked.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.