LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   [Current] Bluetooth controller not accessible by user (default groups) (https://www.linuxquestions.org/questions/slackware-14/%5Bcurrent%5D-bluetooth-controller-not-accessible-by-user-default-groups-4175633652/)

Freaksta 07-09-2018 07:25 PM

[Current] Bluetooth controller not accessible by user (default groups)
 
Hello,

Fresh install of Slackware -Current.

root is able to open bluetoothctl and immediately gets an 'agent registered' notification and can use the bluetooth controller:

Code:

bash-4.4$ sudo bluetoothctl
Agent registered
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# list
Controller B4:6B:FC:F5:6F:4E black [default]
[bluetooth]#

However, the behavior is very odd with regular user:

Code:

bash-4.4$ whoami
noir
bash-4.4$ groups
users lp wheel floppy audio video cdrom plugdev power netdev scanner
bash-4.4$ id
uid=1000(noir) gid=100(users) groups=100(users),7(lp),10(wheel),11(floppy),17(audio),18(video),19(cdrom),83(plugdev),84(power),86(netdev),93(scanner)
bash-4.4$ bluetoothctl

The bluetoothctl command just hangs here until I hit [Enter], then I get the bluetoothctl prompt:

Code:

[bluetooth]#
[bluetooth]# agent on
Agent registration enabled
[bluetooth]# power on
No default controller available
[bluetooth]# list
[bluetooth]#

So as you can see, previous solution of simply adding user to groups does not resolve the issue. I even deleted the user and re-added via adduser, and asigning the full group suggestion (and adding wheel) again, just to be sure. Same issue.

Any ideas?

Freaksta 07-09-2018 07:30 PM

looks like dbus is rejecting me?

Code:

Jul  9 20:11:55 noir dbus-daemon[1129]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.68" (uid=1000 pid=2384 comm="/usr/bin/pulseaudio --start --log-target=syslog ") interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" error name="(unset)" requested_reply="0" destination="org.bluez" (uid=0 pid=1134 comm="/usr/sbin/bluetoothd ")
Jul  9 20:11:55 noir dbus-daemon[2371]: [session uid=1000 pid=2369] Activating service name='org.gtk.vfs.Daemon' requested by ':1.1' (uid=1000 pid=2390 comm="gsettings-data-convert ")
Jul  9 20:11:55 noir dbus-daemon[2371]: [session uid=1000 pid=2369] Successfully activated service 'org.gtk.vfs.Daemon'
Jul  9 20:12:05 noir dbus-daemon[2371]: [session uid=1000 pid=2369] Activating service name='org.a11y.Bus' requested by ':1.7' (uid=1000 pid=2433 comm="xfce4-terminal ")
Jul  9 20:12:05 noir dbus-daemon[2371]: [session uid=1000 pid=2369] Successfully activated service 'org.a11y.Bus'
Jul  9 20:12:08 noir dbus-daemon[2371]: [session uid=1000 pid=2369] Activating service name='org.gtk.vfs.UDisks2VolumeMonitor' requested by ':1.9' (uid=1000 pid=2433 comm="xfce4-terminal ")
Jul  9 20:12:08 noir dbus-daemon[2371]: [session uid=1000 pid=2369] Successfully activated service 'org.gtk.vfs.UDisks2VolumeMonitor'
Jul  9 20:12:08 noir dbus-daemon[2371]: [session uid=1000 pid=2369] Activating service name='org.gtk.vfs.GPhoto2VolumeMonitor' requested by ':1.9' (uid=1000 pid=2433 comm="xfce4-terminal ")
Jul  9 20:12:08 noir dbus-daemon[2371]: [session uid=1000 pid=2369] Successfully activated service 'org.gtk.vfs.GPhoto2VolumeMonitor'
Jul  9 20:12:08 noir dbus-daemon[2371]: [session uid=1000 pid=2369] Activating service name='org.gtk.vfs.MTPVolumeMonitor' requested by ':1.9' (uid=1000 pid=2433 comm="xfce4-terminal ")
Jul  9 20:12:08 noir dbus-daemon[2371]: [session uid=1000 pid=2369] Successfully activated service 'org.gtk.vfs.MTPVolumeMonitor'
Jul  9 20:12:08 noir dbus-daemon[2371]: [session uid=1000 pid=2369] Activating service name='org.gtk.vfs.AfcVolumeMonitor' requested by ':1.9' (uid=1000 pid=2433 comm="xfce4-terminal ")
Jul  9 20:12:08 noir dbus-daemon[2371]: [session uid=1000 pid=2369] Successfully activated service 'org.gtk.vfs.AfcVolumeMonitor'
Jul  9 20:12:29 noir dbus-daemon[2371]: [session uid=1000 pid=2369] Activating service name='ca.desrt.dconf' requested by ':1.9' (uid=1000 pid=2433 comm="xfce4-terminal ")
Jul  9 20:12:29 noir dbus-daemon[2371]: [session uid=1000 pid=2369] Successfully activated service 'ca.desrt.dconf'
Jul  9 20:13:01 noir dbus-daemon[1129]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.71" (uid=1000 pid=2569 comm="bluetoothctl ") interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" error name="(unset)" requested_reply="0" destination="org.bluez" (uid=0 pid=1134 comm="/usr/sbin/bluetoothd ")
Jul  9 20:13:20 noir dbus-daemon[1129]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.72" (uid=1000 pid=2599 comm="bluetoothctl ") interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" error name="(unset)" requested_reply="0" destination="org.bluez" (uid=0 pid=1134 comm="/usr/sbin/bluetoothd ")
Jul  9 20:13:39 noir dbus-daemon[2371]: [session uid=1000 pid=2369] Activating service name='org.gnome.GConf' requested by ':1.28' (uid=1000 pid=2625 comm="firefox ")
Jul  9 20:13:39 noir dbus-daemon[2371]: [session uid=1000 pid=2369] Successfully activated service 'org.gnome.GConf'
Jul  9 20:19:34 noir bluetoothd[3442]: Bluetooth daemon 5.50
Jul  9 20:20:58 noir dbus-daemon[1129]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.76" (uid=1000 pid=3553 comm="bluetoothctl ") interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" error name="(unset)" requested_reply="0" destination="org.bluez" (uid=0 pid=1134 comm="/usr/sbin/bluetoothd ")
Jul  9 20:28:17 noir dbus-daemon[1129]: [system] Rejected send message, 2 matched rules; type="method_call", sender=":1.77" (uid=1000 pid=4108 comm="bluetoothctl ") interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" error name="(unset)" requested_reply="0" destination="org.bluez" (uid=0 pid=1134 comm="/usr/sbin/bluetoothd ")


Freaksta 07-09-2018 07:49 PM

Added a new user with a differnt name than my hostname and it works fine:

Code:

Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Activating service name='org.xfce.Xfconf' requested by ':1.0' (uid=1001 pid=2092 comm="xfce4-session ")
Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Successfully activated service 'org.xfce.Xfconf'
Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Activating service name='org.freedesktop.Notifications' requested by ':1.11' (uid=1001 pid=2117 comm="xfce4-power-manager ")
Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Activating service name='org.a11y.Bus' requested by ':1.14' (uid=1001 pid=2115 comm="/usr/libexec/polkit-gnome-authentication-agent-1 ")
Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Activating service name='org.gtk.vfs.Daemon' requested by ':1.17' (uid=1001 pid=2144 comm="/usr/libexec/at-spi-bus-launcher ")
Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Successfully activated service 'org.gtk.vfs.Daemon'
Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Successfully activated service 'org.a11y.Bus'
Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Activating service name='org.freedesktop.thumbnails.Thumbnailer1' requested by ':1.13' (uid=1001 pid=2109 comm="xfdesktop ")
Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Successfully activated service 'org.freedesktop.Notifications'
Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Activating service name='org.gnome.GConf' requested by ':1.28' (uid=1001 pid=2112 comm="/usr/bin/python3 /usr/bin/hp-systray -x ")
Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Successfully activated service 'org.gnome.GConf'
Jul  9 20:45:39 noir bluetoothd[1151]: Endpoint registered: sender=:1.56 path=/MediaEndpoint/A2DPSource
Jul  9 20:45:39 noir bluetoothd[1151]: Endpoint registered: sender=:1.56 path=/MediaEndpoint/A2DPSink
Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Activating service name='ca.desrt.dconf' requested by ':1.26' (uid=1001 pid=2124 comm="/usr/bin/python3.6 /usr/bin/blueman-applet ")
Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Activating service name='org.bluez.obex' requested by ':1.32' (uid=1001 pid=2124 comm="/usr/bin/python3.6 /usr/bin/blueman-applet ")
Jul  9 20:45:39 noir obexd[2233]: OBEX daemon 5.50
Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Successfully activated service 'ca.desrt.dconf'
Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Successfully activated service 'org.bluez.obex'
Jul  9 20:45:39 noir dbus-daemon[1146]: [system] Activating service name='org.blueman.Mechanism' requested by ':1.57' (uid=1001 pid=2124 comm="/usr/bin/python3.6 /usr/bin/blueman-applet ") (using servicehelper)
Jul  9 20:45:39 noir blueman-mechanism: Starting blueman-mechanism 
Jul  9 20:45:39 noir dbus-daemon[1146]: [system] Successfully activated service 'org.blueman.Mechanism'
Jul  9 20:45:39 noir blueman-mechanism: loading Ppp 
Jul  9 20:45:39 noir blueman-mechanism: loading Network 
Jul  9 20:45:39 noir blueman-mechanism: loading Rfcomm 
Jul  9 20:45:39 noir blueman-mechanism: loading RfKill 
Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Activating service name='org.gtk.vfs.UDisks2VolumeMonitor' requested by ':1.22' (uid=1001 pid=2168 comm="/usr/lib64/tumbler-1/tumblerd ")
Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Successfully activated service 'org.gtk.vfs.UDisks2VolumeMonitor'
Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Activating service name='org.gtk.vfs.GPhoto2VolumeMonitor' requested by ':1.22' (uid=1001 pid=2168 comm="/usr/lib64/tumbler-1/tumblerd ")
Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Successfully activated service 'org.gtk.vfs.GPhoto2VolumeMonitor'
Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Activating service name='org.gtk.vfs.MTPVolumeMonitor' requested by ':1.22' (uid=1001 pid=2168 comm="/usr/lib64/tumbler-1/tumblerd ")
Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Successfully activated service 'org.gtk.vfs.MTPVolumeMonitor'
Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Activating service name='org.gtk.vfs.AfcVolumeMonitor' requested by ':1.22' (uid=1001 pid=2168 comm="/usr/lib64/tumbler-1/tumblerd ")
Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Successfully activated service 'org.gtk.vfs.AfcVolumeMonitor'
Jul  9 20:45:39 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Successfully activated service 'org.freedesktop.thumbnails.Thumbnailer1'
Jul  9 20:45:40 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Activating service name='org.gtk.vfs.Metadata' requested by ':1.7' (uid=1001 pid=2109 comm="xfdesktop ")
Jul  9 20:45:40 noir dbus-daemon[2084]: [session uid=1001 pid=2082] Successfully activated service 'org.gtk.vfs.Metadata'
Jul  9 20:45:50 noir bluetoothd[1151]: /org/bluez/hci0/dev_04_52_C7_7B_C4_70/fd1: fd(37) ready
Jul  9 20:45:50 noir kernel: [  259.298018] input: 04:52:C7:7B:C4:70 as /devices/virtual/input/input22
Jul  9 20:46:09 noir blueman-mechanism: Exiting


Freaksta 07-09-2018 07:59 PM

Fixed itself.

So weird.

Moving on...

Richard Cranium 07-09-2018 10:05 PM

Quote:

Originally Posted by Freaksta (Post 5877513)
Any ideas?

https://www.linuxquestions.org/quest...ml#post5867761

Or...

Quote:

OK, after you add a user to the lp group, you must
  1. As root, run /etc/rc.d/rc.messagebus reload (or reboot)
  2. Logout that user (unless you rebooted, of course)
  3. Log in with that user



All times are GMT -5. The time now is 09:01 AM.