librealsense: RealSense Viewer does not detect camera on Linux anymore - as it did before

Required Info
Camera Model D435
Firmware Version no info
Operating System & Version Ubuntu 16
Kernel Version (Linux Only) 4.15.0-64-generic
Platform PC
SDK Version 4.15.0-64-generic
Language
Segment

Issue Description

While having RealSense Viewer running on Windows 10 on the same machine (Asus Vivobook S) and while having had it also running on Ubuntu 16.04 RealSense Viewer is no longer able to detect the camera. lsusb is detecting the Intel device when plugged, but the app does not.

Is there any means to approach the problem?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 31 (15 by maintainers)

Most upvoted comments

Thanks very much for the further details. Please do update me when you have news.

@neilyoung, thanks for the informative logs and I took the time to review it - Ubuntu 16:

  1. As mentioned - using DKMS with 4.15 kernel branch is broken #4869, #4916. You need to remove and replace the DKMS package with the installation script - this will remove most of the installation and kernel log clutter and focus on root cause. Follow the Linux manual installation guide, to patch the kernel:
  • Disconnect the camera
  • Run sudo apt purge librealsense2-dkms to remove current DKMS.
  • run cd <path_to_lrs> && ./scripts/patch-realsense-ubuntu-lts.sh to patch the kernel (1)
  • Run dmesg -wT in a separate terminal (2)
  • Reconnect the camera
  • Unload and reload the UVC driver sudo modprobe -r uvcvideo && sudo modprobe uvcvideo
  • Run rs-enumerate-devices (3)
  • Post the logs of (1) and (2) and application logs (3)

Ubuntu 18: - to fix dependency issues with Ubuntu distro try to apply sudo apt install -f
(https://appuals.com/fix-unmet-dependencies-error-ubuntu/). The specifc package relies on openGl/Mesa packages for deployment, so these might be missing/incomplete on the target PC.