From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 28 06:34:09 2018 Received: (at submit) by debbugs.gnu.org; 28 Apr 2018 10:34:09 +0000 Received: from localhost ([127.0.0.1]:41608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fCNBA-0007ZK-Jg for submit@debbugs.gnu.org; Sat, 28 Apr 2018 06:34:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50447) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fCNB6-0007Yo-Mg for submit@debbugs.gnu.org; Sat, 28 Apr 2018 06:34:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCNB0-0003It-AA for submit@debbugs.gnu.org; Sat, 28 Apr 2018 06:33:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57008) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fCNB0-0003Ip-6u for submit@debbugs.gnu.org; Sat, 28 Apr 2018 06:33:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fCNAy-0003od-LR for guix-patches@gnu.org; Sat, 28 Apr 2018 06:33:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fCNAv-0003Hg-1q for guix-patches@gnu.org; Sat, 28 Apr 2018 06:33:56 -0400 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:35601) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fCNAu-0003HF-OF for guix-patches@gnu.org; Sat, 28 Apr 2018 06:33:52 -0400 Received: by mail-wm0-x233.google.com with SMTP id o78so6969057wmg.0 for ; Sat, 28 Apr 2018 03:33:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yDEMYm2vOsrUcbqjuoogz+AcJZJOGgIxFlseIR18y1M=; b=AXBY9pPuP332xwlLDdUCkV9LMqDdR9TKgon2gb1h1+L+BRsbo1gd9hUeHU9SK63iN+ veH1w53Y8vW91yPyQT7WJuPbXNWqdI3AlieN9PaVYJFrzLIcicuuz+97rsUBSmS8JdAC +kQlTzirpvvDyakyxFqeX0uwOYdxVyGMCyVEST2YQ8ioO50f6hG6VnEmu5Klnc1V8rBS WSEfne+vRp+eEgtHa9VMfq0xxIEMlw2PS1n+rrmaxm2YG1DTzIOMXTi0uRE8FNkep6bJ x1aVvxcyS8+z4MyoqJFtDh3/s0/mzjQjYnTEcrum0jSj3UGK3qllwqqB9b2g0ImWbrK+ 3thA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yDEMYm2vOsrUcbqjuoogz+AcJZJOGgIxFlseIR18y1M=; b=iSnHf2ytDWfbmrXLkWyhN4TdJMrrVa7HMAnA7bvCyHZcYQyL2qzv2XiUA4pEoX8ctI QBVVYS5kI/QDU3XISTLSZHh9laWyr+hz0xR6Zwc9CKszO8JdIJaJ+8jXVZDsmmu9xTZH eB9/QTTRjZnE1Jx4U18joa0eXdj+L3jxXeoz3iRGZbaxsuQ5lWWVkh+2nMdrN+b+Cjin 55cH/eae5hZnR3RjRScbF0vNfK9wgDjHz90qtqXT9JlkPOdSUEFSSRuBxChgsHBpbLQc fdrgrW281d3ieJOG/YZ7UYNJe4ySLZ/voVyB5hwgshlDj2fJ279fNwagvQpQLJ+CM18N zLLg== X-Gm-Message-State: ALQs6tBLGKvdbybTFgAwQKIyGUXwFRKeRR0zd097EvV+jxn7AeNOFTx+ kauNm2ME+Hc6LuFa0WxbhlU6CQ== X-Google-Smtp-Source: AB8JxZqUp0z3annHqFcei32iRw/Kez0U/YlFTDflhABt+QIp10x7WrMog2czUFkpZpeLgS/nsBmuUw== X-Received: by 10.28.132.68 with SMTP id g65mr3879078wmd.114.1524911630811; Sat, 28 Apr 2018 03:33:50 -0700 (PDT) Received: from localhost.localdomain (ppp91-122-87-62.pppoe.avangarddsl.ru. [91.122.87.62]) by smtp.gmail.com with ESMTPSA id x7-v6sm4132498wrm.0.2018.04.28.03.33.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 Apr 2018 03:33:50 -0700 (PDT) From: Oleg Pykhalov To: guix-patches@gnu.org Subject: [PATCH] gnu: Add sound service. Date: Sat, 28 Apr 2018 13:33:41 +0300 Message-Id: <20180428103341.30675-1-go.wigust@gmail.com> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit Cc: Oleg Pykhalov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) * gnu/services/sound.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add this. * doc/guix.texi (Sound Services): New chapter. --- doc/guix.texi | 33 +++++++++++++++ gnu/local.mk | 1 + gnu/services/sound.scm | 95 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 129 insertions(+) create mode 100644 gnu/services/sound.scm diff --git a/doc/guix.texi b/doc/guix.texi index 75886e94b..b057f67cb 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -235,6 +235,7 @@ Services * X Window:: Graphical display. * Printing Services:: Local and remote printer support. * Desktop Services:: D-Bus and desktop services. +* Sound Services:: ALSA and Pulseaudio services. * Database Services:: SQL databases, key-value stores, etc. * Mail Services:: IMAP, POP3, SMTP, and all that. * Messaging Services:: Messaging services. @@ -9697,6 +9698,7 @@ declaration. * X Window:: Graphical display. * Printing Services:: Local and remote printer support. * Desktop Services:: D-Bus and desktop services. +* Sound Services:: ALSA and Pulseaudio services. * Database Services:: SQL databases, key-value stores, etc. * Mail Services:: IMAP, POP3, SMTP, and all that. * Messaging Services:: Messaging services. @@ -12804,6 +12806,37 @@ bluetooth keyboard or mouse. Users need to be in the @code{lp} group to access the D-Bus service. @end deffn +@node Sound Services +@subsubsection Sound Services + +The @code{(gnu services alsa)} module provides an +@code{alsa-service-type} service to generate an ALSA +@file{/etc/asound.conf} configuration file. + +@deffn {Scheme Variable} alsa-service-type +This is the type for the @uref{https://alsa-project.org/, alsa}, +@command{alsa-configuration} record as in this example: + +@example +(service alsa-service-type) +@end example + +See below for details about @code{alsa-configuration}. +@end deffn + +@deftp {Data Type} alsa-configuration +Data type representing the configuration for @code{alsa-service}. + +@table @asis +@item @code{pulseaudio?} (default: @var{#t}) +Whether to use Pulseaudio for configuring ALSA to use PulseAudio. + +@item @code{extra-options} (default: @var{#f}) +Extra options is a string which will be appended to asound.conf file. + +@end table +@end deftp + @node Database Services @subsubsection Database Services diff --git a/gnu/local.mk b/gnu/local.mk index cbf2c6f1b..b649ae008 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -480,6 +480,7 @@ GNU_SYSTEM_MODULES = \ %D%/services/networking.scm \ %D%/services/nfs.scm \ %D%/services/shepherd.scm \ + %D%/services/sound.scm \ %D%/services/herd.scm \ %D%/services/pm.scm \ %D%/services/rsync.scm \ diff --git a/gnu/services/sound.scm b/gnu/services/sound.scm new file mode 100644 index 000000000..b34e0efc1 --- /dev/null +++ b/gnu/services/sound.scm @@ -0,0 +1,95 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2018 Oleg Pykhalov +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu services sound) + #:use-module (gnu services base) + #:use-module (gnu services configuration) + #:use-module (gnu services shepherd) + #:use-module (gnu services web) + #:use-module (gnu services) + #:use-module (gnu system shadow) + #:use-module (guix gexp) + #:use-module (guix packages) + #:use-module (guix records) + #:use-module (guix store) + #:use-module (gnu packages pulseaudio) + #:use-module (ice-9 match) + #:export (alsa-configuration + alsa-service-type)) + +;;; Commentary: +;;; +;;; Sound services. +;;; +;;; Code: + + +;;; +;;; ALSA +;;; + +(define-record-type* + alsa-configuration make-alsa-configuration alsa-configuration? + (pulseaudio? alsa-configuration-pulseaudio? ;boolean + (default #t)) + (extra-options alsa-configuration-extra-options ;string + (default #f))) + +(define (alsa-config-file config) + "Return the ALSA configuration file corresponding to CONFIG." + (computed-file + "asound.conf" + #~(call-with-output-file #$output + (lambda (port) + (display "# Generated by 'alsa-service'.\n\n" port) + (when #$(alsa-configuration-pulseaudio? config) + (display "# Use PulseAudio by default +pcm.!default { + type pulse + fallback \"sysdefault\" + hint { + show on + description \"Default ALSA Output (currently PulseAudio Sound Server)\" + } +} + +ctl.!default { + type pulse + fallback \"sysdefault\" +} +" + port)) + (let ((extra-options #$(alsa-configuration-extra-options config))) + (when extra-options (display extra-options port))))))) + +(define (alsa-activation config) + "Return the activation GEXP for CONFIG." + (with-imported-modules '((guix build utils)) + #~(begin + (use-modules (guix build utils)) + (copy-file #$(alsa-config-file config) "/etc/asound.conf")))) + +(define alsa-service-type + (service-type + (name 'alsa) + (extensions + (list (service-extension activation-service-type alsa-activation))) + (default-value (alsa-configuration)) + (description "Configure the alsa."))) + +;;; alsa.scm ends here -- 2.17.0 From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 30 16:55:37 2018 Received: (at 31297) by debbugs.gnu.org; 30 Apr 2018 20:55:37 +0000 Received: from localhost ([127.0.0.1]:44344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDFph-0000LJ-3j for submit@debbugs.gnu.org; Mon, 30 Apr 2018 16:55:37 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:40864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDFpd-0000L7-Hj for 31297@debbugs.gnu.org; Mon, 30 Apr 2018 16:55:36 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id DCD2311FB5; Mon, 30 Apr 2018 22:55:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FX0LKOxBI2_k; Mon, 30 Apr 2018 22:55:32 +0200 (CEST) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id C8A0011D89; Mon, 30 Apr 2018 22:55:31 +0200 (CEST) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Oleg Pykhalov Subject: Re: [bug#31297] [PATCH] gnu: Add sound service. References: <20180428103341.30675-1-go.wigust@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 11 =?utf-8?Q?Flor=C3=A9al?= an 226 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 30 Apr 2018 22:55:31 +0200 In-Reply-To: <20180428103341.30675-1-go.wigust@gmail.com> (Oleg Pykhalov's message of "Sat, 28 Apr 2018 13:33:41 +0300") Message-ID: <87muxkv2gs.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 31297 Cc: 31297@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hello, Oleg Pykhalov skribis: > * gnu/services/sound.scm: New file. > * gnu/local.mk (GNU_SYSTEM_MODULES): Add this. > * doc/guix.texi (Sound Services): New chapter. [...] > +@node Sound Services > +@subsubsection Sound Services > + > +The @code{(gnu services alsa)} module provides an > +@code{alsa-service-type} service to generate an ALSA > +@file{/etc/asound.conf} configuration file. Is this file required to get PulseAudio support? I realize I have ~/.asoundrc that=E2=80=99s similar to what this new service does, so it may= be that I simply forgot that things wouldn=E2=80=99t work well without it. > +@deffn {Scheme Variable} alsa-service-type > +This is the type for the @uref{https://alsa-project.org/, alsa}, s/alsa/ALSA/ > +(define-record-type* > + alsa-configuration make-alsa-configuration alsa-configuration? > + (pulseaudio? alsa-configuration-pulseaudio? ;boolean > + (default #t)) > + (extra-options alsa-configuration-extra-options ;string > + (default #f))) s/#f/""/ since it=E2=80=99s a string. > +(define (alsa-config-file config) > + "Return the ALSA configuration file corresponding to CONFIG." > + (computed-file > + "asound.conf" > + #~(call-with-output-file #$output > + (lambda (port) > + (display "# Generated by 'alsa-service'.\n\n" port) > + (when #$(alsa-configuration-pulseaudio? config) > + (display "# Use PulseAudio by default > +pcm.!default { > + type pulse > + fallback \"sysdefault\" > + hint { > + show on > + description \"Default ALSA Output (currently PulseAudio Sound Server= )\" > + } > +} > + > +ctl.!default { > + type pulse > + fallback \"sysdefault\" > +} > +" > + port)) > + (let ((extra-options #$(alsa-configuration-extra-options config= ))) > + (when extra-options (display extra-options port))))))) I think you could instead write: (if (alsa-configuration-pulseaudio? config) (plain-file "asound.conf" (string-append "# Generated by=E2=80=A6" ex= tra-options)) (plain-file "asound.conf" extra-options)) > +(define (alsa-activation config) > + "Return the activation GEXP for CONFIG." > + (with-imported-modules '((guix build utils)) > + #~(begin > + (use-modules (guix build utils)) > + (copy-file #$(alsa-config-file config) "/etc/asound.conf")))) Please extend =E2=80=98etc-service-type=E2=80=99 instead. > +(define alsa-service-type > + (service-type > + (name 'alsa) > + (extensions > + (list (service-extension activation-service-type alsa-activation))) > + (default-value (alsa-configuration)) > + (description "Configure the alsa."))) =E2=80=9CConfigure low-level Linux sound support, ALSA.=E2=80=9D Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue May 01 05:39:49 2018 Received: (at 31297) by debbugs.gnu.org; 1 May 2018 09:39:49 +0000 Received: from localhost ([127.0.0.1]:44698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDRlE-0003aL-SS for submit@debbugs.gnu.org; Tue, 01 May 2018 05:39:49 -0400 Received: from mail-wr0-f181.google.com ([209.85.128.181]:40523) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDRlA-0003a5-PW for 31297@debbugs.gnu.org; Tue, 01 May 2018 05:39:47 -0400 Received: by mail-wr0-f181.google.com with SMTP id v60-v6so10346068wrc.7 for <31297@debbugs.gnu.org>; Tue, 01 May 2018 02:39:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version; bh=i5Jf1gfxUHMKzInhvvigB6/sobz0KyWAOtrGfvAB2BQ=; b=D86W8LTm9Rt9RU3Gf8FVivYOLnmYBz5O0viFbFG6+eYtnGs1XiDMN+rCC0uoeE1uvY xyeW+4dPOBUvOXOQxl1w7Z97DeDifl4ZKt3cOF+F85Ih39+NN47ZmWYidNaXkJHZls2Q x2BH2J+PGlQMJo5fJo5kAJ4dSQWJO6VnJwb8Fdo3fY1CVmn733PqMXJSPZHFHN9hQiPx Z1pWzDSIdClCgPodHrSuzp/ZxWpZap8nL9aBpc170/xofkXP1zPtGXacs9R2qEa0XZyP +IFyU0yNtglpOLriRxWPbrxQj1N/2GPKnVpzpnWrzdOXuf59Dd88Dfa80z7ugxtd3Uvf mfsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:message-id :user-agent:mime-version; bh=i5Jf1gfxUHMKzInhvvigB6/sobz0KyWAOtrGfvAB2BQ=; b=XCZP9Tbubhk2zyFjbNQB2ltXb1w1lRTwHsTzi2sOwqg4qKq+j0bbcg+mlkxnfs8PHb Im/kfx71vdyOpK1ddDwYYZSLEgaPY42UF5sEmZoBPZxvoYir6raXpYmY2avukJsf+eyp QhG99azosCzAhIUZWjSUwbjdpqEiCiwNorutcwiY46+qQq9gMw8S7AX+ZpWcMbMVdglR g2HFtAA+ihx0v4Q4QyLEj1qVzBciI6CoC7QIj8dJbF9EA8Kl8EXURlPiuFZl01XvKPkC /cRJ1ApgKsHppmSb1R57g+kyzgcyB7LSCDphXuNQeKOBQL3qGm9jluKIjQd+GK/msrx3 pvcg== X-Gm-Message-State: ALQs6tDcGEteHznkv/z5R2i/5fpLoZOYyChhz+OkP16O4HgFBmebg7bI 0OPOziaXcbQEfDDKC7JsRYIEeg== X-Google-Smtp-Source: AB8JxZpOzIUmeIbkRln1T7WXI6nOl58pceArpuR4kbEb8n9TC6lmVmT5Q+OeE+vNM7LbUlIT43EDCg== X-Received: by 2002:adf:c4a6:: with SMTP id m35-v6mr11225987wrf.103.1525167578256; Tue, 01 May 2018 02:39:38 -0700 (PDT) Received: from magnolia ([178.71.29.19]) by smtp.gmail.com with ESMTPSA id y42-v6sm12326959wry.21.2018.05.01.02.39.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 01 May 2018 02:39:37 -0700 (PDT) From: Oleg Pykhalov To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [bug#31297] [PATCH] gnu: Add sound service. References: <20180428103341.30675-1-go.wigust@gmail.com> <87muxkv2gs.fsf@gnu.org> Date: Tue, 01 May 2018 12:39:31 +0300 Message-ID: <87tvrrsoj0.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31297 Cc: 31297@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Ludovic, Thank you for review! ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Oleg Pykhalov skribis: > >> * gnu/services/sound.scm: New file. >> * gnu/local.mk (GNU_SYSTEM_MODULES): Add this. >> * doc/guix.texi (Sound Services): New chapter. > > [...] > >> +@node Sound Services >> +@subsubsection Sound Services >> + >> +The @code{(gnu services alsa)} module provides an >> +@code{alsa-service-type} service to generate an ALSA >> +@file{/etc/asound.conf} configuration file. > > Is this file required to get PulseAudio support? I realize I have > ~/.asoundrc that=E2=80=99s similar to what this new service does, so it m= ay be > that I simply forgot that things wouldn=E2=80=99t work well without it. In case of existing =E2=80=98~/.asoundrc=E2=80=99 it's not required. But I= spent some time to find a =E2=80=98asoundrc=E2=80=99 config and be glad if it was in a= Guix manual. [=E2=80=A6] I also replaced =E2=80=9Cto=E2=80=9D with =E2=80=9Cby=E2=80=9D in =E2=80=9CWhether to use Pulseaudio by configuring ALSA to use PulseAudio.= =E2=80=9D ^^ sentence in Guix documentation. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-sound-service.patch Content-Transfer-Encoding: quoted-printable Content-Description: gnu: Add sound service. From=20460fa678823a7cf3d2869a3e4beafb22e5a313fa Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Sat, 28 Apr 2018 13:30:20 +0300 Subject: [PATCH] gnu: Add sound service. * gnu/services/sound.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add this. * doc/guix.texi (Sound Services): New chapter. =2D-- doc/guix.texi | 33 ++++++++++++++++ gnu/local.mk | 1 + gnu/services/sound.scm | 86 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 120 insertions(+) create mode 100644 gnu/services/sound.scm diff --git a/doc/guix.texi b/doc/guix.texi index 75886e94b..46855d945 100644 =2D-- a/doc/guix.texi +++ b/doc/guix.texi @@ -235,6 +235,7 @@ Services * X Window:: Graphical display. * Printing Services:: Local and remote printer support. * Desktop Services:: D-Bus and desktop services. +* Sound Services:: ALSA and Pulseaudio services. * Database Services:: SQL databases, key-value stores, etc. * Mail Services:: IMAP, POP3, SMTP, and all that. * Messaging Services:: Messaging services. @@ -9697,6 +9698,7 @@ declaration. * X Window:: Graphical display. * Printing Services:: Local and remote printer support. * Desktop Services:: D-Bus and desktop services. +* Sound Services:: ALSA and Pulseaudio services. * Database Services:: SQL databases, key-value stores, etc. * Mail Services:: IMAP, POP3, SMTP, and all that. * Messaging Services:: Messaging services. @@ -12804,6 +12806,37 @@ bluetooth keyboard or mouse. Users need to be in the @code{lp} group to access the D-Bus service. @end deffn =20 +@node Sound Services +@subsubsection Sound Services + +The @code{(gnu services alsa)} module provides an +@code{alsa-service-type} service to generate an ALSA +@file{/etc/asound.conf} configuration file. + +@deffn {Scheme Variable} alsa-service-type +This is the type for the @uref{https://alsa-project.org/, ALSA}, +@command{alsa-configuration} record as in this example: + +@example +(service alsa-service-type) +@end example + +See below for details about @code{alsa-configuration}. +@end deffn + +@deftp {Data Type} alsa-configuration +Data type representing the configuration for @code{alsa-service}. + +@table @asis +@item @code{pulseaudio?} (default: @var{#t}) +Whether to use Pulseaudio by configuring ALSA to use PulseAudio. + +@item @code{extra-options} (default: @var{#f}) +Extra options is a string which will be appended to asound.conf file. + +@end table +@end deftp + @node Database Services @subsubsection Database Services =20 diff --git a/gnu/local.mk b/gnu/local.mk index cbf2c6f1b..b649ae008 100644 =2D-- a/gnu/local.mk +++ b/gnu/local.mk @@ -480,6 +480,7 @@ GNU_SYSTEM_MODULES =3D \ %D%/services/networking.scm \ %D%/services/nfs.scm \ %D%/services/shepherd.scm \ + %D%/services/sound.scm \ %D%/services/herd.scm \ %D%/services/pm.scm \ %D%/services/rsync.scm \ diff --git a/gnu/services/sound.scm b/gnu/services/sound.scm new file mode 100644 index 000000000..5fe555e8b =2D-- /dev/null +++ b/gnu/services/sound.scm @@ -0,0 +1,86 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2018 Oleg Pykhalov +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu services sound) + #:use-module (gnu services base) + #:use-module (gnu services configuration) + #:use-module (gnu services shepherd) + #:use-module (gnu services) + #:use-module (gnu system shadow) + #:use-module (guix gexp) + #:use-module (guix packages) + #:use-module (guix records) + #:use-module (guix store) + #:use-module (gnu packages pulseaudio) + #:use-module (ice-9 match) + #:export (alsa-configuration + alsa-service-type)) + +;;; Commentary: +;;; +;;; Sound services. +;;; +;;; Code: + + +;;; +;;; ALSA +;;; + +(define-record-type* + alsa-configuration make-alsa-configuration alsa-configuration? + (pulseaudio? alsa-configuration-pulseaudio? ;boolean + (default #t)) + (extra-options alsa-configuration-extra-options ;string + (default ""))) + +(define (alsa-config-file config) + "Return the ALSA configuration file corresponding to CONFIG." + (plain-file "asound.conf" + (string-append "# Generated by 'alsa-service'.\n\n" + (if (alsa-configuration-pulseaudio? config) + "# Use PulseAudio by default +pcm.!default { + type pulse + fallback \"sysdefault\" + hint { + show on + description \"Default ALSA Output (currently PulseAudio Sound Server)\" + } +} + +ctl.!default { + type pulse + fallback \"sysdefault\" +} +" + "") + (alsa-configuration-extra-options config)))) + +(define (alsa-etc-service config) + (list `("asound.conf" ,(alsa-config-file config)))) + +(define alsa-service-type + (service-type + (name 'alsa) + (extensions + (list (service-extension etc-service-type alsa-etc-service))) + (default-value (alsa-configuration)) + (description "Configure low-level Linux sound support, ALSA."))) + +;;; sound.scm ends here =2D-=20 2.17.0 --=-=-= Content-Type: text/plain Oleg. --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEc+OyAXw1EaDPCmAPckbhHGm3lWkFAlroNdMACgkQckbhHGm3 lWmCAA/+Jwf7tP8oH0uYNbRmqCq9YYdv6bdzJWFbje0Q+Omr1ZHj8D4csgdFBIT9 89Lh3dReLh37ovgpCDGUcyjLJcaWf/wia/R5ZCvnEW7p0V5RR99ZZrBwQzK8IetO c56faYdOMZRl4L9eDUam+TwtNaarg2SkXwAv7nr6Lo4bV/UnUtdO5VElBHmDFYF9 4K+lGpOkmeIZhKZFSatKf/ZWBMq+pbDId70DTDR+93kI0LBw/DaDlgyP0cREQj2r WLdV9zrh6E9bRz6JAk0Bb09DbJMIX1C9OxjehR5O59E/Pfr7/oEn0wWbYSHANby+ smrc9V6rj9QMdGQyuYe/ud2TPnOFDTt9mYRPW2RqFbRBg8kW7dcLTxBx9dKV9FuH 37nQLqHv+Cj+tvaltjXo1XlN7OMcRHYhb8hyNYw4j6qkQNx3eVGl/U1ddoq7jtwP Egp2rVVlGPgvtM0CIEKq8Z89N6YrQJQvJNPxBJFrNVh6mpUgjAG9Lw9AXDEt2Tt7 HozRItgH2lW4yFvvOk9E4KOxsVGsjXCfm2eDY+3RXTo424t+kGn4aBwa+aAp5bba Gw/FKXzsRVwqS375SP7APiPS8rbOztCmYvErtJ/Rt3uRdqUcu0IEg+ZDg1NE50fy /mAk3+54cKZiYo92tCXzVcsmgbxbUSK0JfP6GdZWdUxd8XWIwAw= =I7x6 -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue May 01 16:03:59 2018 Received: (at 31297) by debbugs.gnu.org; 1 May 2018 20:03:59 +0000 Received: from localhost ([127.0.0.1]:46075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDbVH-0003i3-Gj for submit@debbugs.gnu.org; Tue, 01 May 2018 16:03:59 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:51506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDbVC-0003hs-Qf for 31297@debbugs.gnu.org; Tue, 01 May 2018 16:03:58 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 4CD06139AF; Tue, 1 May 2018 22:03:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fgu2SZZdkt2r; Tue, 1 May 2018 22:03:53 +0200 (CEST) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id DD08C4EE; Tue, 1 May 2018 22:03:52 +0200 (CEST) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Oleg Pykhalov Subject: Re: [bug#31297] [PATCH] gnu: Add sound service. References: <20180428103341.30675-1-go.wigust@gmail.com> <87muxkv2gs.fsf@gnu.org> <87tvrrsoj0.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 12 =?utf-8?Q?Flor=C3=A9al?= an 226 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 01 May 2018 22:03:52 +0200 In-Reply-To: <87tvrrsoj0.fsf@gmail.com> (Oleg Pykhalov's message of "Tue, 01 May 2018 12:39:31 +0300") Message-ID: <87a7tjqh1z.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 31297 Cc: 31297@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hello Oleg, Oleg Pykhalov skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> Oleg Pykhalov skribis: >> >>> * gnu/services/sound.scm: New file. >>> * gnu/local.mk (GNU_SYSTEM_MODULES): Add this. >>> * doc/guix.texi (Sound Services): New chapter. >> >> [...] >> >>> +@node Sound Services >>> +@subsubsection Sound Services >>> + >>> +The @code{(gnu services alsa)} module provides an >>> +@code{alsa-service-type} service to generate an ALSA >>> +@file{/etc/asound.conf} configuration file. >> >> Is this file required to get PulseAudio support? I realize I have >> ~/.asoundrc that=E2=80=99s similar to what this new service does, so it = may be >> that I simply forgot that things wouldn=E2=80=99t work well without it. > > In case of existing =E2=80=98~/.asoundrc=E2=80=99 it's not required. But= I spent some > time to find a =E2=80=98asoundrc=E2=80=99 config and be glad if it was in= a Guix manual. Right, I agree. > From 460fa678823a7cf3d2869a3e4beafb22e5a313fa Mon Sep 17 00:00:00 2001 > From: Oleg Pykhalov > Date: Sat, 28 Apr 2018 13:30:20 +0300 > Subject: [PATCH] gnu: Add sound service. > > * gnu/services/sound.scm: New file. > * gnu/local.mk (GNU_SYSTEM_MODULES): Add this. > * doc/guix.texi (Sound Services): New chapter. [...] > +@node Sound Services > +@subsubsection Sound Services > + Maybe add =E2=80=9C@cindex sound support=E2=80=9D, =E2=80=9C@cindex ALSA=E2= =80=9D, and =E2=80=9C@cindex PulseAudio, sound support=E2=80=9D. > +The @code{(gnu services alsa)} module provides an ^^ =E2=80=9Csound=E2=80=9D > +@code{alsa-service-type} service to generate an ALSA > +@file{/etc/asound.conf} configuration file. Perhaps add a sentence like: =E2=80=9CThis configuration file is what allows applications that produce sound using ALSA to be correctly handled.=E2=80=9D > +@deftp {Data Type} alsa-configuration > +Data type representing the configuration for @code{alsa-service}. > + > +@table @asis > +@item @code{pulseaudio?} (default: @var{#t}) > +Whether to use Pulseaudio by configuring ALSA to use PulseAudio. =E2=80=9CWhether ALSA applications should transparently be made to use the @uref{http://www.pulseaudio.org/, PulseAudio} sound server. Using PulseAudio allows you to run several sound-producing applications at the same time and to individual control them @i{via} @command{pavucontrol}, among other things.=E2=80=9D > +@item @code{extra-options} (default: @var{#f}) default: @code{""} > +Extra options is a string which will be appended to asound.conf file. Just: =E2=80=9CString to append to the @file{asound.conf} file.=E2=80=9D Apologies for not catching those earlier! You can push with changes along these lines. Thank you! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue May 01 16:05:04 2018 Received: (at 31297) by debbugs.gnu.org; 1 May 2018 20:05:04 +0000 Received: from localhost ([127.0.0.1]:46079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDbWJ-0003k1-UR for submit@debbugs.gnu.org; Tue, 01 May 2018 16:05:04 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:51568) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDbWH-0003jX-9O for 31297@debbugs.gnu.org; Tue, 01 May 2018 16:05:02 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id D6A6B139DA; Tue, 1 May 2018 22:05:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6yec3fEizVLX; Tue, 1 May 2018 22:05:00 +0200 (CEST) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id D314E139D6; Tue, 1 May 2018 22:04:59 +0200 (CEST) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Oleg Pykhalov Subject: Re: [bug#31297] [PATCH] gnu: Add sound service. References: <20180428103341.30675-1-go.wigust@gmail.com> <87muxkv2gs.fsf@gnu.org> <87tvrrsoj0.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 12 =?utf-8?Q?Flor=C3=A9al?= an 226 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 01 May 2018 22:04:59 +0200 In-Reply-To: <87tvrrsoj0.fsf@gmail.com> (Oleg Pykhalov's message of "Tue, 01 May 2018 12:39:31 +0300") Message-ID: <876047qh04.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 31297 Cc: 31297@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Also, in a separate patch, it may be useful to add (service alsa-service-type) to %desktop-services. What do people think? Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed May 02 07:42:01 2018 Received: (at 31297) by debbugs.gnu.org; 2 May 2018 11:42:02 +0000 Received: from localhost ([127.0.0.1]:46409 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDq93-0006Zq-F2 for submit@debbugs.gnu.org; Wed, 02 May 2018 07:42:01 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:39143) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDq91-0006Zd-4D for 31297@debbugs.gnu.org; Wed, 02 May 2018 07:42:00 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 88D7021B23; Wed, 2 May 2018 07:41:57 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 02 May 2018 07:41:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=Eu4x9ZXW2Ylm+EKf1ewvOY4wUzrj039zkYz3oFBteY4=; b=pfp9yO/9 Vm5O0uQPdWZc5dfLvIBFKSil0LluvXTD8oTTwIsD5eZRpZXEvXgpOMBHn0RfkpWR 9iEIa3LPhykUmhZYgQzxVIBUXlakvZSUyJIQhdvTOu1c8Fjzs+XthRDLO+CzfgNc M9nfvH4xjrX64FdzjO8Hu+rAYU3J9W6KY31HXRlIJSe8ICOVrrH0KFOoWULSsL4V 36B3y1nqjFtz91llFVzO1KJPXAK51Ep2NXr20hNT/RMvZOvdr6v7S4u9PZ1JBzlW k7I9sdwMgPNmZoRk/19UEq5KBz+AusPeAimIxydJgXrlioT5R1Fc6UL1ud4WcfC/ SYL9iOd2SSVvWw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=Eu4x9ZXW2Ylm+EKf1ewvOY4wUzrj0 39zkYz3oFBteY4=; b=VCY3IcX8uRqd1sTSCWIZaPvM6o+HxY4HZCfBY4Ib1l1zW Fzpz+0Jd9++49GbV6bK+mWry3BuXgxFT6ioczEJLHhGfum9cK5y89Hf2kT99DIun g0zPuyP8ZWvlPmE4PrkSv1HwCu8ETsEeMphDpTnpawQVvf0ZoKPBQbxAlQoaZ7aJ typaeXlDo0p2WasCHiQf3jUqLj5dqNp+fblHl95FJ4cEIkHac1a68W0jCx90YPFN qR9xBaJQ7TM1U+whGDliKs3Ds69mpanPFYnNN3FU0V/ma1l9hf2049P7EZdDWX0i 4Uhd66zZvv01f1P/keHLTu3Y83YPQXdn5gqFwbPhA== X-ME-Sender: Received: from localhost (95.92-221-151.customer.lyse.net [92.221.151.95]) by mail.messagingengine.com (Postfix) with ESMTPA id 0C21010285; Wed, 2 May 2018 07:41:56 -0400 (EDT) From: Marius Bakke To: Ludovic =?utf-8?Q?Court=C3=A8s?= , Oleg Pykhalov Subject: Re: [bug#31297] [PATCH] gnu: Add sound service. In-Reply-To: <876047qh04.fsf@gnu.org> References: <20180428103341.30675-1-go.wigust@gmail.com> <87muxkv2gs.fsf@gnu.org> <87tvrrsoj0.fsf@gmail.com> <876047qh04.fsf@gnu.org> User-Agent: Notmuch/0.26.1 (https://notmuchmail.org) Emacs/25.3.1 (x86_64-pc-linux-gnu) Date: Wed, 02 May 2018 13:41:55 +0200 Message-ID: <87in86gu7w.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31297 Cc: 31297@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Also, in a separate patch, it may be useful to add (service > alsa-service-type) to %desktop-services. > > What do people think? I also had a ~/.asoundrc since forever that is very similar to the one added by this service. So it makes sense to provide it with %desktop-services. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlrppAMACgkQoqBt8qM6 VPoDhgf/Z9MwsIAwosGYWJxkozSwaTiRe3aAVJjTw/1a1nInhvfnQOoRI1Mf0Pyd R/gVpaQpkVV61PFbu/WX2xlDe7UII8XdBh0BS/crJFg+UCzLSaxKBCY+dU65L7pP lNTtjMtUUK7iHg4ZRKBHdnCzkl/OVbESeAllQXgkDXXPw4jxCiPdY2rcf7+e1mr6 EsY773xGgleifhzP20GyRCFBJctBnhbpnEKCBxdjEkBsXxTLEff6y4wyi5evJXCb MW3r5CaLQWsMg9jy7ojTcPHumARYbYd7nrOCTI/Mc3HlG0psIJwgRh0f9G6MmK5O 7mmbUs/duPN2xpV3Lf/9AH5hzHB4BQ== =Lv+a -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 02 08:15:27 2018 Received: (at 31297) by debbugs.gnu.org; 2 May 2018 12:15:27 +0000 Received: from localhost ([127.0.0.1]:46446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDqfP-0007MD-4j for submit@debbugs.gnu.org; Wed, 02 May 2018 08:15:27 -0400 Received: from mail-wr0-f177.google.com ([209.85.128.177]:33584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fDqfN-0007M1-8x for 31297@debbugs.gnu.org; Wed, 02 May 2018 08:15:25 -0400 Received: by mail-wr0-f177.google.com with SMTP id o4-v6so13779235wrm.0 for <31297@debbugs.gnu.org>; Wed, 02 May 2018 05:15:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=VgZdZGc53mx0Qu7rJfKTSZaHFvA4Iiw4OL593voYvW8=; b=GXjyqsYd5mvCvgY5kUEM/My45ETIjXkNAuLnJP0G7ptO/JoJtZzs6GLc1Zj3mFvt4k 8PYJFppoGQN03PGQTnzn15RfM96cj/U3l/TNxX/d9slczaflV6B3hjrs7tNiVBkEkopZ KO8kr15HHoWwzVqrY6vgtwxKOwYWK1TsMxjg8e0anEow7wGiM+hIfArqmafrl9vFQ0xA RdZs6VKt8aEOemykmJwAIyKpXjdPoygpFz73zDlpj+BFDjolIKx67F7oXH+hEEwQMo83 0pN+um+VvE/9okHSNj9S94yaRROIwRoDWUMPEM06mbR6ZjQv13bY5jcZ2bmvBbDuCTCT eG+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=VgZdZGc53mx0Qu7rJfKTSZaHFvA4Iiw4OL593voYvW8=; b=ujXHJ1yLJ5DBHHCyDyvenvtZw1e0XToTKGWm+I/oknFx0OAgysXFp+RSgKZSBRj+gP 8lKJKrou8070Q6HjHpqDp80IF9NmL9Qx7f95FJPCwVdd8xMKDHd9qbpmjyW2MHFy9joe COaCoBL1bWUqijgvV7A5jbnvmeXsD8rP69Ixup1fyW5yUkzrghauDrqwf0zV0L6Gox2N Jvjmo2AZHD1dJc1eTlzJSPz5NOVg9+rMcuATTLQoR364Ft76cQLLWE9N1b1RhWeOBvp/ p2I0Z15IibXUCnpicFVfH7yVcCOFIZkBTD+cvTHl1DEMkTCG64Naspr2Ym29Qs+VcfX0 bKwA== X-Gm-Message-State: ALQs6tAUPHTz+RFiXp50vZUtTPJJ2FQ/QsubjJXJYsVSGpiAz1sqFsHv 37x3MvwFmdBca7u4m6UlgnhPHg== X-Google-Smtp-Source: AB8JxZreKGiNnLpoGKPB6GmWLXQ7BXXJk5oTUdxj38QdXjO/CgRCphi0BKViThR4gj+VZPp1yoW5UQ== X-Received: by 2002:adf:ba50:: with SMTP id t16-v6mr13921895wrg.237.1525263318991; Wed, 02 May 2018 05:15:18 -0700 (PDT) Received: from magnolia (95-55-8-77.dynamic.avangarddsl.ru. [95.55.8.77]) by smtp.gmail.com with ESMTPSA id t46-v6sm16036278wrc.95.2018.05.02.05.15.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 May 2018 05:15:17 -0700 (PDT) From: Oleg Pykhalov To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [bug#31297] [PATCH] gnu: Add sound service. References: <20180428103341.30675-1-go.wigust@gmail.com> <87muxkv2gs.fsf@gnu.org> <87tvrrsoj0.fsf@gmail.com> <876047qh04.fsf@gnu.org> Date: Wed, 02 May 2018 15:15:05 +0300 In-Reply-To: <876047qh04.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 01 May 2018 22:04:59 +0200") Message-ID: <87tvrqi792.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31297 Cc: 31297@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =E2=80=9Cgnu: Add sound service.=E2=80=9D pushed as 8cd1e8e84926dc6ed1012a17609dea2d20ac41b4 ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Also, in a separate patch, it may be useful to add (service > alsa-service-type) to %desktop-services. > > What do people think? [=E2=80=A6] I'm agree. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-services-desktop-Add-alsa-service-type.patch Content-Transfer-Encoding: quoted-printable Content-Description: service: desktop: Add alsa-service-type. From=2047b00837a8109f4b18e1de28d6f1b72524af18a9 Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Wed, 2 May 2018 15:01:37 +0300 Subject: [PATCH] services: desktop: Add alsa-service-type. * gnu/services/desktop.scm (%desktop-services): Add 'alsa-service-type'. =2D-- gnu/services/desktop.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm index 517d5d3ef..0dada8273 100644 =2D-- a/gnu/services/desktop.scm +++ b/gnu/services/desktop.scm @@ -29,6 +29,7 @@ #:use-module (gnu services avahi) #:use-module (gnu services xorg) #:use-module (gnu services networking) + #:use-module (gnu services sound) #:use-module ((gnu system file-systems) #:select (%elogind-file-systems)) #:use-module (gnu system shadow) @@ -934,6 +935,8 @@ with the administrator's password." =20 x11-socket-directory-service =20 + (service alsa-service-type) + %base-services)) =20 ;;; desktop.scm ends here =2D-=20 2.17.0 --=-=-= Content-Type: text/plain Oleg. --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEc+OyAXw1EaDPCmAPckbhHGm3lWkFAlrpq8kACgkQckbhHGm3 lWnfCQ//dUtXaQIM4NMEyQiEobm3N1+OcQbQdAiq7CJvz3FMbQzVuWuM6TZoGn1z 0A/2+nsgVDeGjtoSJSAN97wdVN1N+l2nv2fM7cz60/jGxVAAtNQ00W2MNEmSxs/4 a36Oqa5Foz16BdDMsb2p+gT20I0Srlf4TlVfS8qIec5RMFo5b5rdoN7nPylMY5f/ Dw7YQmcL74GinNVtC8FnaSOnbcQsNvDH9ZNt0BJtSh9189QHON3Y1mnbN9i2AIwS OXUSTlDznIACSMpVuXwXE/eAwbWgIYyNw6LKhrRP6AZKgWRCyb1dkd6tJdi4GaSS JALEgx7P+HvDJ8fMIp3MF4JT1R7BLXcaoCnJmx+eZx0miT1xaL5BiGwxl2qMz1MV rAZhV5sv/2zpiXKFAqyPjmIFrOI0lAM/BO4x5H5FYD7OUZjI+OZqKoQ6xldJ4Ve7 OZWu5G3E3DwiVbFSGCwS5+Vmx7MPLUmchpvP5xDmK7AWEL+L8p/EXxUjguOX2ex1 XT9hfo/jKE1JlESoXo5ik4l1D9s22dVwxFy1m+Fvm34rPf6REWjE62ndUk+37PUl 9UaYnpkQL89DJG8tKYlwKLYAymae3HU+/Me2KMsuoeQX0s+g8nqZkpk6wJz8NQIt c4Xi11uQ4s6pFvQYDATuAgLN777hq1BSaJ4oVWMKKiqlPrteYNM= =7/t7 -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu May 03 16:33:00 2018 Received: (at 31297) by debbugs.gnu.org; 3 May 2018 20:33:00 +0000 Received: from localhost ([127.0.0.1]:48639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fEKuR-0004BX-QC for submit@debbugs.gnu.org; Thu, 03 May 2018 16:32:59 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:52582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fEKuP-0004BO-PF for 31297@debbugs.gnu.org; Thu, 03 May 2018 16:32:58 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id BB92018F0B; Thu, 3 May 2018 22:32:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wmQZq5HJZ2l9; Thu, 3 May 2018 22:32:54 +0200 (CEST) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 8440F18BA8; Thu, 3 May 2018 22:32:54 +0200 (CEST) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Oleg Pykhalov Subject: Re: [bug#31297] [PATCH] gnu: Add sound service. References: <20180428103341.30675-1-go.wigust@gmail.com> <87muxkv2gs.fsf@gnu.org> <87tvrrsoj0.fsf@gmail.com> <876047qh04.fsf@gnu.org> <87tvrqi792.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 14 =?utf-8?Q?Flor=C3=A9al?= an 226 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 03 May 2018 22:32:53 +0200 In-Reply-To: <87tvrqi792.fsf@gmail.com> (Oleg Pykhalov's message of "Wed, 02 May 2018 15:15:05 +0300") Message-ID: <87po2ch43u.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 31297 Cc: 31297@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Oleg Pykhalov skribis: > From 47b00837a8109f4b18e1de28d6f1b72524af18a9 Mon Sep 17 00:00:00 2001 > From: Oleg Pykhalov > Date: Wed, 2 May 2018 15:01:37 +0300 > Subject: [PATCH] services: desktop: Add alsa-service-type. > > * gnu/services/desktop.scm (%desktop-services): Add 'alsa-service-type'. LGTM, thank you! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Fri May 11 05:17:26 2018 Received: (at 31297) by debbugs.gnu.org; 11 May 2018 09:17:27 +0000 Received: from localhost ([127.0.0.1]:57122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fH4B4-0005nU-Ob for submit@debbugs.gnu.org; Fri, 11 May 2018 05:17:26 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:50521) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fH4B2-0005nB-Vp; Fri, 11 May 2018 05:17:25 -0400 Received: by mail-wm0-f46.google.com with SMTP id t11-v6so1646155wmt.0; Fri, 11 May 2018 02:17:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=kjmVVuDrgaak+YvsN4+l8Zqhkcd2ZMhgDRUKKhwDo3M=; b=u5gsOpccJYSLF4bG4z7Ep27kB2jivTpSa8m+lK7MPGBcmfVL8C23hWIht/5/IqkrUy Wa7GTgD6AxeLF7oQmywqWZ58PDBbVA5CMOeetz49474Vgn7MioZS/PXMaVhURWVKLfIP TizWVH60+2ka99FpZ2j+dzs6xX1CDT+p3sKhZVYYVR/veutDFxHFlHGwi0lPWjGdirvy P/GKi30XVAMsLgqx4xeO6WoG9ED5Z30phctzqYSFskLrPgvR9AMKRK1p/CLmgNGB9/9i IiMIPO9NN+FbWIE5k8stoTL/0ki57b2MugUedSI3BQUWT26Daf8sMLFmYw+EzMBjo293 UFsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=kjmVVuDrgaak+YvsN4+l8Zqhkcd2ZMhgDRUKKhwDo3M=; b=BNLUJDlcL5oD0AX2xbVEunukztrnEDS0IH7yu5tvPdRyfj6GzNVFaILj5i7ypggOGP 973ogZ9JbSEZWLOPfoeJh1GXo4Cz7k+9zTa4oBKUDM3jnZ2BvoMIDEA/CwXn7s1K5gNB H8vps5Q7+zOJLOTRvsD29zhPM6sXYVS74odhnCbTWfhXddVT4Mnc+9gxUau3fqwWJVhU nQ8Bwfqad4bm2hVf2LXSPHDukTSjaWsBRBwsPBRe+J2MUl/yxwdL07WTACVQbuGzN3pu AnM3tHR+lVWhWXWXqWJjF6ciHTFfH635O+ZthI5gIT8P7nA8J6Jvd0IaAScl7riO4HnL Hsnw== X-Gm-Message-State: ALKqPwcAd0qmoDRKAewBrS+iemaTu0ci7wQPaNMJFcU/xk30MhXnYcwC CRICo+CVU7hv2771BdholVoeWA== X-Google-Smtp-Source: AB8JxZpUt/+kz95bli8vsOEJPNa2Mk/3KPdbE3nLmpnjD6xUBwXqZHPUZ23ghYR+nMXHWMUB3g0tCw== X-Received: by 2002:a1c:711c:: with SMTP id m28-v6mr1429907wmc.92.1526030238928; Fri, 11 May 2018 02:17:18 -0700 (PDT) Received: from magnolia (ppp92-100-98-177.pppoe.avangarddsl.ru. [92.100.98.177]) by smtp.gmail.com with ESMTPSA id b133-v6sm1615710wmh.12.2018.05.11.02.17.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 11 May 2018 02:17:17 -0700 (PDT) From: Oleg Pykhalov To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [bug#31297] [PATCH] gnu: Add sound service. References: <20180428103341.30675-1-go.wigust@gmail.com> <87muxkv2gs.fsf@gnu.org> <87tvrrsoj0.fsf@gmail.com> <876047qh04.fsf@gnu.org> <87tvrqi792.fsf@gmail.com> <87po2ch43u.fsf@gnu.org> Date: Fri, 11 May 2018 12:17:11 +0300 In-Reply-To: <87po2ch43u.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 03 May 2018 22:32:53 +0200") Message-ID: <87603u4kmg.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 31297 Cc: 31297@debbugs.gnu.org, 31297-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Oleg Pykhalov skribis: > >> From 47b00837a8109f4b18e1de28d6f1b72524af18a9 Mon Sep 17 00:00:00 2001 >> From: Oleg Pykhalov >> Date: Wed, 2 May 2018 15:01:37 +0300 >> Subject: [PATCH] services: desktop: Add alsa-service-type. >> >> * gnu/services/desktop.scm (%desktop-services): Add 'alsa-service-type'. > > LGTM, thank you! Pushed as ef6a484475e7473131efd9a41473c1f25a6b0d0c I'll close the bug report. Oleg. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEc+OyAXw1EaDPCmAPckbhHGm3lWkFAlr1X5cACgkQckbhHGm3 lWlR9A//a/0W5dbBxFQTfBt9IUMqTEzjMUVcEOiLZLzOb9NX5y2OpED95seilqRE eHySIgK974lbPpFZCyp/i97Wb55q632zg+qiHJOk6Rfkot9A4ekp6qgl/uTqVAE/ WP/cZ9Jw2NkicT87p0CStFe9MK/PNItf5xAu3KDayuDJpOzssJAzEfssVp25MaTp OUoQXvb+UmJLizLi5ET5pfduAXPsTSQEwOWtSyr59Ocbcxd1yWiqlYwOnPLNuLQX vQJmSdceYdQXnvXedr2BPoCE9M1bAI0WMeqXflS5DZvgPDqtoKawwXjkje6Uerjt GoSrRoyxYobqlHeVYQtvp8iQssIjN7hMbgIWrkYbbupnKAfDl2Tt5drjIKGVEtXo XgcGcg0rrQFqFBOVJSBePMo4TQetV5KGpZetszygdLkv2LJd0WFuRfGqRENI3OY3 vGsHm0onWoiVHyrFfMp21rQQ8PX5ExiT4u7z0N4b+anjZk1Y/d4d84SYgi3u/XUy /AyYnO4EkpwTQ3EcyzTQuNpHplwnqdKlPY4tlegmDtk8HqdJ0ANsxF+CV6vbBmP9 DuBfFMYm2ci4zlltlHIZYMjSIqOYy3MkRNRGPykgz/9KhaBpiHQjTvHCXRIG4iC6 /mRa7t0LWgbCMdxAuYcqI8pmlt67bnHoa+OhLru2x5mF5zBfoPg= =h5qD -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Jun 21 10:40:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 08 Jun 2018 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator