http://linuxmce.ru/archives/286# Vlad Says:
February 25th, 2010 at 23:50
И что любопытно, если система находит новое устройство и висит на экране с запросом о перезапуске, то все взаимодействие с контроллером и устройствами прекращается. Помогает только перезагрузка сервера.
# admin Says:
March 6th, 2010 at 13:37
А что в логе – /var/log/pluto/ID_CM15A.log?
Если точнее, то периодически, примерно раз в сутки, система выдает сообщение о том, что CM15 Disabled, потом Enabled. После этого устройство перестает посылать команды. Помогает перезагрузка.
В логах:
05 03/08/10 8:55:16.276 void ClientSocket::Disconnect() on this socket: 0x9a5e348 (m_Socket: 6) <0xb78b86c0>
Return code: 0
2 03/08/10 08:55:16 41 (spawning-device) Shutting down... count=1/50 dev=41
Mon Mar 8 08:55:16 MSK 2010 Shutdown
== ATTEMPT FRESH START ==
1 03/08/10 12:37:27 /usr/pluto/bin/Spawn_Device.sh 41 (spawning-device) 23604 Dev: 41; Already Running list: 15,16,18,19,36,37,38,
== FRESH START ==
1 03/08/10 12:37:27 /usr/pluto/bin/Spawn_Device.sh 41 (spawning-device) device: 41 ip: localhost cmd_line: CM15A
0 03/08/10 12:37:27 41 (spawning-device) Entering 41
========== NEW LOG SECTION ==========
1 03/08/10 12:37:27 41 (spawning-device) Starting... 1
1 03/08/10 12:37:27 41 (spawning-device) Found /usr/pluto/bin/CM15A
05 03/08/10 12:37:28.671 Creating child 50 <0xb78f06c0>
05 03/08/10 12:37:28.672 Note: Device manager has attached a device of type 37 that this has no custom event handler for. It will not fire events. <0xb78f06c0>
05 03/08/10 12:37:28.672 Note: Device manager has attached a device of type 37 that this has no custom handler for. This is normal for IR. <0xb78f06c0>
05 03/08/10 12:37:28.672 Creating child 51 <0xb78f06c0>
05 03/08/10 12:37:28.672 Note: Device manager has attached a device of type 37 that this has no custom event handler for. It will not fire events. <0xb78f06c0>
05 03/08/10 12:37:28.672 Note: Device manager has attached a device of type 37 that this has no custom handler for. This is normal for IR. <0xb78f06c0>
05 03/08/10 12:47:39.260 Got a reload command from 0 <0xb6effb90>
Return code: 139
3 03/08/10 12:47:39 41 (spawning-device) Device died... count=1/50 dev=41
Mon Mar 8 12:47:39 MSK 2010 died
========== NEW LOG SECTION ==========
1 03/08/10 12:47:49 41 (spawning-device) Starting... 2
1 03/08/10 12:47:49 41 (spawning-device) Found /usr/pluto/bin/CM15A
05 03/08/10 12:47:50.695 Connect() failed, Error Code 111 (Connection refused)) <0xb798c6c0>
05 03/08/10 12:47:55.287 Creating child 50 <0xb798c6c0>
05 03/08/10 12:47:55.288 Note: Device manager has attached a device of type 37 that this has no custom event handler for. It will not fire events. <0xb798c6c0>
05 03/08/10 12:47:55.288 Note: Device manager has attached a device of type 37 that this has no custom handler for. This is normal for IR. <0xb798c6c0>
05 03/08/10 12:47:55.288 Creating child 51 <0xb798c6c0>
05 03/08/10 12:47:55.288 Note: Device manager has attached a device of type 37 that this has no custom event handler for. It will not fire events. <0xb798c6c0>
05 03/08/10 12:47:55.288 Note: Device manager has attached a device of type 37 that this has no custom handler for. This is normal for IR. <0xb798c6c0>
05 03/08/10 15:13:01.080 void ClientSocket::Disconnect() on this socket: 0x836e348 (m_Socket: 6) <0xb798c6c0>
Return code: 0
2 03/08/10 15:13:01 41 (spawning-device) Shutting down... count=2/50 dev=41
Mon Mar 8 15:13:01 MSK 2010 Shutdown
== ATTEMPT FRESH START ==
1 03/08/10 15:13:01 /usr/pluto/bin/Spawn_Device.sh 41 (spawning-device) 1025 Dev: 41; Already Running list: 15,16,18,19,36,37,38,52,55,57,21,32,45,22,25,23,33,26,
== FRESH START ==
1 03/08/10 15:13:01 /usr/pluto/bin/Spawn_Device.sh 41 (spawning-device) device: 41 ip: localhost cmd_line: CM15A
0 03/08/10 15:13:01 41 (spawning-device) Entering 41
========== NEW LOG SECTION ==========
1 03/08/10 15:13:01 41 (spawning-device) Starting... 1
1 03/08/10 15:13:01 41 (spawning-device) Found /usr/pluto/bin/CM15A
05 03/08/10 15:13:02.915 Creating child 50 <0xb78f26c0>
05 03/08/10 15:13:02.915 Note: Device manager has attached a device of type 37 that this has no custom event handler for. It will not fire events. <0xb78f26c0>
05 03/08/10 15:13:02.915 Note: Device manager has attached a device of type 37 that this has no custom handler for. This is normal for IR. <0xb78f26c0>
05 03/08/10 15:13:02.915 Creating child 51 <0xb78f26c0>
05 03/08/10 15:13:02.915 Note: Device manager has attached a device of type 37 that this has no custom event handler for. It will not fire events. <0xb78f26c0>
05 03/08/10 15:13:02.915 Note: Device manager has attached a device of type 37 that this has no custom handler for. This is normal for IR. <0xb78f26c0>
8:30 -- свет включился, значит еще работало.
12 часов -- не работает
12:37 -- перезагрузка, после чего работает.
Device 50,51 -- AM12G -- Template 37.