Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upUSBVM Blocks S3 sleep #1419
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Nov 13, 2015
Member
Do you have block devices (qvm-block) attached when going to sleep? This
might be a problem.
Anyway check logs in dom0 and USB VM (journalctl) to see what takes that
much time.
Also some USB 3.0 controllers makes problems with S3 sleep. If you
happen to have some of them, simply add xhci_pci module to
/rw/config/suspend-module-blacklist
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
Do you have block devices (qvm-block) attached when going to sleep? This Also some USB 3.0 controllers makes problems with S3 sleep. If you Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
DeltaHeavy
Nov 13, 2015
No devices attached on sleep, I haven't tried sleeping with devices
attached although I assume that will go similarly or worse.
I was having pci reset issues with my usbvm so I disabled USB3 in the BIOS
a while ago.
I'll let you know what the logs look like, thanks as always.
Max
On Nov 13, 2015 12:58 PM, "Marek Marczykowski-Górecki" <
notifications@github.com> wrote:
Do you have block devices (qvm-block) attached when going to sleep? This
might be a problem.
Anyway check logs in dom0 and USB VM (journalctl) to see what takes that
much time.Also some USB 3.0 controllers makes problems with S3 sleep. If you
happen to have some of them, simply add xhci_pci module to
/rw/config/suspend-module-blacklistBest Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?—
Reply to this email directly or view it on GitHub
#1419 (comment)
.
DeltaHeavy
commented
Nov 13, 2015
|
No devices attached on sleep, I haven't tried sleeping with devices I was having pci reset issues with my usbvm so I disabled USB3 in the BIOS I'll let you know what the logs look like, thanks as always. Max
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
DeltaHeavy
Nov 15, 2015
The only journalctl entries that seems to stand out:
Dom0
- the suspension of the netvm (although this doesn't affect time when sys-usb has been deleted)
- clock syncing (I don't have a clockVM set..?) although the time elapsed is a fraction of a second
- libvirtd[867] EOF while reading data I/O error
sys-usb (usbvm)
- nothing out of the ordinary
EDIT: Setting a clockVM had no effect
DeltaHeavy
commented
Nov 15, 2015
|
The only journalctl entries that seems to stand out: Dom0
sys-usb (usbvm)
EDIT: Setting a clockVM had no effect |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Nov 28, 2015
Member
You can still try with blacklisting module - in case of USB 2.0, it would be ehci_pci. Write it to /rw/config/suspend-module-blacklist
|
You can still try with blacklisting module - in case of USB 2.0, it would be ehci_pci. Write it to |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
DeltaHeavy
Nov 30, 2015
I couldn't seem the glean a full answer from some cursory googling, what
does the blacklisting actually do?
Thanks!
On Nov 28, 2015 3:30 PM, "Marek Marczykowski-Górecki" <
notifications@github.com> wrote:
You can still try with blacklisting module - in case of USB 2.0, it would
be ehci_pci. Write it to /rw/config/suspend-module-blacklist—
Reply to this email directly or view it on GitHub
#1419 (comment)
.
DeltaHeavy
commented
Nov 30, 2015
|
I couldn't seem the glean a full answer from some cursory googling, what Thanks!
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Dec 26, 2015
Member
I couldn't seem the glean a full answer from some cursory googling, what does the blacklisting actually do?
It will unload the module before suspend and load it back after resume (if was loaded at suspend time). Described here: https://www.qubes-os.org/doc/config-files/
It will unload the module before suspend and load it back after resume (if was loaded at suspend time). Described here: https://www.qubes-os.org/doc/config-files/ |
marmarek
added
C: core
C: kernel
P: minor
labels
Dec 26, 2015
marmarek
added this to the Release 3.1 milestone
Dec 26, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
DeltaHeavy
Dec 28, 2015
Duly noted, thanks as always.
That said, it doesn't seem to have solved the issue. From lsusb.py I
noticed the device referred to as ehci_hcd, but trying that in the
blacklist didn't work either. Is there a way to list those IDs of hub
devices to tell what exactly to put in the blacklist?
Thanks!
I couldn't seem the glean a full answer from some cursory googling, what
does the blacklisting actually do?
It will unload the module before suspend and load it back after resume (if
was loaded at suspend time). Described here:
https://www.qubes-os.org/doc/config-files/
—
Reply to this email directly or view it on GitHub
#1419 (comment)
.
DeltaHeavy
commented
Dec 28, 2015
|
Duly noted, thanks as always. That said, it doesn't seem to have solved the issue. From lsusb.py I Thanks!
It will unload the module before suspend and load it back after resume (if — |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Dec 28, 2015
Member
In latest kernels, ehci_hcd was split into ehci_hcd and ehci_pci - the later one is actually bound to the device (and depends on ehci_hcd), so this is the one to blacklist.
Anyway, I have similar issue on one laptop, will look into that closer.
|
In latest kernels, ehci_hcd was split into ehci_hcd and ehci_pci - the later one is actually bound to the device (and depends on ehci_hcd), so this is the one to blacklist. Anyway, I have similar issue on one laptop, will look into that closer. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
DeltaHeavy
Dec 28, 2015
Thanks. I'll try some configurations as well and let you know if anything
comes of it.
On Dec 28, 2015 4:17 AM, "Marek Marczykowski-Górecki" <
notifications@github.com> wrote:
In latest kernels, ehci_hcd was split into ehci_hcd and ehci_pci - the
later one is actually bound to the device (and depends on ehci_hcd), so
this is the one to blacklist.Anyway, I have similar issue on one laptop, will look into that closer.
—
Reply to this email directly or view it on GitHub
#1419 (comment)
.
DeltaHeavy
commented
Dec 28, 2015
|
Thanks. I'll try some configurations as well and let you know if anything
|
marmarek
referenced this issue
Dec 29, 2015
Closed
add ehci_pci and xhci_pci to /rw/config/suspend-module-blacklist in USB VM #1565
marmarek
added
the
bug
label
Jan 10, 2016
marmarek
closed this
in
marmarek/old-qubes-core-agent-linux@cb5c457
Jan 11, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jan 12, 2016
Member
Automated announcement from builder-github
The package python2-dnf-plugins-qubes-hooks-3.1.12-1.fc21 has been pushed to the r3.1 testing repository for the Fedora fc21 template.
To test this update, please install it with the following command:
sudo yum update --enablerepo=qubes-vm-r3.1-current-testing
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.1-fc21-cur-test
label
Jan 12, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jan 12, 2016
Member
Automated announcement from builder-github
The package python2-dnf-plugins-qubes-hooks-3.1.12-1.fc22 has been pushed to the r3.1 testing repository for the Fedora fc22 template.
To test this update, please install it with the following command:
sudo yum update --enablerepo=qubes-vm-r3.1-current-testing
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.1-fc22-cur-test
label
Jan 12, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jan 12, 2016
Member
Automated announcement from builder-github
The package python2-dnf-plugins-qubes-hooks-3.1.12-1.fc23 has been pushed to the r3.1 testing repository for the Fedora fc23 template.
To test this update, please install it with the following command:
sudo yum update --enablerepo=qubes-vm-r3.1-current-testing
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.1-fc23-cur-test
label
Jan 12, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jan 12, 2016
Member
Automated announcement from builder-github
The package python2-dnf-plugins-qubes-hooks-3.1.12-1.fc21 has been pushed to the r3.1 stable repository for the Fedora fc21 template.
To install this update, please use the standard update command:
sudo yum update
|
Automated announcement from builder-github The package
|
marmarek
added
r3.1-fc21-stable
and removed
r3.1-fc21-cur-test
labels
Jan 12, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jan 12, 2016
Member
Automated announcement from builder-github
The package python2-dnf-plugins-qubes-hooks-3.1.12-1.fc22 has been pushed to the r3.1 stable repository for the Fedora fc22 template.
To install this update, please use the standard update command:
sudo yum update
|
Automated announcement from builder-github The package
|
marmarek
added
r3.1-fc22-stable
and removed
r3.1-fc22-cur-test
labels
Jan 12, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jan 12, 2016
Member
Automated announcement from builder-github
The package python2-dnf-plugins-qubes-hooks-3.1.12-1.fc23 has been pushed to the r3.1 stable repository for the Fedora fc23 template.
To install this update, please use the standard update command:
sudo yum update
|
Automated announcement from builder-github The package
|
marmarek
added
r3.1-fc23-stable
and removed
r3.1-fc23-cur-test
labels
Jan 12, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jan 13, 2016
Member
Automated announcement from builder-github
The package qubes-core-agent_3.1.12-1+deb8u1 has been pushed to the r3.1 testing repository for the Debian jessie template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing jessie-testing, then use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.1-jessie-cur-test
label
Jan 13, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jan 13, 2016
Member
Automated announcement from builder-github
The package qubes-core-agent_3.1.12-1+deb9u1 has been pushed to the r3.1 testing repository for the Debian stretch 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, then use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.1-stretch-cur-test
label
Jan 13, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jan 13, 2016
Member
Automated announcement from builder-github
The package qubes-core-agent_3.1.12-1+deb7u1 has been pushed to the r3.1 testing repository for the Debian wheezy template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing wheezy-testing, then use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.1-wheezy-cur-test
label
Jan 13, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jan 13, 2016
Member
Automated announcement from builder-github
The package qubes-core-agent_3.1.12-1+deb8u1 has been pushed to the r3.1 stable repository for the Debian jessie template.
To install this update, please use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
|
Automated announcement from builder-github The package
|
marmarek
added
r3.1-jessie-stable
and removed
r3.1-jessie-cur-test
labels
Jan 13, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jan 13, 2016
Member
Automated announcement from builder-github
The package qubes-core-agent_3.1.12-1+deb7u1 has been pushed to the r3.1 stable repository for the Debian wheezy template.
To install this update, please use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
|
Automated announcement from builder-github The package
|
marmarek
added
r3.1-wheezy-stable
and removed
r3.1-wheezy-cur-test
labels
Jan 13, 2016
added a commit
to QubesOS/qubes-core-agent-linux
that referenced
this issue
Jan 15, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jan 15, 2016
Member
Automated announcement from builder-github
The package python2-dnf-plugins-qubes-hooks-3.0.24-1.fc20 has been pushed to the r3.0 testing repository for the Fedora fc20 template.
To test this update, please install it with the following command:
sudo yum update --enablerepo=qubes-vm-r3.0-current-testing
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.0-fc20-testing
label
Jan 15, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jan 15, 2016
Member
Automated announcement from builder-github
The package python2-dnf-plugins-qubes-hooks-3.0.24-1.fc21 has been pushed to the r3.0 testing repository for the Fedora fc21 template.
To test this update, please install it with the following command:
sudo yum update --enablerepo=qubes-vm-r3.0-current-testing
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.0-fc21-testing
label
Jan 15, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jan 15, 2016
Member
Automated announcement from builder-github
The package python2-dnf-plugins-qubes-hooks-3.0.24-1.fc22 has been pushed to the r3.0 testing repository for the Fedora fc22 template.
To test this update, please install it with the following command:
sudo yum update --enablerepo=qubes-vm-r3.0-current-testing
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.0-fc22-testing
label
Jan 15, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jan 15, 2016
Member
Automated announcement from builder-github
The package python2-dnf-plugins-qubes-hooks-3.0.24-1.fc23 has been pushed to the r3.0 testing repository for the Fedora fc23 template.
To test this update, please install it with the following command:
sudo yum update --enablerepo=qubes-vm-r3.0-current-testing
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.0-fc23-testing
label
Jan 15, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jan 15, 2016
Member
Automated announcement from builder-github
The package qubes-core-agent_3.0.24-1+deb8u1 has been pushed to the r3.0 testing repository for the Debian jessie template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing jessie-testing, then use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.0-jessie-testing
label
Jan 15, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Jan 15, 2016
Member
Automated announcement from builder-github
The package qubes-core-agent_3.0.24-1+deb7u1 has been pushed to the r3.0 testing repository for the Debian wheezy template.
To test this update, first enable the testing repository in /etc/apt/sources.list.d/qubes-*.list by uncommenting the line containing wheezy-testing, then use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.0-wheezy-testing
label
Jan 15, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 10, 2016
Member
Automated announcement from builder-github
The package python2-dnf-plugins-qubes-hooks-3.0.25-1.fc20 has been pushed to the r3.0 stable repository for the Fedora fc20 template.
To install this update, please use the standard update command:
sudo yum update
|
Automated announcement from builder-github The package
|
marmarek
added
r3.0-fc20-stable
and removed
r3.0-fc20-testing
labels
Mar 10, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 10, 2016
Member
Automated announcement from builder-github
The package python2-dnf-plugins-qubes-hooks-3.0.25-1.fc21 has been pushed to the r3.0 stable repository for the Fedora fc21 template.
To install this update, please use the standard update command:
sudo yum update
|
Automated announcement from builder-github The package
|
marmarek
added
r3.0-fc21-stable
and removed
r3.0-fc21-testing
labels
Mar 10, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 10, 2016
Member
Automated announcement from builder-github
The package python2-dnf-plugins-qubes-hooks-3.0.25-1.fc22 has been pushed to the r3.0 stable repository for the Fedora fc22 template.
To install this update, please use the standard update command:
sudo yum update
|
Automated announcement from builder-github The package
|
marmarek
added
r3.0-fc22-stable
and removed
r3.0-fc22-testing
labels
Mar 10, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 10, 2016
Member
Automated announcement from builder-github
The package python2-dnf-plugins-qubes-hooks-3.0.25-1.fc23 has been pushed to the r3.0 stable repository for the Fedora fc23 template.
To install this update, please use the standard update command:
sudo yum update
|
Automated announcement from builder-github The package
|
marmarek
added
r3.0-fc23-stable
and removed
r3.0-fc23-testing
labels
Mar 10, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 13, 2016
Member
Automated announcement from builder-github
The package qubes-core-agent_3.0.25-1+deb8u1 has been pushed to the r3.0 stable repository for the Debian jessie template.
To install this update, please use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
|
Automated announcement from builder-github The package
|
marmarek
added
r3.0-jessie-stable
and removed
r3.0-jessie-testing
labels
Mar 13, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Mar 13, 2016
Member
Automated announcement from builder-github
The package qubes-core-agent_3.0.25-1+deb7u1 has been pushed to the r3.0 stable repository for the Debian wheezy template.
To install this update, please use the standard update command:
sudo apt-get update && sudo apt-get dist-upgrade
|
Automated announcement from builder-github The package
|
DeltaHeavy commentedNov 13, 2015
When I have the USB controllers under dom0 (no USBVM) dropping to S3 sleep takes just under a second.
However, when a USBVM has been assigned PCI devices (The two USB2.0 controllers, in my case), dropping to S3 sleep takes upward of 15 seconds.
I'm not entirely sure the nature of the bug - it may have something to do with the fact that detaching block devices from VMs with qvm-block has reported LibVirt errors ("failed to detach").
I'm sorry this is unspecific, let me know what output (dom0 / usbvm dmesg?) will help in diagnostics.
Thanks!