Bug 341546

Summary: Bluetooth devices are disabled by default
Product: [Unmaintained] solid Reporter: Pulfer <pulfer>
Component: bluetoothAssignee: David Rosca <nowrep>
Status: RESOLVED FIXED    
Severity: major CC: fademind, nowrep, whites11
Priority: NOR    
Version: 2.0.0   
Target Milestone: ---   
Platform: ROSA RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Save and restore adapters state in kded module

Description Pulfer 2014-12-04 13:30:25 UTC
ROSA QA denied libbluedevil and bluedevil 2.0rc1 -> 2.0 update because of regression:

-------------------------------------------------------------------------
I have a bluetooth sound system. The system automatically enabled after reboot by old version.
With new version after reboot I must
1) Enable bluetooth in tray
2) Enable the sound system in tray menu
It's big regression (for bluetooth mouse too!)
******************************************
QA Denied
-------------------------------------------------------------------------

Reproducible: Always
Comment 1 David Rosca 2014-12-13 07:46:28 UTC
So it looks like this commit https://projects.kde.org/projects/playground/libs/libbluedevil/repository/revisions/c76d6e50ba6466403457371ab8416b0600af4a77 fixed issue with adapters being powered on startup even if user powered them off before.
But it also introduced new issue, as you are experiencing, that some adapters would be always off on startup.

I will try to fix it by saving the powered state for all adapters and restoring it on startup. I hope I will have patch ready in few days (I'm busy right now).
After this fix, I will release new version 2.0.1
Comment 2 David Rosca 2014-12-13 10:55:20 UTC
Created attachment 89952 [details]
Save and restore adapters state in kded module

Can you please try this patch?
Comment 4 whites11 2015-01-10 11:18:03 UTC
(lib)bludevil 2.1 on arch linux.
bluetooth adapter BCM2045 (0a5c:2101)
I still need to enable the adapter (which is correctly recognized though) everytime I resume from suspension to ram. 
Am I missing something or is the adapter supposed to be automatically enabled?
Comment 5 David Rosca 2015-01-10 11:54:59 UTC
The adapter powered state should be restored after resuming from suspend.
This feature in Bludevil KDED module currently depends on logind.
Comment 6 whites11 2015-01-11 08:27:47 UTC
I know this is not a support forum, but can you help me understand where to check for errors on my system/check why automatic enabling is not working?