nickoppen
Posts: 2
Joined: Mon Jul 14, 2014 6:19 am

rtl-sdr not working - Any ideas? [obsolete]

Mon Jul 14, 2014 6:34 am

Hi,

I've recently installed rts-sdr on my pi and regardless of what I do I get the following:

Code: Select all

pi@pi32 ~ $ rtl_test -t
Found 1 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM

Kernel driver is active, or device is claimed by second instance of librtlsdr.
In the first case, please either detach or blacklist the kernel module
(dvb_usb_rtl28xxu), or enable automatic detaching at compile time.

usb_claim_interface error -6
Failed to open rtlsdr device #0.
I've tried to blacklist the kernel with:

blacklist dvb_usb_rtl28xxu

in /etc/modprobe.d/blacklist but to no effect. (This might be completely wrong and I would not have a clue given that I'm a linux ignoramus.)

As for checking if the device has been claimed by a second instance of librtlsdr I have no idea what that even means.

The frustrating thing is that I had it working last year and I must have written over the image. It does tell me though that my hardware is ok and that there is something in software that is not working.

Any ideas... anyone?

nick

nickoppen
Posts: 2
Joined: Mon Jul 14, 2014 6:19 am

Re: rtl-sdr not working - Any ideas?

Mon Jul 14, 2014 11:13 am

I found a little post about this problem.

No idea why this is necessary but if you get the error I described above, you need to use two additional switches to cmake:

Code: Select all

cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON
Here is the whole post: http://m3php.com/2012/10/10/remote-sdr- ... i-rtl_tcp/

kmillar82
Posts: 12
Joined: Sun Jun 29, 2014 10:42 am

Re: rtl-sdr not working - Any ideas?

Fri Jul 18, 2014 6:11 am

additionally after the
cmake ../ -DINSTALL_UDEV_RULES=ON

run the command
ldconfig

and reboot

also, rtl_sdr has weird power behaviour and sometimes is finicky, run it off a powered hub

HackSwiTcH
Posts: 1
Joined: Wed Mar 28, 2018 2:35 pm

Re: rtl-sdr not working - Any ideas?

Wed Dec 11, 2019 2:52 pm

Hi All, Just wanted to add I'm getting the same thing: Help appreciated I am setting this up for AIS
--------------------------------------------------------------------------------------------------------------------------
org.gnome.gedit:3392): IBUS-WARNING **: 08:44:21.383: The owner of /home/seadog/.config/ibus/bus is not root!
^C
seadog@DeepThought:/etc/modprobe.d$ sudo gedit /etc/modprobe.d/blacklist

(org.gnome.gedit:3612): IBUS-WARNING **: 08:45:01.449: The owner of /home/seadog/.config/ibus/bus is not root!

** (org.gnome.gedit:3612): WARNING **: 08:45:14.419: Set document metadata failed: Setting attribute metadata::gedit-spell-language not supported

** (org.gnome.gedit:3612): WARNING **: 08:45:14.420: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported

** (org.gnome.gedit:3612): WARNING **: 08:45:17.354: Set document metadata failed: Setting attribute metadata::gedit-position not supported
seadog@DeepThought:/etc/modprobe.d$ rtl_tcp -a 192.168.1.88
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM

Kernel driver is active, or device is claimed by second instance of librtlsdr.
In the first case, please either detach or blacklist the kernel module
(dvb_usb_rtl28xxu), or enable automatic detaching at compile time.

usb_claim_interface error -6
Failed to open rtlsdr device #0.
--------------------------------------------------------------------

In my Blacklist FIle, /etc/modprobe.d/blacklist

I have tried saving both of the following individually with

sudo gedit /etc/modprobe.d/blacklist

blacklist RTL28xxU
blacklist RTL2832U
-------------------------------------------------------------------
Thanks again for checking this out and the assistance.

Return to “Other projects”