"Permission denied" for Grabber #144
Replies: 5 comments 6 replies
-
I would start with adding user |
Beta Was this translation helpful? Give feedback.
-
That did the trick, device is now present in HyperHDR :-) "Device disabled, device 'adalight' signals error: 'Permission denied'" Live video does not work yet either. Any advises? _2021-11-07T10:32:48.682Z [MAIN] Database path: '/home/rtsys/.hyperhdr/db/hyperhdr.db', readonlyMode = disabled |
Beta Was this translation helpful? Give feedback.
-
Now you must list /dev/ttyUSB0, check user group who has right to that device and do the same trick with adding user to the group that you've done with the video devices. |
Beta Was this translation helpful? Give feedback.
-
And forwarding USB grabbers to the virtual container is not a trivial task, all must be configured properly and supported by both systems ...for example forwarding USB grabber as USB device never work for me under VirtualBox, only dedicated VirtualBox camera bridge worked but the software's done something with the encoding format...was not the same as when connected directly to the PC. |
Beta Was this translation helpful? Give feedback.
-
Ok, done and one step closer. Connect to WLED is working. _2021-11-07T11:37:17.919Z [MAIN] Database path: '/home/rtsys/.hyperhdr/db/hyperhdr.db', readonlyMode = disabled |
Beta Was this translation helpful? Give feedback.
-
I want to migrate my HyperHDR (version 17) from Raspberry Pi to an virtual machine with Ubuntu 20.04.
So I did:
Problem now: Videograbber not present in HyperHDR
On OS level the device is present:
v4l2-ctl --list-devices
USB Video: USB Video (usb-0000:0b:00.0-4.1):
/dev/video0
/dev/video1
/dev/media0
HyperHDR says "Permission denied" for the devices:
_2021-11-06T22:58:59.639Z [MAIN] Database path: '/home/rtsys/.hyperhdr/db/hyperhdr.db', readonlyMode = disabled
2021-11-06T22:58:59.640Z [MAIN] Starting HyperHdr - 17.0.0.0, (HEAD detached at dec81c0) (Awawa-2a2ed8d/dec81c0-1631541363), built: Sep 15 2021:16:01:43
2021-11-06T22:58:59.640Z [MAIN] Set user data path to '/home/rtsys/.hyperhdr'
2021-11-06T22:58:59.655Z [DB] Database opened: /home/rtsys/.hyperhdr/db/hyperhdr.db
2021-11-06T22:58:59.801Z [SETTINGSMGR] Settings database initialized
2021-11-06T22:58:59.802Z [HYPERHDR] Sound device is disabled
2021-11-06T22:58:59.832Z [V4L2:AUTO] Cropping image: width=0 height=0; crop: left=0 right=0 top=0 bottom=0
2021-11-06T22:58:59.834Z [V4L2:AUTO] Throws error nr: Cannot open '/dev/video1' error code 13, Permission denied
2021-11-06T22:58:59.834Z [V4L2:AUTO] Throws error nr: Cannot open '/dev/video0' error code 13, Permission denied
2021-11-06T22:58:59.834Z [V4L2:AUTO] Restarting video grabber is now blocked due to reloading of the configuration
2021-11-06T22:58:59.834Z [V4L2:AUTO] Cropping image: width=0 height=0; crop: left=0 right=0 top=0 bottom=0
2021-11-06T22:58:59.834Z [V4L2:auto] (GrabberWrapper.cpp:42) CEC keycode. Start: 0, stop: 0
2021-11-06T22:58:59.834Z [V4L2:AUTO] (Grabber.cpp:202) setBrightnessContrastSaturationHue nothing changed
2021-11-06T22:58:59.834Z [V4L2:AUTO] (V4L2Grabber.cpp:98) setHdrToneMappingMode to: Disabled
2021-11-06T22:58:59.834Z [V4L2:AUTO] (Grabber.cpp:140) setFpsSoftwareDecimation to: 1
2021-11-06T22:58:59.834Z [SIGNAL_OLD] (DetectionManual.cpp:85) Signal detection area set to: 0.250000,0.250000 x 0.750000,0.750000
2021-11-06T22:58:59.834Z [SIGNAL_OLD] (DetectionManual.cpp:75) Signal threshold set to: {12, 12, 12} and frames: 200
2021-11-06T22:58:59.834Z [SIGNAL_AUTO] (DetectionAutomatic.cpp:368) Automatic signal detection -> errorTolerance: 9, modelTolerance: 90, sleepTime: 5000, wakeTime: 1000
2021-11-06T22:58:59.834Z [V4L2:AUTO] (Grabber.cpp:307) setDeviceVideoStandard preparing to restart video grabber. Old: '' new: 'auto'
2021-11-06T22:58:59.834Z [V4L2:AUTO] Delayed restart of the grabber due to change of selected device
2021-11-06T22:58:59.834Z [V4L2:AUTO] (Grabber.cpp:158) Force encoding to: NO_CHANGE (old: NO_CHANGE)
2021-11-06T22:58:59.834Z [V4L2:AUTO] setQFrameDecimation is now: disabled
2021-11-06T22:58:59.835Z [X11_SYSTEM:AUTO] Cropping image: width=0 height=0; crop: left=0 right=0 top=0 bottom=0
2021-11-06T22:58:59.843Z [X11_SYSTEM:AUTO] Loaded X11 proxy library for screen capturing
2021-11-06T22:58:59.845Z [X11_SYSTEM:AUTO] Restarting video grabber is now blocked due to reloading of the configuration
2021-11-06T22:58:59.845Z [X11_SYSTEM:AUTO] (Grabber.cpp:117) Set new width: 512, height: 512 for capture
2021-11-06T22:58:59.846Z [X11_SYSTEM:AUTO] (Grabber.cpp:262) setWidthHeight preparing to restarting video grabber 0
2021-11-06T22:58:59.847Z [X11_SYSTEM:AUTO] Delayed restart of the grabber due to change of the capturing resolution
2021-11-06T22:58:59.847Z [X11_SYSTEM:AUTO] Delayed restart of the grabber due to change of the framerate
2021-11-06T22:58:59.849Z [SIGNAL_OLD] (DetectionManual.cpp:85) Signal detection area set to: 0.250000,0.250000 x 0.750000,0.750000
2021-11-06T22:58:59.849Z [SIGNAL_OLD] (DetectionManual.cpp:75) Signal threshold set to: {12, 12, 12} and frames: 200
2021-11-06T22:58:59.849Z [X11_SYSTEM:AUTO] (Grabber.cpp:307) setDeviceVideoStandard preparing to restart video grabber. Old: '' new: 'auto'
2021-11-06T22:58:59.849Z [X11_SYSTEM:AUTO] Delayed restart of the grabber due to change of selected device
2021-11-06T22:58:59.915Z [SETTINGSMGR] Settings database initialized
2021-11-06T22:58:59.942Z [BLACKBORDER] Set mode to: default
2021-11-06T22:58:59.943Z [IMAGETOLED0] (ImageProcessor.cpp:153) set user led mapping to advanced
2021-11-06T22:58:59.943Z [IMAGETOLED0] (ImageProcessor.cpp:136) setSparseProcessing to 0
2021-11-06T22:58:59.944Z [RGB_TRANSFORM0] RGB transform classic_config: 1, saturationGain: 1.000000, luminanceGain: 1.000000, backlightThreshold: 1
2021-11-06T22:58:59.944Z [RGB_TRANSFORM0] setBacklightThreshold: 1
2021-11-06T22:58:59.944Z [ADJUST_RED0] Set correction to 255
2021-11-06T22:58:59.944Z [ADJUST_BLUE0] Set correction to 255
2021-11-06T22:58:59.944Z [ADJUST_GREEN0] Set correction to 255
2021-11-06T22:58:59.963Z [JSONSERVER] (JsonServer.cpp:28) Created instance
2021-11-06T22:58:59.975Z [JSONSERVER] Started on port 19444
2021-11-06T22:58:59.952Z [DB] Database opened: /home/rtsys/.hyperhdr/db/hyperhdr.db
2021-11-06T22:58:59.958Z [COMPONENTREG0] Smoothing: enabled
2021-11-06T22:58:59.963Z [SMOOTHING0] Creating config (0) => type: Alternative, dirMode: false, pause: false, settlingTime: 150ms, interval: 20ms (50Hz), antiFlickTres: 0, antiFlickStep: 2, antiFlickTime: 0
2021-11-06T22:58:59.964Z [SMOOTHING0] Clearing queued colors
2021-11-06T22:58:59.964Z [SMOOTHING0] Selecting config (0) => type: Alternative, dirMode: false, pause: false, settlingTime: 150ms, interval: 20ms (50Hz), antiFlickTres: 0, antiFlickStep: 2, antiFlickTime: 0
2021-11-06T22:58:59.964Z [SMOOTHING0] Selecting config (0) => type: Alternative, dirMode: false, pause: false, settlingTime: 150ms, interval: 20ms (50Hz), antiFlickTres: 0, antiFlickStep: 2, antiFlickTime: 0
2021-11-06T22:58:59.965Z [LEDDEVICE] Start LedDevice 'adalight'.
2021-11-06T22:58:59.975Z [LEDDEVICE] (LedDevice.cpp:149) deviceConfig: [{"awa_mode":true,"colorOrder":"rgb","currentLedCount":218,"delayAfterConnect":0,"hardwareLedCount":218,"latchTime":15,"output":"auto","rate":2000000,"rewriteTime":250,"type":"adalight"}]
2021-11-06T22:58:59.976Z [LEDDEVICE] (LedDevice.cpp:408) LatchTime updated to 15ms
2021-11-06T22:58:59.979Z [LEDDEVICE] (LedDevice.cpp:429) Refresh interval = 250ms
2021-11-06T22:58:59.980Z [LEDDEVICE] (LedDevice.cpp:435) RewriteTime updated to 250ms
2021-11-06T22:58:59.981Z [LEDDEVICE] (ProviderRs232.cpp:36) DeviceType : adalight
2021-11-06T22:58:59.981Z [LEDDEVICE] (ProviderRs232.cpp:37) LedCount : 218
2021-11-06T22:58:59.981Z [LEDDEVICE] (ProviderRs232.cpp:38) ColorOrder : rgb
2021-11-06T22:58:59.976Z [FLATBUFCONN] Connecting to HyperHDR: 127.0.0.1:19401
2021-11-06T22:58:59.982Z [LEDDEVICE] (ProviderRs232.cpp:39) RefreshTime : 250
2021-11-06T22:58:59.988Z [MUXER0] Register new input 'System/VIDEOGRABBER' with priority 240 as inactive
2021-11-06T22:58:59.992Z [COMPONENTREG0] Video capture device: enabled
2021-11-06T22:59:00.011Z [V4L2:AUTO] Multithreading for V4L2 is disabled. Available thread's count 1
2021-11-06T22:59:00.016Z [V4L2:AUTO] Throws error nr: Cannot open '/dev/video1' error code 13, Permission denied
2021-11-06T22:59:00.017Z [V4L2:AUTO] Throws error nr: Cannot open '/dev/video0' error code 13, Permission denied
2021-11-06T22:59:00.019Z [V4L2:AUTO] (V4L2Grabber.cpp:165) Forcing auto discovery device
2021-11-06T22:59:00.019Z [V4L2:AUTO] Could not find any capture device
2021-11-06T22:59:00.004Z [BOBLIGHT] Instance created
2021-11-06T22:59:00.019Z [HYPERMANAGER] HyperHDR instance 'ESP8266' has been started
2021-11-06T22:59:00.019Z [DAEMON] Unload CEC
2021-11-06T22:59:00.019Z [DAEMON] (hyperhdr.cpp:506) libCEC was left out from the build
2021-11-06T22:59:00.004Z [WEBSERVER] Initialize Webserver
2021-11-06T22:59:00.004Z [PROTOSERVER] Started on port 19445
2021-11-06T22:59:00.011Z [FLATBUFSERVER] Started on port 19400
2021-11-06T22:59:00.004Z [WEBSERVER] Initialize Webserver
2021-11-06T22:58:59.991Z [LEDDEVICE] (ProviderRs232.cpp:40) LatchTime : 15
2021-11-06T22:59:00.020Z [LEDDEVICE] (ProviderRs232.cpp:52) deviceName : auto
2021-11-06T22:59:00.020Z [LEDDEVICE] (ProviderRs232.cpp:53) AutoDevice : 1
2021-11-06T22:59:00.020Z [LEDDEVICE] (ProviderRs232.cpp:54) baudRate_Hz : 2000000
2021-11-06T22:59:00.020Z [LEDDEVICE] (ProviderRs232.cpp:55) delayAfCon ms: 0
2021-11-06T22:59:00.020Z [LEDDEVICE] (LedDeviceAdalight.cpp:64) Adalight driver with activated high speeed & data integration check AWA protocol
2021-11-06T22:59:00.020Z [LEDDEVICE] (LedDeviceAdalight.cpp:74) Adalight header for 218 leds: Awa 0x00 0xd9 0x8c
2021-11-06T22:59:00.171Z [WEBSERVER] Apply Webserver settings
2021-11-06T22:59:00.174Z [WEBSERVER] Set document root to: :/webconfig
2021-11-06T22:59:00.175Z [WEBSERVER] Started on port 8090 name 'HyperHDR Webserver'
2021-11-06T22:59:00.174Z [WEBSERVER] Apply Webserver settings
2021-11-06T22:59:00.175Z [WEBSERVER] Set document root to: :/webconfig
2021-11-06T22:59:00.185Z [WEBSERVER] Setup SSL certificate
2021-11-06T22:59:00.187Z [WEBSERVER] Setup private SSL key
2021-11-06T22:59:00.187Z [WEBSERVER] Started on port 8092 name 'HyperHDR Webserver'
2021-11-06T22:59:00.252Z [LEDDEVICE] found serial device: ttyUSB0
2021-11-06T22:59:00.259Z [LEDDEVICE] Opening UART: ttyUSB0
2021-11-06T22:59:00.260Z [LEDDEVICE] (ProviderRs232.cpp:141) rs232Port.open(QIODevice::ReadWrite): ttyUSB0, Baud rate [2000000]bps
2021-11-06T22:59:00.284Z [MUXER0] Switching from color effect. Waiting till: 23:59:03
2021-11-06T22:59:00.358Z [LEDDEVICE] (ProviderRs232.cpp:146) portName: ttyUSB0
2021-11-06T22:59:00.369Z [LEDDEVICE] (ProviderRs232.cpp:147) systemLocation: /dev/ttyUSB0
2021-11-06T22:59:00.369Z [LEDDEVICE] (ProviderRs232.cpp:148) description: USB2.0-Serial
2021-11-06T22:59:00.369Z [LEDDEVICE] (ProviderRs232.cpp:149) manufacturer: 1a86
2021-11-06T22:59:00.369Z [LEDDEVICE] (ProviderRs232.cpp:150) productIdentifier: 0x7523
2021-11-06T22:59:00.369Z [LEDDEVICE] (ProviderRs232.cpp:151) vendorIdentifier: 0x1a86
2021-11-06T22:59:00.369Z [LEDDEVICE] (ProviderRs232.cpp:152) serialNumber:
2021-11-06T22:59:00.370Z [LEDDEVICE] Device disabled, device 'adalight' signals error: 'Permission denied'
2021-11-06T22:59:01.768Z [WEBSOCKET] (WebSocketClient.cpp:30) New connection from ::ffff:192.168.20.15
2021-11-06T22:59:01.768Z [WEBSOCKET] (JsonAPI.cpp:89) Client '::ffff:192.168.20.15' switch to HyperHDR instance 0
2021-11-06T22:59:03.520Z [MUXER0] Set visible priority to 255
2021-11-06T22:59:03.520Z [HYPERHDR0] New priority[255], previous [255]
2021-11-06T22:59:03.520Z [HYPERHDR0] No source left -> switch LED-Device off
2021-11-06T22:59:03.521Z [IMAGETOLED0] (ImageProcessor.cpp:180) set hard led mapping to multicolor_mean
2021-11-06T23:01:05.282Z [DB] Database opened: /home/rtsys/.hyperhdr/db/hyperhdr.db
2021-11-06T23:01:27.110Z [V4L2:AUTO] Restarting video grabber is now blocked due to reloading of the configuration
2021-11-06T23:01:27.110Z [V4L2:AUTO] Cropping image: width=0 height=0; crop: left=0 right=0 top=0 bottom=0
2021-11-06T23:01:27.110Z [V4L2:auto] (GrabberWrapper.cpp:42) CEC keycode. Start: 0, stop: 0
2021-11-06T23:01:27.110Z [V4L2:AUTO] (Grabber.cpp:202) setBrightnessContrastSaturationHue nothing changed
2021-11-06T23:01:27.110Z [V4L2:AUTO] setHdrToneMappingMode to: enable, but the LUT file is currently unloaded
2021-11-06T23:01:27.111Z [V4L2:AUTO] (V4L2Grabber.cpp:104) setHdrToneMappingMode replacing LUT and restarting
2021-11-06T23:01:27.111Z [V4L2:AUTO] (V4L2Grabber.cpp:78) LUT folder location: '/usr/share/hyperhdr/lut'
2021-11-06T23:01:27.111Z [V4L2:AUTO] LUT file is not found here: /home/rtsys/.hyperhdr/lut_lin_tables.3d
2021-11-06T23:01:27.111Z [V4L2:AUTO] (Grabber.cpp:385) LUT file found: /usr/share/hyperhdr/lut/lut_lin_tables.3d
2021-11-06T23:01:27.111Z [V4L2:AUTO] (Grabber.cpp:404) Index 0 for HDR RGB
2021-11-06T23:01:27.204Z [V4L2:AUTO] Found and loaded LUT: '/usr/share/hyperhdr/lut/lut_lin_tables.3d'
2021-11-06T23:01:27.205Z [V4L2:AUTO] (Grabber.cpp:140) setFpsSoftwareDecimation to: 1
2021-11-06T23:01:27.205Z [SIGNAL_OLD] (DetectionManual.cpp:85) Signal detection area set to: 0.250000,0.250000 x 0.750000,0.750000
2021-11-06T23:01:27.205Z [SIGNAL_OLD] (DetectionManual.cpp:75) Signal threshold set to: {0, 0, 0} and frames: 50
2021-11-06T23:01:27.205Z [SIGNAL_AUTO] (DetectionAutomatic.cpp:368) Automatic signal detection -> errorTolerance: 9, modelTolerance: 90, sleepTime: 1000, wakeTime: 0
2021-11-06T23:01:27.205Z [V4L2:AUTO] (Grabber.cpp:158) Force encoding to: NO_CHANGE (old: NO_CHANGE)
2021-11-06T23:01:27.206Z [V4L2:AUTO] setQFrameDecimation is now: disabled
2021-11-06T23:01:27.206Z [DAEMON] Unload CEC
2021-11-06T23:01:27.206Z [DAEMON] (hyperhdr.cpp:506) libCEC was left out from the build
2021-11-06T23:01:27.205Z [COMPONENTREG0] HDR (global): enabled
2021-11-06T23:03:26.737Z [COMPONENTREG0] Blackborder detector: enabled
2021-11-06T23:07:19.373Z [COMPONENTREG0] (ComponentRegister.cpp:57) Disable Hyperhdr, store current component states
2021-11-06T23:07:19.373Z [COMPONENTREG0] HyperHDR: disabled
2021-11-06T23:07:19.374Z [SMOOTHING0] Clearing queued colors
2021-11-06T23:07:19.374Z [COMPONENTREG0] Smoothing: disabled
2021-11-06T23:07:19.374Z [COMPONENTREG0] Blackborder detector: disabled
2021-11-06T23:07:19.374Z [MUXER0] Removed source priority 240
2021-11-06T23:07:19.374Z [COMPONENTREG0] Video capture device: disabled
2021-11-06T23:07:21.111Z [COMPONENTREG0] (ComponentRegister.cpp:74) Enable Hyperhdr, recover previous component states
2021-11-06T23:07:21.112Z [COMPONENTREG0] HyperHDR: enabled
2021-11-06T23:07:21.112Z [COMPONENTREG0] Smoothing: enabled
2021-11-06T23:07:21.112Z [COMPONENTREG0] Blackborder detector: enabled
2021-11-06T23:07:21.112Z [MUXER0] Register new input 'System/VIDEOGRABBER' with priority 240 as inactive
2021-11-06T23:07:21.112Z [COMPONENTREG0] Video capture device: enabled
2021-11-06T23:07:21.112Z [V4L2:AUTO] Multithreading for V4L2 is disabled. Available thread's count 1
2021-11-06T23:07:21.112Z [V4L2:AUTO] Throws error nr: Cannot open '/dev/video1' error code 13, Permission denied
2021-11-06T23:07:21.112Z [V4L2:AUTO] Throws error nr: Cannot open '/dev/video0' error code 13, Permission denied
2021-11-06T23:07:21.112Z [V4L2:AUTO] (V4L2Grabber.cpp:165) Forcing auto discovery device
2021-11-06T23:07:21.112Z [V4L2:AUTO] Could not find any capture device
2021-11-06T23:08:27.971Z [WEBSOCKET] (JsonAPI.cpp:1300) log streaming activated for client ::ffff:192.168.20.15
Permissions are:
crw-rw---- 1 root video 81, 0 Nov 6 23:58 video0
crw-rw---- 1 root video 81, 1 Nov 6 23:58 video1
Any ideas, how to fix the permission issue?
Beta Was this translation helpful? Give feedback.
All reactions