Prikaz jedne poruke
Stara 19.4.2011, 20:37   #2
toxic
Deo inventara foruma
 
Član od: 16.6.2008.
Lokacija: Bananaland
Poruke: 4.274
Zahvalnice: 608
Zahvaljeno 870 puta na 754 poruka
Određen forumom Re: TV2000 XP Global + lirc setovanje u Ubuntu

5. Izmenimo: sudo gedit /etc/lirc/hardware.conf
Kod:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Winfast TV2000/XP (card"

# Arguments which will be used when launching lircd
#com#LIRCD_ARGS=""

#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"

# Run "lircd --driver=help" for a list of supported drivers.
#com#DRIVER="dev/input"
# If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be
# automatically used instead
#DEVICE="/dev/input/event5"
#com#DEVICE="/dev/input/irremote"
#com#MODULES=""

# Default configuration files for your hardware if any
#LIRCD_CONF="/etc/lirc/lircd.conf"
#com#LIRCD_CONF=""
LIRCMD_CONF=""
#REMOTE="Custom"
TRANSMITTER="None"
REMOTE_MODULES=""
REMOTE_DRIVER="dev/input"
REMOTE_DEVICE="/dev/input/irremote"
#REMOTE_DEVICE="/dev/lirc0"
#com#REMOTE_LIRCD_CONF="/usr/share/lirc/remotes"
#REMOTE_LIRCD_CONF="leadtek/lircd.conf.RM-0010"
REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf"
REMOTE_LIRCD_ARGS=""
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""
START_LIRCD="true"
#FORCE_NONINTERACTIVE_RECONFIGURATION="false"
FORCE_NONINTERACTIVE_RECONFIGURATION="true"
REMOTE_SOCKET=""
TRANSMITTER_SOCKET=""
Ovde je takodje bitno postaviti tacan event na pocetku koda.

6. Preko sudo gedit izmenimo/napravimo sledece fajlove /etc/lircd.conf, /etc/lirc/lircd.conf i /usr/share/lirc/lircd.conf sа:
Kod:
# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.8.2(dev/input) on Mon Jan 28 15:51:28 2008
#
# contributed by
#
# brand: /etc/lircd.conf
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

name /etc/lircd.conf
bits 32
eps 30
aeps 100

one 0 0
zero 0 0
gap 387992
toggle_bit_mask 0x0

begin codes
POWER 0x80010074
TV 0x80010179
FM 0x80010181
DVD 0x80010185
RED 0x8001018E
GREEN 0x8001018F
YELLOW 0x80010190
BLUE 0x80010191
TEXT 0x80010184
SLEEP 0x8001008E
MUTE 0x80010071
CLEAR 0x80010163
CANCEL 0x800100DF
FULLSCREEN 0x80010174
CHANNELUP 0x80010192
VOLUMEDOWN 0x80010072
ENTER 0x8001001C
VOLUMEUP 0x80010073
MENU 0x8001008B
CHANNELDOWN 0x80010193
CHANNEL 0x8001016B
PREVIOUS 0x8001019C
PLAYPAUSE 0x800100A4
NEXT 0x80010197
SUBTITLE 0x80010172
REWIND 0x800100A8
STOP 0x80010080
FASTFORWARD 0x800100D0
LANGUAGE 0x80010170
1 0x80010002
2 0x80010003
3 0x80010004
EPG 0x80010189
4 0x80010005
5 0x80010006
6 0x80010007
VIDEO 0x80010188
7 0x80010008
8 0x80010009
9 0x8001000A
AUDIO 0x80010166
Dot 0x80010034
0 0x8001000B
RECALL 0x80010195
INFO 0x800100EA
MEDIA 0x800100E2
STOP 0x80010080
RECORD 0x800100A7
SHUFFLE 0x80010169
end codes

end remote
7. Napravimo sa sudo gedit /home/imekorsinika/.lircrc fajl sa tekstom:
Kod:
begin

    prog = irexec

    button = TV

    config = tvtime &
    config = tvtime-command QUIT

end

begin

    prog = irexec

    button = source

    config = tvtime-command TOGGLE_INPUT

end

begin

    prog = irexec

    button = DISPLAY

    config = tvtime-command DISPLAY_INFO

end

begin

    prog = irexec

    button = FULLSCREEN

    config = tvtime-command TOGGLE_FULLSCREEN

end

begin

    prog = irexec

    button = MUTE

    config = amixer sset Master toggle

end

begin

    prog = irexec

    button = CHANNELUP

    config = tvtime-command UP

end

begin

    prog = irexec

    button = CHANNELDOWN

    config = tvtime-command DOWN

end

begin

    prog = irexec

    button = VOLUMEUP

    config = amixer sset Master 2+

end

begin

    prog = irexec

    button = VOLUMEDOWN

    config = amixer sset Master 2-

end

begin

    prog = irexec

    button = RECALL

    config = tvtime-command CHANNEL_JUMP

end

begin

    prog   = irexec

    button = 1

    config = tvtime-command CHANNEL_1

end

begin

    prog   = irexec

    button = 2

    config = tvtime-command CHANNEL_2

end

begin

    prog   = irexec

    button = 3

    config = tvtime-command CHANNEL_3

end

begin

    prog   = irexec

    button = 4

    config = tvtime-command CHANNEL_4

end

begin

    prog   = irexec

    button = 5

    config = tvtime-command CHANNEL_5

end

begin

    prog   = irexec

    button = 6

    config = tvtime-command CHANNEL_6

end

begin

    prog   = irexec

    button = 7

    config = tvtime-command CHANNEL_7

end

begin

    prog   = irexec

    button = 8

    config = tvtime-command CHANNEL_8

end

begin

    prog   = irexec

    button = 9

    config = tvtime-command CHANNEL_9

end

begin

    prog   = irexec

    button = 0

    config = tvtime-command CHANNEL_0

end

begin

    prog = irexec

    button = ENTER

    config = tvtime-command ENTER

end
Ovim dobijamo skriptu za paljenje I koriscenje TVTime-a koju mozemo menjati po potrebi, ovo je moja. Jos je potrebno postaviti ovaj fajl u autorun: System > Preferences > Startup Applications > Add > za ime i opis stavimo bilo sta, a Command postavimo /usr/bin/irexec -d.

Restart/LogOut-In I trebalo bi da sve radi.

Za dodatna setovanja bitne su ove komande iz terminala:
man tvtime-command -Pregled TVTime komandi
irw -Pregled I test komandi za daljinski

Poslednja ispravka: toxic (19.4.2011 u 22:07)
toxic je offline   Odgovor sa citatom ove poruke