Bug 41422 - Plug in USB laptop causes system suspend - Acer 4930G.
Summary: Plug in USB laptop causes system suspend - Acer 4930G.
Alias: None
Product: Drivers
Classification: Unclassified
Component: USB (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Greg Kroah-Hartman
Depends on:
Blocks: 56331
  Show dependency tree
Reported: 2011-08-20 23:07 UTC by Mamy Ratsimbazafy
Modified: 2013-04-09 06:23 UTC (History)
4 users (show)

See Also:
Kernel Version: 3.3.8
Regression: No
Bisected commit-id:


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

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

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;

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
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

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.

Note You need to log in before you can comment on or make changes to this bug.