Bug 348894 - Bluedevil won't start by default
Summary: Bluedevil won't start by default
Status: RESOLVED DOWNSTREAM
Alias: None
Product: Bluedevil
Classification: Plasma
Component: daemon (show other bugs)
Version: 5.3.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-08 20:01 UTC by Franco Pellegrini
Modified: 2015-10-01 14:22 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Franco Pellegrini 2015-06-08 20:01:41 UTC
The bluetooth icon is not showing up in the system tray area, and I also don't see configuration options in the "System Settings".

I have to manually run bluedevil-monolithic in order to have the icon in the system tray.

I have installed Kubuntu 15.04 from scratch and updated to latest packages following instructions in http://www.kubuntu.org/news/kde-applications-15041-available-kubuntu-1504

Maybe I'm missing some manual step to fix this? or some package that might be needed to be installed?

Reproducible: Always

Steps to Reproduce:
1. Login to my KDE session
2. Try to configure Bluetooth


Actual Results:  
There is no way to configure it, neither from the system tray, nor the system settings

Expected Results:  
Have a bluetooth icon sitting in the system tray and a configuration module in the system settings

bluedevil - 2.0~rc1really1.3.2-0ubuntu1
KDE plasma - 5.3.1
QT - 5.4.1
Comment 1 David Rosca 2015-06-08 20:35:46 UTC
Hi,
bluedevil-monolithic is started by Bluedevil KDED module. You have old KDE4 Bluedevil (due to Bluez 4 in Ubuntu) and Plasma 5, so it looks like kded4 is not started.

You should fix it by adding kded4 to autostart programs.
Comment 2 Franco Pellegrini 2015-06-08 20:39:50 UTC
Hey David, thanks for your answer, I ran killall bluedevil-monolithic and then I ran kded4 but I don't see bluedevil-monolithic running and no bluetooth in the system tray.

I do see /usr/sbin/bluetoothd -n running as root, is this ok?

Now, how would this be solved properly? should I uninstall bluez ?
Comment 3 David Rosca 2015-06-08 20:53:23 UTC
(In reply to Franco Pellegrini from comment #2)
> Hey David, thanks for your answer, I ran killall bluedevil-monolithic and
> then I ran kded4 but I don't see bluedevil-monolithic running and no
> bluetooth in the system tray.

Can you check if bluedevil module is loaded? 
Check output of:   qdbus org.kde.kded /kded loadedModules

> I do see /usr/sbin/bluetoothd -n running as root, is this ok?

That's fine.

> Now, how would this be solved properly? should I uninstall bluez ?

No, you won't have working Bluetooth without BlueZ.
Comment 4 Franco Pellegrini 2015-06-08 20:56:13 UTC
$ qdbus org.kde.kded /kded loadedModules
networkstatus
kcookiejar

$ ps aux | grep kded
frapell   1310  0.0  0.0   6292    32 ?        S    Jun06   0:00 /usr/lib/x86_64-linux-gnu/libexec/kf5/start_kdeinit --kded +kcminit_startup
frapell   1315  0.0  0.8 1823420 104376 ?      Sl   Jun06   0:19 kded5 [kdeinit5]                                      
frapell  14306  0.0  0.2 267424 25616 pts/25   S    15:37   0:00 kded4


$ ps aux | grep bluedevil
Shows nothing.
Comment 5 David Rosca 2015-06-08 20:58:38 UTC
(In reply to Franco Pellegrini from comment #4)
> $ qdbus org.kde.kded /kded loadedModules
> networkstatus
> kcookiejar
> 

What about if you try to load it?
qdbus org.kde.kded /kded loadModule bluedevil
Comment 6 Franco Pellegrini 2015-06-08 21:01:34 UTC
Great, I got "true" and system tray is now visible. I still don't see configuration in system settings though... Now, how do I make this automatic on Login ?

Also, reading your response in https://bugs.kde.org/show_bug.cgi?id=348895 maybe my problems are related to not having the real latest bluedevil and should just wait?
Comment 7 David Rosca 2015-06-08 21:05:34 UTC
(In reply to Franco Pellegrini from comment #6)
> Great, I got "true" and system tray is now visible. I still don't see
> configuration in system settings though... Now, how do I make this automatic
> on Login ?

qdbus org.kde.kded /kded setModuleAutoloading bluedevil true

This should fix it.
Comment 8 David Rosca 2015-06-08 21:07:11 UTC
But I wonder why it wasn't set as autoloaded by default? Did you update your installation (and maybe disable Bluedevil module before?) or was it a clean installation?
Comment 9 Franco Pellegrini 2015-06-08 21:34:41 UTC
Sorry, when you mention "qdbus org.kde.kded /kded setModuleAutoloading bluedevil true", means to just run this once, and it should remain enabled.

Also, I need to add kded4 to the "Startup and Shutdown" system settings, right?

As per your question, I did a clean installation from scratch for Kubuntu 15.04 and then upgraded to latest packages following instructions in http://www.kubuntu.org/news/kde-applications-15041-available-kubuntu-1504
Comment 10 David Rosca 2015-06-08 21:39:15 UTC
(In reply to Franco Pellegrini from comment #9)
> Sorry, when you mention "qdbus org.kde.kded /kded setModuleAutoloading
> bluedevil true", means to just run this once, and it should remain enabled.

This should make it permanent - that is it should automatically load bluedevil module on kded4 startup.
So yes, you should only run this once.

> Also, I need to add kded4 to the "Startup and Shutdown" system settings,
> right?

If it is not started otherwise, then yes.
Comment 11 David Rosca 2015-06-09 20:55:47 UTC
I'm closing it as Kubuntu downstream issue.
Comment 12 Sergio 2015-10-01 14:22:31 UTC
Tried the qdbus org.kde.kded /kded setModuleAutoloading bluedevil true
qdbus org.kde.kded /kded loadModule bluedevil 
to manually load the module and it works.

Tried the
qdbus org.kde.kded /kded setModuleAutoloading bluedevil true
to have the module autoload, and it does not seem to do anything.

Any clue