Hi Mario !
Thanks you for your help, it worked!
Taking care to disable my old statements, I simply inserted your lines into my
config.
After rebooting, I was pleased to see the bluetooth enabled.
For my test, I use a mini bluetooth speaker M-370 DJ. I detect it in the
blutooth settings of Gnome.
Its configuration does not succeed but it is another problem, I will see that...
Your solution to have the bluetooth activated is simple and effective, again,
thanks a lot!
Hubert
----- Mail original -----
De: "Mario Forzanini" <mf@marioforzanini.com>
À: "hub lombard" <hub.lombard@free.fr>
Envoyé: Vendredi 17 Mars 2023 03:37:21
Objet: Re: Set up the bluetooth - error : dbus-service-type: unbound variable
Hi!
On 3/16/23 9:20 PM, hub.lombard@free.fr wrote:
Wanting to use bluetooth devices, especially audio speakers, I have tried to
inser in my /etc/config.scm some relevant gnu packages, modules, services...
But I can't make it work
[...]
$ sudo guix system reconfigure /etc/config.scm
..............................................
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
erreur : dbus-service-type : variable non liée
I think the service you are looking for is called
'dbus-root-service-type', rather than 'dbus-service-type', but I'm
pretty sure it is part of %desktop-services anyway.
After have put '(gnu packages dbus)'
$ sudo guix system reconfigure /etc/config.scm
..............................................
guix system: erreur : échec lors du chargement de « /etc/config.scm » :
ice-9/boot-9.scm:3330:6: In procedure resolve-interface:
no code for module (gnu packages dbus)
I don't know how to investigate more...
Thank you in advance if you have some infos :)
Regards
Hubert
This is my working bluetooth configuration
<snip>
(use-modules (gnu services base)
(gnu services desktop))
(operating-system
; ...
(services
(cons
(service bluetooth-service-type
(bluetooth-configuration
(auto-enable? #t)))
%desktop-services)))
<snap>
DBus starts by default and bluetooth is enabled and automatically
configured, Pulseaudio can connect to my bluetooth headset out of the
box. Sometimes I had issues with bluetooth on GNU/Linux because I didn't
realize my antenna was software locked and I needed to unlock it with
rfkill. I hope this helps