lampify icon indicating copy to clipboard operation
lampify copied to clipboard

Failed to set advertising parameters

Open littleboot opened this issue 2 years ago • 7 comments

When I try to setup (or other commands) I get an error message.

$ ./lampify v setup
[I] Turning the lamp on
[E] Failed to set advertising parameters!

Looking at the code it fails when the hciSetParams function returns. I assume this might be caused by my Bluetooth device driver not supporting this function. not sure how to fix this, help would be appreciated.

littleboot avatar Oct 03 '23 11:10 littleboot

same for me: ~/lampify$ ./lampify v setup [I] Connecting to the lamp [E] Failed to set advertising parameters!

Edit: tried 2 OS with same result: Linux gke-sv-arch 6.5.5-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 23 Sep 2023 22:55:13 +0000 x86_64 GNU/Linux Linux GKE-SV-Linux 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Guenda85 avatar Oct 05 '23 15:10 Guenda85

I had the same problem. Try to run it as root, it should fix your problem.

yvesdm3000 avatar Nov 10 '23 12:11 yvesdm3000

running as root comes up with different „error“:

~/lampify$ sudo ./lampify v setup [W] Failed to send notification! [I] Connecting to the lamp

Guenda85 avatar Nov 10 '23 12:11 Guenda85

That error is because it can't connect to libnotify, a system used by the Gnome desktop to show notifications as popups.

Do you have Gnome running as desktop environment? If not, better use "sudo ./lampify q setup"

yvesdm3000 avatar Nov 10 '23 13:11 yvesdm3000

yeah, just did it within terminal over ssh :-) executing it in quite mode leads me to: sudo ./lampify q setup [I] Connecting to the lamp

Guenda85 avatar Nov 10 '23 13:11 Guenda85

Unfortunately still no progress - no error so far but setup does not find/connect the lamp :-(

Guenda85 avatar Dec 01 '23 14:12 Guenda85