libx52/daemon
nirenjan f34f84a3ee Add routine to check device connectivity
Prior to this change, if the clock thread is disabled, then
disconnecting and reconnecting the X52 device would cause the daemon to
not detect the transition. As a result, the daemon would stay in a state
where it thinks the device is still connected, and therefore, not
actually apply any of the saved configuration, until it received a
SIGHUP to refresh the configuration.

This change adds a routine that sends a dummy vendor command. This
vendor command does nothing on my X52 Pro (VID 06a3, PID 0762), but
serves as a check to see if the daemon can send vendor commands to the
device. If the device is indeed disconnected, then that is a sufficient
indicator to disable the update thread and re-enable the acquisition
thread.
2021-08-30 12:33:52 -07:00
..
Makefile.am Import inih library into source tree 2021-08-26 22:16:38 -07:00
daemon.dox Add PID file argument to documentation 2021-08-05 05:47:44 -07:00
x52d.conf Fix key names for clock formats in default configuration file 2021-07-23 14:31:58 -07:00
x52d.service.in Add Install section to service file to allow enabling the service 2021-08-05 11:46:44 -07:00
x52d_clock.c Ignore changes to clock settings if clock is disabled 2021-08-30 12:01:41 -07:00
x52d_clock.h Add clock update functionality 2021-07-23 10:13:18 -07:00
x52d_config.c Add config save routines 2021-08-09 22:16:30 -07:00
x52d_config.def Change the config macro definitions to use a type 2021-08-09 21:25:06 -07:00
x52d_config.h Add config save routines 2021-08-09 22:16:30 -07:00
x52d_config_dump.c Make sure config file is closed after dumping configuration 2021-08-30 10:28:26 -07:00
x52d_config_parser.c Change the config macro definitions to use a type 2021-08-09 21:25:06 -07:00
x52d_const.h Allow x52d to daemonize 2021-08-04 13:13:12 -07:00
x52d_device.c Add routine to check device connectivity 2021-08-30 12:33:52 -07:00
x52d_device.h Add routine to check device connectivity 2021-08-30 12:33:52 -07:00
x52d_led.c Make stringification function names similar to libx52io 2021-07-27 09:34:57 -07:00
x52d_main.c Add signal handler to dump configuration to disk on SIGUSR1 2021-08-30 10:28:29 -07:00