unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Bluetooth audio device on GuixSD
@ 2018-10-14 17:22 znavko
  2018-10-15  6:33 ` Pierre Neidhardt
  0 siblings, 1 reply; 7+ messages in thread
From: znavko @ 2018-10-14 17:22 UTC (permalink / raw)
  To: Help Guix

[-- Attachment #1: Type: text/plain, Size: 211 bytes --]

Hello! I've found MIT lectures and want to listen it on my laptop. I want be able to use bluetooth headphones.
Is it possible to configure bluetooth audio device? How to do that with 'bluez-alsa' or any other ?

[-- Attachment #2: Type: text/html, Size: 346 bytes --]

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

* Re: Bluetooth audio device on GuixSD
  2018-10-14 17:22 Bluetooth audio device on GuixSD znavko
@ 2018-10-15  6:33 ` Pierre Neidhardt
  2018-10-15 12:16   ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Pierre Neidhardt @ 2018-10-15  6:33 UTC (permalink / raw)
  To: znavko; +Cc: Help Guix

[-- Attachment #1: Type: text/plain, Size: 1074 bytes --]

First, add the bluetooth service to your Guix .config:

--8<---------------cut here---------------start------------->8---
(operating-system
 ;...
 
 (services (list
            (bluetooth-service)
						;...
						%desktop-services)))
--8<---------------cut here---------------end--------------->8---

THen

--8<---------------cut here---------------start------------->8---
$ sudo -E guix system reconfigure /path/to/your/config.scm
--8<---------------cut here---------------end--------------->8---

Test if bluetooth is started.

--8<---------------cut here---------------start------------->8---
$ sudo herd status | grep bluetooth
 + bluetooth
--8<---------------cut here---------------end--------------->8---

If not, reboot.

If you run a desktop environment (e.g. Gnome), there should be a graphical
configuration tool for bluetooth already.  Otherwise, you can install "bluez"
and follow the instructions here:

	https://wiki.archlinux.org/index.php/Bluetooth#Pairing

Hope that helps!

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

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

* Re: Bluetooth audio device on GuixSD
  2018-10-15  6:33 ` Pierre Neidhardt
@ 2018-10-15 12:16   ` Ludovic Courtès
  2018-10-15 12:38     ` Pierre Neidhardt
                       ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Ludovic Courtès @ 2018-10-15 12:16 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: Help Guix

Hello,

Pierre Neidhardt <mail@ambrevar.xyz> skribis:

> First, add the bluetooth service to your Guix .config:

This makes me wonder: should we add the bluetooth service to
‘%desktop-services’?

Bluez doesn’t seem to add much to the closure size and many people
probably expect to have it installed in a desktop setting.

Thoughts?

Ludo’.

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

* Re: Bluetooth audio device on GuixSD
  2018-10-15 12:16   ` Ludovic Courtès
@ 2018-10-15 12:38     ` Pierre Neidhardt
  2018-10-15 13:00     ` Ricardo Wurmus
  2018-10-20 16:20     ` znavko
  2 siblings, 0 replies; 7+ messages in thread
From: Pierre Neidhardt @ 2018-10-15 12:38 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Help Guix

[-- Attachment #1: Type: text/plain, Size: 58 bytes --]

I agree!

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

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

* Re: Bluetooth audio device on GuixSD
  2018-10-15 12:16   ` Ludovic Courtès
  2018-10-15 12:38     ` Pierre Neidhardt
@ 2018-10-15 13:00     ` Ricardo Wurmus
  2018-10-20 16:20     ` znavko
  2 siblings, 0 replies; 7+ messages in thread
From: Ricardo Wurmus @ 2018-10-15 13:00 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Help Guix


Ludovic Courtès <ludo@gnu.org> writes:

> Pierre Neidhardt <mail@ambrevar.xyz> skribis:
>
>> First, add the bluetooth service to your Guix .config:
>
> This makes me wonder: should we add the bluetooth service to
> ‘%desktop-services’?
>
> Bluez doesn’t seem to add much to the closure size and many people
> probably expect to have it installed in a desktop setting.

How about only adding it to the GNOME service?  %desktop-services is
also used by people who use simpler window managers and they may prefer
to have fewer software added by default.

It is easy enough for people to remove services, of course, but I
thought I’d mention it as an alternative anyway.  Either way is fine by
me.

--
Ricardo

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

* Re: Bluetooth audio device on GuixSD
  2018-10-15 12:16   ` Ludovic Courtès
  2018-10-15 12:38     ` Pierre Neidhardt
  2018-10-15 13:00     ` Ricardo Wurmus
@ 2018-10-20 16:20     ` znavko
  2019-01-06 23:40       ` Maxim Cournoyer
  2 siblings, 1 reply; 7+ messages in thread
From: znavko @ 2018-10-20 16:20 UTC (permalink / raw)
  Cc: Help Guix

[-- Attachment #1: Type: text/plain, Size: 2038 bytes --]

Hello! I am not able to use bluetooth on Xfce4 desktop using bluetoothctl. Would you give more advises?
I'v performed this: 
1. added bluetooth to /etc/config.scm as Pierre Neidhardt posted https://lists.gnu.org/archive/html/help-guix/2018-10/msg00046.html <https://lists.gnu.org/archive/html/help-guix/2018-10/msg00046.html>
2. ran `guix pull && guix package -u` and then reconfigured system `guix system reconfigure /etc/config.scm`
3. rebooted and my try was not successful. 
4. I edited to /etc/bluetooth/main.conf typing 'true' instead of 'false' (I remounted /gnu/store with rw for perform this without reconfiguring with guix command)
5. I rebooted but no result again:

# herd status bluetooth
Status of bluetooth:
  It is started.
  Running value is 698.
  It is enabled.
  Provides (bluetooth).
  Requires (dbus-system udev).
  Conflicts with ().
  Will be respawned.

# herd status dbus-system
Status of dbus-system:
  It is started.
  Running value is 322.
  It is enabled.
  Provides (dbus-system).
  Requires (user-processes).
  Conflicts with ().
  Will be respawned.
# herd status udev
Status of udev:
  It is started.
  Running value is 200.
  It is enabled.
  Provides (udev).
  Requires (root-file-system).
  Conflicts with ().
  Will not be respawned.


# rfkill list bluetooth
1: ideapad_bluetooth: Bluetooth
    Soft blocked: yes
    Hard blocked: no
# rfkill unblock bluetooth
# herd restart bluetooth
Service bluetooth has been stopped.
Service bluetooth has been started.
# bluetoothctl
Agent registered
[bluetooth]# list
[bluetooth]# 
[bluetooth]# select
Missing ctrl argument
[bluetooth]# devices
No default controller available


Cannot see bluetooth device. 
I do not know MAC-address. I cannot power on as described here
Here say https://wiki.archlinux.org/index.php/Bluetooth#Pairing <https://wiki.archlinux.org/index.php/Bluetooth#Pairing>  `hciconfig hci0 up`cause I have no this tool.

Please, how to deal with it?

[-- Attachment #2: Type: text/html, Size: 2655 bytes --]

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

* Re: Bluetooth audio device on GuixSD
  2018-10-20 16:20     ` znavko
@ 2019-01-06 23:40       ` Maxim Cournoyer
  0 siblings, 0 replies; 7+ messages in thread
From: Maxim Cournoyer @ 2019-01-06 23:40 UTC (permalink / raw)
  To: znavko; +Cc: Help Guix

Hi,

<znavko@tutanota.com> writes:

> Hello! I am not able to use bluetooth on Xfce4 desktop using bluetoothctl. Would you give more advises?

[...]

> # bluetoothctl
> Agent registered
> [bluetooth]# list
> [bluetooth]# 
> [bluetooth]# select
> Missing ctrl argument
> [bluetooth]# devices
> No default controller available
>
> Cannot see bluetooth device. 
> I do not know MAC-address. I cannot power on as described here
> Here say https://wiki.archlinux.org/index.php/Bluetooth#Pairing
> <https://wiki.archlinux.org/index.php/Bluetooth#Pairing>  `hciconfig
> hci0 up`cause I have no this tool.

You can configure the bluetooth service in your system's config to
automatically power up the bluetooth controller.  The Guix info manual
says:

 -- Scheme Procedure: bluetooth-service [#:bluez BLUEZ]
          [#:auto-enable? #f]
     Return a service that runs the ‘bluetoothd’ daemon, which manages
     all the Bluetooth devices and provides a number of D-Bus
     interfaces.  When AUTO-ENABLE? is true, the bluetooth controller is
     powered automatically at boot, which can be useful when using a
     bluetooth keyboard or mouse.


Here's what it looks like in mine:
--8<---------------cut here---------------start------------->8---
  (services
   (cons*
    [...]
    (bluetooth-service #:auto-enable? #t)
    [...]
--8<---------------cut here---------------end--------------->8---

In your user-account record you'll also want to add "lp" in the list of
supplementary groups, so that your unprivileged user has access to your
bluetooth device:

--8<---------------cut here---------------start------------->8---
(user-account
[...]
 (supplementary-groups
   '("lp"			;for bluetooth
   [...])))
--8<---------------cut here---------------end--------------->8---

HTH,

Maxim

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

end of thread, other threads:[~2019-01-06 23:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-14 17:22 Bluetooth audio device on GuixSD znavko
2018-10-15  6:33 ` Pierre Neidhardt
2018-10-15 12:16   ` Ludovic Courtès
2018-10-15 12:38     ` Pierre Neidhardt
2018-10-15 13:00     ` Ricardo Wurmus
2018-10-20 16:20     ` znavko
2019-01-06 23:40       ` Maxim Cournoyer

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