My usb mouse sleeps after 5 seconds of inactivity when running on battery power. It wakes uo again when i press any button on the mouse. This is really annoying.  I have made lsusb, and I noticed my mouse is   Bus 001 Device 012: ID 04d9:2083 Holtek Semiconductor, Inc.  I have checked my /sys/bus/usb/devices/usb1/power/autosuspend but it is already set to 0, and the directory usb1 has many subdirectories which also have autosuspend files, and i dont know how to edit them.  Also, I would like a permanent solution, which would work for any mouse, on any of my 3 usb ports. Any ideas?  Using: Ubuntu 12.04 64bit
28273
I don't know how , but somehow automatic power-off of usb devices got accidentally enabled. Now my usb mouse goes off even if it's idle for 2-3 seconds. It's really irritating.  This happened after I installed powertop and powernap. Maybe it has something to do with these two applications.  How can I disable this "feature"?
11707
My keyboard doesn't have power-related keys. I would like to enter the hybrid sleep using the keyboard and only with a minimum of keystrokes.  If there is none, how do I bind a hotkey to it?
67512
I have a need to turn USB power off (and on) using a script or a piece of software. Ideally it should be possible to turn each port off/on separately, but also turning power off/on from all ports at once is sufficient. The machine I am using is Mac Mini. Anyone has a solution for this?  By USB power I mean Vbus, the 5V/500mA connection. I understand that the data connection is also turned down and it is fine, but it is not enough for me that the data connection is down and Vbus remains powered. This need comes from the need to keep mobile phones constantly connected for automatic testing. Some device/battery combinations do not like to be constantly connected and batteries start swelling in less than a year.  I recognize that multiple variations of this question are around. So far no solution that I could use. I'll list here my findings so far:   it is possible to accomplish this by using external self powered USB HUB and controlling it's power. However, this is not an option for me (even quality hubs have caused other problems in my use). it is possible to disable USB by removing .kext files. Among other sources it is explained in OS X . However this requires reboot and I am not sure if it really disables USB power or just data. there are many claims that it just is not possible. However, OS X itself does it when it detects a device that consumes too much power, so there is at least hardware support. This error message is copied from /System/Library/Extension/IOUSBFamily.kext/Contents/Resources/English.lproj/Localizable.strings: "Unplug the device using too much power to re-enable USB devices." (of course I don't know if the disabling is done by turning off USB power, but I would assume it is natural action for the device that consumes too much of it).  it seems that on macbook the USB ports are normally powered even when the laptop is sleeping. While  is not solving my issue, it is kind of related.   The reason why I need this is that I have a test system where multiple devices are plugged in to a mac mini. The devices also charge over USB. It has turned out that if the device is connected all the time to a charger, it's battery is swollen in about a year, which makes the device unusable, insecure and potentially dangerous. Turning the power off when not needed, would significantly extend devices life.
123275
Been running El Capitan since it was officially released. Updated to 10.11.4 a few days ago. I have a WD Elements USB 3.0 drive connected to my Mac mini (directly to the rear ports, not via a hub). Ever since the update to 10.11.4 whenever my Mac goes to sleep and I wake it up again, I get a notification to say the "Disk was not ejected properly".  This has never happened with this drive before, not on Mountain Lion, Mavericks, Yosemite or El Capitan until now.  I have another external caddy also with a full size 3.5" drive in it. This is powered by the mains.  It seems to me that the Mac is now terminating power to the USB 3.0 port prematurely (before the disk has had a chance to unmount properly ?), I do not get the message for my full-size disk that is permanently powered.  Tried adding the disk to the spotlight ignore list but to no avail.  Anyone else notices this issue?
49207
I have bought Microsoft Bluetooth Notebook Mouse 5000. It's working just as I want it except that "back" button on the left side. I constantly hit it with the thumb and browser goes back. I am not used to this behavior, since my older mouse didn't have such a button. I just want to get rid of it -- disable the button once and forever, so if I clicked it -- nothing should happen.
13889
This is the second mouse dying on me because of a poor switch ! Under most operating systems there is a option to set the max time interval in which two mouse clicks are processed as on double click.  Logically there has to be a way to set a minimum double click time interval!  I surely could replace the broken switch but there are costs for the new switch, time and basic soldering needed for that. Obviously this should be the last possible step to take.  Firstly I want to try to let the computer handle the broken mouse. I am searching a fix for windows and especially for linux (ubuntu) systems.  E: as Matt Eckert mentioned the problem is that the mouse switch is gotten loose and is producing two signals with just one key press. I've never mentioned that I want to set up anything within th mouse. Sorry for the misunderstanding, I thought that this problem occurs very often so that everyone understands the problem with the give information.  Under Windows there is only the option to set the maximum time interval in in which a double click is recognized. I need to set up the minimum time interval. In other word a double click should only be recognized if the time difference between two mouse clicks is at least for example half of a millisecond.
93077
I noticed that my Windows 10 laptop takes around 6 seconds to go to sleep, and during these six seconds the SSD's activity LED is on. I imagine that Windows is writing something on the SSD before going to sleep.  I remember my Linux systems going to sleep instantly when I pressed the sleep button, which makes me wonder if I can do the same on Windows.  Given that Hybrid Sleep is disabled, what does Windows do with my drive before sleeping, and is it necessary ?
62706
A self-powered USB peripheral provides its own power, so is it okay to connect just D+, D- and GND to the host port, or do you always have to connect +5V as well, then wait for the negotiation phase for the device to tell the host that it is self-powered and therefore doesn't want any power, thank you very much?  The specific peripheral I'm looking at is based on an FTDI FT4232H USB-to-serial adapter, but I'm really hoping for a generic answer to the question.
33406
What I found in the event log is some information that apparently the system was reactivated from standby mode, but I definitely shut the system down regularly. This happens all the time. What is it, some faulty ACPI config?
2937
Is there a way to run a script when a computer "wakes up" (from sleeping)? I know it can be done on startup, obviously, but the issue in this case is that the backlight of my laptop seems to reset every time it wakes up from sleep, and I'd ideally like to have a script take care of turning it down to a reasonable level instead of having to type it in manually every time.
50663
My desktop is waking up from suspend by itself. Sometimes it takes just a minute or two, other times hours.  I don't know where to start troubleshooting this. Any help would be greatly appreciated.
75855
I am currently using a macbook pro but the operating system is debian 8.2 not os x  I am using a macbook pro but there's this one device that's just draining a lot of power. This USB device: Card Reader (Apple)   32.5 W    100.0%                      Device         USB device: Card Reader (Apple)   2.60 W    100.0%                      Device         Radio device: btusb   209 mW     19.7 pkts/s                Device         Network interface: wlan0 (wl)   This device really drains my battery, I noticed that my laptop wouldn't even get 2 hours when not plugged in, I installed powertop. Made all the recommended changes but this device, I can't find out how to disable it. I don't even use that reader and forgot that it was there.  I configured all my devices to use limited power in my rc.local  echo '0' &gt; '/proc/sys/kernel/nmi_watchdog' echo 'min_power' &gt; '/sys/class/scsi_host/host0/link_power_management_policy' echo '1' &gt; '/sys/module/snd_hda_intel/parameters/power_save' echo '1500' &gt; '/proc/sys/vm/dirty_writeback_centisecs' echo 'auto' &gt; '/sys/bus/usb/devices/2-4/power/control' echo 'auto' &gt; '/sys/bus/usb/devices/1-12/power/control' echo 'auto' &gt; '/sys/bus/usb/devices/1-8.3/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:00:1f.3/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:01:00.1/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:00:1c.3/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:00:1c.4/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:00:1c.2/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:00:1c.0/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:00:1b.0/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:00:16.0/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:00:14.0/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:00:01.1/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:00:01.0/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:00:00.0/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:01:00.0/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:08:00.0/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:07:06.0/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:07:05.0/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:07:04.0/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:07:03.0/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:07:00.0/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:06:00.0/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:05:00.0/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:04:00.0/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:03:00.0/power/control' echo 'auto' &gt; '/sys/bus/pci/devices/0000:00:1f.0/power/control'   How can I get this device to act sanely or disable it completely because I  haven't used it.
57114
I have an interesting problem. I am using Windows 8.1 on my PC and I have WOL enabled from my BIOS and my LAN card settings and it works just fine.  But, since a couple of weeks back, my computer turns on by itself in the middle of the night.  Two nights ago, after it woke me up because of the noise, I removed the LAN cord and everything was well until the next morning when I powered the PC myself. I also thought it could be a peripheral, so from Device Manager I went through every device there (apart from the LAN card, which I need because of the WOL), disabling Allow device to wake the computer from "Power Management". Also, in the LAN settings, I checked and the network card can be wake the PC up just by using Magic Packet or Pattern Mach.   The problem persisted last night (it woke around 5am).  I started reading forums and saw the idea of looking what last turned on my PC, so I checked with powercfg -lastwake and it returned the following:   Wake History Count - 1 Wake History [0]  Wake Source Count - 0   Because of the answer, I couldn't find a thing, therefore I checked the Windows logs, filtering them by Power Issues. I found the last wake my PC  experienced, and the log was as it follows:   The system has returned from a low power state. Sleep Time: ‎2014‎-‎05‎-‎08T23:38:33.848063300Z Wake Time: ‎2014‎-‎05‎-‎09T01:56:48.134397800Z     Wake Source: Unknown   This is the reason I have posted the issue here, even though there are many posts about this. I didn't want to repost, but I never found this same problem (with wake source unknown) in any post or forum.  I hope someone has an idea of what may be the problem.
26449
I'm designing a USB device which can either be powered by USB or an external 5V power supply.  When an external 5V power supply is present, the device should be powered solely by this external supply. Otherwise, the device should be powered by the USB bus. In other words, the external supply should always be prioritized, regardless of voltage level compared to Vbus. This rules out solutions based on diode-ORing.  Furthermore, the device will potentially consume quite a bit of power (several amps), so a solution based on MOSFETs would be preferred. When drawing a lot of power, the external supply is required.  So far I've found only one IC which seems to do what I want, the . However it's rather expensive and supports up to three supplies, which is more than I need. Does anyone know of other simpler (cheaper?) ICs?  I've come up with  which appears to work in simulation, but I'm not sure it will work in practice. For instance, is it possible to get an inrush current from Vbus to Vext during the transition period? Does anyone know of a simpler circuit to safely switch between the two power supplies?
120199
I've had the Logitech Wave MK550 for about two years now, and it has acted up twice on me now.  Now being the second time, anyways. What is happening is the mouse and keyboard simply stop working on my computer, however, they work on the same computer on Arch linux, Ubuntu, on my laptop running Windows 7, Arch and Ubuntu as well.   I talked to Logitech tech support today, but that didn't go anywhere. We determined that Windows is finding the devices and installing the drivers appropriately, because they show up in the Device Manager. My PS/2 Keyboard works fine, along with another USB mouse that I am using in the meantime, so she really had no idea where to direct me.  Anyone have an idea as to where to go from here? I miss my keyboard
1975
All operating systems freeze sometimes, and Ubuntu is no exception. What should I do to regain control when...   just one program stops responding? nothing at all responds to mouse clicks or key presses? the mouse stops moving entirely? I have an    In what order should I try various solutions before deciding to pull the power plug?  What should I do when starting up Ubuntu fails?  Is there a diagnostic procedure I can follow?
65450
I'm using Windows 8.1 with an external hard drive. My external seems to go to sleep very quickly, like in a single minute. I constantly wait 2-3 seconds when accessing files on my external harddrive (where all my important stuff is). I have not had this problem on other OSs with this same external HDD.  I checked my power settings, its supposed to wait 40 minutes before spinning down (on battery and plugged in). This is clearly not happening. What might be the problem here?