[ _goThic_ @ 23.12.2009. 19:05 ] @
Dajem neke osnovne stavke za aktiviranje i koriscenje ovog daljinca na Linux Mint 8 (verovatno je isto ko na Ubuntu 9.10, a uz neke izmene slicno i za ostale distroe). Necu davati previse detalja. Ako ima pitanja, odgovoricu ako znam. Svuda umesto /home/gothic/ staviti svoj user. Verovatno ce biti potrebno dodatno instaliranje nekih programa (lirc, irxevent, irexec...), al svi su u zvanicnom repou. Startup Applications: Code: irexec -d irxevent -d /var/lib/setserial/autoserial.conf Code: /dev/ttyS0 uart none /etc/modprobe.d/lirc.conf Code: #COM1 equivalent, /dev/ttyS0 options lirc_serial irq=4 io=0x3f8 #COM2 equivalent, /dev/ttyS1 #options lirc_serial irq=3 io=0x2f8 /etc/lirc/hardware.conf Code: # /etc/lirc/hardware.conf # #Chosen Remote Control REMOTE="Technisat TTS35AI" REMOTE_MODULES="" REMOTE_DRIVER="" REMOTE_DEVICE="" REMOTE_SOCKET="" REMOTE_LIRCD_CONF="" REMOTE_LIRCD_ARGS="" #Chosen IR Transmitter TRANSMITTER="None" TRANSMITTER_MODULES="lirc_dev lirc_serial" TRANSMITTER_DRIVER="" TRANSMITTER_DEVICE="/dev/lirc0" TRANSMITTER_SOCKET="" TRANSMITTER_LIRCD_CONF="technisat/TTS35AI" TRANSMITTER_LIRCD_ARGS="" #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="" #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="" /etc/lirc/lircd.conf Code: # # this config file was automatically generated # using lirc-0.7.1pre2(any) on Mon Jul 4 22:11:52 2005 # # contributed by # # brand: Technisat # model no. of remote control: TTS35AI # devices being controlled by this remote: Skystar 2.6D # begin remote name Technisat_TTS35AI.conf bits 13 flags RC5|CONST_LENGTH eps 30 aeps 100 one 882 803 zero 882 803 plead 905 gap 112766 toggle_bit 2 begin codes Power 0x1A8C Mute 0x1A8D 1 0x1281 2 0x1A82 3 0x1283 4 0x1A84 5 0x1285 6 0x1A86 7 0x1287 8 0x1A88 9 0x1289 0 0x1A80 -/-- 0x128A A/B 0x1AA3 Red 0x0AAB Green 0x02AC Yellow 0x0AAD Blue 0x02AE OK 0x0A97 Up 0x12A0 Down 0x1AA1 Left 0x1291 Right 0x1A90 SFI 0x12AF Exit 0x1AA2 INFO 0x028F # Prog+ 0x1AA0 # Prog- 0x12A1 TV/Radio 0x0293 # Volume+ 0x1A90 # Volume- 0x1291 Menu 0x0A92 Hilfe 0x1A8F TXT 0x12BC STOP 0x1AA9 EXT 0x12B8 HILFE2 0x0AB6 end codes end remote /home/gothic/.lircrc Code: begin prog = irexec button = Power repeat = 4 config = /usr/local/bin/monitorpowerbutton.sh end begin prog = pulseaudio button = Mute config = mute-toggle end begin prog = irxevent button = 1 config = Key 1 CurrentWindow end begin prog = irxevent button = 2 config = Key 2 CurrentWindow end begin prog = irxevent button = 3 config = Key 3 CurrentWindow end begin prog = irxevent button = 4 config = Key 4 CurrentWindow end begin prog = irxevent button = 5 config = Key 5 CurrentWindow end begin prog = irxevent button = 6 config = Key 6 CurrentWindow end begin prog = irxevent button = 7 config = Key 7 CurrentWindow end begin prog = irxevent button = 8 config = Key 8 CurrentWindow end begin prog = irxevent button = 9 config = Key 9 CurrentWindow end begin prog = irxevent button = 0 config = Key 0 CurrentWindow end begin prog = irxevent button = -/-- config = Key space CurrentWindow end begin prog = irxevent button = A/B config = Key Escape CurrentWindow end begin prog = pulseaudio button = Red config = volume-down end begin prog = pulseaudio button = Green config = volume-up end begin prog = irxevent button = Yellow config = Key Page_Up CurrentWindow end begin prog = irxevent button = Blue config = Key Page_Down CurrentWindow end begin prog = irxevent button = OK config = Key Return CurrentWindow end begin prog = irxevent button = Up config = Key Up CurrentWindow end begin prog = irxevent button = Down config = Key Down CurrentWindow end begin prog = irxevent button = Left config = Key Left CurrentWindow end begin prog = irxevent button = Right config = Key Right CurrentWindow end begin prog = button = SFI config = end begin prog = button = Exit config = end begin prog = button = INFO config = end begin prog = button = TV/Radio config = end begin prog = button = Menu config = end begin prog = button = Hilfe config = end begin prog = button = TXT config = end begin prog = button = STOP config = end begin prog = irxevent button = EXT config = Key alt-F4 RootWindow end begin prog = button = HILFE2 config = end komande: Code: sudo dpkg-reconfigure setserial ^ odabrati manual sudo setserial /dev/ttyS0 uart none sudo modprobe lirc_serial sudo cp /var/lib/setserial/autoserial.conf /etc/serial.conf Restart, i srecno... :) |