Bug 41422

Summary: Plug in USB laptop causes system suspend - Acer 4930G.
Product: Drivers Reporter: Mamy Ratsimbazafy (chok)
Component: USBAssignee: Greg Kroah-Hartman (greg)
Status: REOPENED ---    
Severity: normal CC: alan, lenb, rui.zhang, tianyu.lan
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.3.8 Subsystem:
Regression: No Bisected commit-id:
Bug Depends on:    
Bug Blocks: 56331    

Description Mamy Ratsimbazafy 2011-08-20 23:07:57 UTC
Hello,

Everytime I plug an USB device on my laptop it suspends. My laptop is an acer
4930G.

After some tests(see https://bugs.kde.org/show_bug.cgi?id=280457 and https://bbs.archlinux.org/viewtopic.php?id=116288 ) , the issue comes from this line in my /etc/rc.local .

for i in /sys/bus/{pci,i2c}/devices/*/power/control; do echo -n 'auto' > $i;
done

The pci part is guilty of sending a sleep keyboard event when a USB device is plugged in.
This event suspend the laptop by default in KDE. I tried changing the action to starting a terminal, and everytime I plug an USB device, a new terminal starts. If I associate the sleep shortcut to nothing, nothing happens.

USB devices affected are at least USB thumb drives, USB HDD and USB mice.

Other PM settings that may or may not participate in the issue :
for i in /sys/class/scsi_host/*/link_power_management_policy; do echo -n 'min_power' > $i; done
pcie_aspm=force in the boot line
options usbcore autosuspend=1
Comment 1 Zhang Rui 2012-01-18 05:34:32 UTC
It's great that the kernel bugzilla is back.

Can you please verify if the problem still exists in the latest upstream
kernel?
Comment 2 Zhang Rui 2012-05-24 08:06:44 UTC
bug closed as there is no response from the bug reporter.
please feel free to reopen it if the problem still exists in the latest upstream kernel.
Comment 3 Mamy Ratsimbazafy 2012-06-09 06:08:29 UTC
Hello,

Problem still exists in Kernel 3.3.8, I am using archlinux kernel.
Comment 4 Len Brown 2012-10-30 02:00:09 UTC
um, so the bug is that when you plug in your USB laptop,
it sends a key that the distribution has set to suspend
the system?

whelp, this is either a bug in the USB/keyboard/input path,
or in the distro.  Assigning to USB.