Re: [systemd-devel] Requiring hardware device and escaping device names

2014-04-23 Thread Lennart Poettering
On Wed, 26.03.14 14:55, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: On 03/26/2014 01:50 PM, Kai Hendry wrote: Thanks Michael for answering, :) On 26 March 2014 18:59, Michael Biebl mbi...@gmail.com wrote: 2014-03-26 3:56 GMT+01:00 Kai Hendry hen...@webconverger.com: If your

Re: [systemd-devel] Requiring hardware device and escaping device names

2014-04-23 Thread Lennart Poettering
On Wed, 26.03.14 21:50, Kai Hendry (hen...@webconverger.com) wrote: Thanks Michael for answering, :) On 26 March 2014 18:59, Michael Biebl mbi...@gmail.com wrote: 2014-03-26 3:56 GMT+01:00 Kai Hendry hen...@webconverger.com: If your daemon is not functional if the hardware is not

Re: [systemd-devel] Requiring hardware device and escaping device names

2014-04-01 Thread Andrey Borzenkov
On Tue, Apr 1, 2014 at 6:45 AM, Kai Hendry hen...@webconverger.com wrote: On 31 March 2014 09:54, Kai Hendry hen...@webconverger.com wrote: Not sure what to try next? If I start it manually `sudo systemctl start shkd@-dev-input-event0.service`, it starts working again. Is

Re: [systemd-devel] Requiring hardware device and escaping device names

2014-03-31 Thread Kai Hendry
On 31 March 2014 09:54, Kai Hendry hen...@webconverger.com wrote: Not sure what to try next? If I start it manually `sudo systemctl start shkd@-dev-input-event0.service`, it starts working again. Is http://www.freedesktop.org/software/systemd/man/systemd.service.html#TimeoutSec= the right way

Re: [systemd-devel] Requiring hardware device and escaping device names

2014-03-30 Thread Kai Hendry
On 26 March 2014 22:55, Jóhann B. Guðmundsson johan...@gmail.com wrote: SUBSYSTEM==input, ENV{ID_INPUT_KEYBOARD}==?*, ENV{.INPUT_CLASS}=kbd, TAG+=systemd, ENV{SYSTEMD_WANTS}+=shkd@%p.service Trying to teach myself how to fish here. How did you know it would match this particular device? $

Re: [systemd-devel] Requiring hardware device and escaping device names

2014-03-30 Thread Andrey Borzenkov
В Sun, 30 Mar 2014 23:48:11 +0800 Kai Hendry hen...@webconverger.com пишет: On 26 March 2014 22:55, Jóhann B. Guðmundsson johan...@gmail.com wrote: SUBSYSTEM==input, ENV{ID_INPUT_KEYBOARD}==?*, ENV{.INPUT_CLASS}=kbd, TAG+=systemd, ENV{SYSTEMD_WANTS}+=shkd@%p.service ... Trying to teach

Re: [systemd-devel] Requiring hardware device and escaping device names

2014-03-30 Thread Kai Hendry
On 31 March 2014 01:00, Andrey Borzenkov arvidj...@gmail.com wrote: udevadm monitor --env would be more useful, it also shows device attributes after event is processed. Thank you Andrey! With %N and a reboot, the keyboard is working. However for interest sake, I un-plugged the USB device and

Re: [systemd-devel] Requiring hardware device and escaping device names

2014-03-26 Thread Michael Biebl
2014-03-26 3:56 GMT+01:00 Kai Hendry hen...@webconverger.com: On 25 March 2014 18:01, Kai Hendry hen...@webconverger.com wrote: Requires=dev-input-by\x2did-usb\x2d13ba_0001\x2devent\x2dkbd.device On #systemd IRC I was recommended After=, and I think it's working as it should!

Re: [systemd-devel] Requiring hardware device and escaping device names

2014-03-26 Thread Kai Hendry
Thanks Michael for answering, :) On 26 March 2014 18:59, Michael Biebl mbi...@gmail.com wrote: 2014-03-26 3:56 GMT+01:00 Kai Hendry hen...@webconverger.com: If your daemon is not functional if the hardware is not present, I'd probably start it via a udev rule and SYSTEMD_WANTS. Do you have an

Re: [systemd-devel] Requiring hardware device and escaping device names

2014-03-26 Thread Jóhann B. Guðmundsson
On 03/26/2014 01:50 PM, Kai Hendry wrote: Thanks Michael for answering, :) On 26 March 2014 18:59, Michael Biebl mbi...@gmail.com wrote: 2014-03-26 3:56 GMT+01:00 Kai Hendry hen...@webconverger.com: If your daemon is not functional if the hardware is not present, I'd probably start it via a

Re: [systemd-devel] Requiring hardware device and escaping device names

2014-03-26 Thread David Schmitt
On 2014-03-26 14:50, Kai Hendry wrote: Thanks Michael for answering, :) On 26 March 2014 18:59, Michael Biebl mbi...@gmail.com wrote: 2014-03-26 3:56 GMT+01:00 Kai Hendry hen...@webconverger.com: If your daemon is not functional if the hardware is not present, I'd probably start it via a udev

Re: [systemd-devel] Requiring hardware device and escaping device names

2014-03-25 Thread Kai Hendry
On 25 March 2014 18:01, Kai Hendry hen...@webconverger.com wrote: Requires=dev-input-by\x2did-usb\x2d13ba_0001\x2devent\x2dkbd.device On #systemd IRC I was recommended After=, and I think it's working as it should! After=dev-input-by\x2did-usb\x2d13ba_0001\x2devent\x2dkbd.device Is Requires=