Наверняка моя тема многим покажется не актуальной и заезженной как старая пластинка, но для меня она действительно актуальна!
Теперь по делу: Я собрал себе для управления через пульт ДУ от телевизора ИК- приемник/передатчик для СОМ- порта по приведенной здесь схеме:http://meandr.org/archives/2076 правда там вроде не совсем к тем контактам СОМ-порта подведены сигналы Rx и Tx поэтому я развел их как положено согласно распиновки RS232 интерфейса на 2 и 3 контакт соответственно.
Так, как в современных компьютерах нет Сом- портов, я собрал себе 2 переходника Com-Usb один на FT232RL и один на FT232BL все эти переходники заработали и определились в линуксе как ttyUSB0 и ttyUSB1 порты. Все оба переходника и сам ик-приемник/передатчик были проверены в windows при помощи программы для проверки сом- портов serialNetTools c пультом от телевизора и камеры мобильника, все работает как часы. Затем аналогичная проверка с тем же комплектом была проведена в Wine и тоже все работает как часы.
Вот краткая информация о системе: у меня установлен Linux mint 17.2 mate 64x, ядро 4.1.5-040105-generic. Сам Lirc 0.9.0 установлен из репов без ошибок. Также установлен пакет irda-utils и Ircp Tray 0.7.6.Вот вывод команды lsusb:
Код: Выделить всё
Bus 002 Device 005: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 002 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0ac8:c33f Z-Star Microelectronics Corp. Webcam
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 09da:000a A4 Tech Co., Ltd Optical Mouse Opto 510D
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Вот ответ команды dmesg:
Код: Выделить всё
[ 0.923461] usb usb8: SerialNumber: 0000:00:1d.2
[ 0.923631] hub 8-0:1.0: USB hub found
[ 0.923639] hub 8-0:1.0: 2 ports detected
[ 0.923839] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PSM1] at 0x60,0x64 irq 1,12
[ 0.926536] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 0.926542] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 0.926766] mousedev: PS/2 mouse device common for all mice
[ 0.927279] rtc_cmos 00:03: rtc core: registered rtc_cmos as rtc0
[ 0.927315] rtc_cmos 00:03: alarms up to one month, y3k, 242 bytes nvram, hpet irqs
[ 0.927341] i2c /dev entries driver
[ 0.927423] device-mapper: uevent: version 1.0.3
[ 0.927529] device-mapper: ioctl: 4.31.0-ioctl (2015-3-12) initialised: dm-devel@redhat.com
[ 0.927555] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.927785] PCCT header not found.
[ 0.928091] NET: Registered protocol family 10
[ 0.928392] NET: Registered protocol family 17
[ 0.928409] Key type dns_resolver registered
[ 0.928873] Loading compiled-in X.509 certificates
[ 0.930127] Loaded X.509 cert 'Build time autogenerated kernel key: 46fd0f30f3bd8f146803e982177aac2d077a899c'
[ 0.930146] registered taskstats version 1
[ 0.932911] Key type trusted registered
[ 0.938046] Key type encrypted registered
[ 0.938060] AppArmor: AppArmor sha1 policy hashing enabled
[ 0.938065] ima: No TPM chip found, activating TPM-bypass!
[ 0.938095] evm: HMAC attrs: 0x1
[ 0.938621] Magic number: 8:895:819
[ 0.938778] rtc_cmos 00:03: setting system clock to 2016-03-08 05:50:38 UTC (1457416238)
[ 0.938886] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 0.938888] EDD information not available.
[ 0.938985] PM: Hibernation image not present or could not be loaded.
[ 0.939670] Freeing unused kernel memory: 1424K (ffffffff81d38000 - ffffffff81e9c000)
[ 0.939675] Write protecting the kernel read-only data: 12288k
[ 0.939963] Freeing unused kernel memory: 124K (ffff8800017e1000 - ffff880001800000)
[ 0.940293] Freeing unused kernel memory: 316K (ffff880001bb1000 - ffff880001c00000)
[ 0.958827] systemd-udevd[105]: starting version 204
[ 0.961044] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input4
[ 1.001084] sky2: driver version 1.30
[ 1.001440] sky2 0000:04:00.0: Yukon-2 FE+ chip revision 0
[ 1.002606] sky2 0000:04:00.0 eth0: addr 00:24:54:c4:a6:db
[ 1.007773] ahci 0000:00:1f.2: version 3.0
[ 1.007991] ahci 0000:00:1f.2: SSS flag set, parallel bus scan disabled
[ 1.008059] ahci 0000:00:1f.2: AHCI 0001.0200 32 slots 4 ports 3 Gbps 0x33 impl SATA mode
[ 1.008063] ahci 0000:00:1f.2: flags: 64bit ncq sntf stag pm led clo pio slum part ccc ems sxs
[ 1.025199] [drm] Initialized drm 1.1.0 20060810
[ 1.048120] scsi host0: ahci
[ 1.052111] scsi host1: ahci
[ 1.059754] scsi host2: ahci
[ 1.064066] scsi host3: ahci
[ 1.068162] scsi host4: ahci
[ 1.075276] scsi host5: ahci
[ 1.075408] ata1: SATA max UDMA/133 abar m2048@0xfc704000 port 0xfc704100 irq 28
[ 1.075413] ata2: SATA max UDMA/133 abar m2048@0xfc704000 port 0xfc704180 irq 28
[ 1.075415] ata3: DUMMY
[ 1.075417] ata4: DUMMY
[ 1.075420] ata5: SATA max UDMA/133 abar m2048@0xfc704000 port 0xfc704300 irq 28
[ 1.075423] ata6: SATA max UDMA/133 abar m2048@0xfc704000 port 0xfc704380 irq 28
[ 1.076360] [drm] Memory usable by graphics device = 2048M
[ 1.076366] checking generic (d0000000 300000) vs hw (d0000000 10000000)
[ 1.076368] fb: switching to inteldrmfb from VESA VGA
[ 1.076397] Console: switching to colour dummy device 80x25
[ 1.076502] [drm] Replacing VGA console driver
[ 1.083940] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.083943] [drm] Driver supports precise vblank timestamp query.
[ 1.084073] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
[ 1.158783] ACPI: Video Device [GFX0] (multi-head: yes rom: no post: no)
[ 1.158984] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:01/input/input7
[ 1.159114] [drm] Initialized i915 1.6.0 20150327 for 0000:00:02.0 on minor 0
[ 1.232065] [drm] GMBUS [i915 gmbus dpc] timed out, falling back to bit banging on pin 4
[ 1.232092] usb 2-3: new high-speed USB device number 2 using ehci-pci
[ 1.272082] usb 1-4: new high-speed USB device number 3 using ehci-pci
[ 1.277356] fbcon: inteldrmfb (fb0) is primary device
[ 1.365452] usb 2-3: New USB device found, idVendor=05e3, idProduct=0608
[ 1.365454] usb 2-3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 1.365456] usb 2-3: Product: USB2.0 Hub
[ 1.365913] hub 2-3:1.0: USB hub found
[ 1.366267] hub 2-3:1.0: 4 ports detected
[ 1.400058] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 1.405935] ata1.00: ATA-8: SAMSUNG HM321HI, 2AJ10002, max UDMA/133
[ 1.405936] ata1.00: 625142448 sectors, multi 0: LBA48 NCQ (depth 31/32), AA
[ 1.411861] ata1.00: configured for UDMA/133
[ 1.412026] scsi 0:0:0:0: Direct-Access ATA SAMSUNG HM321HI 0002 PQ: 0 ANSI: 5
[ 1.412373] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 1.412411] sd 0:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)
[ 1.412513] sd 0:0:0:0: [sda] Write Protect is off
[ 1.412515] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 1.412549] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.419084] usb 1-4: New USB device found, idVendor=0ac8, idProduct=c33f
[ 1.419086] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1.419088] usb 1-4: Product: WebCam SCB-0340N
[ 1.419089] usb 1-4: Manufacturer: Namuga.
[ 1.564060] usb 3-1: new low-speed USB device number 2 using uhci_hcd
[ 1.565060] sda: sda1 sda2 < sda5 sda6 sda7 sda8 sda9 sda10 sda11 sda12 sda13 >
[ 1.566000] sd 0:0:0:0: [sda] Attached SCSI disk
[ 1.636035] usb 2-3.1: new full-speed USB device number 3 using ehci-pci
[ 1.732070] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 1.733837] ata2.00: ATAPI: TSSTcorp CDDVDW TS-L633J, SC00, max UDMA/100
[ 1.734451] ata2.00: configured for UDMA/100
[ 1.737135] usb 3-1: New USB device found, idVendor=09da, idProduct=000a
[ 1.737137] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1.737139] usb 3-1: Product: PS/2+USB Mouse
[ 1.737141] usb 3-1: Manufacturer: A4Tech
[ 1.738265] scsi 1:0:0:0: CD-ROM TSSTcorp CDDVDW TS-L633J SC00 PQ: 0 ANSI: 5
[ 1.754249] hidraw: raw HID events driver (C) Jiri Kosina
[ 1.759750] sr 1:0:0:0: [sr0] scsi3-mmc drive: 16x/24x writer dvd-ram cd/rw xa/form2 cdda tray
[ 1.759752] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 1.759936] sr 1:0:0:0: Attached scsi CD-ROM sr0
[ 1.760058] sr 1:0:0:0: Attached scsi generic sg1 type 5
[ 1.768220] usbcore: registered new interface driver usbhid
[ 1.768221] usbhid: USB HID core driver
[ 1.770413] input: A4Tech PS/2+USB Mouse as /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1:1.0/0003:09DA:000A.0001/input/input8
[ 1.770598] a4tech 0003:09DA:000A.0001: input,hidraw0: USB HID v1.10 Mouse [A4Tech PS/2+USB Mouse] on usb-0000:00:1a.0-1/input0
[ 1.820032] clocksource tsc: mask: 0xffffffffffffffff max_cycles: 0x1e3216103cd, max_idle_ns: 440795240010 ns
[ 1.861764] psmouse serio1: elantech: assuming hardware version 2 (with firmware version 0x040215)
[ 1.898741] psmouse serio1: elantech: Synaptics capabilities query result 0x08, 0x14, 0x0c.
[ 2.039296] input: ETPS/2 Elantech Touchpad as /devices/platform/i8042/serio1/input/input6
[ 2.084077] ata5: SATA link down (SStatus 0 SControl 300)
[ 2.092114] Console: switching to colour frame buffer device 170x48
[ 2.095337] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
[ 2.095339] i915 0000:00:02.0: registered panic notifier
[ 2.111343] usb 2-3.1: New USB device found, idVendor=0403, idProduct=6001
[ 2.111347] usb 2-3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2.111349] usb 2-3.1: Product: FT232R USB UART
[ 2.111352] usb 2-3.1: Manufacturer: FTDI
[ 2.111354] usb 2-3.1: SerialNumber: A9U9LFFR
[ 2.404046] ata6: SATA link down (SStatus 0 SControl 300)
[ 3.149120] random: nonblocking pool is initialized
[ 4.479680] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 5.882023] init: ureadahead main process (276) terminated with status 5
[ 7.129683] Adding 976556k swap on /dev/sda8. Priority:-1 extents:1 across:976556k FS
[ 8.739687] systemd-udevd[391]: starting version 204
[ 10.093582] usbcore: registered new interface driver usbserial
[ 10.093605] usbcore: registered new interface driver usbserial_generic
[ 10.093623] usbserial: USB Serial support registered for generic
[ 10.396752] lp: driver loaded but no devices found
[ 10.450440] ppdev: user-space parallel port driver
[ 12.362142] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[ 12.482915] ACPI Warning: SystemIO range 0x0000000000000428-0x000000000000042F conflicts with OpRegion 0x0000000000000400-0x000000000000047F (\PMIO) (20150410/utaddress-254)
[ 12.482924] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 12.482928] ACPI Warning: SystemIO range 0x00000000000011B0-0x00000000000011BF conflicts with OpRegion 0x0000000000001180-0x00000000000011FF (\GPIO) (20150410/utaddress-254)
[ 12.482933] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 12.482935] ACPI Warning: SystemIO range 0x0000000000001180-0x00000000000011AF conflicts with OpRegion 0x0000000000001180-0x00000000000011FF (\GPIO) (20150410/utaddress-254)
[ 12.482939] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[ 12.482941] lpc_ich: Resource conflict(s) found affecting gpio_ich
[ 12.759317] cfg80211: Calling CRDA to update world regulatory domain
[ 13.212711] ath: phy0: Enable LNA combining
[ 13.225842] ath: phy0: ASPM enabled: 0x42
[ 13.225848] ath: EEPROM regdomain: 0x65
[ 13.225849] ath: EEPROM indicates we should expect a direct regpair map
[ 13.225852] ath: Country alpha2 being used: 00
[ 13.225854] ath: Regpair used: 0x65
[ 13.229469] device-mapper: multipath: version 1.9.0 loaded
[ 13.404596] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 13.405168] ieee80211 phy0: Atheros AR9285 Rev:2 mem=0xffffc90000820000, irq=17
[ 13.771563] usbcore: registered new interface driver ftdi_sio
[ 13.771590] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 13.771700] ftdi_sio 2-3.1:1.0: FTDI USB Serial Device converter detected
[ 13.771744] usb 2-3.1: Detected FT232RL
[ 13.772431] usb 2-3.1: FTDI USB Serial Device converter now attached to ttyUSB0
[ 13.784674] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC269VB: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[ 13.784680] snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 13.784683] snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[ 13.784685] snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0
[ 13.784687] snd_hda_codec_realtek hdaudioC0D0: inputs:
[ 13.784691] snd_hda_codec_realtek hdaudioC0D0: Internal Mic=0x19
[ 13.784693] snd_hda_codec_realtek hdaudioC0D0: Mic=0x18
[ 13.794042] input: HDA Intel Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9
[ 13.794206] input: HDA Intel Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input10
[ 13.958192] media: Linux media interface: v0.10
[ 13.994712] Linux video capture interface: v2.00
[ 14.036911] samsung_laptop: enabled workaround for brightness stepping quirk
[ 14.038697] samsung_laptop: detected SABI interface: SwSmi@
[ 14.499870] uvcvideo: Found UVC 1.00 device WebCam SCB-0340N (0ac8:c33f)
[ 14.505718] input: WebCam SCB-0340N as /devices/pci0000:00/0000:00:1a.7/usb1/1-4/1-4:1.0/input/input11
[ 14.506588] usbcore: registered new interface driver uvcvideo
[ 14.506593] USB Video Class driver (1.1.1)
[ 15.061789] cfg80211: World regulatory domain updated:
[ 15.061794] cfg80211: DFS Master region: unset
[ 15.061796] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 15.061799] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
[ 15.061802] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
[ 15.061805] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm), (N/A)
[ 15.061807] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
[ 15.061810] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm), (N/A)
[ 20.239688] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ 22.588762] EXT4-fs (sda10): mounted filesystem with ordered data mode. Opts: (null)
[ 22.770001] EXT4-fs (sda12): mounted filesystem with ordered data mode. Opts: (null)
[ 23.005960] EXT4-fs (sda13): mounted filesystem with ordered data mode. Opts: (null)
[ 23.087266] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: (null)
[ 23.147106] EXT4-fs (sda6): mounted filesystem with ordered data mode. Opts: (null)
[ 23.297305] EXT4-fs (sda7): mounted filesystem with ordered data mode. Opts: (null)
[ 23.397591] EXT4-fs (sda9): mounted filesystem with ordered data mode. Opts: (null)
[ 24.155284] init: failsafe main process (918) killed by TERM signal
[ 26.057091] ttyS1: LSR safety check engaged!
[ 26.057912] ttyS1: LSR safety check engaged!
[ 29.010463] Bluetooth: Core ver 2.20
[ 29.010492] NET: Registered protocol family 31
[ 29.010494] Bluetooth: HCI device and connection manager initialized
[ 29.010501] Bluetooth: HCI socket layer initialized
[ 29.010505] Bluetooth: L2CAP socket layer initialized
[ 29.010517] Bluetooth: SCO socket layer initialized
[ 29.113896] Bluetooth: RFCOMM TTY layer initialized
[ 29.113909] Bluetooth: RFCOMM socket layer initialized
[ 29.113923] Bluetooth: RFCOMM ver 1.11
[ 29.184146] init: cups main process (1090) killed by HUP signal
[ 29.184165] init: cups main process ended, respawning
[ 29.210331] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 29.210336] Bluetooth: BNEP filters: protocol multicast
[ 29.210344] Bluetooth: BNEP socket layer initialized
[ 32.447181] lirc_dev: IR Remote Control driver registered, major 248
[ 33.019442] lirc_serial: module is from the staging directory, the quality is unknown, you have been warned.
[ 33.019881] lirc_serial lirc_serial.0: port 02f8 already in use
[ 33.019886] lirc_serial lirc_serial.0: use 'setserial /dev/ttySX uart none'
[ 33.019888] lirc_serial lirc_serial.0: or compile the serial port driver as module and
[ 33.019890] lirc_serial lirc_serial.0: make sure this module is loaded first
[ 33.019904] lirc_serial: probe of lirc_serial.0 failed with error -16
[ 33.019979] platform lirc_serial.0: lirc_dev: driver lirc_serial registered at minor = 0
[ 35.682248] NET: Registered protocol family 23
[ 36.469461] sky2 0000:04:00.0 eth0: enabling interface
[ 36.469994] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 36.492835] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 36.568860] init: samba-ad-dc main process (1251) terminated with status 1
[ 37.919474] init: plymouth-upstart-bridge main process ended, respawning
[ 37.927962] init: plymouth-upstart-bridge main process (1473) terminated with status 1
[ 37.927990] init: plymouth-upstart-bridge main process ended, respawning
[ 38.034976] sky2 0000:04:00.0 eth0: Link is up at 100 Mbps, full duplex, flow control both
[ 38.035011] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 43.980000] NET: Registered protocol family 24
[ 59.486243] vboxdrv: module verification failed: signature and/or required key missing - tainting kernel
[ 59.492128] vboxdrv: Found 2 processor cores
[ 59.493416] vboxdrv: fAsync=0 offMin=0x1c4 offMax=0x41d4
[ 59.593614] vboxdrv: TSC mode is Synchronous, tentative frequency 2094746999 Hz
[ 59.593619] vboxdrv: Successfully loaded version 5.0.12 (interface 0x00240000)
[ 59.830451] VBoxNetFlt: Successfully started.
[ 59.860671] VBoxNetAdp: Successfully started.
[ 59.888715] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
[ 59.888730] pci 0000:00:1e.0: PCI bridge to [bus 08]
[ 59.888870] pci_bus 0000:08: Allocating resources
[ 59.888895] pci 0000:00:1e.0: bridge window [io 0x1000-0x0fff] to [bus 08] add_size 1000
[ 59.888899] pci 0000:00:1e.0: bridge window [mem 0x00100000-0x000fffff 64bit pref] to [bus 08] add_size 200000 add_align 100000
[ 59.888903] pci 0000:00:1e.0: bridge window [mem 0x00100000-0x000fffff] to [bus 08] add_size 200000 add_align 100000
[ 59.888906] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
[ 59.888915] pci 0000:00:1e.0: res[14]=[mem 0x00100000-0x000fffff] res_to_dev_res add_size 200000 min_align 100000
[ 59.888918] pci 0000:00:1e.0: res[14]=[mem 0x00100000-0x002fffff] res_to_dev_res add_size 200000 min_align 100000
[ 59.888921] pci 0000:00:1e.0: res[15]=[mem 0x00100000-0x000fffff 64bit pref] res_to_dev_res add_size 200000 min_align 100000
[ 59.888923] pci 0000:00:1e.0: res[15]=[mem 0x00100000-0x002fffff 64bit pref] res_to_dev_res add_size 200000 min_align 100000
[ 59.888926] pci 0000:00:1e.0: res[13]=[io 0x1000-0x0fff] res_to_dev_res add_size 1000 min_align 1000
[ 59.888929] pci 0000:00:1e.0: res[13]=[io 0x1000-0x1fff] res_to_dev_res add_size 1000 min_align 1000
[ 59.888936] pci 0000:00:1e.0: BAR 14: assigned [mem 0xc0100000-0xc02fffff]
[ 59.888942] pci 0000:00:1e.0: BAR 15: assigned [mem 0xc0300000-0xc04fffff 64bit pref]
[ 59.888948] pci 0000:00:1e.0: BAR 13: assigned [io 0x6000-0x6fff]
[ 59.888951] pci 0000:00:1e.0: PCI bridge to [bus 08]
[ 59.888955] pci 0000:00:1e.0: bridge window [io 0x6000-0x6fff]
[ 59.888961] pci 0000:00:1e.0: bridge window [mem 0xc0100000-0xc02fffff]
[ 59.888967] pci 0000:00:1e.0: bridge window [mem 0xc0300000-0xc04fffff 64bit pref]
[ 59.889481] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
[ 59.889488] pci 0000:00:1e.0: PCI bridge to [bus 08]
[ 59.889492] pci 0000:00:1e.0: bridge window [io 0x6000-0x6fff]
[ 59.889499] pci 0000:00:1e.0: bridge window [mem 0xc0100000-0xc02fffff]
[ 59.889505] pci 0000:00:1e.0: bridge window [mem 0xc0300000-0xc04fffff 64bit pref]
[ 59.889657] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
[ 59.889662] pci 0000:00:1e.0: PCI bridge to [bus 08]
[ 59.889666] pci 0000:00:1e.0: bridge window [io 0x6000-0x6fff]
[ 59.889673] pci 0000:00:1e.0: bridge window [mem 0xc0100000-0xc02fffff]
[ 59.889679] pci 0000:00:1e.0: bridge window [mem 0xc0300000-0xc04fffff 64bit pref]
[ 59.889808] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
[ 59.889813] pci 0000:00:1e.0: PCI bridge to [bus 08]
[ 59.889821] pci 0000:00:1e.0: bridge window [io 0x6000-0x6fff]
[ 59.889833] pci 0000:00:1e.0: bridge window [mem 0xc0100000-0xc02fffff]
[ 59.889842] pci 0000:00:1e.0: bridge window [mem 0xc0300000-0xc04fffff 64bit pref]
[ 59.889880] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
[ 59.889888] pci 0000:00:1e.0: PCI bridge to [bus 08]
[ 59.889893] pci 0000:00:1e.0: bridge window [io 0x6000-0x6fff]
[ 59.889905] pci 0000:00:1e.0: bridge window [mem 0xc0100000-0xc02fffff]
[ 59.889913] pci 0000:00:1e.0: bridge window [mem 0xc0300000-0xc04fffff 64bit pref]
[ 59.890085] pci_bus 0000:02: Allocating resources
[ 59.890103] pci_bus 0000:04: Allocating resources
[ 59.890142] pci_bus 0000:06: Allocating resources
[ 59.890162] i915 0000:00:02.0: BAR 6: [??? 0x00000000 flags 0x2] has bogus alignment
[ 59.890167] pci 0000:00:1e.0: PCI bridge to [bus 08]
[ 59.890170] pci 0000:00:1e.0: bridge window [io 0x6000-0x6fff]
[ 59.890177] pci 0000:00:1e.0: bridge window [mem 0xc0100000-0xc02fffff]
[ 59.890182] pci 0000:00:1e.0: bridge window [mem 0xc0300000-0xc04fffff 64bit pref]
[ 59.897376] VBoxPciLinuxInit
[ 59.929752] vboxpci: IOMMU not found (not registered)
[ 67.018170] init: plymouth-stop pre-start process (2396) terminated with status 1
[ 89.688530] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[ 89.795744] Netfilter messages via NETLINK v0.30.
[ 89.804159] ctnetlink v0.93: registering with nfnetlink.
[ 89.875292] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 169.279278] perf interrupt took too long (2511 > 2500), lowering kernel.perf_event_max_sample_rate to 50000
[ 200.827091] CE: hpet increased min_delta_ns to 20115 nsec
[ 710.018955] perf interrupt took too long (5001 > 5000), lowering kernel.perf_event_max_sample_rate to 25000
[13349.451445] ftdi_sio ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
[13349.521174] usb 2-3.1: USB disconnect, device number 3
[13349.521360] ftdi_sio ttyUSB0: ftdi_set_termios urb failed to set baudrate
[13349.521367] ftdi_sio ttyUSB0: urb failed to clear flow control
[13349.548095] ftdi_sio ttyUSB0: urb failed to clear flow control
[13349.552464] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[13349.552479] ftdi_sio 2-3.1:1.0: device disconnected
[16979.172073] usb 2-3.1: new full-speed USB device number 4 using ehci-pci
[16979.646438] usb 2-3.1: New USB device found, idVendor=0403, idProduct=6001
[16979.646443] usb 2-3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[16979.646450] usb 2-3.1: Product: FT232R USB UART
[16979.646453] usb 2-3.1: Manufacturer: FTDI
[16979.646455] usb 2-3.1: SerialNumber: A9U9LFFR
[16979.693459] ftdi_sio 2-3.1:1.0: FTDI USB Serial Device converter detected
[16979.693533] usb 2-3.1: Detected FT232RL
[16979.694275] usb 2-3.1: FTDI USB Serial Device converter now attached to ttyUSB1
[16992.894487] usb 2-3.1: USB disconnect, device number 4
[16992.894703] ftdi_sio ttyUSB1: FTDI USB Serial Device converter now disconnected from ttyUSB1
[16992.894720] ftdi_sio 2-3.1:1.0: device disconnected
[16994.216065] usb 2-3.1: new full-speed USB device number 5 using ehci-pci
[16994.686691] usb 2-3.1: New USB device found, idVendor=0403, idProduct=6001
[16994.686700] usb 2-3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[16994.686703] usb 2-3.1: Product: FT232R USB UART
[16994.686705] usb 2-3.1: Manufacturer: FTDI
[16994.686708] usb 2-3.1: SerialNumber: A9U9LFFR
[16994.733946] ftdi_sio 2-3.1:1.0: FTDI USB Serial Device converter detected
[16994.734001] usb 2-3.1: Detected FT232RL
[16994.734650] usb 2-3.1: FTDI USB Serial Device converter now attached to ttyUSB1
[18245.805574] CE: hpet increased min_delta_ns to 30172 nsec
[21421.148249] CE: hpet increased min_delta_ns to 45258 nsec
[21561.631934] ttyS1: LSR safety check engaged!
[22936.040063] usb 2-1: new high-speed USB device number 6 using ehci-pci
[22936.178530] usb 2-1: New USB device found, idVendor=6000, idProduct=dec0
[22936.178539] usb 2-1: New USB device strings: Mfr=16, Product=32, SerialNumber=64
[22936.178542] usb 2-1: Product: Behold TV Wander
[22936.178544] usb 2-1: Manufacturer: Beholder Intl. Ltd.
[22936.178546] usb 2-1: SerialNumber: 000000BB58
[22936.452242] tm6000: alt 0, interface 0, class 255
[22936.452247] tm6000: alt 0, interface 0, class 255
[22936.452250] tm6000: Bulk IN endpoint: 0x82 (max size=512 bytes)
[22936.452252] tm6000: alt 0, interface 0, class 255
[22936.452253] tm6000: alt 1, interface 0, class 255
[22936.452255] tm6000: ISOC IN endpoint: 0x81 (max size=3072 bytes)
[22936.452257] tm6000: alt 1, interface 0, class 255
[22936.452259] tm6000: alt 1, interface 0, class 255
[22936.452260] tm6000: INT IN endpoint: 0x83 (max size=4 bytes)
[22936.452262] tm6000: alt 2, interface 0, class 255
[22936.452264] tm6000: alt 2, interface 0, class 255
[22936.452266] tm6000: alt 2, interface 0, class 255
[22936.452267] tm6000: alt 3, interface 0, class 255
[22936.452269] tm6000: alt 3, interface 0, class 255
[22936.452271] tm6000: alt 3, interface 0, class 255
[22936.452273] tm6000: New video device @ 480 Mbps (6000:dec0, ifnum 0)
[22936.452274] tm6000: Found Beholder Wander DVB-T/TV/FM USB2.0
[22936.458881] Found tm6010
[22937.163978] tm6000 #0: i2c eeprom 00: 42 59 54 45 12 01 00 02 00 00 00 40 00 60 c0 de BYTE.......@.`..
[22937.278082] tm6000 #0: i2c eeprom 10: 01 00 10 20 40 01 28 03 42 00 65 00 68 00 6f 00 ... @.(.B.e.h.o.
[22937.392065] tm6000 #0: i2c eeprom 20: 6c 00 64 00 65 00 72 00 20 00 49 00 6e 00 74 00 l.d.e.r. .I.n.t.
[22937.506410] tm6000 #0: i2c eeprom 30: 6c 00 2e 00 20 00 4c 00 74 00 64 00 2e 00 ff ff l... .L.t.d.....
[22937.622180] tm6000 #0: i2c eeprom 40: 22 03 42 00 65 00 68 00 6f 00 6c 00 64 00 20 00 ".B.e.h.o.l.d. .
[22937.736068] tm6000 #0: i2c eeprom 50: 54 00 56 00 20 00 57 00 61 00 6e 00 64 00 65 00 T.V. .W.a.n.d.e.
[22937.850078] tm6000 #0: i2c eeprom 60: 72 00 ff ff ff ff ff ff ff ff 1a 03 56 00 69 00 r...........V.i.
[22937.963071] tm6000 #0: i2c eeprom 70: 64 00 65 00 6f 00 43 00 61 00 70 00 74 00 75 00 d.e.o.C.a.p.t.u.
[22938.077562] tm6000 #0: i2c eeprom 80: 72 00 65 00 ff ff ff ff ff ff ff ff ff ff ff ff r.e.............
[22938.191557] tm6000 #0: i2c eeprom 90: ff ff ff ff 16 03 30 00 30 00 30 00 30 00 30 00 ......0.0.0.0.0.
[22938.305553] tm6000 #0: i2c eeprom a0: 30 00 42 00 42 00 35 00 38 00 ff ff ff ff ff ff 0.B.B.5.8.......
[22938.419560] tm6000 #0: i2c eeprom b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
[22938.533559] tm6000 #0: i2c eeprom c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
[22938.647694] tm6000 #0: i2c eeprom d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
[22938.762834] tm6000 #0: i2c eeprom e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
[22938.880097] tm6000 #0: i2c eeprom f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
[22939.014039] tuner 8-0061: Tuner -1 found with type(s) Radio TV.
[22939.022813] xc5000 8-0061: creating new instance
[22939.053065] xc5000: Successfully identified at address 0x61
[22939.053069] xc5000: Firmware has not been loaded previously
[22942.403164] xc5000: Firmware dvb-fe-xc5000-1.6.114.fw loaded and running.
[22943.690704] tm6000 #0: registered device video1
[22943.691864] tm6000 #0: registered device radio0
[22943.691869] Trident TVMaster TM5600/TM6000/TM6010 USB2 board (Load status: 0)
[22943.691927] usbcore: registered new interface driver tm6000
[22943.745891] tm6000 #0: Initialized (TM6000 Audio Extension) extension
[22943.863092] DVB: registering new adapter (Trident TVMaster 6000 DVB-T)
[22943.863103] usb 2-1: DVB: registering adapter 0 frontend 0 (Zarlink ZL10353 DVB-T)...
[22943.863246] xc5000 8-0061: attaching existing instance
[22943.889082] xc5000: Successfully identified at address 0x61
[22943.889086] xc5000: Firmware has been loaded previously
[22943.889088] tm6000: XC5000 asked to be attached to frontend!
[22943.891153] tm6000 #0: Initialized (TM6000 dvb Extension) extension
[31209.056445] init: nmbd main process (1719) killed by TERM signal
[31209.377532] init: smbd main process (888) killed by TERM signal
[31235.519803] init: samba-ad-dc main process (9615) terminated with status 1
[37257.270194] traps: ircp-tray[3987] trap int3 ip:7f8fda578c13 sp:7fffcf2ff520 error:0
[42157.309885] usb 2-1: USB disconnect, device number 6
[42157.309986] tm6000: disconnecting tm6000 #0
[42157.371924] xc5000 8-0061: destroying instance
Это ответ на команду lsmod | grep lirc:
Код: Выделить всё
lirc_serial 20480 0
lirc_dev 20480 1 lirc_serial
rc_core 28672 2 lirc_dev,tm6000
Это ответ на команду sudo service lirc start:
Код: Выделить всё
* Loading LIRC modules [ OK ]
find: `/sys/class/rc/*/': Нет такого файла или каталога
* Starting remote control daemon(s) : [ OK ]
В папке rc действительно нет никаких файлов и она абсолютно пустая. файлы Hardware.conf и Lircd.conf с конфигом моего пульта для ик приемника/передатчика, номер порта соответственно меняется в зависимости от номера под которым опознается мой переходник:
Код: Выделить всё
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="JVC"
REMOTE_MODULES="lirc_dev lirc_serial"
REMOTE_DRIVER="default"
REMOTE_DEVICE="/dev/ttyUSB0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf"
REMOTE_LIRCD_ARGS=""
#Chosen IR Transmitter
TRANSMITTER="Custom"
TRANSMITTER_MODULES="lirc_dev lirc_serial"
TRANSMITTER_DRIVER="default"
TRANSMITTER_DEVICE="/dev/ttyUSB0"
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF="/etc/lirc/lircd.conf"
TRANSMITTER_LIRCD_ARGS=""
#Disable kernel support.
#Typically, lirc will disable in-kernel support for ir devices in order to
#handle them internally. Set to false to prevent lirc from disabling this
#in-kernel support.
#DISABLE_KERNEL_SUPPORT="true"
#Enable lircd
START_LIRCD="true"
#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"
#Try to load appropriate kernel modules
LOAD_MODULES="true"
# Default configuration files for your hardware if any
LIRCMD_CONF="true"
#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD="false"
Код: Выделить всё
#This configuration has been automatically generated via
#the Ubuntu LIRC package maintainer scripts.
#
#It includes the default configuration for the remote and/or
#transmitter that you have selected during package installation.
#
#Feel free to add any custom remotes to the configuration
#via additional include directives or below the existing
#Ubuntu include directives from your selected remote and/or
#transmitter.
#Configuration for the Custom transmitter:
include "/etc/lirc/lircd.conf"
# this config file was automatically generated
# using WinLIRC 0.6.4 (LIRC 0.6.1pre3) on Thu Mar 20 17:11:44 2003
#
# contributed by
#
# brand: JVC
# model: RM-C462 / RM-C457
# supported devices: TV
#
begin remote
name RM-C462
bits 8
flags SPACE_ENC|NO_HEAD_REP|CONST_LENGTH
eps 30
aeps 100
header 8492 4182
one 558 1555
zero 558 496
ptrail 559
pre_data_bits 8
pre_data 0xC0
gap 46464
min_repeat 1
toggle_bit 0
begin codes
TV/VIDEO 0x00000000000000C8
KEY_POWER 0x00000000000000E8 # Was: POWER
COLOUR_SYSTEM 0x0000000000000049
SOUND_SYSTEM 0x000000000000002D
DISPLAY 0x0000000000000020
KEY_1 0x0000000000000084 # Was: 1
KEY_2 0x0000000000000044 # Was: 2
KEY_3 0x00000000000000C4 # Was: 3
CH_PRESET 0x0000000000000099
KEY_4 0x0000000000000024 # Was: 4
KEY_5 0x00000000000000A4 # Was: 5
KEY_6 0x0000000000000064 # Was: 6
OFF_TIMER 0x00000000000000C0
KEY_7 0x00000000000000E4 # Was: 7
KEY_8 0x0000000000000014 # Was: 8
KEY_9 0x0000000000000094 # Was: 9
KEY_0 0x0000000000000004 # Was: 0
KEY_MAX 0x00000000000000B9 # Was: MAX_CH
PICTURE_MODE 0x000000000000009E
PICTURE_ADJUST- 0x00000000000000DA
PICTURE_ADJUST 0x00000000000000DE
PICTURE_ADJUST+ 0x000000000000005A
KEY_MUTE 0x0000000000000038 # Was: MUTE
KEY_CHANNELDOWN 0x0000000000000018 # Was: CHANNEL-
KEY_CHANNELUP 0x0000000000000098 # Was: CHANNEL+
KEY_VOLUMEDOWN 0x00000000000000F8 # Was: VOLUME-
KEY_VOLUMEUP 0x0000000000000078 # Was: VOLUME+
end codes
end remote
Ответ на команду sudo setserial /dev/ttyS0 uart none в ответ съел. Далее modprobe lirc_serial также съел. Еще mode2 -d /dev/lirc0 в ответ:
Код: Выделить всё
mode2: could not open /dev/lirc0
mode2: default_init(): Permission denied
Ответ команды sudo cat /etc/init.d/lirc:
Код: Выделить всё
#! /bin/sh
### BEGIN INIT INFO
# Provides: lirc
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts LIRC daemon.
# Description: LIRC is used to control different
# infrared receivers and transceivers.
### END INIT INFO
load_modules ()
{
MODULES_MISSING=false
log_daemon_msg "Loading LIRC modules"
for mod in $*; do
if [ $mod = "udev" ]; then
log_end_msg 0
log_success_msg "Restarted via udev, don't reload modules"
break
else
modprobe $mod 2> /dev/null || MODULES_MISSING=true
fi
done
log_end_msg $?
if $MODULES_MISSING; then
log_failure_msg "Unable to load LIRC kernel modules. Verify your"
log_failure_msg "selected kernel modules in /etc/lirc/hardware.conf"
START_LIRCMD=false
START_LIRCD=false
fi
}
build_remote_args ()
{
REMOTE_ARGS="$*"
#For remote only detection support, we need
#both REMOTE_DEVICE and TRANSMITTER_DEVICE undefined
if [ -z "$REMOTE_DEVICE" ] && [ -z "$TRANSMITTER_DEVICE" ] && [ -c $dev ]; then
REMOTE_DEVICE="$dev"
fi
#If we have a REMOTE_DEVICE or REMOTE_DRIVER defined (either because no devices
#were defined, OR if we explicitly did), then populate REMOTE_ARGS
if [ -n "$REMOTE_DEVICE" ] || [ -n "$REMOTE_DRIVER" ]; then
if [ -n "$REMOTE_DEVICE" ] && [ "$REMOTE_DEVICE" != "none" ]; then
REMOTE_ARGS="--device=$REMOTE_DEVICE $REMOTE_ARGS"
fi
if [ -n "$REMOTE_DRIVER" ] && [ "$REMOTE_DRIVER" != "none" ]; then
REMOTE_ARGS="--driver=$REMOTE_DRIVER $REMOTE_ARGS"
fi
#Now, if we ALSO have a transmitter defined, add some args
#To make the first lircd listen up
if [ -n "$TRANSMITTER_DEVICE" ] || [ -n "$TRANSMITTER_DRIVER" ]; then
REMOTE_ARGS="$REMOTE_ARGS --connect=localhost:8765"
fi
REMOTE_ARGS="--output=$REMOTE_SOCKET $REMOTE_ARGS"
fi
REMOTE_PID="--pidfile=/run/lirc/lircd.pid"
echo $REMOTE_ARGS
}
build_transmitter_args ()
{
TRANSMITTER_ARGS="$*"
#Transmitters must be explicitly be defined
if [ -n "$TRANSMITTER_DEVICE" ] || [ -n "$TRANSMITTER_DRIVER" ]; then
if [ -n "$TRANSMITTER_DEVICE" ] && [ "$TRANSMITTER_DEVICE" != "none" ]; then
TRANSMITTER_ARGS="--device=$TRANSMITTER_DEVICE $TRANSMITTER_ARGS"
fi
if [ -n "$TRANSMITTER_DRIVER" ] && [ "$TRANSMITTER_DRIVER" != "none" ]; then
TRANSMITTER_ARGS="--driver=$TRANSMITTER_DRIVER $TRANSMITTER_ARGS"
fi
#Now, if we ALSO have a remote defined, add some args
#To make the second lircd connect
if [ -n "$REMOTE_DEVICE" ] || [ -n "$REMOTE_DRIVER" ]; then
TRANSMITTER_ARGS="$TRANSMITTER_ARGS --listen --pidfile=/run/lirc/lircd1.pid"
TRANSMITTER_PID="--pidfile=/run/lirc/lircd1.pid"
else
TRANSMITTER_PID="--pidfile=/run/lirc/lircd.pid"
fi
TRANSMITTER_ARGS="--output=$TRANSMITTER_SOCKET $TRANSMITTER_ARGS"
fi
echo $TRANSMITTER_ARGS
}
in_kernel_support() {
if [ -d /sys/class/rc ] && [ "$DISABLE_KERNEL_SUPPORT" = "true" ]; then
for file in `find /sys/class/rc/*/ -name protocols`; do
if [ "$1" = "disable" ]; then
echo "lirc" > $file
else
echo "none" > $file
for protocol in `cat $file`; do
echo "+${protocol}" > $file
done
fi
done
fi
}
. /lib/lsb/init-functions
test -f /usr/sbin/lircd || exit 0
test -f /usr/sbin/lircmd || exit 0
START_LIRCMD=true
START_LIRCD=true
START_IREXEC=true
DISABLE_KERNEL_SUPPORT=true
if [ -f /etc/lirc/hardware.conf ];then
. /etc/lirc/hardware.conf
fi
if [ ! -f /etc/lirc/lircd.conf ] || grep -q "^#UNCONFIGURED" /etc/lirc/lircd.conf; then
if [ "$1" = "start" ]; then
log_success_msg "No valid /etc/lirc/lircd.conf has been found."
log_success_msg "Remote control support has been disabled."
log_success_msg "Reconfigure LIRC or manually replace /etc/lirc/lircd.conf to enable."
fi
START_LIRCD=false
START_LIRCMD=false
START_IREXEC=false
fi
if [ ! -f /etc/lirc/lircmd.conf ] || grep -q "^#UNCONFIGURED" /etc/lirc/lircmd.conf; then
START_LIRCMD=false
fi
if [ ! -f /etc/lirc/lircrc ] || grep -q "^#UNCONFIGURED" /etc/lirc/lircrc; then
START_IREXEC=false
fi
#We need default socket locations
OLD_SOCKET="/dev/lircd"
if [ -z "$REMOTE_SOCKET" ]; then
REMOTE_SOCKET="/run/lirc/lircd"
fi
if [ -z "$TRANSMITTER_SOCKET" ]; then
TRANSMITTER_SOCKET="/run/lirc/lircd"
#Now, if we ALSO have a remote defined,
#change the default transmitter socket
if [ -n "$REMOTE_DEVICE" ] || [ -n "$REMOTE_DRIVER" ]; then
TRANSMITTER_SOCKET="${TRANSMITTER_SOCKET}1"
fi
fi
case "$1" in
start)
if [ "$LOAD_MODULES" = "true" ] && [ "$START_LIRCD" = "true" ]; then
load_modules $2 $REMOTE_MODULES $TRANSMITTER_MODULES $MODULES
in_kernel_support "disable"
fi
if [ "$START_LIRCD" = "true" ]; then
mkdir -p "/run/lirc"
log_daemon_msg "Starting remote control daemon(s) : "
REMOTE_LIRCD_ARGS=`build_remote_args $REMOTE_LIRCD_ARGS`
TRANSMITTER_LIRCD_ARGS=`build_transmitter_args $TRANSMITTER_LIRCD_ARGS`
RES=1
#if we have a transmitter defined, start it first
if [ -n "$TRANSMITTER_LIRCD_ARGS" ]; then
log_progress_msg "LIRC (transmitter)"
start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/lircd --pidfile=$TRANSMITTER_PID -- $TRANSMITTER_LIRCD_ARGS < /dev/null
RES=$?
fi
if [ -n "$REMOTE_LIRCD_ARGS" ]; then
log_progress_msg "LIRC (remote)"
start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/lircd --pidfile=$REMOTE_PID -- $REMOTE_LIRCD_ARGS < /dev/null
RES=$?
fi
log_end_msg $RES
#Set up symlinks, starting with the remote if present.
if [ -n "$REMOTE_LIRCD_ARGS" ]; then
if [ -S "$REMOTE_SOCKET" -a "$OLD_SOCKET" != "$REMOTE_SOCKET" ]; then
rm -f $OLD_SOCKET && ln -s $REMOTE_SOCKET $OLD_SOCKET
fi
if [ -n "$TRANSMITTER_LIRCD_ARGS" ]; then
if [ -S "$TRANSMITTER_SOCKET" ]; then
rm -f ${OLD_SOCKET}1 && ln -s $TRANSMITTER_SOCKET ${OLD_SOCKET}1
fi
fi
elif [ -n "$TRANSMITTER_LIRCD_ARGS" ]; then
if [ -S "$TRANSMITTER_SOCKET" -a "$OLD_SOCKET" != "$TRANSMITTER_SOCKET" ]; then
rm -f $OLD_SOCKET && ln -s $TRANSMITTER_SOCKET $OLD_SOCKET
fi
fi
fi
if [ "$START_LIRCMD" = "true" ]; then
mkdir -p "/run/lirc"
log_daemon_msg "Starting remote control mouse daemon : LIRCMD "
start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/lircmd < /dev/null
log_end_msg $?
fi
if [ "$START_IREXEC" = "true" ]; then
mkdir -p "/run/lirc"
log_daemon_msg "Starting execution daemon: irexec"
start-stop-daemon --start --quiet --oknodo --exec /usr/bin/irexec -- -d /etc/lirc/lircrc < /dev/null
log_end_msg $?
fi
;;
stop)
in_kernel_support "enable"
if [ "$START_IREXEC" = "true" ]; then
log_daemon_msg "Stopping execution daemon: irexec"
start-stop-daemon --stop --oknodo --quiet --exec /usr/bin/irexec
log_end_msg $?
fi
if [ "$START_LIRCMD" = "true" ]; then
log_daemon_msg "Stopping remote control mouse daemon: LIRCMD"
start-stop-daemon --stop --oknodo --quiet --exec /usr/sbin/lircmd
log_end_msg $?
fi
if [ "$START_LIRCD" = "true" ]; then
log_daemon_msg "Stopping remote control daemon(s): LIRC"
start-stop-daemon --stop --oknodo --quiet --exec /usr/sbin/lircd --pidfile /run/lirc/lircd.pid
start-stop-daemon --stop --oknodo --quiet --exec /usr/sbin/lircd --pidfile /run/lirc/lircd1.pid
log_end_msg $?
[ -h "$OLD_SOCKET" ] && rm -f $OLD_SOCKET
[ -h "${OLD_SOCKET}1" ] && rm -f ${OLD_SOCKET}1
fi
;;
reload|force-reload)
if [ "$START_IREXEC" = "true" ]; then
start-stop-daemon --stop --quiet --signal 1 --exec /usr/bin/irexec
fi
if [ "$START_LIRCD" = "true" ]; then
start-stop-daemon --stop --quiet --signal 1 --exec /usr/sbin/lircd
fi
if [ "$START_LIRCMD" = "true" ]; then
start-stop-daemon --stop --quiet --signal 1 --exec /usr/sbin/lircmd
fi
;;
restart)
$0 stop
#passes parameter $2 which is possibly our udev paramater
$0 start $2
;;
*)
echo "Usage: /etc/init.d/lircd {start|stop|reload|restart|force-reload}"
exit 1
esac
exit 0
Подскажите пожалуйста какие еще нужны ритуалы чтобы заставить эту программу работать с этими ппортами и как сделать возможность поддержки помимо этого моего ик-приемника/передатчика и пульта ду от тв тюнера. Спасибо