when I do 'echo auto > control' everything seems to work just fine. It
is almost like in windows then meaning that after 2 seconds of idle the
touch screen takes a short time to reactivate again. So I assume it is
put to sleep after two seconds. (the file autosuspend_delay_ms) confirms
the 2 seconds).
it's still strange that the touch screen randomly disconnects after some
amount of time
45536 May 26 11:52:51 el kernel: [ 5005.444637] usb 2-1.6: USB
disconnect, device number 4
I've done the following to be notified the next time that happens
false;
while test $? -ne 0;
do
sleep 2;
sudo dmesg -c | grep discon;
done;
xmessage disconnect;
On 05/26/2012 03:23 PM, Alan Stern wrote:
On Sat, 26 May 2012, Anil Nair wrote:
touchscreen and resuming it, the details for that can be found on
Linux kernel source Documentation/usb/power-management.txt
/sys/bus/usb/devices# echo 2> 1-2/power/autosuspend
Here, 1-2 represents the USB bus address for that device which can be
found out by using lsusb.
The number 2 represent the timeout.
The timeout can be set to any integer number of seconds. If set to -1,
the device will not autosuspend. Then we make sure the kernel will
automatically suspend the device, and resume the device if data needs
to be transferred:
/sys/bus/usb/devices# echo auto> 1-2/power/level
Other options to echo to this file are "on" and "suspend":
"on" will force the device to be on all the time.
"suspend" will permanently suspend the device until the user
echoes "on" or "auto" to this file.
(Note that this is a simplification, since the value of the
power/wakeup file may allow the device to signal a remote wakeup.)
This description is quite out of date: The file to use is
power/control, not power/level, and there is no "suspend" option. You
should read the current version of power-management.txt.
Alan Stern
--
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