From 32768f8acd49f49a3daa7965fc2672ca13306780 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 4 Sep 2008 18:41:13 +0930 Subject: Attempt to re-open devices on read errors. Coming back from resume may leave us with a file descriptor that can be opened but fails on the first read (ENODEV). In this case, try to open the device until it becomes available or until the predefined count expires. To be safe, we cache the information from the device and compare against it when we re-open. This way we ensure that if the topology changes under us, we don't open a completely different device. If a device has changed, we disable it. Adds option "ReopenAttempts" Conflicts: man/evdev.man src/evdev.c src/evdev.h --- man/evdev.man | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'man/evdev.man') diff --git a/man/evdev.man b/man/evdev.man index f438f78..530f979 100644 --- a/man/evdev.man +++ b/man/evdev.man @@ -67,6 +67,11 @@ button event is registered. Sets the timeout (in milliseconds) that the driver waits before deciding if two buttons where pressed "simultaneously" when 3 button emulation is enabled. Default: 50. +.TP 7 +.BI "Option \*qReopenAttempts\*q \*q" integer \*q +Number of reopen attempts after a read error occurs on the device (e.g. after +waking up from suspend). In between each attempt is a 100ms wait. Default: 10. + .SH AUTHORS Kristian Høgsberg. .SH "SEE ALSO" -- cgit v1.2.3