Re: [PATCH 0/3] cdc-wdm: minor obvious fixes and improvements

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Oliver Neukum <oliver@xxxxxxxxxx> writes:
> Am Montag, 16. Januar 2012, 15:26:53 schrieb Bjørn Mork:
>> > Have you tried with autosuspend activated?
>> 
>> Have to ask the stupid questions... How do I do that? Is this it?: 
>> 
>> nemi:/lib/modules/3.1.0-1-amd64/misc# grep . /sys/class/usb/cdc-wdm0/device/../power/*
>> /sys/class/usb/cdc-wdm0/device/../power/active_duration:1408128
>> /sys/class/usb/cdc-wdm0/device/../power/async:enabled
>> /sys/class/usb/cdc-wdm0/device/../power/autosuspend:1
>> /sys/class/usb/cdc-wdm0/device/../power/autosuspend_delay_ms:1000
>> /sys/class/usb/cdc-wdm0/device/../power/connected_duration:1425880
>> /sys/class/usb/cdc-wdm0/device/../power/control:auto
>> /sys/class/usb/cdc-wdm0/device/../power/level:auto
>> /sys/class/usb/cdc-wdm0/device/../power/persist:1
>> /sys/class/usb/cdc-wdm0/device/../power/runtime_active_kids:0
>> /sys/class/usb/cdc-wdm0/device/../power/runtime_active_time:1407328
>> /sys/class/usb/cdc-wdm0/device/../power/runtime_enabled:enabled
>> /sys/class/usb/cdc-wdm0/device/../power/runtime_status:suspended
>> /sys/class/usb/cdc-wdm0/device/../power/runtime_suspended_time:17672
>> /sys/class/usb/cdc-wdm0/device/../power/runtime_usage:0
>> /sys/class/usb/cdc-wdm0/device/../power/wakeup:disabled
>
> Yes, this is it. But it shows a very low amount of suspended time. DId you switch
> it on after a delay?

I did

 echo 1 >/sys/class/usb/cdc-wdm0/device/../power/autosuspend
 echo auto >/sys/class/usb/cdc-wdm0/device/../power/control

only a few seconds before catching the above output. Now it looks like: 


nemi:/lib/modules/3.1.0-1-amd64/misc# grep . /sys/class/usb/cdc-wdm0/device/../power/*
/sys/class/usb/cdc-wdm0/device/../power/active_duration:1415120
/sys/class/usb/cdc-wdm0/device/../power/async:enabled
/sys/class/usb/cdc-wdm0/device/../power/autosuspend:1
/sys/class/usb/cdc-wdm0/device/../power/autosuspend_delay_ms:1000
/sys/class/usb/cdc-wdm0/device/../power/connected_duration:2480008
/sys/class/usb/cdc-wdm0/device/../power/control:auto
/sys/class/usb/cdc-wdm0/device/../power/level:auto
/sys/class/usb/cdc-wdm0/device/../power/persist:1
/sys/class/usb/cdc-wdm0/device/../power/runtime_active_kids:0
/sys/class/usb/cdc-wdm0/device/../power/runtime_active_time:1414640
/sys/class/usb/cdc-wdm0/device/../power/runtime_enabled:enabled
/sys/class/usb/cdc-wdm0/device/../power/runtime_status:suspended
/sys/class/usb/cdc-wdm0/device/../power/runtime_suspended_time:1064492
/sys/class/usb/cdc-wdm0/device/../power/runtime_usage:0
/sys/class/usb/cdc-wdm0/device/../power/wakeup:disabled



Well, if that is it, then I can confirm that the /dev/cdc-wdmX devices
still work with autosuspend.


Bjørn
--
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


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux