Re: Bluetooth audio device on GuixSD

2019-01-06 Thread Maxim Cournoyer
Hi,

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



Re: Bluetooth audio device on GuixSD

2018-10-20 Thread znavko
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 

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 
  `hciconfig hci0 
up`cause I have no this tool.

Please, how to deal with it?


Re: Bluetooth audio device on GuixSD

2018-10-15 Thread Ricardo Wurmus


Ludovic Courtès  writes:

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




Re: Bluetooth audio device on GuixSD

2018-10-15 Thread Pierre Neidhardt
I agree!

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


signature.asc
Description: PGP signature


Re: Bluetooth audio device on GuixSD

2018-10-15 Thread Ludovic Courtès
Hello,

Pierre Neidhardt  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’.



Bluetooth audio device on GuixSD

2018-10-14 Thread znavko
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 ?