Re: How to choeck for a gpio-keys based switch state?

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

 



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

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux