{"id":222,"date":"2016-11-04T06:06:11","date_gmt":"2016-11-04T06:06:11","guid":{"rendered":"https:\/\/asdfghjkl.me.uk\/blog\/?p=222"},"modified":"2016-11-04T06:06:11","modified_gmt":"2016-11-04T06:06:11","slug":"why-logitech","status":"publish","type":"post","link":"https:\/\/asdfghjkl.me.uk\/blog\/why-logitech\/","title":{"rendered":"Laptop mysteriously turns on overnight: Logitech to blame"},"content":{"rendered":"<p>Something's been puzzling me for the past few weeks.\u00a0At the end of each day I hibernate my laptop, stick it in my bag, and take it home. When I turn it on the next day,\u00a0it tells me it powered off\u00a0because the battery reached a critical level, and the battery has dropped to 3% (the shutdown threshold) from its original 100%. What gives?<\/p>\n<p>I couldn't figure out whether the battery was draining itself overnight, or whether the computer was turning itself back on somehow. Luckily I have the terrible habit of\u00a0falling asleep on the sofa (well, piece-of-sponge-with-some-slats) so\u00a0at\u00a03 o'clock one morning I caught it\u00a0turning itself on.<\/p>\n<p>Weeeeird.<\/p>\n<p>Auto power-on wasn't configured in the BIOS and there was nothing plugged into the LAN port to wake it up. What had changed in the past few weeks?<\/p>\n<div id=\"attachment_223\" style=\"width: 447px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-223\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-223 size-full\" src=\"https:\/\/asdfghjkl.me.uk\/blog\/wp-content\/uploads\/IMG_20161104_082246.jpg\" alt=\"Logitech Unifying Receiver\" width=\"437\" height=\"484\" \/><p id=\"caption-attachment-223\" class=\"wp-caption-text\">I should really clean that screen hinge.<\/p><\/div>\n<p>I have a Logitech Unifying Receiver for my wireless mouse, and I had recently made the apparently highly important decision that it was probably safer to leave it plugged in all the time rather than pull it out every day so it\u00a0didn't get bashed up in my bag (turns out they pull apart quite easily, and I'm 6,000 miles from a replacement). Was this the culprit?<\/p>\n<p>Windows includes a handy utility to find out what devices are configured to\u00a0wake a computer, <em>powercfg<\/em>. You can run\u00a0<em>powercfg \/devicequery wake_armed<\/em> in a command prompt:<\/p>\n<pre>C:\\Users\\Michael&gt;powercfg \/devicequery wake_armed\r\nHID Keyboard Device (001)\r\nIntel(R) 82579LM Gigabit Network Connection\r\nHID-compliant mouse (002)\r\nLogitech HID-compliant Unifying Mouse<\/pre>\n<p>You can also run <em>powercfg \/lastwake<\/em> to find out what device last woke the computer, but since I didn't run\u00a0it until the subsequent startup, this wasn't very useful.\u00a0So, keyboard, mouse and the ethernet connection. The ethernet connection is out, since there's nothing plugged into it. If we go to Device Manager,\u00a0the HID devices are listed under Keyboards and Mice:<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-224\" src=\"https:\/\/asdfghjkl.me.uk\/blog\/wp-content\/uploads\/devmgmt.msc_.jpg\" alt=\"Keyboards and Mice in Device Manager\" width=\"278\" height=\"127\" \/><\/p>\n<p>Double-clicking on each one of them in turn (apart from the built-in keyboard, listed as\u00a0<em>Standard PS\/2 Keyboard<\/em>; and trackpad, listed as\u00a0<em>ThinkPad UltraNav Pointing Device\u00a0<\/em>(what a name!)) and going to the Power Management tab showed that each of them were configured to wake the computer. I don't have a keyboard connected to the receiver, but I unchecked them all just to be sure. If you're not sure which devices correspond to the Logitech receiver, go to <em>Details<\/em> and select the\u00a0<em>Hardware Ids<\/em> property. My receiver shows a VID of 046D and a PID of C52B, but if yours are different you can google them to find out what\u00a0manufacturer and model they correspond to.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-226\" src=\"https:\/\/asdfghjkl.me.uk\/blog\/wp-content\/uploads\/wakeallowed-1.png\" alt=\"Allow this device to wake the computer\" width=\"414\" height=\"180\" \/><\/p>\n<p>Rerunning the\u00a0<em>powercfg<\/em> command above now shows that only the ethernet adapter can wake up the computer:<\/p>\n<pre>C:\\Users\\Michael&gt;powercfg \/devicequery wake_armed\r\nIntel(R) 82579LM Gigabit Network Connection<\/pre>\n<p>Problem solved!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Something's been puzzling me for the past few weeks.\u00a0At the end of each day I hibernate my laptop, stick it in my bag, and take it home. When I turn it on the next day,\u00a0it tells me it powered off\u00a0because the battery reached a critical level, and the battery has dropped to 3% (the shutdown [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/asdfghjkl.me.uk\/blog\/wp-json\/wp\/v2\/posts\/222"}],"collection":[{"href":"https:\/\/asdfghjkl.me.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/asdfghjkl.me.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/asdfghjkl.me.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/asdfghjkl.me.uk\/blog\/wp-json\/wp\/v2\/comments?post=222"}],"version-history":[{"count":1,"href":"https:\/\/asdfghjkl.me.uk\/blog\/wp-json\/wp\/v2\/posts\/222\/revisions"}],"predecessor-version":[{"id":227,"href":"https:\/\/asdfghjkl.me.uk\/blog\/wp-json\/wp\/v2\/posts\/222\/revisions\/227"}],"wp:attachment":[{"href":"https:\/\/asdfghjkl.me.uk\/blog\/wp-json\/wp\/v2\/media?parent=222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/asdfghjkl.me.uk\/blog\/wp-json\/wp\/v2\/categories?post=222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/asdfghjkl.me.uk\/blog\/wp-json\/wp\/v2\/tags?post=222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}