problem running rtl_test

I’m running OpenSuse Tumbleweed. I’ve installed the rtl-tools. When I run rtl_test as root, it works. When
I try to run it as a normal user, I get this error: usb open error 3. Please fix the device permissions, e.g. by installing the udev rules file rtl-sdr.rules
I’ve copied the file to /run/udev/rules.d and to /usr/lib/udev/rules.d and tried various combinations of owner group and permissions
but nothing works. I want to run gqrx and it requires a normal user.
lsusb shows this: Bus 001 Device 002: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
The rules file has two entries for 0bda:
SUBSYSTEMS==“usb”, ATTRS{idVendor}==“0bda”, ATTRS{idProduct}==“2832”, MODE:=“0660”, GROUP=“rtlsdr”
SUBSYSTEMS==“usb”, ATTRS{idVendor}==“0bda”, ATTRS{idProduct}==“2838”, MODE:=“0660”, GROUP=“rtlsdr”

running rtl_test as root gives this:

  Found 1 device(s):

0: Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner

running rtl_test as a user gives this:

Found 1 device(s):
0: Եc��, , SN:

Using device 0: Generic RTL2832U OEM
usb_open error -3
Please fix the device permissions, e.g. by installing the udev rules file rtl-sdr.rules
Failed to open rtlsdr device #0.

Since I know that the rtl-sdr.rules are in place, I thinking that they must not be correct.
Can anyone provied the proper rule to use?

Thanks,
Robert

Hi and welcome to the Forum :slight_smile:
Have you added your user the the rtlsdr group? There should be no need to modify any of the udev rules…

I see;


 rtl_test 
Found 1 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000000

Using device 0: Generic RTL2832U OEM
\Detached kernel driver
Found Rafael Micro R820T tuner
Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6 
[R82XX] PLL not locked!
Sampling at 2048000 S/s.
....

Fire up YaST -> Security and Users -> User and Group Management, select your username then ‘edit’ -> Details tab and on the right add a check mark to the rtlsdr addition group. Hit ok, and ok again, exit YaST. Then logout/login for the changes to propagate.

That solved the problem. Thank for sharing your knowledge.