How do I deactivate chipcardd4 scanning every 10s for new hardware devices?
On default Ubuntu installs a daemon named 'chipcard64' is run, which sits in the background and polls every 10 seconds by attempting to 'accept()' a socket:
$ sudo strace -r -p 3328
0.000000 select(6, [5], NULL, NULL, {9, 682247}) = 0 (Timeout)
9.683726 accept(5, 0xa06f8a8, [110]) = -1 EAGAIN (Resource temporarily unavailable)
0.000226 select(6, [5], NULL, NULL, {10, 0}) = 0 (Timeout)
10.010503 accept(5, 0xa06f8a8, [110]) = -1 EAGAIN (Resource temporarily unavailable)
0.000152 select(6, [5], NULL, NULL, {10, 0}) = 0 (Timeout)
10.010469 accept(5, 0xa06f8a8, [110]) = -1 EAGAIN (Resource temporarily unavailable)
0.000153 select(6, [5], NULL, NULL, {10, 0}) = 0 (Timeout)
...
Ideally chipcard64 should be switched internally to an asynchronous model in order to avoid waking up every 10 seconds in order to poll. In additional, the startup mechanism should ideally be altered to be load the daemon dynamically via udev when suitable interrupt sources and events are available and to unload it again upon reader or device removal.
The daemon should definitely *not* be running if there is no suitable card reader installed on the machine in question.
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Paul Sladen for more information if necessary.