Bug 1321441 - RTL-SDR doesn't auto-detach kernel driver
Summary: RTL-SDR doesn't auto-detach kernel driver
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: rtl-sdr
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-27 04:01 UTC by Benji Wiebe
Modified: 2016-03-30 04:06 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-30 04:06:30 UTC
Type: Bug


Attachments (Terms of Use)

Description Benji Wiebe 2016-03-27 04:01:46 UTC
Description of problem: RTL-SDR was not compiled with auto-remove of driver turned on.

Steps to Reproduce:
1. Unplug RTL device.
2. Plug in RTL device.
3. Run gqrx or some other program that uses an RTL-SDR.

Actual results:
Gets an error message: 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.

Expected results:
No error.


Additional info:
This can be fixed by using -DDETACH_KERNEL_DRIVER=ON with CMake, or --enable-driver-detach with autotools.

Comment 1 Jaroslav Škarvada 2016-03-29 09:28:50 UTC
Hmm, it should be already compiled in:
-- Building with kernel driver detaching enabled

And IIRC it always worked for me.

Comment 2 Jaroslav Škarvada 2016-03-29 09:47:06 UTC
I retried on f23 and it worked as expected:
Detached kernel driver
Found Rafael Micro R820T tuner
Exact sample rate is: 1500000,014901 Hz
Reattached kernel driver

Comment 3 Benji Wiebe 2016-03-30 04:06:30 UTC
Funny. It works for me now, too. I wonder if I was running it as a different user or something.


Note You need to log in before you can comment on or make changes to this bug.