OpenHantek / OpenHantek6022

OpenHantek6022 is a DSO software for Hantek USB digital signal oscilloscopes 6022BE / BL. Development OS is Debian Linux, but the program also works on FreeBSD, MacOS, RaspberryPi and Windows. No support for non-Linux related issues unless a volunteer steps in!
GNU General Public License v3.0
868 stars 153 forks source link

Permission problem - udev rules #213

Closed sanchosk closed 3 years ago

sanchosk commented 3 years ago

Describe the bug Installed OpenHantek deb package. Once started, the startup detects the device, but the OK button is grayed out. The SW starts OK if I start it as sudo user.

To Reproduce Steps to reproduce the behavior:

  1. Install OpenHantek on clean Ubuntu 21.04
  2. Try to start the SW
  3. The device (6022BL) will be detected, but will not be able to start
  4. Start the SW as sudo - the SW will start and the device will work normally

Expected behavior I should be able to start the SW without sudo.

Screenshots N/A

Computer environment (please complete the following information):

Scope device (please complete the following information):

Additional context I modified the udev rules and added the plugdev group for the device:

Hantek DSO-6022BL, without FW, with FW

SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="04b4", ATTRS{idProduct}=="602a", TAG+="uaccess", TAG+="udev-acl", GROUP="plugdev" SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="04b5", ATTRS{idProduct}=="602a", TAG+="uaccess", TAG+="udev-acl", GROUP="plugdev"

After re-triggering udev, the device starts no problem now without sudo.