четверг, 18 февраля 2016 г.

Долгая инициализация DVB-S2 в Ubuntu

Так как HTPC в основном применяется для просмотра спутниковых каналов, то и включаться он должен также быстро, как и телевизор. Использование SSD значительно сокращает время загрузки, и компьютер может стартовать за 20 секунд (с момента нажатия, до начала трансляции потока). Но я не стал на этом останавливаться, и решил проанализировать ход загрузки при помощи dmesg:

[    6.308345] DS3000 chip version: 0.192 attached.
[    6.358964] ts2020_attach: Find tuner TS2020!
[    6.358976] dw2102: Attached DS3000/TS2020!
[    6.358976]
[    6.358992] usb 1-3.4: DVB: registering adapter 0 frontend 0 (Montage Technology DS3000)...
[    6.359853] input: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:12.2/usb1/1-3/1-3.4/input/input19
[    6.362355] dvb-usb: schedule remote query interval to 150 msecs.
[    6.362367] dw2102: su3000_power_ctrl: 0, initialized 1
[    6.362367]
[    6.362372] dvb-usb: SU3000HD DVB-S USB2.0 successfully initialized and connected.
[    6.362436] usbcore: registered new interface driver dw2102
[    6.377556] HDMI ATI/AMD: no speaker allocation for ELD
[    6.677524] HDMI ATI/AMD: no speaker allocation for ELD
[    6.977579] HDMI ATI/AMD: no speaker allocation for ELD
[    7.163981] r8169 0000:02:00.0 eth0: link up
[    7.984131] init: failsafe main process (536) killed by TERM signal
[    8.731706] usbcore: deregistering interface driver dw2102
[    8.803663] dvb-usb: bulk message failed: -2 (4/0)
[    8.803675] dw2102: i2c transfer failed.
[    8.804123] dvb-usb: SU3000HD DVB-S USB2.0 successfully deinitialized and disconnected.
[    9.008772] dw2102: su3000_identify_state
[    9.008772]
[    9.008785] dvb-usb: found a 'SU3000HD DVB-S USB2.0' in warm state.
[    9.008807] dw2102: su3000_power_ctrl: 1, initialized 0
[    9.008807]
[    9.027605] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[    9.028351] DVB: registering new adapter (SU3000HD DVB-S USB2.0)
[    9.036668] dvb-usb: MAC address: ff:ff:ff:ff:ff:ff
[    9.348189] DS3000 chip version: 0.192 attached.
[    9.359911] ts2020_attach: Find tuner TS2020!
[    9.359923] dw2102: Attached DS3000/TS2020!
[    9.359923]
[    9.359939] usb 1-3.4: DVB: registering adapter 0 frontend 0 (Montage Technology DS3000)...
[    9.365700] input: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:12.2/usb1/1-3/1-3.4/input/input20
[    9.365860] dvb-usb: schedule remote query interval to 150 msecs.
[    9.365869] dw2102: su3000_power_ctrl: 0, initialized 1
[    9.365869]
[    9.365874] dvb-usb: SU3000HD DVB-S USB2.0 successfully initialized and connected.
[    9.365937] usbcore: registered new interface driver dw2102
[   10.470554] init: plymouth-upstart-bridge main process ended, respawning
[   14.578847] dw2102: su3000_power_ctrl: 1, initialized 1
[   14.578847]
[   14.586430] ds3000_firmware_ondemand: Waiting for firmware upload (dvb-fe-ds3000.fw)...
[   14.587242] ds3000_firmware_ondemand: Waiting for firmware upload(2)...
Здесь меня смутили строчки
[    6.362372] dvb-usb: SU3000HD DVB-S USB2.0 successfully initialized and connected.
...
[    8.804123] dvb-usb: SU3000HD DVB-S USB2.0 successfully deinitialized and disconnected.
...
[    9.365874] dvb-usb: SU3000HD DVB-S USB2.0 successfully initialized and connected.
Это что получается? Сперва DVB-S2 ресивер успешно инициализируется на 6 секунде, на 8 отключается, а на 9ой идет на второй круг? Все дело в перезагрузке драйвера, как предписано настройками VDR.
Отключим эту фичу при помощи параметра RELOAD_DRIVERS
sudo nano /etc/default/vdr 
#RELOAD_DRIVERS='true'
#Изменяем параметр, который не перезагружает модули при загрузке на false
RELOAD_DRIVERS='false'
Перезагружаемся и смотрим что получилось
[    5.705954] dw2102: su3000_identify_state
[    5.705954]
[    5.705969] dvb-usb: found a 'SU3000HD DVB-S USB2.0' in warm state.
[    5.705986] dw2102: su3000_power_ctrl: 1, initialized 0
[    5.705986]
[    5.709370] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[    5.709529] DVB: registering new adapter (SU3000HD DVB-S USB2.0)
[    5.714451] dvb-usb: MAC address: ff:ff:ff:ff:ff:ff
[    5.870113] HDMI ATI/AMD: no speaker allocation for ELD
[    6.043163] DS3000 chip version: 0.192 attached.
[    6.065160] ts2020_attach: Find tuner TS2020!
[    6.065176] dw2102: Attached DS3000/TS2020!
[    6.065176]
[    6.065192] usb 1-3.4: DVB: registering adapter 0 frontend 0 (Montage Technology DS3000)...
[    6.066575] input: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:12.2/usb1/1-3/1-3.4/input/input19
[    6.066976] dvb-usb: schedule remote query interval to 150 msecs.
[    6.066987] dw2102: su3000_power_ctrl: 0, initialized 1
[    6.066987]
[    6.066992] dvb-usb: SU3000HD DVB-S USB2.0 successfully initialized and connected.
[    6.067043] usbcore: registered new interface driver dw2102
[    6.170079] HDMI ATI/AMD: no speaker allocation for ELD
[    6.388082] r8169 0000:02:00.0 eth0: link up
[    6.470209] HDMI ATI/AMD: no speaker allocation for ELD
[    6.770347] HDMI ATI/AMD: no speaker allocation for ELD
[    7.070341] HDMI ATI/AMD: no speaker allocation for ELD
[    8.141821] init: failsafe main process (536) killed by TERM signal
[    8.879081] dw2102: su3000_power_ctrl: 1, initialized 1
[    8.879081]
[    8.887191] ds3000_firmware_ondemand: Waiting for firmware upload (dvb-fe-ds3000.fw)...
[    8.887707] ds3000_firmware_ondemand: Waiting for firmware upload(2)...
Другое дело!  Срезали 6 секунд!

Комментариев нет :

Отправить комментарий