You are not logged in.

#1 2013-01-22 07:26:47

otto_simpson
Member
Registered: 2012-07-29
Posts: 7

[SOLVED] USB stop work after suspend (only right ports!!!)

Hi,

It drives me crazy!

I recently installed Arch on my new laptop SAMSUNG NP900X4C that have 3 USB ports, one in the left side and two in the right side . When I boot the system (or reboot) all USB ports works fine, but after system suspend like close lid, only the left port go back work.  dmesg shows nothing when I plug a pendrive in the any right USB ports, even less lsblk.

This is my dmesg out when I connect the pendrive in all ports after boot:

[  181.776489] usb 1-1.2: new high-speed USB device number 5 using ehci_hcd
[  181.880249] Initializing USB Mass Storage driver...
[  181.880381] scsi6 : usb-storage 1-1.2:1.0
[  181.880498] usbcore: registered new interface driver usb-storage
[  181.880500] USB Mass Storage support registered.
[  182.883580] scsi 6:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.26 PQ: 0 ANSI: 5
[  182.885191] sd 6:0:0:0: [sdb] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB)
[  182.886674] sd 6:0:0:0: [sdb] Write Protect is off
[  182.886688] sd 6:0:0:0: [sdb] Mode Sense: 43 00 00 00
[  182.887530] sd 6:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[  182.898516]  sdb: sdb1
[  182.901936] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[  185.427222] usb 1-1.2: USB disconnect, device number 5
[  188.486360] usb 2-2: new high-speed USB device number 2 using xhci_hcd
[  188.503289] usb 2-2: ep 0x81 - rounding interval to 32768 microframes, ep desc says 0 microframes
[  188.505259] scsi7 : usb-storage 2-2:1.0
[  189.506730] scsi 7:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.26 PQ: 0 ANSI: 5
[  189.508371] sd 7:0:0:0: [sdb] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB)
[  189.510955] sd 7:0:0:0: [sdb] Write Protect is off
[  189.510968] sd 7:0:0:0: [sdb] Mode Sense: 43 00 00 00
[  189.512566] sd 7:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[  189.523657]  sdb: sdb1
[  189.527290] sd 7:0:0:0: [sdb] Attached SCSI removable disk
[  191.469673] usb 2-2: USB disconnect, device number 2
[  193.515534] usb 2-1: new high-speed USB device number 3 using xhci_hcd
[  193.532133] usb 2-1: ep 0x81 - rounding interval to 32768 microframes, ep desc says 0 microframes
[  193.533952] scsi8 : usb-storage 2-1:1.0
[  194.535796] scsi 8:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.26 PQ: 0 ANSI: 5
[  194.537477] sd 8:0:0:0: [sdb] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB)
[  194.540055] sd 8:0:0:0: [sdb] Write Protect is off
[  194.540069] sd 8:0:0:0: [sdb] Mode Sense: 43 00 00 00
[  194.541588] sd 8:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[  194.553582]  sdb: sdb1
[  194.557933] sd 8:0:0:0: [sdb] Attached SCSI removable disk
[  196.298812] usb 2-1: USB disconnect, device number 3

Same after suspend:

[  568.168987] PM: Syncing filesystems ... done.
[  568.187450] PM: Preparing system for mem sleep
[  568.259525] Freezing user space processes ... (elapsed 0.01 seconds) done.
[  568.270762] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
[  568.284097] PM: Entering mem sleep
[  568.284201] Suspending console(s) (use no_console_suspend to debug)
[  568.298234] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[  568.300100] sd 0:0:0:0: [sda] Stopping disk
[  568.949683] PM: suspend of devices complete after 665.917 msecs
[  568.950083] PM: late suspend of devices complete after 0.395 msecs
[  568.963325] r8169 0000:02:00.0: wake-up capability enabled by ACPI
[  569.016282] PM: noirq suspend of devices complete after 66.291 msecs
[  569.017160] ACPI: Preparing to enter system sleep state S3
[  569.036433] PM: Saving platform NVS memory
[  569.042305] Disabling non-boot CPUs ...
[  569.044189] smpboot: CPU 1 is now offline
[  569.047218] smpboot: CPU 2 is now offline
[  569.049866] smpboot: CPU 3 is now offline
[  569.050441] Extended CMOS year: 2000
[  569.052505] ACPI: Low-level resume complete
[  569.052550] PM: Restoring platform NVS memory
[  569.052918] Extended CMOS year: 2000
[  569.052981] Enabling non-boot CPUs ...
[  569.059788] smpboot: Booting Node 0 Processor 1 APIC 0x1
[  569.074350] CPU1 is up
[  569.074412] smpboot: Booting Node 0 Processor 2 APIC 0x2
[  569.088727] CPU2 is up
[  569.088868] smpboot: Booting Node 0 Processor 3 APIC 0x3
[  569.103096] CPU3 is up
[  569.108227] ACPI: Waking up from system sleep state S3
[  569.262105] PM: noirq resume of devices complete after 106.814 msecs
[  569.262496] PM: early resume of devices complete after 0.234 msecs
[  569.262565] i915 0000:00:02.0: setting latency timer to 64
[  569.262604] mei 0000:00:16.0: irq 46 for MSI/MSI-X
[  569.262694] ehci_hcd 0000:00:1d.0: setting latency timer to 64
[  569.262706] ahci 0000:00:1f.2: setting latency timer to 64
[  569.262744] snd_hda_intel 0000:00:1b.0: irq 50 for MSI/MSI-X
[  569.262805] r8169 0000:02:00.0: wake-up capability disabled by ACPI
[  569.310850] xhci_hcd 0000:03:00.0: WARN: xHC restore state timeout
[  569.310949] xhci_hcd 0000:03:00.0: PCI post-resume error -110!
[  569.310953] xhci_hcd 0000:03:00.0: HC died; cleaning up
[  569.310960] xhci_hcd 0000:03:00.0: HC died; cleaning up
[  569.310985] dpm_run_callback(): pci_pm_resume+0x0/0xd0 returns -110
[  569.311032] PM: Device 0000:03:00.0 failed to resume async: error -110
[  569.312717] mei 0000:00:16.0: wd: failed to find the client
[  569.324628] Extended CMOS year: 2000
[  569.331940] [drm] Enabling RC6 states: RC6 on, RC6p on, RC6pp off
[  569.387202] r8169 0000:02:00.0: enp2s0: link down
[  569.534701] usb 1-1.5: reset full-speed USB device number 3 using ehci_hcd
[  569.621070] btusb 1-1.5:1.0: no reset_resume for driver btusb?
[  569.621077] btusb 1-1.5:1.1: no reset_resume for driver btusb?
[  569.674395] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[  569.675511] ata1.00: configured for UDMA/133
[  569.675675] sd 0:0:0:0: [sda] Starting disk
[  569.684439] usb 1-1.6: reset high-speed USB device number 4 using ehci_hcd
[  569.969276] iwlwifi 0000:01:00.0: L1 Enabled; Disabling L0S
[  569.976072] iwlwifi 0000:01:00.0: Radio type=0x2-0x1-0x0
[  570.377316] PM: resume of devices complete after 1116.468 msecs
[  570.378930] PM: Finishing wakeup.
[  570.378933] Restarting tasks ... done.
[  570.409428] video LNXVIDEO:00: Restoring backlight state
[  606.007121] usb 1-1.2: new high-speed USB device number 6 using ehci_hcd
[  606.092964] scsi9 : usb-storage 1-1.2:1.0
[  607.094056] scsi 9:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.26 PQ: 0 ANSI: 5
[  607.096239] sd 9:0:0:0: [sdb] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB)
[  607.097828] sd 9:0:0:0: [sdb] Write Protect is off
[  607.097836] sd 9:0:0:0: [sdb] Mode Sense: 43 00 00 00
[  607.098834] sd 9:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[  607.110498]  sdb: sdb1
[  607.113670] sd 9:0:0:0: [sdb] Attached SCSI removable disk
[  613.233780] usb 1-1.2: USB disconnect, device number 6

Nothing appears about the USB ports 2-2 and 2-1. Any ideia?!

I even tried to install laptop-mode-tools and set CONTROL_USB_AUTOSUSPEND=0 but didn't work

Last edited by otto_simpson (2013-01-23 01:28:49)


"We buy things we don't need
with money we don't have
to impress people we don't like"

Offline

#2 2013-01-22 21:13:48

firecat53
Member
From: Sammamish, Wa
Registered: 2007-05-14
Posts: 1,448
Website

Re: [SOLVED] USB stop work after suspend (only right ports!!!)

I'm not sure if it's exactly the same issue, but I had to disable runtime
power management for my xHCI USB controller in laptop-mode-tools or none of my
USB ports would work after a resume. Not sure why only half of yours are
having issues...are some USB 2.0 only vs USB 3.0?

Anyways, worth a try...or perhaps lead you to a new line of investigation!

Scott

Offline

#3 2013-01-22 23:25:40

otto_simpson
Member
Registered: 2012-07-29
Posts: 7

Re: [SOLVED] USB stop work after suspend (only right ports!!!)

I set CONTROL_RUNTIME_PM="0" in /etc/laptop-mode/conf.d/runtime-pm.conf but it also doesn't work.

firecat53 wrote:

Not sure why only half of yours are
having issues...are some USB 2.0 only vs USB 3.0?

Exactly. This two USB ports that stop work are USB 3.0. I searched about it but didn't find how fix it. Any more idea?


"We buy things we don't need
with money we don't have
to impress people we don't like"

Offline

#4 2013-01-23 00:51:40

firecat53
Member
From: Sammamish, Wa
Registered: 2007-05-14
Posts: 1,448
Website

Re: [SOLVED] USB stop work after suspend (only right ports!!!)

Sorry...maybe check powertop to see what options are enabled...maybe one of
those is the culprit? Disable everything, then try and suspend.

Scott

Offline

#5 2013-01-23 01:27:10

otto_simpson
Member
Registered: 2012-07-29
Posts: 7

Re: [SOLVED] USB stop work after suspend (only right ports!!!)

Oh crap! I am kid with his new toy...
After a lot of google it I read something about firmware control the wake up of USB 3.0 and when I entered in this laptop BIOS what I found?! This option disabled:

USB S3 Wake-up        [Disable]

So, just enable it and all my USB ports go back to work after suspend. I don't understand the purpose of it disabled by default.

Anyway I am sorry for this newbie mistake.

Last edited by otto_simpson (2013-01-23 04:16:20)


"We buy things we don't need
with money we don't have
to impress people we don't like"

Offline

Board footer

Powered by FluxBB