Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Obecná podpora => Téma založeno: spacekkt 05 Května 2008, 00:40:07
-
Mam trosku problem s nastavenim lirc. Nemam podle mne spravne moduly do jadra..
Pri zavedeni potrebneho modulu (navod z wiki) pise tohle
spacek@obyvakcomp:~$ modprobe lirc_i2c
WARNING: Error inserting lirc_dev (/lib/modules/2.6.24-16-generic/updates/dkms/lirc_dev.ko): Operation not permitted
FATAL: Error inserting lirc_i2c (/lib/modules/2.6.24-16-generic/updates/dkms/lirc_i2c.ko): Operation not permitted
tak nejak nemam tucha co s tim....Mam pripojenej k seriovemu portu stavenej prevodnik kterej asi dle osciloskopu beha.
Diky za jakekoliv popichnuti spravnym smerem...
-
sudo modprobe lirc_i2c
-
Ani jako root to nejde to jsem samozrejme delal jako root jen kdyy jsem psal do fora jsem nebyl jako root...
viz:
root@obyvakcomp:/home/spacek# modprobe lirc_i2c
WARNING: Error inserting lirc_dev (/lib/modules/2.6.24-16-generic/updates/dkms/lirc_dev.ko): Invalid module format
FATAL: Error inserting lirc_i2c (/lib/modules/2.6.24-16-generic/updates/dkms/lirc_i2c.ko): Invalid module format
-
Pokud se nepletu, tak na obyčejný sériový příjmač bys neměl i2c vůbec potřebovat - stačí lirc_serial, v nastavení vybrat správný port, ten odpojit a mohlo by to naběhnout:
/etc/init.d/lirc stop
setserial /dev/ttyS0 uart none (resp. ttyS1,2,3... podle sériového portu)
/etc/init.d/lirc start
Doplním svůj /etc/sysconfig/lirc pro sériový infrasnímač od karty Technisat (je to z opensuse, na ubuntu je to asi /etc/lirc/hardware.conf)
## Path: Hardware/Lirc
## Description: lirc (infrared remote control) configuration
## Type: string
## Default: "660"
## ServiceRestart: lirc
#
# permissions for /dev/lircd
#
LIRCD_DEV_PERMISSIONS="660"
## Type: string
## Default: "root:video"
#
# owner and group for /dev/lircd
#
LIRCD_DEV_OWNER="root:video"
## Type: string
## Default: ""
#
# use given driver
#
LIRCD_DRIVER="default"
# LIRCD_DRIVER="pinsys"
## Type: string
## Default: ""
#
# read from given device
#
LIRCD_DEVICE="/dev/lirc"
# LIRCD_DEVICE="/dev/ttyS3"
#LIRCD_DEVICE=/dev/input/event5
## Type: string(lirc_bt829,lirc_gpio,lirc_i2c,lirc_it87,lirc_parallel,lirc_sir,ir-kbd-i2c,ir-kbd-gpio)
## Default: ""
#
# load given lirc driver module
#
LIRC_MODULE="lirc_serial"
# LIRC_MODULE=lirc_i2c
## Type: string
## Default: ""
#
# listen for network connections on specified port.
# WARNING: don't use this on a machine with an internet
# connection as lircd is running as root!
#
LIRCD_LISTENPORT=""
## Type: string
## Default: ""
#
# connect lircd to specified host
#
LIRCD_CONNECT=""
Potom k dálkovému ovladači /etc/lircd.conf (ovladače technisat, potom pinnacle a nakonec jednotlačítkový fisherprice :) správnou definici ke svému ovladači stáhneš z www.lirc.org:
#
# 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
begin remote
name Pinnacle_RC42D
bits 13
flags RC5|CONST_LENGTH
eps 30
aeps 100
one 909 858
zero 909 858
plead 937
gap 113162
toggle_bit_mask 0x0
begin codes
MUTE 0x19C1
POWER 0x11F9
CTVERECSETREMIRADKY 0x19E5
TV 0x11E6
EPG 0x19E7
A_RED 0x11C3
B_GREEN 0x19C4
C_YELLOW 0x11C5
OTAZNIK_BLUE 0x19C6
VOL_PLUS 0x11E8
VOL_MINUS 0x19E9
PINNACLE 0x11F3
CH_PLUS 0x19C8
CH_MINUS 0x11C9
UP 0x19CA
LEFT 0x11CC
OK 0x19F6
RIGHT 0x11CD
DOWN 0x19CB
BACK 0x11F0
JUMP 0x19EA
CTVERECVECTVERCI 0x11C2
PAUSE 0x19E1
RED_IN_THE_MIDDLE 0x11FF
PREV 0x19E0
PLAY 0x11EB
FFORWARD 0x19E2
BEGINNING 0x11E3
STOP 0x19FC
END 0x11E4
1 0x19CE
2 0x11CF
3 0x19D1
4 0x11D2
5 0x11D4
6 0x19D5
7 0x11D7
8 0x19D8
9 0x11DA
CAPS_NUM 0x19DB
0 0x11DD
DEL 0x19DE
end codes
end remote
# 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-CVS(default) on Fri Sep 21 22:56:39 2007
#
# contributed by
#
# brand: Fisher Price C0108
# model no. of remote control:
# devices being controlled by this remote:
#
begin remote
name fisherprice
flags RAW_CODES|CONST_LENGTH
eps 30
aeps 100
ptrail 887
repeat 0 0
gap 113152
begin raw_codes
name nota
121 839 864 824 864 821
864 822 891
end raw_codes
end remote
a nakonec konfigurace lirc pro mythtv .lircrc v domovském adresáři (na který vede symlink z .mythtv)
begin
prog = mythtv
button = 0
repeat = 3
config = 0
end
begin
prog = mythtv
button = 1
repeat = 3
config = 1
end
begin
prog = mythtv
button = 2
repeat = 3
config = 2
end
begin
prog = mythtv
button = 3
repeat = 3
config = 3
end
begin
prog = mythtv
button = 4
repeat = 3
config = 4
end
begin
prog = mythtv
button = 5
repeat = 3
config = 5
end
begin
prog = mythtv
button = 6
repeat = 3
config = 6
end
begin
prog = mythtv
button = 7
repeat = 3
config = 7
end
begin
prog = mythtv
button = 8
repeat = 3
config = 8
end
begin
prog = mythtv
button = 9
repeat = 3
config = 9
end
begin
prog = mythtv
button = UP
repeat = 3
config = Up
end
begin
prog = mythtv
button = DOWN
repeat = 3
config = Down
end
begin
prog = mythtv
button = LEFT
repeat = 3
config = Left
end
begin
prog = mythtv
button = RIGHT
repeat = 3
config = Right
end
begin
prog = mythtv
button = OK
repeat = 3
config = Space
end
begin
prog = mythtv
button = POWER
repeat = 3
config = Esc
end
# pinnacle
begin
prog = mythtv
button = BACK
repeat = 2
config = Esc
end
begin
prog = mythtv
button = Red
repeat = 3
config = Esc
end
begin
prog = mythtv
button = MUTE
repeat = 2
config = |
end
begin
prog = mythtv
button = STOP
repeat = 3
config = p
end
# fisherprice
begin
prog = mythtv
button = nota
repeat = 3
config = p
end
# pinnacle
begin
prog = mythtv
button = PAUSE
repeat = 2
config = p
end
begin
prog = mythtv
button = INFO
repeat = 3
config = I
end
# pinnacle
begin
prog = mythtv
button = CTVERECVECTVERCI
repeat = 2
config = I
end
# technisat
begin
prog = mythtv
button = Menu
repeat = 3
config = M
end
# pinnacle
begin
prog = mythtv
button = PINNACLE
repeat = 2
config = M
end
# technisat
begin
prog = mythtv
button = TV/Radio
repeat = 3
config = Shift+T
end
begin
prog = mythtv
button = Exit
repeat = 3
config = Esc
end
begin
prog = mythtv
button = -/--
repeat = 3
config = PgDown
end
begin
prog = mythtv
button = A/B
repeat = 3
config = PgUp
end
# Pinnacle
begin
prog = mythtv
button = BEGINNING
repeat = 2
config = PgDown
end
begin
prog = mythtv
button = END
repeat = 2
config = PgUp
end
# technisat
begin
prog = mythtv
button = Green
repeat = 3
config = Z
end
begin
prog = mythtv
button = SFI
repeat = 3
config = Shift+G
end
# technisat - hlasitost
begin
prog = mythtv
button = Hilfe
repeat = 2
config = ]
end
begin
prog = mythtv
button = HILFE2
repeat = 2
config = [
end
# pinnacle - hlasitost
begin
prog = mythtv
button = VOL_PLUS
repeat = 2
config = ]
end
begin
prog = mythtv
button = VOL_MINUS
repeat = 2
config = [
end
# pinnacle - to co neni na technisatu
begin
prog = mythtv
button = DEL
repeat = 2
config = D
end
# DALSI PROGRAM
# mplayer
begin
prog = mplayer
button = MUTE
config = mute
end
begin
prog = mplayer
button = POWER
config = quit 166
end
begin
prog = mplayer
button = 1
repeat = 1
config = volume 1
end
begin
prog = mplayer
button = 2
repeat = 2
config = dvdnav 1
end
begin
prog = mplayer
button = 3
repeat = 3
config = seek 60
end
begin
prog = mplayer
button = 4
repeat = 2
config = dvdnav 3
end
begin
prog = mplayer
button = 5
repeat = 2
config = dvdnav 6
end
begin
prog = mplayer
button = 6
repeat = 2
config = dvdnav 4
end
begin
prog = mplayer
button = 7
repeat = 1
config = volume -1
end
begin
prog = mplayer
button = 8
repeat = 2
config = dvdnav 2
end
begin
prog = mplayer
button = 9
repeat = 3
config = seek -60
end
begin
prog = mplayer
button = 0
repeat = 2
config = dvdnav 5
end
begin
prog = mplayer
button = RED
config = quit 166
end
begin
prog = mplayer
button = GREEN
config = play
end
begin
prog = mplayer
button = STOP
config = pause
end
begin
prog = mplayer
button = BLUE
config = play_dvd hide_menu
end
begin
prog = mplayer
button = LEFT
config = volume -1
end
begin
prog = mplayer
button = RIGHT
config = volume 1
end
begin
prog = mplayer
button = Hilfe
repeat = 2
config = volume 1
end
begin
prog = mplayer
button = HILFE2
repeat = 2
config = volume -1
end
# pinnacle - hlasitost - mplayer
begin
prog = mplayer
button = VOL_PLUS
repeat = 2
config = volume 1
end
begin
prog = mplayer
button = VOL_MINUS
repeat = 2
config = volume -1
end
begin
prog = mplayer
button = UP
repeat = 2
config = seek 60
end
begin
prog = mplayer
button = DOWN
repeat = 2
config = seek -60
end
# pinnacle posuv
begin
prog = mplayer
button = FFORWARD
repeat = 2
config = seek 30
end
begin
prog = mplayer
button = PREV
repeat = 2
config = seek -30
end
begin
prog = mplayer
button = BEGINNING
repeat = 2
config = seek -180
end
begin
prog = mplayer
button = END
repeat = 2
config = seek 180
end
# KONEC pinnacle posuvu
begin
prog = mplayer
button = OK
config = pause
end
begin
prog = mplayer
button = INFO
config = osd
end
begin
prog = mplayer
button = MENU
config = menu toggle
end
# pinnacle menu a info
begin
prog = mplayer
button = CTVERECVECTVERCI
config = osd
end
begin
prog = mplayer
button = PINNACLE
config = menu toggle
end
# KONEC pinnacle menu a info
begin
prog = mplayer
button = TXT
config = sub_visibility
end
# begin
# prog = mplayer
# button = HILFE2
# repeat = 32
# config = vo_fullscreen
# end
# fisherprice mplayer
begin
prog = mplayer
button = nota
config = pause
end
Doplním, že na ubuntu (7.04) jsem lirc vždy rozchodil podle tohoto návodu: https://help.ubuntu.com/community/InstallLirc/Feisty?highlight=(lirc) i když občas to nebylo napoprvé :) teď je tam už verze i pro 8.04, tak třeba to zafunguje...
-
Mohl bych poprosit jeste o vypis z hardware.conf ? porad si nejsem jit vsemi nastavenimy..... Diky ....
-
Možno ti pomôžu moje: Poznámky z rozchodenia Lirc (http://forum.ubuntu.cz/index.php?topic=11067.0)
-
Mohl bych poprosit jeste o vypis z hardware.conf ? porad si nejsem jit vsemi nastavenimy..... Diky ....
Měl by to být ten první soubor - na suse se všechno jmenuje jinak, ale jsem si téměř jist, že /etc/sysconfig/lirc = hardware.conf kdekoli jinde :)