Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restarting gui-daemon results in broken audio #3249

Closed
qubesuser opened this issue Oct 28, 2017 · 8 comments
Closed

restarting gui-daemon results in broken audio #3249

qubesuser opened this issue Oct 28, 2017 · 8 comments
Labels
C: gui-virtualization P: minor Priority: minor. The lowest priority, below "default." r4.0-bullseye-stable r4.0-buster-stable r4.0-centos7-stable r4.0-fc29-stable r4.0-fc30-stable r4.0-fc31-stable r4.0-stretch-stable T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists.

Comments

@qubesuser
Copy link

Qubes OS version:

R4.0-rc2

Steps to reproduce the behavior:

  1. Start some applications in VMs
  2. Log off
  3. Log in

Expected behavior:

All applications reappear and audio works in VMs since GUI daemons are restarted.

Actual behavior:

GUI daemons don't restart automatically.

If restarted manually, by deleting /run/qubes/guid-* and running qvm-start-gui --all, then audio doesn't work since pacat-simple-vchan seems to hang before connecting to PulseAudio.

@marmarek
Copy link
Member

If restarted manually, by deleting /run/qubes/guid-* and running qvm-start-gui --all, then audio doesn't work since pacat-simple-vchan seems to hang before connecting to PulseAudio.

This issue is present also on 3.2. Can be workarounded by reloading module-vchan-sink in the VM:

pacat unload-module module-vchan-sink
pacat load-module module-vchan-sink

GUI daemons don't restart automatically.

This is a duplicate of #3147

@marmarek marmarek changed the title GUI daemons don't restart automatically in Qubes 4.0, and restarting manually results in broken audio restarting gui-daemon results in broken audio Oct 28, 2017
@marmarek marmarek added T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists. C: gui-virtualization P: minor Priority: minor. The lowest priority, below "default." labels Oct 28, 2017
@marmarek marmarek added this to the Release 3.2 updates milestone Oct 28, 2017
@qubesuser
Copy link
Author

Indeed, reloading module-vchan-sink now seems to work for me.

It's a bit strange because I tried doing exactly that before filing the bug and it didn't seem to work, but maybe I had the system in a somewhat strange state as I was trying a bunch of things (perhaps pacat-simple-vchan not running or no audio devices)

@ghost
Copy link

ghost commented Aug 22, 2018

Is there a workaround/fix for Qubes R4?

@marmarek
Copy link
Member

marmarek commented Apr 5, 2020

This is fixed in QubesOS/qubes-gui-agent-linux#89

marmarek pushed a commit to QubesOS/qubes-gui-agent-linux that referenced this issue Apr 18, 2020
Recreate vchan servers (libvchan_server_init()) on disconnection.

This fixes audio in the case of Xorg crash (see
QubesOS/qubes-issues#5273), and any kind of GUI restart.

(cherry picked from commit fe0b701)
Notes from origin:
    Fixes QubesOS/qubes-issues#3249
@qubesos-bot
Copy link

Automated announcement from builder-github

The package gui-agent-linux has been pushed to the r4.0 testing repository for the CentOS centos7 template.
To test this update, please install it with the following command:

sudo yum update --enablerepo=qubes-vm-r4.0-current-testing

Changes included in this update

@qubesos-bot
Copy link

Automated announcement from builder-github

The package qubes-gui-agent_4.0.28-1 has been pushed to the r4.0 testing repository for the Debian template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing stretch-testing (or appropriate equivalent for your template version), then use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

@qubesos-bot
Copy link

Automated announcement from builder-github

The package qubes-gui-agent_4.0.29-1+deb9u1 has been pushed to the r4.0 stable repository for the Debian template.
To install this update, please use the standard update command:

sudo apt-get update && sudo apt-get dist-upgrade

Changes included in this update

@qubesos-bot
Copy link

Automated announcement from builder-github

The package gui-agent-linux has been pushed to the r4.0 stable repository for the CentOS centos7 template.
To install this update, please use the standard update command:

sudo yum update

Changes included in this update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: gui-virtualization P: minor Priority: minor. The lowest priority, below "default." r4.0-bullseye-stable r4.0-buster-stable r4.0-centos7-stable r4.0-fc29-stable r4.0-fc30-stable r4.0-fc31-stable r4.0-stretch-stable T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists.
Projects
None yet
Development

No branches or pull requests

3 participants