hyperion-project / hyperion.ng

The successor to Hyperion aka Hyperion Next Generation
https://hyperion-project.org/
MIT License
3.11k stars 384 forks source link

Adalight doesn't find any output devices #1333

Closed aldiserg closed 3 years ago

aldiserg commented 3 years ago

Bug report

I have manjaro OS + arduino sketch has been added to adruino successfully (/dev/ttyUSB0) but webUI doesn't find this COM port. Why? and how it fix if i can't write the path manually?

Steps to reproduce

What is expected?

webUI find the COM port with arduino

What is actually happening?

System

Hyperion Server:

Hyperion Server OS:

Paulchen-Panther commented 3 years ago

Debug log please. Thank you for your report.

aldiserg commented 3 years ago

2021-09-14T20:48:06.166Z [hyperiond WEBSOCKET] (DEBUG) (WebSocketClient.cpp:30:WebSocketClient()) New connection from ::1 2021-09-14T20:48:06.166Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:122:handleInstanceSwitch()) Client '::1' switch to Hyperion instance 0 2021-09-14T20:48:06.219Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1058:handleLoggingCommand()) log streaming activated for client ::1 2021-09-14T20:48:11.320Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1404:handleLedDeviceCommand()) message: [{"command":"leddevice","ledDeviceType":"adalight","subcommand":"discover","tan":434}] 2021-09-14T20:48:11.339Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1428:handleLedDeviceCommand()) response: [{"devices":[],"ledDeviceType":"adalight"}] 2021-09-14T20:48:16.071Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1067:handleLoggingCommand()) log streaming deactivated for client ::1 2021-09-14T20:48:16.071Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1058:handleLoggingCommand()) log streaming activated for client ::1 2021-09-14T20:48:16.071Z [hyperiond WEBSOCKET] (DEBUG) (JsonAPI.cpp:1058:handleLoggingCommand()) log streaming activated for client ::1

Lord-Grey commented 3 years ago

@aldiserg

  1. As the Distribution reports "Ubuntu Core 20 (monjaro)", are you running hyperion in a Virtual machine under Monjaro? Have you mapped the usb-ports throught?

  2. Can you do an ls -ltr /dev/* before attaching the adalight device and another time after you have connected it and share the results?

aldiserg commented 3 years ago
  1. Manjaro is main OS on my PC (not a VM) 2) attached after.txt before.txt

i tried use hyperion v1.... Rainbow is started, but after, getting segmentation error (i think it is, because i use DisplayPort, not HDMI)

Lord-Grey commented 3 years ago

The problem will be that your current user does not have the privileges to access the "/dev/ttyUSB0" device. Therefore it cannot not be found too.

Normally it is enough to add the user running hyperion to the "dialout" group. but I do not know, if the works for Manjaro, too.

usermod -a -G dialout MY_USER_NAME

aldiserg commented 3 years ago

yeap, i did it already, group is named uucp (i can write my sketch to my arduino without sudo)

aldiserg commented 3 years ago

yeap, i did it but it didn't work @Lord-Grey

fightforlife commented 2 years ago

@Lord-Grey I currently have the same issue on Ubuntu 21.04 in docker. Could you explain how the discover mechanism works for the adalight?

USER: kodi GROUPS (of kodi): kodi dialout cdrom audio dip video plugdev users avahi Adalight device: /dev/ttyUSB0

permissions:

kodi@27fabcbdc8a9:/tmp$ ls -ltr /dev/ttyUSB*
crw-rw---- 1 root dialout 188, 0 Jan  1 15:37 /dev/ttyUSB0

Device write test (success)

kodi@27fabcbdc8a9:/tmp$ echo Hello > /dev/ttyUSB0
kodi@27fabcbdc8a9:/tmp$ echo Hello > /dev/tty14  
bash: /dev/tty14: Permission denied

DEBUG Log

2022-01-01T15:37:23.850  WEBSOCKET             : <DEBUG> JsonAPI.cpp:1436:handleLedDeviceCommand() | message: [{"command":"leddevice","ledDeviceType":"adalight","subcommand":"discover","tan":997}]
2022-01-01T15:37:23.931  WEBSOCKET             : <DEBUG> JsonAPI.cpp:1460:handleLedDeviceCommand() | response: [{"devices":[],"ledDeviceType":"adalight"}]