• [gentoo-user] Re: Google Chrome now requires wayland and jack audio?

    From Grant Edwards@21:1/5 to Mark Knecht on Fri Jul 15 23:00:01 2022
    On 2022-07-15, Mark Knecht <[email protected]> wrote:
    On Fri, Jul 15, 2022 at 12:28 PM Grant Edwards <[email protected]> wrote:

    It looks like www-client/google-chrome just added wayland and jack
    audio to the dependancies. So now I have to have Pulse _and_ Jack?

    Is that truly a Chrome requirement, like the company Google wrote
    the ebuild, or is this something a Gentoo dev did for some reason?

    Google doesn't provide an ebuild. The ebuild is written maintained by
    the kind volunteers of the Chromium in Gentoo Project. For the binary distribution from Google, those devs have no control over what
    libraries the Chrome executables are built to use. All they can do is
    try to figure out which libraries Chrome needs, and reflect that in
    the ebuild so that after the binary from Google gets installed, it
    works.

    That said, there was no jack audio requirement for Chrome. I misread
    the emerge output. The two new requirements that google-chrome was
    pulling in were

    dev-libs/wayland
    dev-util/wayland-scanner

    You don't have to be running Wayland, but you now need the above
    wayland pieces.

    There isn't actually a pulse audio requirement in the google-chrome
    ebuild either, but if I don't have pulse installed, some audio stuff
    in Chrome doesn't work. In web apps like Google Voice

    * I can select my headset mic as audio in, but it won't work.

    * I can't select headset as audio out.

    Installing pulse audio fixed those problems.

    I'm curious as the USB disconnect problem seems somehow to be
    related to using Chrome on the host machine for sites that do a lot
    of audio, like YouTube. A clean boot of the host machine, followed
    by a clean boot of the VM and I've run for at least an hour with no disconnection problems. I can use Chrome for email, messaging and
    reading newspapers with no problem, but I run YouTube and twice I've
    had USB problems in the VM.


    Yep, it sounds like doing audio via Chrome is disrupting the the USB
    audio device that's in-use by the VM. Are there Linux audio drivers
    for that hardware that you could uninstall to keep Chrome from seeing
    it?

    --
    Grant

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Grant Edwards@21:1/5 to Julien Roy on Fri Jul 15 22:50:01 2022
    On 2022-07-15, Julien Roy <[email protected]> wrote:

    One of the side effects of using proprietary software : you can't
    control with which flags it gets built.

    Yep. I didn't used to have the chrome binary package installed, but
    there are a couple things that I've never gotten to work in Chromium
    (e.g. Webex).

    With chromium-bin, there is a wayland USE flag, but nothing for
    jack.

    I looked into that more, and I had misread the emerge output. It
    wasn't google-chrome that depended on jack, and now I can't figure out
    why it was installed. I did

    # emerge -C virtual/jack media-sound/jack-audio-connection-kit
    # emerge -auvND world

    It didn't get reinstalled. And then a subsequenct

    # emerge --depclean --ask

    removed another half-dozen audio-related packagets (zita-* and
    realtime-*, whatever they are). I'm sure the next time I try to use
    audio on that machine it won't work.

    I used to think that someday Linux sound support would get
    straightened out, but it just keeps getting worse...

    --
    Grant

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark Knecht@21:1/5 to All on Fri Jul 15 23:40:01 2022
    On Fri, Jul 15, 2022 at 1:56 PM Grant Edwards <[email protected]> wrote:

    On 2022-07-15, Mark Knecht <[email protected]> wrote:
    On Fri, Jul 15, 2022 at 12:28 PM Grant Edwards <
    [email protected]>
    wrote:
    <SNIP>
    I'm curious as the USB disconnect problem seems somehow to be
    related to using Chrome on the host machine for sites that do a lot
    of audio, like YouTube. A clean boot of the host machine, followed
    by a clean boot of the VM and I've run for at least an hour with no disconnection problems. I can use Chrome for email, messaging and
    reading newspapers with no problem, but I run YouTube and twice I've
    had USB problems in the VM.


    Yep, it sounds like doing audio via Chrome is disrupting the the USB
    audio device that's in-use by the VM. Are there Linux audio drivers
    for that hardware that you could uninstall to keep Chrome from seeing
    it?

    There is no support in Linux for this hardware. From the computer's
    POV it's just an external USB device, partially an audio device, and
    partially just controlled over USB. I've told pulseaudio and KDE in
    general not to use it but I continue to see problems. I have no idea
    what functionality the USB control port is providing.

    I think the next step is to actually blacklist the device by its
    USB device ID ala something like this:

    https://www.projectgus.com/2014/09/blacklisting-a-single-usb-device-from-linux/

    and see what happens.

    This whole thing isn't overly critical to me. The device itself is
    stand alone in operation. It's only attached to a computer to do editing
    which actually can be done on the device's GUI without a computer, or
    I can hook it to a Windows laptop, or even this machine if booted into
    Windows. I was just wanting to be in Linux but open a VM to allow
    me to edit more easily, which I actually can do but I have to hit the
    reconnect button in software or pull the USB cable, both of which
    work but are hacks.

    <div dir="ltr"><br><br>On Fri, Jul 15, 2022 at 1:56 PM Grant Edwards &lt;<a href="mailto:[email protected]">[email protected]</a>&gt; wrote:<br>&gt;<br>&gt; On 2022-07-15, Mark Knecht &lt;<a href="mailto:[email protected]">markknecht@
    gmail.com</a>&gt; wrote:<br>&gt; &gt; On Fri, Jul 15, 2022 at 12:28 PM Grant Edwards &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;<br>&gt; &gt; wrote:<br>&lt;SNIP&gt;<br>&gt; &gt; I&#39;m curious as the USB disconnect
    problem seems somehow to be<br>&gt; &gt; related to using Chrome on the host machine for sites that do a lot<br>&gt; &gt; of audio, like YouTube. A clean boot of the host machine, followed<br>&gt; &gt; by a clean boot of the VM and I&#39;ve run for at
    least an hour with no<br>&gt; &gt; disconnection problems. I can use Chrome for email, messaging and<br>&gt; &gt; reading newspapers with no problem, but I run YouTube and twice I&#39;ve<br>&gt; &gt; had USB problems in the VM.<br>&gt;<br>&gt;<br>&gt;
    Yep, it sounds like doing audio via Chrome is disrupting the the USB<br>&gt; audio device that&#39;s in-use by the VM. Are there Linux audio drivers<br>&gt; for that hardware that you could uninstall to keep Chrome from seeing<br>&gt; it?<br><br><div>
    There is no support in Linux for this hardware. From the computer&#39;s </div><div>POV it&#39;s just an external USB device, partially an audio device, and </div><div>partially just controlled over USB. I&#39;ve told pulseaudio and KDE in </div><div>
    general not to use it but I continue to see problems. I have no idea</div><div>what functionality the USB control port is providing.</div><div><br></div><div>I think the next step is to actually blacklist the device by its</div><div>USB device ID ala
    something like this:</div><div><br></div><div><a href="https://www.projectgus.com/2014/09/blacklisting-a-single-usb-device-from-linux/">https://www.projectgus.com/2014/09/blacklisting-a-single-usb-device-from-linux/</a><br></div><div><br></div><div>and
    see what happens.</div><div><br></div><div>This whole thing isn&#39;t overly critical to me. The device itself is </div><div>stand alone in operation. It&#39;s only attached to a computer to do editing</div><div>which actually can be done on the device&#
    39;s GUI without a computer, or</div><div>I can hook it to a Windows laptop, or even this machine if booted into </div><div>Windows. I was just wanting to be in Linux but open a VM to allow</div><div>me to edit more easily, which I actually can do but I
    have to hit the </div><div>reconnect button in software or pull the USB cable, both of which</div><div>work but are hacks.</div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)