Hi Dimitry, Thanks for you answer. Friday 15 May 2009 20:58:06 you wrote: > Your application should use EVIOCGSW ioctl to query the initial state of > the switches. I see. Is this ioctl query the only way of getting a switch state from userspace? Do you know of a utility that could be used from a shell script to check for the state? Or maybe you could suggest a different approach, better than using gpio-keys for the purpose of driving a phone hook switch? Maybe something like rfkill device, that exposes its state over sysfs in addition to providing input events, would be better for this purpose? Thanks, Janusz -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html