Bluez command prompt hangs in user-mode

Bug #1589555 reported by John Agosta
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snappy-hwe-snaps
Fix Committed
Medium
Konrad Zapałowicz

Bug Description

Using the bluez v5.37-1 on the Intel NUC running UC 16. I sideloaded the snap with --devmode and all appears to work fine. I can sudo "bluez.bluetoothctl " and interact with the controller including pairing devices.

The problem I disovered is that if I do not "*sudo*" bluetoothctl, then I cannot enter anything in the command interface... no keyboard input. I can ctrl-c out, but cannot provide any command input to bluetoothctl.

From Simon:
(1) This isn't a bug but intended. As the user situation on snappy is unclear and the ubuntu user will be removed soon we disabled the capability within the bluez interface that a normal user can talk with the bluetoothd daemon over dbus. You have to be root for now but that is
the case for all snaps on a real Ubuntu Core situation. The situation on the desktop with the bluez interface is a bit different though.
(2) Report a bug to make it more visible to the user that he has to use sudo in order to use the bluetoothctl command. We have a small wrapper script around bluetoothctl which we can adjust to
check for the UID of root and if not error out with a proper message pointing the user to use sudo or run as root.

Tags: bluez

Related branches

Simon Fels (morphis)
Changed in snappy-hwe-snaps:
importance: Undecided → Medium
Simon Fels (morphis)
tags: added: bluez
Changed in snappy-hwe-snaps:
assignee: nobody → Konrad Zapałowicz (kzapalowicz)
Revision history for this message
Konrad Zapałowicz (kzapalowicz) wrote :
Changed in snappy-hwe-snaps:
status: New → In Progress
Revision history for this message
Konrad Zapałowicz (kzapalowicz) wrote :

This is now commited, will be publicly available with bluez snap 5.44-2

Changed in snappy-hwe-snaps:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.