-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hello Alan, Please find some findings below. On Wed, 2016-08-24 at 15:01 +0530, Ritesh Raj Sarraf wrote: > I have a question though. For power saving, I use Laptop Mode Tools. Based on > power state (AC or BATT), it enables/disables power saving knobs. > > https://github.com/rickysarraf/laptop-mode-tools > > Since I suspected the same problem (incapable of LPM) I have had this device > blacklisted in Laptop Mode Tools. Here are the attributes for this particular > device, while on battery. > > rrs@learner:/sys/bus/usb/devices/1-4$ cat power/autosuspend > 0 > 2016-08-24 / 14:47:07 ♒♒♒ ☺ > rrs@learner:/sys/bus/usb/devices/1-4$ cat power/control > on > 2016-08-24 / 14:47:34 ♒♒♒ ☺ > rrs@learner:/sys/bus/usb/devices/1-4$ cat power/level > on > 2016-08-24 / 14:47:38 ♒♒♒ ☺ > > > While I write this, the bug hasn't triggered again. I think what may have > happened is this: > > * OS Boots > * Goes on battery > * LMT sets OS to power saving mode, but blacklists device 1-4 > * Eventually, the device resets (device/driver bug?) > * Upon reset, driver re-initializes the power saving values to default (?). > At this time LMT will not re-apply any settings, because it only gets > invoked > when a power_supply state change is sensed, i.e. ON_BATT or ON_AC. As I had suspected, that is exactly what happened. rrs@learner:/sys/bus/usb/devices/1-4$ cat power/autosuspend 2 2016-08-24 / 15:44:08 ♒♒♒ ☺ rrs@learner:/sys/bus/usb/devices/1-4$ cat power/control auto 2016-08-24 / 15:44:17 ♒♒♒ ☺ rrs@learner:/sys/bus/usb/devices/1-4$ cat power/level auto 2016-08-24 / 15:44:25 ♒♒♒ ☺ I picked these values after I noticed the device reset. rrs@learner:/sys/bus/usb/devices/1-4$ dmesg | tail -n 20 [ 1730.712177] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 1731.434646] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 1731.523118] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 1733.983893] wlan0: authenticate with c4:6e:1f:d0:67:26 [ 1734.006873] wlan0: send auth to c4:6e:1f:d0:67:26 (try 1/3) [ 1734.011307] wlan0: authenticated [ 1734.012745] wlan0: associate with c4:6e:1f:d0:67:26 (try 1/3) [ 1734.017849] wlan0: RX AssocResp from c4:6e:1f:d0:67:26 (capab=0x411 status=0 aid=4) [ 1734.018228] wlan0: associated [ 1734.018237] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 1734.316964] systemd[1]: apt-daily.timer: Adding 1h 3min 47.910780s random time. [ 1734.455413] systemd[1]: apt-daily.timer: Adding 2h 14min 54.292999s random time. [ 3183.459386] WARNING! power/level is deprecated; use power/control instead [ 6516.374635] usb 1-4: USB disconnect, device number 2 [ 6516.832012] usb 1-4: new high-speed USB device number 7 using xhci_hcd [ 6517.005736] usb 1-4: New USB device found, idVendor=0bda, idProduct=0129 [ 6517.005740] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 6517.005742] usb 1-4: Product: USB2.0-CRW [ 6517.005743] usb 1-4: Manufacturer: Generic [ 6517.005745] usb 1-4: SerialNumber: 20100201396000000 2016-08-24 / 15:46:57 ♒♒♒ ☺ - -- Ritesh Raj Sarraf RESEARCHUT - http://www.researchut.com "Necessity is the mother of invention." -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJXvXRwAAoJEKY6WKPy4XVpmqQQAKMsDyX1iWLueQtiQOfId7l8 L3ah4BzTz027714URMzaM3WD0AfrjQy81AjMDp6cO9HEhqbTRwNhSk/uY4dyr0hz uwmpm1hnMCtLEk6knvB5zsBN1JLd7vKGl1fGs+WG9+JyeNP/sWD7zumqTDhL8OD7 47ueP2xsV+j2PIB1cLCFPvTFdcLaAwK1oPh8+7lN/EBWkSr9deFS06gV09GAFQqB 5olbKSQDb8zo6n25VAHLxUAOIjJ5frEjT/GJMF6RfVuL4gCcc9mfYc7ZgVueDnVw hHrNQK7dPRdH0kCZw/kTOpePafgbgYqX43F7j8T1REHVmC20fYhnYYpBAOqR+XZ9 Ynb9A4CDA3+wcHarL/th/BQXNsVlQeYm4NXn8yLCtf6jUTEjJgUSqIyw7yto4owv 3zOX3kCx2+LCdg7WwJu4aCJEjwozOI+3n9A2F1A4P6c578JV1pAsZybl1HB4ivZ9 +Wz2mW2yjPkh3/D8w0zdTFa/0nOlg2W0klPsHJJzNcyKUGP0ka4ygym0FH8N+IzQ PVfLlsIOHVPabLkW/1WZvJTVyWwX29FoQ7Pq0ffeQc9aXp08+tyY8q7HbjmUKZYy wArb0/eajDIb1D0nwcVtVNKCgNTqB2+xlvk5SqtvT1N/t1yQUdiJktMDLh4mIigc 4DV1MXqR9pxzzLXl8/VD =rkLp -----END PGP SIGNATURE----- -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html