all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#68512: Qutebrowser 3, no sound from pipewire-only system
@ 2024-01-16 16:43 chris
  2024-01-16 17:30 ` chris
                   ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: chris @ 2024-01-16 16:43 UTC (permalink / raw)
  To: 68512

Hello,

The latest qutebrowser v3 from this pipewire-only system has no sound. Related messages from the shell process pasted below include CJK characters which debbugs renders as "??", all CJK messages translate as "file or directory not found"
```
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
[3003:3003:0116/083803.232761:ERROR:alsa_util.cc(204)] PcmOpen: default,そのようなファイルやディレクトリはありません
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
[3003:3003:0116/083803.233758:ERROR:alsa_util.cc(204)] PcmOpen: plug:default,そのようなファイルやディレクトリはありません
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
[3003:3003:0116/083808.743619:ERROR:alsa_util.cc(204)] PcmOpen: default,そのようなファイルやディレクトリはありません
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
[3003:3003:0116/083808.744661:ERROR:alsa_util.cc(204)] PcmOpen: plug:default,そのようなファイルやディレクトリはありません
```

About a year ago, user @iyzsong enabled pipewire support at qutebrowser v2 for me and sound has been good here until today when qutebrowser v3 was installed.  iirc, a flag was enabled in qutebrowser or one of its dependencies.

Related: https://issues.guix.gnu.org/68483, https://issues.guix.gnu.org/67289 




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

* bug#68512: Qutebrowser 3, no sound from pipewire-only system
  2024-01-16 16:43 bug#68512: Qutebrowser 3, no sound from pipewire-only system chris
@ 2024-01-16 17:30 ` chris
  2024-01-16 17:39 ` chris
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 22+ messages in thread
From: chris @ 2024-01-16 17:30 UTC (permalink / raw)
  To: 68512

Possibly this was the change from Iyzsong which enabled sound here,
```sh
$ git diff fbbbc2088ce933d83f5b0be75308fdcb6b40fa57 d9368572abd3683bed4263eb5e149bb404baee59 
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 76e9e519c7..01327f6ccf 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -2708,7 +2708,8 @@ (define-public qtwebengine-5
                   "src/buildtools/config/linux.pri"
                   (lambda (in out)
                     (display (get-string-all in) out)
-                    (display "\ngn_args += use_system_openh264=true\n" out)))
+                    (display "\ngn_args += use_system_openh264=true\n" out)
+                    (display "\ngn_args += link_pulseaudio = true\n" out)))
                  ;; Qtwebengine is not installed into the same prefix as
                  ;; qtbase.  Some qtbase QTLibraryInfo constants will not
                  ;; work.  Replace with the full path to the qtwebengine-5
```

No equivalent is found by me in the qtwebengine definition that supplies qtwebgine 6 




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

* bug#68512: Qutebrowser 3, no sound from pipewire-only system
  2024-01-16 16:43 bug#68512: Qutebrowser 3, no sound from pipewire-only system chris
  2024-01-16 17:30 ` chris
@ 2024-01-16 17:39 ` chris
  2024-01-16 18:12   ` chris
  2024-01-16 19:25 ` Sergey Trofimov
  2024-01-26  9:10 ` bug#68512: done chris
  3 siblings, 1 reply; 22+ messages in thread
From: chris @ 2024-01-16 17:39 UTC (permalink / raw)
  To: 68512; +Cc: chris

For convenience, links to the upstream qt.scm file
 * https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/qt.scm#n2933
   qtwebengine-5 args
 * https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/qt.scm#n2998
   qtwebengine (qtwebengine-6)

Thanks for any input




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

* bug#68512: Qutebrowser 3, no sound from pipewire-only system
  2024-01-16 17:39 ` chris
@ 2024-01-16 18:12   ` chris
  0 siblings, 0 replies; 22+ messages in thread
From: chris @ 2024-01-16 18:12 UTC (permalink / raw)
  To: 68512; +Cc: chris

On  1月16日 火, chris wrote:
> For convenience, links to the upstream qt.scm file
>  * https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/qt.scm#n2933
>    qtwebengine-5 args
>  * https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/qt.scm#n2998
>    qtwebengine (qtwebengine-6)
> 
> Thanks for any input

and a link to the commit with commit message

https://git.savannah.gnu.org/cgit/guix.git/commit/?id=d9368572abd3683bed4263eb5e149bb404baee59




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

* bug#68512: Qutebrowser 3, no sound from pipewire-only system
  2024-01-16 16:43 bug#68512: Qutebrowser 3, no sound from pipewire-only system chris
  2024-01-16 17:30 ` chris
  2024-01-16 17:39 ` chris
@ 2024-01-16 19:25 ` Sergey Trofimov
  2024-01-16 20:49   ` chris
  2024-01-26  9:10 ` bug#68512: done chris
  3 siblings, 1 reply; 22+ messages in thread
From: Sergey Trofimov @ 2024-01-16 19:25 UTC (permalink / raw)
  To: chris; +Cc: 68512

chris <chris@bumblehead.com> writes:

> Hello,
>
> The latest qutebrowser v3 from this pipewire-only system has no 
> sound. Related
> messages from the shell process pasted below include CJK 
> characters which
> debbugs renders as "??", all CJK messages translate as "file or 
> directory not
> found"
>

yeah, debbugs doesn't support unicode on the web fully. But when 
checking your messages in emacs debbugs interface, I see the CJK 
characters just fine.

> ```
> ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open 
> slave
> [3003:3003:0116/083803.232761:ERROR:alsa_util.cc(204)] PcmOpen: 
> default,そのようなファイルやディレクトリはありません
> ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open 
> slave
> [3003:3003:0116/083803.233758:ERROR:alsa_util.cc(204)] PcmOpen: 
> plug:default,そのようなファイルやディレクトリはありません
> ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open 
> slave
> [3003:3003:0116/083808.743619:ERROR:alsa_util.cc(204)] PcmOpen: 
> default,そのようなファイルやディレクトリはありません
> ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open 
> slave
> [3003:3003:0116/083808.744661:ERROR:alsa_util.cc(204)] PcmOpen: 
> plug:default,そのようなファイルやディレクトリはありません
> ```
>
> About a year ago, user @iyzsong enabled pipewire support at 
> qutebrowser v2 for
> me and sound has been good here until today when qutebrowser v3 
> was installed.
> iirc, a flag was enabled in qutebrowser or one of its 
> dependencies.
>

How is pipewire configured on your system? The thing is that 
qtwebengine@5 is linked with PulseAudio and ALSA libraries, but @6 
is linked only with alsa. You probably miss pipewire-alsa 
compatibility configuration. Do you use 
home-pipewire-service-type? It sets both pulse/alsa shims and it 
works for me this way.




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

* bug#68512: Qutebrowser 3, no sound from pipewire-only system
  2024-01-16 19:25 ` Sergey Trofimov
@ 2024-01-16 20:49   ` chris
  2024-01-17  6:58     ` Sergey Trofimov
  0 siblings, 1 reply; 22+ messages in thread
From: chris @ 2024-01-16 20:49 UTC (permalink / raw)
  To: Sergey Trofimov; +Cc: chris, 68512

On  1月16日 火, Sergey Trofimov wrote:

> How is pipewire configured on your system? The thing is that qtwebengine@5
> is linked with PulseAudio and ALSA libraries, but @6 is linked only with
> alsa. You probably miss pipewire-alsa compatibility configuration. Do you
> use home-pipewire-service-type? It sets both pulse/alsa shims and it works
> for me this way.

This system does not use dbus and pipewire was configured about a year ago when there were few options for using pipewire out of the box in any sort of way.

Guix home is configured to write a pipewire and three wireplumber config files, as described at this link https://wiki.alpinelinux.org/wiki/PipeWire#Configuration

.config/pipewire/pipewire.conf
.config/wireplumber/wireplumber.conf
.config/wireplumber/main.lua.d/80-disable-dbus.lua
.config/wireplumber/bluetooth.lua.d/80-disable-logind.lua

With with those files in place, pipewire and wireplumber are started sequentially to get working sound. I use this in my .config/sway/config (possibly this is copy-pasted from unmatched-paren)
```
exec_always killall -wqr "(pipewire|wireplumber)" \
  || sleep 1 && ((pipewire &); sleep 2 && (wireplumber &))
```




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

* bug#68512: Qutebrowser 3, no sound from pipewire-only system
  2024-01-16 20:49   ` chris
@ 2024-01-17  6:58     ` Sergey Trofimov
  2024-01-17  9:49       ` chris
  0 siblings, 1 reply; 22+ messages in thread
From: Sergey Trofimov @ 2024-01-17  6:58 UTC (permalink / raw)
  To: chris; +Cc: 68512


chris <chris@bumblehead.com> writes:

> On  1月16日 火, Sergey Trofimov wrote:
>
>> How is pipewire configured on your system? The thing is that 
>> qtwebengine@5
>> is linked with PulseAudio and ALSA libraries, but @6 is linked 
>> only with
>> alsa. You probably miss pipewire-alsa compatibility 
>> configuration. Do you
>> use home-pipewire-service-type? It sets both pulse/alsa shims 
>> and it works
>> for me this way.
>
> This system does not use dbus and pipewire was configured about 
> a year ago when
> there were few options for using pipewire out of the box in any 
> sort of way.
>
> Guix home is configured to write a pipewire and three 
> wireplumber config files,
> as described at this link
> https://wiki.alpinelinux.org/wiki/PipeWire#Configuration
>
> .config/pipewire/pipewire.conf
> .config/wireplumber/wireplumber.conf
> .config/wireplumber/main.lua.d/80-disable-dbus.lua
> .config/wireplumber/bluetooth.lua.d/80-disable-logind.lua
>
> With with those files in place, pipewire and wireplumber are 
> started
> sequentially to get working sound. I use this in my 
> .config/sway/config
> (possibly this is copy-pasted from unmatched-paren)
> ```
> exec_always killall -wqr "(pipewire|wireplumber)" \
>   || sleep 1 && ((pipewire &); sleep 2 && (wireplumber &))
> ```

Well, qtwebengine doesn't link with PipeWire anyway, you have to 
use either PulseAudio or ALSA. Here is an example 
~/.config/alsa/asoundrc on my system, created by 
home-pipewire-service-type. If you add such file to your setup - 
qutebrowser should be able to use alsa lib to output audio through 
pipewire.


--8<---------------cut here---------------start------------->8---
</gnu/store/a331f91m9g8898lccyj7fniqsyv406y9-pipewire-1.0.0/share/alsa/alsa.conf.d/50-pipewire.conf>
</gnu/store/a331f91m9g8898lccyj7fniqsyv406y9-pipewire-1.0.0/share/alsa/alsa.conf.d/99-pipewire-default.conf>
pcm_type.pipewire {
  lib 
  "/gnu/store/a331f91m9g8898lccyj7fniqsyv406y9-pipewire-1.0.0/lib/alsa-lib/libasound_module_pcm_pipewire.so"
}
ctl_type.pipewire {
  lib 
  "/gnu/store/a331f91m9g8898lccyj7fniqsyv406y9-pipewire-1.0.0/lib/alsa-lib/libasound_module_ctl_pipewire.so"
}
--8<---------------cut here---------------end--------------->8---




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

* bug#68512: Qutebrowser 3, no sound from pipewire-only system
  2024-01-17  6:58     ` Sergey Trofimov
@ 2024-01-17  9:49       ` chris
  2024-01-17  9:56         ` chris
  2024-01-25  9:09         ` chris
  0 siblings, 2 replies; 22+ messages in thread
From: chris @ 2024-01-17  9:49 UTC (permalink / raw)
  To: Sergey Trofimov; +Cc: chris, 68512

On  1月17日 水, Sergey Trofimov wrote:
> 
> Well, qtwebengine doesn't link with PipeWire anyway, you have to use either
> PulseAudio or ALSA. Here is an example ~/.config/alsa/asoundrc on my system,
> created by home-pipewire-service-type. If you add such file to your setup -
> qutebrowser should be able to use alsa lib to output audio through pipewire.
> 
> 
> --8<---------------cut here---------------start------------->8---
> </gnu/store/a331f91m9g8898lccyj7fniqsyv406y9-pipewire-1.0.0/share/alsa/alsa.conf.d/50-pipewire.conf>
> </gnu/store/a331f91m9g8898lccyj7fniqsyv406y9-pipewire-1.0.0/share/alsa/alsa.conf.d/99-pipewire-default.conf>
> pcm_type.pipewire {
>  lib  "/gnu/store/a331f91m9g8898lccyj7fniqsyv406y9-pipewire-1.0.0/lib/alsa-lib/libasound_module_pcm_pipewire.so"
> }
> ctl_type.pipewire {
>  lib  "/gnu/store/a331f91m9g8898lccyj7fniqsyv406y9-pipewire-1.0.0/lib/alsa-lib/libasound_module_ctl_pipewire.so"
> }
> --8<---------------cut here---------------end--------------->8---

Sergey,

Thanks for this help. Running `$(guix build pipewire)` returned the same path shown in your example, so I tried simply copy-pasting your example to ~/.config/alsa/asoundrc and restarting my system

Sound did not work, but messages in the qutebrowser process output were slightly different. foreign text translates as: "host dropped",
```
[1588:1588:0117/013614.549773:ERROR:alsa_util.cc(204)] PcmOpen: default,ホストが落ちています
[1588:1588:0117/013614.559451:ERROR:alsa_util.cc(204)] PcmOpen: plug:default,ホストが落ちています
[1588:1588:0117/013614.575316:ERROR:alsa_util.cc(204)] PcmOpen: default,ホストが落ちています
[1588:1588:0117/013614.588043:ERROR:alsa_util.cc(204)] PcmOpen: plug:default,ホストが落ちています
```

These messages differ from the earlier messages that basically said "file not found".

Thanks for helping me. I will sleep now and maybe try more things tomorrow,

Chris




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

* bug#68512: Qutebrowser 3, no sound from pipewire-only system
  2024-01-17  9:49       ` chris
@ 2024-01-17  9:56         ` chris
  2024-01-25  9:09         ` chris
  1 sibling, 0 replies; 22+ messages in thread
From: chris @ 2024-01-17  9:56 UTC (permalink / raw)
  To: Sergey Trofimov; +Cc: 68512

On  1月17日 水, chris wrote:
> Sound did not work, but messages in the qutebrowser process output were slightly different. foreign text translates as: "host dropped",

The english variant of the same message is probably "Host is down"




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

* bug#68512: Qutebrowser 3, no sound from pipewire-only system
  2024-01-17  9:49       ` chris
  2024-01-17  9:56         ` chris
@ 2024-01-25  9:09         ` chris
  2024-01-25 18:37           ` Sergey Trofimov
  1 sibling, 1 reply; 22+ messages in thread
From: chris @ 2024-01-25  9:09 UTC (permalink / raw)
  To: Sergey Trofimov, chris; +Cc: 68512

Sergey, your configuration file is working and audio is heard from qutebrowser on this system.

Internet searches surfaced commands like these,
 `pw-cli`
 `strace -e connect pw-dump >/dev/null`

Error messages were seen relating to socket files not found,
 `$XDG_RUNTIME_DIR/pipewire-0`
 `$XDG_RUNTIME_DIR/pipewire-0-manager`

Various things attempted, but the socket files missing every time sway started

Finally, tried removing the pipewire-starting parts of the sway config
```
# exec_always killall -wqr "(pipewire|wireplumber)" \
#   || sleep 1 && ((pipewire &); sleep 2 && (wireplumber &))
```

Then separately started pipewire and wireplumber "manually" from the shell. The socket files were created and when qutebrowser sound could be heard.

Thank you Sergey,

Chris




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

* bug#68512: Qutebrowser 3, no sound from pipewire-only system
  2024-01-25  9:09         ` chris
@ 2024-01-25 18:37           ` Sergey Trofimov
  2024-01-25 23:26             ` chris
  2024-01-26  0:00             ` chris
  0 siblings, 2 replies; 22+ messages in thread
From: Sergey Trofimov @ 2024-01-25 18:37 UTC (permalink / raw)
  To: chris; +Cc: 68512


chris <chris@bumblehead.com> writes:

> Sergey, your configuration file is working and audio is heard 
> from qutebrowser on this system.
>
> Internet searches surfaced commands like these,
>  `pw-cli`
>  `strace -e connect pw-dump >/dev/null`
>
> Error messages were seen relating to socket files not found,
>  `$XDG_RUNTIME_DIR/pipewire-0`
>  `$XDG_RUNTIME_DIR/pipewire-0-manager`
>
> Various things attempted, but the socket files missing every 
> time sway started
>
> Finally, tried removing the pipewire-starting parts of the sway 
> config
> ```
> # exec_always killall -wqr "(pipewire|wireplumber)" \
> #   || sleep 1 && ((pipewire &); sleep 2 && (wireplumber &))
> ```
>
> Then separately started pipewire and wireplumber "manually" from 
> the shell. The
> socket files were created and when qutebrowser sound could be 
> heard.

I'm glad you sorted it out. Check what are the environment 
variables for your sway process (cat /proc/<pid>/environ | tr -s 
'\0' '\n').
Maybe XDG_RUNTIME_DIR is missing there? Enabling debug logging for 
pipewire might help as well: 
https://docs.pipewire.org/page_daemon.html




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

* bug#68512: Qutebrowser 3, no sound from pipewire-only system
  2024-01-25 18:37           ` Sergey Trofimov
@ 2024-01-25 23:26             ` chris
  2024-01-26  5:56               ` Sergey Trofimov
  2024-01-26  0:00             ` chris
  1 sibling, 1 reply; 22+ messages in thread
From: chris @ 2024-01-25 23:26 UTC (permalink / raw)
  To: Sergey Trofimov; +Cc: 68512

On  1月25日 木, Sergey Trofimov wrote:
> 
> I'm glad you sorted it out. Check what are the environment variables for
> your sway process (cat /proc/<pid>/environ | tr -s '\0' '\n').
> Maybe XDG_RUNTIME_DIR is missing there? Enabling debug logging for pipewire
> might help as well: https://docs.pipewire.org/page_daemon.html

Sergey,

Yesterday after reporting back here, I found that I was able to change the commands used by sway from this
```
exec_always killall -wqr "(pipewire|wireplumber)" \
  || sleep 1 && ((pipewire &); sleep 2 && (wireplumber &))
```

To this
```
exec sleep 2 && pipewire
exec sleep 4 && wireplumber
```

sound is working each time the machine is started or restarted.

In order to script-generate the asoundrc file, I wish to use pipewire's store directory path inside a scheme function. WOuld you teach me how to do this? eg, `$(guix build pipewire) # /gnu/store/8572wxb5138hanhvn1lbfdm1kicxsd2k-pipewire-1.0.0`

No success trying various things from this thread https://www.mail-archive.com/help-guix@gnu.org/msg11871.html

'have also tried the following
```
(use-modules (gnu packages linux)
             (gnu packages build-tools)
             (gnu packages package-management))

(guix build pipewire)
```

running the file fails with this message:
```
Wrong type to apply: #<package guix@1.4.0-15.e0885fc gnu/packages/package-management.scm:179 7fd6dfe0ebb0>
```

Thanks in advance for any recommendations or advice. Thank you for conversing with me and helping me thus far,

Chris





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

* bug#68512: Qutebrowser 3, no sound from pipewire-only system
  2024-01-25 18:37           ` Sergey Trofimov
  2024-01-25 23:26             ` chris
@ 2024-01-26  0:00             ` chris
  2024-01-26  6:10               ` Sergey Trofimov
  1 sibling, 1 reply; 22+ messages in thread
From: chris @ 2024-01-26  0:00 UTC (permalink / raw)
  To: Sergey Trofimov; +Cc: chris, 68512

This attempt from the discussion here https://lists.gnu.org/archive/html/guix-devel/2021-03/msg00441.html
```
(define s (open-connection))

(display (derivation->output-path
          (package-derivation s pipewire #:graft? #f) "out"))
```

It runs but returns the wrong store path,
/gnu/store/kqw8zs84px1vzw98yv9xax4rc0n612qy-pipewire-0.3.77

The $(guix build pipewire) command returns this,
/gnu/store/8572wxb5138hanhvn1lbfdm1kicxsd2k-pipewire-1.0.0

Thanks,

Chris




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

* bug#68512: Qutebrowser 3, no sound from pipewire-only system
  2024-01-25 23:26             ` chris
@ 2024-01-26  5:56               ` Sergey Trofimov
  2024-01-26  8:18                 ` chris
  0 siblings, 1 reply; 22+ messages in thread
From: Sergey Trofimov @ 2024-01-26  5:56 UTC (permalink / raw)
  To: chris; +Cc: 68512


chris <chris@bumblehead.com> writes:

> Sergey,
>
> Yesterday after reporting back here, I found that I was able to 
> change the commands used by sway from this
> ```
> exec_always killall -wqr "(pipewire|wireplumber)" \
>   || sleep 1 && ((pipewire &); sleep 2 && (wireplumber &))
> ```
>
> To this
> ```
> exec sleep 2 && pipewire
> exec sleep 4 && wireplumber
> ```

Ugh, why don't you use home-pipewire-service-type?

>
> In order to script-generate the asoundrc file, I wish to use 
> pipewire's store
> directory path inside a scheme function. WOuld you teach me how 
> to do this? eg,
> `$(guix build pipewire) #
> /gnu/store/8572wxb5138hanhvn1lbfdm1kicxsd2k-pipewire-1.0.0`
>
> No success trying various things from this thread 
> https://www.mail-archive.com/help-guix@gnu.org/msg11871.html
>

Packages are file-like, i.e. replaced with their location when 
used in g-exp.
Here is an example how to define the configuration, I've adapted 
it from gnu/home/services/home.scm

--8<---------------cut here---------------start------------->8---
(simple-service 'pipewire-configs 
home-xdg-configuration-files-service-type
  `(("alsa/asoundrc")
    ,(mixed-text-file
        "asoundrc"
        "<" pipewire "/share/alsa/alsa.conf.d/50-pipewire.conf>\n"
        "<" pipewire 
        "/share/alsa/alsa.conf.d/99-pipewire-default.conf>\n"
        "pcm_type.pipewire {\n"
        "  lib \"" pipewire 
        "/lib/alsa-lib/libasound_module_pcm_pipewire.so\"\n"
        "}\n"
        "ctl_type.pipewire {\n"
        "  lib \"" pipewire 
        "/lib/alsa-lib/libasound_module_ctl_pipewire.so\"\n"
        "}\n")))
--8<---------------cut here---------------end--------------->8---




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

* bug#68512: Qutebrowser 3, no sound from pipewire-only system
  2024-01-26  0:00             ` chris
@ 2024-01-26  6:10               ` Sergey Trofimov
  2024-01-26  8:19                 ` chris
  2024-01-26  9:45                 ` Clément Lassieur
  0 siblings, 2 replies; 22+ messages in thread
From: Sergey Trofimov @ 2024-01-26  6:10 UTC (permalink / raw)
  To: chris; +Cc: 68512


chris <chris@bumblehead.com> writes:

> This attempt from the discussion here 
> https://lists.gnu.org/archive/html/guix-devel/2021-03/msg00441.html
>
> ```
> (define s (open-connection))
>
> (display (derivation->output-path
>           (package-derivation s pipewire #:graft? #f) "out"))
> ```
>
> It runs but returns the wrong store path,
> /gnu/store/kqw8zs84px1vzw98yv9xax4rc0n612qy-pipewire-0.3.77
>

> The $(guix build pipewire) command returns this,
> /gnu/store/8572wxb5138hanhvn1lbfdm1kicxsd2k-pipewire-1.0.0
>

0.3.77 is the previous version, from a month ago. Is your checkout 
fresh? Did you `guix pull`?




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

* bug#68512: Qutebrowser 3, no sound from pipewire-only system
  2024-01-26  5:56               ` Sergey Trofimov
@ 2024-01-26  8:18                 ` chris
  2024-01-26 12:46                   ` Sergey Trofimov
  0 siblings, 1 reply; 22+ messages in thread
From: chris @ 2024-01-26  8:18 UTC (permalink / raw)
  To: Sergey Trofimov, chris; +Cc: 68512

On  1月26日 金, Sergey Trofimov wrote:
> 
> Ugh, why don't you use home-pipewire-service-type?

`home-pipewire-service-type` has no option to skip dbus and thus far this system does not use dbus, ibus, elogind and systemd etc.


> Packages are file-like, i.e. replaced with their location when used in
> g-exp.

Interesting. Thanks for teaching me this.


> Here is an example how to define the configuration, I've adapted it from
> gnu/home/services/home.scm
> 
> --8<---------------cut here---------------start------------->8---
> (simple-service 'pipewire-configs home-xdg-configuration-files-service-type
>  `(("alsa/asoundrc")
>    ,(mixed-text-file
>        "asoundrc"
>        "<" pipewire "/share/alsa/alsa.conf.d/50-pipewire.conf>\n"
>        "<" pipewire
> "/share/alsa/alsa.conf.d/99-pipewire-default.conf>\n"
>        "pcm_type.pipewire {\n"
>        "  lib \"" pipewire
> "/lib/alsa-lib/libasound_module_pcm_pipewire.so\"\n"
>        "}\n"
>        "ctl_type.pipewire {\n"
>        "  lib \"" pipewire
> "/lib/alsa-lib/libasound_module_ctl_pipewire.so\"\n"
>        "}\n")))
> --8<---------------cut here---------------end--------------->8---

The above does work :) thank you. I'm interested to explore writing a function that wraps g-exp behaviour to return a package as store path string and might do that outside of this ticket.

Thank you for your kind help and correspondence,

Chris




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

* bug#68512: Qutebrowser 3, no sound from pipewire-only system
  2024-01-26  6:10               ` Sergey Trofimov
@ 2024-01-26  8:19                 ` chris
  2024-01-26  9:45                 ` Clément Lassieur
  1 sibling, 0 replies; 22+ messages in thread
From: chris @ 2024-01-26  8:19 UTC (permalink / raw)
  To: Sergey Trofimov; +Cc: 68512

On  1月26日 金, Sergey Trofimov wrote:
> 
> 0.3.77 is the previous version, from a month ago. Is your checkout fresh?
> Did you `guix pull`?

yes `guix pull` has been used :|




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

* bug#68512: done
  2024-01-16 16:43 bug#68512: Qutebrowser 3, no sound from pipewire-only system chris
                   ` (2 preceding siblings ...)
  2024-01-16 19:25 ` Sergey Trofimov
@ 2024-01-26  9:10 ` chris
  3 siblings, 0 replies; 22+ messages in thread
From: chris @ 2024-01-26  9:10 UTC (permalink / raw)
  To: 68512-done; +Cc: chris

done




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

* bug#68512: Qutebrowser 3, no sound from pipewire-only system
  2024-01-26  6:10               ` Sergey Trofimov
  2024-01-26  8:19                 ` chris
@ 2024-01-26  9:45                 ` Clément Lassieur
  2024-01-26 23:32                   ` chris
  1 sibling, 1 reply; 22+ messages in thread
From: Clément Lassieur @ 2024-01-26  9:45 UTC (permalink / raw)
  To: Sergey Trofimov; +Cc: chris, 68512

On Fri, Jan 26 2024, Sergey Trofimov wrote:

> chris <chris@bumblehead.com> writes:
>
>> This attempt from the discussion here
>> https://lists.gnu.org/archive/html/guix-devel/2021-03/msg00441.html
>>
>> ```
>> (define s (open-connection))
>>
>> (display (derivation->output-path
>>           (package-derivation s pipewire #:graft? #f) "out"))
>> ```
>>
>> It runs but returns the wrong store path,
>> /gnu/store/kqw8zs84px1vzw98yv9xax4rc0n612qy-pipewire-0.3.77

Maybe you should check your GUILE_LOAD_PATH and
GUILE_LOAD_COMPILED_PATH.  That's where guile finds the guix modules.
They might include folders from an old guix.

>>
>
>> The $(guix build pipewire) command returns this,
>> /gnu/store/8572wxb5138hanhvn1lbfdm1kicxsd2k-pipewire-1.0.0
>>
>
> 0.3.77 is the previous version, from a month ago. Is your checkout fresh? Did
> you `guix pull`?




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

* bug#68512: Qutebrowser 3, no sound from pipewire-only system
  2024-01-26  8:18                 ` chris
@ 2024-01-26 12:46                   ` Sergey Trofimov
  2024-01-26 23:35                     ` chris
  0 siblings, 1 reply; 22+ messages in thread
From: Sergey Trofimov @ 2024-01-26 12:46 UTC (permalink / raw)
  To: chris; +Cc: 68512


chris <chris@bumblehead.com> writes:

> On  1月26日 金, Sergey Trofimov wrote:
>>
>> Ugh, why don't you use home-pipewire-service-type?
>
> `home-pipewire-service-type` has no option to skip dbus and thus 
> far this system does not use dbus, ibus, elogind and systemd 
> etc.
>

The only dependency on `dbus` is that pipewire shepherd service 
has it in the requirement field.
You can add a no-op shepherd service which would have (provision 
'(dbus)) to satisfy the dependency.




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

* bug#68512: Qutebrowser 3, no sound from pipewire-only system
  2024-01-26  9:45                 ` Clément Lassieur
@ 2024-01-26 23:32                   ` chris
  0 siblings, 0 replies; 22+ messages in thread
From: chris @ 2024-01-26 23:32 UTC (permalink / raw)
  To: Clément Lassieur; +Cc: Sergey Trofimov, 68512

On  1月26日 金, Clément Lassieur wrote:
> 
> Maybe you should check your GUILE_LOAD_PATH and
> GUILE_LOAD_COMPILED_PATH.  That's where guile finds the guix modules.
> They might include folders from an old guix.

I'm not sure how to investigate or verify that but here is the result of echo

$ echo $GUILE_LOAD_PATH 
/home/bumble/.guix-home/profile/share/guile/site/3.0:/run/current-system/profile/share/guile/site/3.0
$ echo $GUILE_LOAD_COMPILED_PATH 
/home/bumble/.guix-home/profile/lib/guile/3.0/site-ccache:/home/bumble/.guix-home/profile/share/guile/site/3.0:/run/current-system/profile/lib/guile/3.0/site-ccache:/run/current-system/profile/share/guile/site/3.0

`.guix-home/profile/share/guile/site/3.0` only has a few symlinks ice-9/  ncurses  shepherd  shepherd.scm

`/run/current-system/profile/share/guile/site/3.0` has many more symlinks




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

* bug#68512: Qutebrowser 3, no sound from pipewire-only system
  2024-01-26 12:46                   ` Sergey Trofimov
@ 2024-01-26 23:35                     ` chris
  0 siblings, 0 replies; 22+ messages in thread
From: chris @ 2024-01-26 23:35 UTC (permalink / raw)
  To: Sergey Trofimov, chris; +Cc: 68512

On  1月26日 金, Sergey Trofimov wrote:
> 
> The only dependency on `dbus` is that pipewire shepherd service has it in
> the requirement field.
> You can add a no-op shepherd service which would have (provision '(dbus)) to
> satisfy the dependency.

I don't know how to do this. If you share links to documentation or examples I will read those. It would be nice to use the home-pipewire-service rather than manage these files myself.

Thank you and thank you for any further suggestions or advice you may give,

Chris




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

end of thread, other threads:[~2024-01-26 23:38 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-16 16:43 bug#68512: Qutebrowser 3, no sound from pipewire-only system chris
2024-01-16 17:30 ` chris
2024-01-16 17:39 ` chris
2024-01-16 18:12   ` chris
2024-01-16 19:25 ` Sergey Trofimov
2024-01-16 20:49   ` chris
2024-01-17  6:58     ` Sergey Trofimov
2024-01-17  9:49       ` chris
2024-01-17  9:56         ` chris
2024-01-25  9:09         ` chris
2024-01-25 18:37           ` Sergey Trofimov
2024-01-25 23:26             ` chris
2024-01-26  5:56               ` Sergey Trofimov
2024-01-26  8:18                 ` chris
2024-01-26 12:46                   ` Sergey Trofimov
2024-01-26 23:35                     ` chris
2024-01-26  0:00             ` chris
2024-01-26  6:10               ` Sergey Trofimov
2024-01-26  8:19                 ` chris
2024-01-26  9:45                 ` Clément Lassieur
2024-01-26 23:32                   ` chris
2024-01-26  9:10 ` bug#68512: done chris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.