Portál AbcLinuxu, 2. listopadu 2025 23:11
irw, který spustíš a mačkáš tlačítka a hned vidiš, jestli komunikují nebo ne...
lsmod | grep lirc lirc_dev 14004 0Uz sa s tym hram dost dlho ale stale nic. irw nic nespravi..
HTPC:~# irrecord -d /dev/lirc0 TTS35AI irrecord - application for recording IR-codes for usage with lirc Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de) irrecord: could not get file information for /dev/lirc0 irrecord: default_init(): No such file or directory irrecord: could not init hardware (lircd running ? --> close it, check permissions) HTPC:~#Neviem ci sa mi oplati preinstalovat system kvoli takej somarine. V /dev/ nie je zariadenie lirc. A ani nic podobne.
root@htpc:/home/marek# irrecord -d /dev/lirc0 TTS35AI irrecord - application for recording IR-codes for usage with lirc Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de) irrecord: could not get file information for /dev/lirc0 irrecord: default_init(): No such file or directory irrecord: could not init hardware (lircd running ? --> close it, check permissions) root@htpc:/home/marek#Natiahol som moduly:
root@htpc:/home/marek# lsmod | grep lirc lirc_i2c 11268 0 lirc_dev 15860 1 lirc_i2c i2c_core 26112 8 cx88xx,ivtv,bttv,i2c_algo_bit,tveeprom,lirc_i2c,nvidia,i2c_viapro root@htpc:/home/marekJadro je verzie :
root@htpc:/home/marek# uname -r 2.6.22-14-generic root@htpc:/home/marek#
root@htpc:/home/marek# modprobe lirc_serial FATAL: Error inserting lirc_serial (/lib/modules/2.6.22-14-generic/ubuntu/media/lirc/lirc_serial/lirc_serial.ko): Device or resource busy root@htpc:/home/marek#
htpc@htpc:~$ sudo setserial /dev/ttyS0 uart none [sudo] password for htpc: htpc@htpc:~$ sudo modprobe lirc_serial htpc@htpc:~$Ale nevytvorilo sa mi zariadenie /dev/lirc ale
htpc@htpc:~$ ls /dev/ |grep lirc lirc0Taksom pouzil lirc0. Mode2 vypisuje. Tak je vsetko v poriadku. Ale v mythbuntu to stale nechce ist. Je nieco spatne?
begin
prog =irexec
button =mute
repeat =0
config = amixer set PCM mute
config = amixer set PCM unmute
end
begin
prog =irexec
button =volup
repeat =1
config = amixer set PCM 1+
end
begin
prog =irexec
button =1
repeat =1
config =/home/dan/.irexec/ct1.irc
end
obsah ct1.irc:
#!/bin/sh killall mplayer & sleep 1 mplayer -vf lavcdeint -pp 6 -fs "dvb://CT 1" &vypadá to nešikovně, ale lze tak spouštět funkce programů i přes dcop a pod., vlastně cokoli lze provést z příkazové řádky nebo skriptem (na tlačítku power již nemám vypnutí počítače, zkoušela to každá druhá návštěva :D)...
htpc@htpc:~$ irw 0000000000000002 00 Power /etc/lircd.conf 0000000000000002 01 Power /etc/lircd.conf 0000000000000002 02 Power /etc/lircd.conf 0000000000000001 00 Mute /etc/lircd.conf 0000000000000001 01 Mute /etc/lircd.conf 0000000000000001 02 Mute /etc/lircd.conf 0000000000000013 00 Down /etc/lircd.conf 0000000000000013 01 Down /etc/lircd.conf 000000000000001a 00 Vol+ /etc/lircd.conf 000000000000001a 01 Vol+ /etc/lircd.conf 000000000000001a 02 Vol+ /etc/lircd.conf 0000000000000014 00 Left /etc/lircd.conf 0000000000000014 01 Left /etc/lircd.conf 0000000000000014 02 Left /etc/lircd.conf 0000000000000016 00 Ok /etc/lircd.conf 0000000000000016 01 Ok /etc/lircd.conf 0000000000000016 02 Ok /etc/lircd.confNeake dalsie vypisy :
cat /home/htpc/.lircrc
begin
remote = TTS35AI
prog = mythtv
button = 7
config = 7
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mythtv
button = RIGHT
config = Right
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mythtv
button = MUTE
config = |
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mythtv
button = 1
config = 1
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mythtv
button = DOWN
config = Down
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mythtv
button = 0
config = 0
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mythtv
button = MENU
config = M
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mythtv
button = 6
config = 6
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mythtv
button = 2
config = 2
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mythtv
button = EXIT
config = D
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mythtv
button = VOL-
config = [
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mythtv
button = STOP
config = Escape
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mythtv
button = VOL+
config = ]
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mythtv
button = 5
config = 5
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mythtv
button = INFO
config = I
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mythtv
button = 4
config = 4
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mythtv
button = OK
config = Return
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mythtv
button = UP
config = Up
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mythtv
button = 9
config = 9
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mythtv
button = 3
config = 3
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mythtv
button = 8
config = 8
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mythtv
button = LEFT
config = Left
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mplayer
button = OK
config = pause
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mplayer
button = POWER
config = quit
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mplayer
button = MUTE
config = mute
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mplayer
button = VOL-
config = volume -1
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mplayer
button = STOP
config = quit
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mplayer
button = UP
config = seek +60 0
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mplayer
button = VOL+
config = volume +1
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mplayer
button = DOWN
config = seek -60 0
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mplayer
button = RIGHT
config = seek +6 0
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = mplayer
button = LEFT
config = seek -6 0
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = xine
button = INFO
config = OSDStreamInfos
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = xine
button = OK
config = EventSelect
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = xine
button = MUTE
config = Mute
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = xine
button = VOL-
config = Volume-
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = xine
button = STOP
config = Quit
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = xine
button = UP
config = EventUp
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = xine
button = VOL+
config = Volume+
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = xine
button = DOWN
config = EventDown
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = xine
button = RIGHT
config = EventRight
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = xine
button = LEFT
config = EventLeft
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = vlc
button = DOWN
config = key-nav-down
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = vlc
button = OK
config = key-nav-activate
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = vlc
button = MUTE
config = key-vol-mute
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = vlc
button = VOL-
config = key-vol-down
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = vlc
button = STOP
config = key-quit
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = vlc
button = UP
config = key-nav-up
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = vlc
button = VOL+
config = key-vol-up
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = vlc
button = RIGHT
config = key-nav-right
repeat = 0
delay = 0
end
begin
remote = TTS35AI
prog = vlc
button = LEFT
config = key-nav-left
repeat = 0
delay = 0
end
A HARDWARE.conf :
htpc@htpc:~$ cat /etc/lirc/hardware.conf # /etc/lirc/hardware.conf # #Chosen Remote Control REMOTE="Technisat TTS35AI" # Arguments which will be used when launching lircd 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. DRIVER="" # If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be # automatically used instead DEVICE="/dev/lirc0" MODULES="lirc_dev lirc_serial" # Default configuration files for your hardware if any LIRCD_CONF="technisat/TTS35AI" LIRCMD_CONF="" htpc@htpc:~$
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.