[systemd-devel] Starting touchscreen cal after touchscreen device starts

Paul D. DeRocco pderocco at ix.netcom.com
Fri Aug 30 23:24:05 PDT 2013


I've got a Gumstix system that uses an LCD and a touchscreen, but without
a desktop manager. I've created a service to load touchscreen cal data, or
launch the calibrator program if it doesn't exist, but I can't figure out
how to ensure that it starts after the touchscreen device appears. I think
the standard Gumstix build has the desktop manager launch it, so there's
probably a pretty long chain of dependencies involved when doing it that
way.

My boot log shows the following line when the touchscreen is recognized.

[    9.447113] input: ADS7846 Touchscreen as 
/devices/platform/omap2_mcspi.1/spi_master/spi1/spi1.0/input/input0

Unfortunately, this happens after my touchscreen calibrator service starts
up (and fails).

There doesn't appear to be any automatically generated systemd unit for
this device. What's the best way to ensure that my service is launched
after this device comes online?

-- 

Ciao,               Paul D. DeRocco
Paul                mailto:pderocco at ix.netcom.com 
 



More information about the systemd-devel mailing list