Forum Sveta kompjutera

Nazad   Forum Sveta kompjutera > Test Run > Slobodni softver

Slobodni softver Teme o softveru otvorenog koda (programi i operativni sistemi), projektima, zajednici...

Odgovor
 
Alatke vezane za temu Vrste prikaza
Stara 19.4.2011, 20:34   #1
toxic
Deo inventara foruma
 
Član od: 16.6.2008.
Lokacija: Bananaland
Poruke: 4.267
Zahvalnice: 608
Zahvaljeno 868 puta na 752 poruka
Određen forumom TV2000 XP Global + lirc setovanje u Ubuntu

Posto sam se par dana drndao sa TV kartom i lircom napravio sam sebi uputstvo za sledece reinstalle sistema, mozda nekom zatreba. U sustini i za druge karte je slican postupak.

Instaliramo drajvere za kartu koristeci uputstvo sa Wikija, a za Global je samo ovo u Terminalu:
sudo apt-get install linux-firmware-nonfree

Nakon ovoga potrebno je preko Software Center-a ubaciti neki program za gledanje, TVTime je najbolji, Zapping takodje nije los. U programu treba podesiti PAL B/G za zvuk, a Evropu za kanale i skenirati. Posle ovog bi trebalo da sve radi, eventualno, ako zvuk pravi problem ubacujemo (preko Software Center-a) i ALSA Mixer (samo ALSA Mixer, bez iceg drugog u imenu) za dodatna setovanja, takodje se prveruje u koji ulaz za zvuk na zvucnoj je postavljena TV karta i menjamo dok ne dobijemo ton.
Sad slede setovanja za LIRC:

Instaliramo LIRC iz Terminala komandom:
sudo apt-get install lirc
sudo apt-get install lirc-x
sudo apt-get install inputlirc
Podesavanja koja mozemo da setujemo prilkiom instalacije su nebitna, bar za ovu kartu. Ako je u pitanju neka druga koja postoji u listi mozemo odabirom resiti najveci deo problema. U tom slucaju u prvom odabiru biramo TV kartu, a u drugom Direct TV Reciver. Za Global je potrebno jos dosta:

1. U terminalu kucamo sledece: cat /proc/bus/input/devices i dobijamo (bar u mom slucaju):
Kod:
I: Bus=0001 Vendor=107d Product=6618 Version=0001
N: Name="cx88 IR (Leadtek TV2000 XP Glob"
P: Phys=pci-0000:01:0a.0/ir0
S: Sysfs=/devices/pci0000:00/0000:00:08.0/0000:01:0a.0/rc/rc0/input5
U: Uniq=
H: Handlers=kbd event5 
B: EV=100003
B: KEY=10afc336 23508c800000000 0 40480010007 8000019000004801  1e000000004400 10000010000ffc
Ovde nam je bitan broj Event-a, kod mene je event5.

2. Na osnovu eventa kucamo udevadm info -q path -n /dev/input/event5, da bi dobili Vendor. Kako drajveri za Global ne ispisuju Vendor, koristimo 0x14f1 (saznao preko neta da je taj za Global, moguce da ce instalacija inputlirc-a promeniti ovo).

3. Onda napravimo: gedit /etc/udev/rules.d/20-names.rules sa:
Kod:
#Make a remote controller event that doesn't move when hardware changes
KERNEL=="event*",SYSFS{vendor}=="0x14f1",SYMLINK="input/irremote"
I sacuvamo, ovde menjamo samo vendor.

4. Kreiramo: gedit /usr/share/hal/fdi/preprobe/20thirdparty/lirc_buggeroffhal.fdi sa:
Kod:
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>
     <match key="info.product" contains_ncase="cx88 ir">
        <merge key="info.ignore" type="bool">true</merge>
     </match>
  </device>
</deviceinfo>
toxic je offline   Odgovor sa citatom ove poruke
Stara 19.4.2011, 20:37   #2
toxic
Deo inventara foruma
 
Član od: 16.6.2008.
Lokacija: Bananaland
Poruke: 4.267
Zahvalnice: 608
Zahvaljeno 868 puta na 752 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
Stara 19.4.2011, 21:57   #3
blast beat
V.I.P. GNU/Linux
 
Član od: 7.6.2009.
Lokacija: Novi Sad, Vojvodina OS: Arch Linux
Poruke: 2.508
Zahvalnice: 250
Zahvaljeno 649 puta na 499 poruka
Određen forumom Re: TV2000 XP Global + lirc setovanje u Ubuntu

Taman planiram da kupim tv kartu, ovo ce mi biti korisno.
Samo da dodam za pocetnike - sve ono gde pise "sudo apt-get install" se moze odraditi preko synaptica, jednostavnije je.
blast beat je offline   Odgovor sa citatom ove poruke
Stara 19.4.2011, 22:09   #4
toxic
Deo inventara foruma
 
Član od: 16.6.2008.
Lokacija: Bananaland
Poruke: 4.267
Zahvalnice: 608
Zahvaljeno 868 puta na 752 poruka
Određen forumom Re: TV2000 XP Global + lirc setovanje u Ubuntu

Uhhh, namucilo me je samo tako. Ceo internet sam obisao dok nisam sklepao ovo da radi (:
Sreca pa Ubuntu ima dobru zajednicu i kod nas, najvise pomoci sam nasao na njihovom forumu.
toxic je offline   Odgovor sa citatom ove poruke
Stara 10.6.2012, 15:15   #5
toxic
Deo inventara foruma
 
Član od: 16.6.2008.
Lokacija: Bananaland
Poruke: 4.267
Zahvalnice: 608
Zahvaljeno 868 puta na 752 poruka
Određen forumom Re: TV2000 XP Global + lirc setovanje u Ubuntu

Dodatak.
Posle promene maticne ploce i procesora moralo je da se izmeni jos nesto u setovanjima.

Event je promenjen (sa 5 u 10), sto nije cudno, ali je jos jedna stvar morala biti promenjena (ukljucena) u sudo gedit /etc/lirc/hardware.conf. U redu: #DEVICE="/dev/input/event5" izbacujemo tarabu (#). Takodje, .lircrc (sudo gedit /home/imekorsinika/.lircrc) fajl mora da se izmeni jer su imena dugmica promenjena. Tipa, nije vise TV nego je KEY_TV. Ovo najlakse mozemo da proverimo sa irw komandom iz Terminala (izlazak Ctrl + Z). Pokrenemo irw i stiskamo tastere da bi dobili imena koja potom menjamo u .lircrc fajlu.

Takodje, ovog puta nisam mogao iz nekog nepoznatog razloga da ukljucim izlaz iz TV karte sa ALSA mikserom vec sam uspeo posle instalacije grafickog interfejsa za ALSA mixer, Gnome Alsa Mixer.

Komanda sudo apt-get install inputlirc nije radila pa je inputlirc instaliran iz Synaptic Package Manager-a.

Poslednja ispravka: toxic (10.6.2012 u 15:52)
toxic je offline   Odgovor sa citatom ove poruke
Stara 4.12.2014, 23:15   #6
toxic
Deo inventara foruma
 
Član od: 16.6.2008.
Lokacija: Bananaland
Poruke: 4.267
Zahvalnice: 608
Zahvaljeno 868 puta na 752 poruka
Određen forumom Re: TV2000 XP Global + lirc setovanje u Ubuntu

Dodatak za odlozeno gasenje daljincem.

Da bi omogucili gasenje preko daljinskog potrebno je prvo omoguciti gasenje (terminalskom komandom) i bez root naloga, ovako:

1. Kreiras korisnicku grupu shutdown I dodas korisnika.
2. menjas: sudo gedit /etc/sudoers
3. dodas na kraju liniju: %shutdown ALL= NOPASSWD: /sbin/shutdown
4. svi iz shutdown grupe sada mogu da gase komp sa: sudo /sbin/shutdown komandom (mora bas ovako ispisano, bez obzira na sudo nece traziti sifru i ne moze samo shutdown, mora /sbin/shutdown. mogu opcije dalje normalno).

Instalira se program notify-send:
sudo apt-get install notify-osd

U sudo gedit /home/toxic/.lircrc se doda sledeci niz:
Kod:
begin

    prog = irexec
    button = KEY_CANCEL
    config = notify-send "SHUTDOWN ABORTED" && sudo /sbin/shutdown -c

end

begin

    prog = irexec
    button = KEY_MENU
    config = tvtime-command SLEEP

end

begin

    prog = irexec
    button = KEY_RED
    config = tvtime-command SLEEP && notify-send "SHUTDOWN IN 60 MIN!" && sudo /sbin/shutdown -P 65 &

end

begin

    prog = irexec
    button = KEY_GREEN
    config = notify-send "SHUTDOWN IN 90 MIN!" && sudo /sbin/shutdown -P 95 &

end

begin

    prog = irexec
    button = KEY_YELLOW
    config = notify-send "SHUTDOWN IN 120 MIN!" && sudo /sbin/shutdown -P 125 &

end

begin

    prog = irexec
    button = KEY_BLUE
    config = notify-send "SHUTDOWN IN 180 MIN!" && sudo /sbin/shutdown -P 185 &

end
Ovde se kombinuju komande za gasenje TVTime-a (SLEEP), notifikacije (notify-send, pod navodnicima je sama notifikacija), gasenje kompa (sudo /sbin/shutdown -P, brojka je vreme) i prekid odlozenog gasenja (sudo /sbin/shutdown -c). SLEEP je neophodan jer ako se TVTime na ovaj nacin (KILLALL ne moze) ne ugasi pocne sustanje koje traje i posto se komp kasnije upali sve dok se TVTime ne upali opet.

Trenutno .lircrc izgleda ovako:
Spoiler za lircrc:
Kod:
begin

    prog = irexec

    button = KEY_TV

    config = tvtime &

    config = tvtime-command QUIT

end

begin

    prog = irexec

    button = KEY_ZOOM

    config = tvtime-command TOGGLE_FULLSCREEN

end

begin

    prog = irexec

    button = KEY_MUTE

    config = amixer sset Master toggle

end

begin

    prog = irexec

    button = KEY_CHANNELUP

    config = tvtime-command UP

end

begin

    prog = irexec

    button = KEY_CHANNELDOWN

    config = tvtime-command DOWN

end

begin

    prog = irexec

    button = KEY_VOLUMEUP

    config = amixer sset Line 2+ && mixer sset Master 2+

end

begin

    prog = irexec

    button = KEY_VOLUMEDOWN

    config = amixer sset Line 2- && mixer sset Master 2-

end

begin

    prog = irexec

    button = KEY_LAST

    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

begin

    prog = irexec

    button = KEY_CANCEL

    config = notify-send "SHUTDOWN ABORTED" && sudo /sbin/shutdown -c

end

begin

    prog = irexec

    button = KEY_MENU

    config = tvtime-command SLEEP

end

begin

    prog = irexec

    button = KEY_RED

    config = tvtime-command SLEEP && notify-send "SHUTDOWN IN 60 MIN!" && sudo /sbin/shutdown -P 65 &

end

begin

    prog = irexec

    button = KEY_GREEN

    config = notify-send "SHUTDOWN IN 90 MIN!" && sudo /sbin/shutdown -P 95 &

end

begin

    prog = irexec

    button = KEY_YELLOW

    config = notify-send "SHUTDOWN IN 120 MIN!" && sudo /sbin/shutdown -P 125 &

end

begin

    prog = irexec

    button = KEY_BLUE

    config = notify-send "SHUTDOWN IN 180 MIN!" && sudo /sbin/shutdown -P 185 &

end

begin

    prog = irexec

    button = KEY_VIDEO

    config = xte 'keydown Alt_L' 'keydown F4' 'keyup Alt_L' 'keyup F4'

end

begin

    prog = irexec

    button = KEY_AUDIO

    config = smplayer &

end

begin

    prog = irexec

    button = KEY_TEXT

    config = tvtime-command PICTURE

end

begin

    prog = irexec

    button = KEY_CHANNEL

    config = tvtime-command PICTURE_UP

end

begin

    prog = irexec

    button = KEY_TV2

    config = tvtime-command PICTURE_DOWN

end

begin

    prog = irexec

    button = KEY_CLEAR

    config = tvtime-command SAVE_PICTURE_GLOBAL

end

begin

    prog = irexec

    button = KEY_INFO

    config = tvtime-command DISPLAY_INFO

end

begin

    prog = irexec

    button = KEY_CAMERA

    config = tvtime-command DISPLAY_MESSAGE

end

begin

    prog = irexec

    button = KEY_LEFT

    config = xte 'key Left'

end

begin

    prog = irexec

    button = KEY_RIGHT

    config = tvtime-command RIGHT

end

begin

    prog = irexec

    button = KEY_LANGUAGE

    config = xte 'key Tab'

end

begin

    prog = irexec

    button = KEY_RECORD

    config = xte 'key u'

end

begin

    prog = irexec

    button = KEY_PREVIOUS

    config = xte 'key z'

end

begin

    prog = irexec

    button = KEY_NEXT

    config = xte 'key x'

end

begin

    prog = irexec

    button = KEY_TIME

    config = xte 'key f'

end

begin

    prog = irexec

    button = KEY_PLAYPAUSE

    config = xte 'key v'

end

begin

    prog = irexec

    button = KEY_REWIND

    config = xte 'key p'

end

begin

    prog = irexec

    button = KEY_STOP

    config = xte 'keydown Alt_L' 'keydown Tab' 'keyup Alt_L' 'keyup Tab'

end

begin

    prog = irexec

    button = KEY_FASTFORWARD

    config = xte 'key n'

end

Dodato je brdo komandi.

Evo i novog, ispravljnog uputstva za instalaciju i setovanje lirc-a.

Poslednja ispravka: toxic (6.12.2014 u 23:30)
toxic je offline   Odgovor sa citatom ove poruke
Odgovor

Bookmarks sajtovi

Alatke vezane za temu
Vrste prikaza

Vaš status
Ne možete postavljati teme
Ne možete odgovarati na poruke
Ne možete slati priloge uz poruke
Ne možete prepravljati svoje poruke

BB kod: uključeno
Smajliji: uključeno
[IMG] kod: uključeno
HTML kod: isključeno


Slične teme
tema temu započeo forum Odgovora Poslednja poruka
WinFast tv2000 xp global, problem sa zvukom nsarke Video/TV softver 33 10.10.2016 11:40
Problem sa Leadtek Winfast TV2000 XP Global Ghost1996 Ostale komponente 7 22.2.2015 16:50
Ubuntu 9.10 review [od strane Windows korisnika] Djordje Turjacanin Slobodni softver 12 14.1.2010 15:56
Announcing Ubuntu 10.04 LTS: The Lucid Lynx DobroslaV Slobodni softver 8 29.9.2009 16:33
Winfast TV2000 xp global Lazar Cacak Video/TV softver 4 3.2.2009 17:50


Sva vremena su po Griniču +2 h. Sada je 13:32.


Powered by vBulletin® verzija 3.8.7
Copyright ©2000–2021, vBulletin Solutions, Inc.
Hosted by Beograd.com