unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Set up the bluetooth - error : dbus-service-type: unbound variable
       [not found] <1013727203.444856133.1678997935330.JavaMail.root@zimbra49-e8.priv.proxad.net>
@ 2023-03-16 20:20 ` hub.lombard
  2023-03-17 13:06   ` hub.lombard
  0 siblings, 1 reply; 3+ messages in thread
From: hub.lombard @ 2023-03-16 20:20 UTC (permalink / raw)
  To: help-guix

Hello Guix!

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
My config:
--8<---------------cut here---------------start------------->8---

(use-modules (gnu) (gnu services vpn)(gnu packages gnome)(gnu packages certs)(gnu packages screen)(gnu packages ssh) (gnu packages linux) (gnu packages audio)) 
;; (gnu packages dbus))   ;after a reconfigure, I get: "no code for module (gnu packages dbus)"
(use-service-modules desktop networking ssh xorg virtualization audio dbus sound)
(use-package-modules glib scanner audio linux)  ;'dbus' added here for a while, give something like: " conseil: try glib (instead of dbus)"
;; 

(operating-system
  (host-name "gnu")
  (timezone "Europe/Paris")
  (locale "fr_FR.utf8")
  
  (keyboard-layout (keyboard-layout "fr"))
  
  (users (cons* (user-account
                  (name "hubert")
                  (comment "Hubert")
                  (group "users")
                  (home-directory "/home/hubert")
                  (supplementary-groups
                    '("wheel" "netdev" "audio" "video" "kvm" "lp")));I have added "lp"
                %base-user-accounts))
;;  (packages
;;    (append
;;      (list (specification->package "nss-certs"))
;;      %base-packages))

;; This is where we specify
;; system-wide packages.
(packages (cons* gvfs                 
                 nss-certs            
                 screen
                 openssh
                 bluez                ;for bluetooth
                 bluez-alsa           ;sound
                %base-packages))

  (services
    (append
      (list (service gnome-desktop-service-type)
            (service xfce-desktop-service-type)
            (service alsa-service-type) ;And these three lines about alsa,  
            (dbus-service-type #:services (list bluez-alsa));dbus and
            (bluetooth-service-type #:auto-enable? #t);bluetooth
            (set-xorg-configuration
              (xorg-configuration
                (keyboard-layout keyboard-layout))))
;;             (service hurd-vm-service-type
;;         (hurd-vm-configuration
;;          (disk-size (* 12 (expt 2 30))) 
;;          (memory-size 1024)))              
               %desktop-services))
   (bootloader
    (bootloader-configuration
      (bootloader grub-bootloader)
      (targets "/dev/sda")
      (keyboard-layout keyboard-layout)))
  (swap-devices
    (list (uuid "cf5ad08e-1a92-4a2e-a059-b2a71f4da6ea")))
  (file-systems
    (cons* (file-system
             (mount-point "/")
             (device
               (uuid "eabe9803-3544-4e44-b44f-965aa76e7b96"
                     'ext4))
             (type "ext4"))
           %base-file-systems)) 
)
--8<---------------cut here---------------end--------------->8---

$ 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 


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Set up the bluetooth - error : dbus-service-type: unbound variable
       [not found] <80247569.447788393.1679056785638.JavaMail.root@zimbra49-e8.priv.proxad.net>
@ 2023-03-17 12:43 ` Mario Forzanini
  0 siblings, 0 replies; 3+ messages in thread
From: Mario Forzanini @ 2023-03-17 12:43 UTC (permalink / raw)
  To: hub.lombard; +Cc: help-guix

On 3/17/23 1:39 PM, hub.lombard@free.fr wrote:
> 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

I'm happy to hear that.

I responded at 4AM and forgot to add the mailing list in Cc, I will 
include my response below in case anyone else has similar problems in 
the future.
-- 
Mario

> ----- 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Set up the bluetooth - error : dbus-service-type: unbound variable
  2023-03-16 20:20 ` Set up the bluetooth - error : dbus-service-type: unbound variable hub.lombard
@ 2023-03-17 13:06   ` hub.lombard
  0 siblings, 0 replies; 3+ messages in thread
From: hub.lombard @ 2023-03-17 13:06 UTC (permalink / raw)
  To: help-guix

Hi Guix!
I have now bluetooth enabled, many thanks to Mario Forzanini (he forgot to add the mailing list in Cc :)

<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>

Good afternoon guix!


Hubert

----- Mail original -----
De: "hub lombard" <hub.lombard@free.fr>
À: "help-guix" <help-guix@gnu.org>
Envoyé: Jeudi 16 Mars 2023 21:20:37
Objet: Set up the bluetooth - error : dbus-service-type: unbound variable

Hello Guix!

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
My config:
--8<---------------cut here---------------start------------->8---

(use-modules (gnu) (gnu services vpn)(gnu packages gnome)(gnu packages certs)(gnu packages screen)(gnu packages ssh) (gnu packages linux) (gnu packages audio)) 
;; (gnu packages dbus))   ;after a reconfigure, I get: "no code for module (gnu packages dbus)"
(use-service-modules desktop networking ssh xorg virtualization audio dbus sound)
(use-package-modules glib scanner audio linux)  ;'dbus' added here for a while, give something like: " conseil: try glib (instead of dbus)"
;; 

(operating-system
  (host-name "gnu")
  (timezone "Europe/Paris")
  (locale "fr_FR.utf8")
  
  (keyboard-layout (keyboard-layout "fr"))
  
  (users (cons* (user-account
                  (name "hubert")
                  (comment "Hubert")
                  (group "users")
                  (home-directory "/home/hubert")
                  (supplementary-groups
                    '("wheel" "netdev" "audio" "video" "kvm" "lp")));I have added "lp"
                %base-user-accounts))
;;  (packages
;;    (append
;;      (list (specification->package "nss-certs"))
;;      %base-packages))

;; This is where we specify
;; system-wide packages.
(packages (cons* gvfs                 
                 nss-certs            
                 screen
                 openssh
                 bluez                ;for bluetooth
                 bluez-alsa           ;sound
                %base-packages))

  (services
    (append
      (list (service gnome-desktop-service-type)
            (service xfce-desktop-service-type)
            (service alsa-service-type) ;And these three lines about alsa,  
            (dbus-service-type #:services (list bluez-alsa));dbus and
            (bluetooth-service-type #:auto-enable? #t);bluetooth
            (set-xorg-configuration
              (xorg-configuration
                (keyboard-layout keyboard-layout))))
;;             (service hurd-vm-service-type
;;         (hurd-vm-configuration
;;          (disk-size (* 12 (expt 2 30))) 
;;          (memory-size 1024)))              
               %desktop-services))
   (bootloader
    (bootloader-configuration
      (bootloader grub-bootloader)
      (targets "/dev/sda")
      (keyboard-layout keyboard-layout)))
  (swap-devices
    (list (uuid "cf5ad08e-1a92-4a2e-a059-b2a71f4da6ea")))
  (file-systems
    (cons* (file-system
             (mount-point "/")
             (device
               (uuid "eabe9803-3544-4e44-b44f-965aa76e7b96"
                     'ext4))
             (type "ext4"))
           %base-file-systems)) 
)
--8<---------------cut here---------------end--------------->8---

$ 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 


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-18 15:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1013727203.444856133.1678997935330.JavaMail.root@zimbra49-e8.priv.proxad.net>
2023-03-16 20:20 ` Set up the bluetooth - error : dbus-service-type: unbound variable hub.lombard
2023-03-17 13:06   ` hub.lombard
     [not found] <80247569.447788393.1679056785638.JavaMail.root@zimbra49-e8.priv.proxad.net>
2023-03-17 12:43 ` Mario Forzanini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).