Suspend Failure xhci_hcd Device

2019-07-25 Thread Dr. Zenzic
I'm running F30 on a Thinkpad A485 with a Ryzen R5 2500U but having
trouble suspending the device. I know it's an issue with the USB 3 hub
(xhci device :06:00.4) as seen from dmesg below. The device is
failing to suspend for some reason. After this message there are
warnings about irq_startup associated with this same device so that may
be the issue.

> [   86.338687] PM: suspend entry (deep)
> [   86.338688] PM: Syncing filesystems ... done.
> [   86.348213] Freezing user space processes ... (elapsed 0.002
> seconds) done.
> [   86.350854] OOM killer disabled.
> [   86.350855] Freezing remaining freezable tasks ... (elapsed 0.001
> seconds) done.
> [   86.352112] printk: Suspending console(s) (use no_console_suspend
> to debug)
> [   86.352615] wlp2s0: deauthenticating from MACADDRESS by local
> choice (Reason: 3=DEAUTH_LEAVING)
> [   86.352655] thinkpad_acpi: acpi_evalf(GTRW, dd, ...) failed:
> AE_NOT_FOUND
> [   86.352656] thinkpad_acpi: Cannot read adaptive keyboard mode.
> [   86.594743] xhci_hcd :06:00.4: WARN: xHC CMD_RUN timeout
> [   86.609822] PM: suspend_common(): xhci_pci_suspend+0x0/0xd0 returns
> -110
> [   86.609826] PM: pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 returns -110
> [   86.609832] PM: dpm_run_callback(): pci_pm_suspend+0x0/0x120
> returns -110
> [   86.609835] PM: Device :06:00.4 failed to suspend async: error -110

I've tried disabling wakeup from the specified device in
/proc/acpi/wakeup. This has allowed me to enter suspend correctly once
but doesn't work consistently.
> GPP0      S3    *enabled   pci::00:01.1
> GPP1      S3    *disabled  pci::00:01.2
> GPP2      S3    *enabled   pci::00:01.3
> GPP3      S3    *enabled   pci::00:01.4
> GPP4      S3    *disabled
> L850      S3    *disabled
> GPP5      S3    *enabled   pci::00:01.6
> GPP6      S3    *disabled
> GP17      S3    *enabled   pci::00:08.1
> XHC0      S3    *disabled  pci::06:00.3
> XHC1      S3    *disabled  pci::06:00.4
> GP18      S3    *enabled   pci::00:08.2
> LID      S3    *enabled   platform:PNP0C0D:00
> SLPB      S3    *enabled   platform:PNP0C0E:00

Searching on Google I've only found information from kernel lists about
needed usb3 slow suspend enabled but that appeared resolved on the
kernel side or adding SUSPEND_MODULE="xhci_hcd" to no avail.

Has anyone experienced this issue before or know where I should be
looking further? Perhaps suspend just isn't working correctly with this
Thinkpad model on the current kernel?

The full dmesg is attached if that is helpful.

Regards.

[   86.338687] PM: suspend entry (deep)
[   86.338688] PM: Syncing filesystems ... done.
[   86.348213] Freezing user space processes ... (elapsed 0.002 seconds) done.
[   86.350854] OOM killer disabled.
[   86.350855] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) 
done.
[   86.352112] printk: Suspending console(s) (use no_console_suspend to debug)
[   86.352615] wlp2s0: deauthenticating from MACADDRESS by local choice 
(Reason: 3=DEAUTH_LEAVING)
[   86.352655] thinkpad_acpi: acpi_evalf(GTRW, dd, ...) failed: AE_NOT_FOUND
[   86.352656] thinkpad_acpi: Cannot read adaptive keyboard mode.
[   86.594743] xhci_hcd :06:00.4: WARN: xHC CMD_RUN timeout
[   86.609822] PM: suspend_common(): xhci_pci_suspend+0x0/0xd0 returns -110
[   86.609826] PM: pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 returns -110
[   86.609832] PM: dpm_run_callback(): pci_pm_suspend+0x0/0x120 returns -110
[   86.609835] PM: Device :06:00.4 failed to suspend async: error -110
[   86.667757] WARNING: CPU: 6 PID: 65 at kernel/irq/chip.c:210 
irq_startup+0xe2/0xf0
[   86.667758] Modules linked in: fuse rfcomm ccm xt_CHECKSUM ipt_MASQUERADE 
tun bridge stp llc nf_conntrack_netbios_ns nf_conntrack_broadcast xt_CT 
ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_conntrack 
ebtable_nat ip6table_nat ip6table_mangle ip6table_raw ip6table_security 
iptable_nat nf_nat iptable_mangle iptable_raw iptable_security nf_conntrack 
nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c ip_set nfnetlink ebtable_filter 
ebtables ip6table_filter ip6_tables iptable_filter ip_tables cmac bnep sunrpc 
vfat fat arc4 r8822be(C) uvcvideo edac_mce_amd videobuf2_vmalloc kvm_amd 
videobuf2_memops videobuf2_v4l2 btusb videobuf2_common btrtl joydev videodev 
ccp btbcm btintel snd_hda_codec_realtek kvm snd_hda_codec_generic 
snd_hda_codec_hdmi media mac80211 wmi_bmof bluetooth snd_hda_intel 
snd_hda_codec irqbypass snd_hda_core ecdh_generic snd_hwdep snd_seq 
snd_seq_device snd_pcm cfg80211 thinkpad_acpi sp5100_tco i2c_piix4 k10temp 
ledtrig_audio ipmi_devintf snd_timer ipmi_msghandler
[   86.667812]  snd rtsx_pci_ms soundcore memstick rfkill ucsi_acpi typec_ucsi 
typec pcc_cpufreq i2c_scmi acpi_cpufreq dm_crypt amdgpu rtsx_pci_sdmmc mmc_core 
i2c_algo_bit chash gpu_sched amd_iommu_v2 ttm drm_kms_helper crct10dif_pclmul 
crc32_pclmul crc32c_intel drm ghash_clmulni_intel serio_raw nvme nvme_core 
r8169 rtsx_pci wmi video
[   

Qt 5 Apps on Wayland

2018-11-11 Thread Dr. Zenzic
I have a qt 5 application that I'm trying to run on Fedora 29 running
Wayland. The app was built from source and was working correctly on
Fedora 28. After upgrading to 29 I am receiving the following warning
and the application doesn't start

"Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use
QT_QPA_PLATFORM=wayland to run on Wayland anyway."

If I run it as root using sudo I get

"QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
No protocol specified
qt.qpa.screen: QXcbConnection: Could not connect to display :0
Could not connect to any X display."

Running the command with QT_QPA_PLATFORM=wayland-egl (per
https://fedoraproject.org/wiki/How_to_debug_Wayland_problems#Looking_for_similar_reports)
I get the error

"QSocketNotifier: Can only be used with threads started with QThread"

I have the WAYLAND_DEBUG=1 output as well but it means nothing to me. I
dont know much about display backends and compsitors, but it seems like
the QT application is trying to connect to an XWayland display but can't
find one in Fedora 29. Does anyone have any suggestions to try and get
the application to display?


___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org