LinHES Forums http://forum.linhes.org/ |
|
lirc with technisat TTS35AI http://forum.linhes.org/viewtopic.php?f=14&t=18332 |
Page 1 of 1 |
Author: | mercera_13 [ Fri May 23, 2008 7:27 am ] |
Post subject: | lirc with technisat TTS35AI |
I have been following this following guide (minus opening the remote) http://www.mythtv.co.nz/mythtv//?page_id=55 How do I do the last bit for knoppmyth: Code: (Finally!) Configuring mythbuntu!
One last file to modify, and then the mythbuntu can be configured. Woo hoo. We need to add the definition of this remote into the menu system for mythbuntu so that you can select it. Once again I’m using vi… I have setup the remote with lirc I just have no idea how to get knoppmyth to pick it up / use it. Does anyone have any ideas, if so it would be awesome! |
Author: | cliffsjunk [ Fri May 23, 2008 8:32 am ] |
Post subject: | |
Generally speaking, if it is not in the list of remotes, you set it up manually. To set it up manually you need to know what kind of LIRC (Linux Infrared Remote Control) hardware you have, both transmitting (to the set-top-box) and receiving (from the remote control). You will also need an *.conf file (a human readable text file that contains definitions for each button/function) for each of these. If your LIRC hardware is not a simple serial device, and is not in the list of remotes/set-top-boxes you will probably also need drivers and a set of installation instructions from the mfg of the LIRC device. If you will post information about your LIRC hardware and if you have or can acquire *.conf files for your devices (or are willing to make them with irrecord) then someone here might be able to help. Cliff |
Author: | mercera_13 [ Fri May 23, 2008 6:39 pm ] |
Post subject: | |
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 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 That is my remote settings (downloaded from the lirc website) Just checking, does it need .conf on the end of the file name? because atm it has no extention. |
Author: | mercera_13 [ Fri May 23, 2008 6:45 pm ] |
Post subject: | |
This is my /etc/init.d/lirc Code: #! /bin/sh
# # load_modules () { local MODULES_MISSING=false /bin/setserial /dev/ttyS0 uart none for mod in $* do modprobe -k $mod 2> /dev/null || MODULES_MISSING=true done if $MODULES_MISSING; then echo "#####################################################" echo "## I couldn't load the required kernel modules ##" echo "## You should install lirc-modules-source to build ##" echo "## kernel support for your hardware. ##" echo "#####################################################" echo "## If this message is not appropriate you may set ##" echo "## LOAD_MODULES=false in /etc/lirc/hardware.conf ##" echo "#####################################################" START_LIRCMD=false START_LIRCD=false fi } build_args () { local ARGS="$*" if [ -n "$DEVICE" ] && [ "$DEVICE" != "none" ]; then if [ -d /dev/lirc ] && [ "$DEVICE" = "/dev/lirc" ];then #new device names DEVICE="/dev/lirc/0" fi ARGS="--device=$DEVICE $ARGS" fi if [ -n "$DRIVER" ] && [ "$DRIVER" != "none" ]; then ARGS="--driver=$DRIVER $ARGS" fi echo $ARGS } test -f /usr/sbin/lircd || exit 0 test -f /usr/sbin/lircmd || exit 0 #test -f /etc/lirc/lircd.conf || exit 0 #test -f /etc/lirc/lircmd.conf || exit 0 START_LIRCMD=true START_LIRCD=true if [ ! -f /etc/lirc/lircd.conf ] \ || grep -q "^#UNCONFIGURED" /etc/lirc/lircd.conf;then if [ "$1" = "start" ]; then echo "##################################################" echo "## LIRC IS NOT CONFIGURED ##" echo "## ##" echo "## read /usr/share/doc/lirc/html/configure.html ##" echo "##################################################" fi START_LIRCD=false START_LIRCMD=false fi if [ ! -f /etc/lirc/lircmd.conf ] \ || grep -q "^#UNCONFIGURED" /etc/lirc/lircmd.conf;then START_LIRCMD=false fi if [ -f /etc/lirc/hardware.conf ];then . /etc/lirc/hardware.conf fi case "$1" in start) if [ "$LOAD_MODULES" = "true" ] && [ "$START_LIRCD" = "true" ]; then load_modules $MODULES fi echo -n "Starting lirc daemon:" if $START_LIRCD; then echo -n " lircd" LIRCD_ARGS=`build_args $LIRCD_ARGS` start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- $LIRCD_ARGS\ < /dev/null fi if $START_LIRCMD; then echo -n " lircmd" start-stop-daemon --start --quiet --exec /usr/sbin/lircmd \ < /dev/null fi echo "." ;; stop) echo -n "Stopping lirc daemon:" echo -n " lircmd" start-stop-daemon --stop --quiet --exec /usr/sbin/lircmd echo -n " lircd" start-stop-daemon --stop --quiet --exec /usr/sbin/lircd echo "." ;; reload|force-reload) if $START_LIRCD; then start-stop-daemon --stop --quiet --signal 1 --exec /usr/sbin/lircd fi if $START_LIRCMD; then start-stop-daemon --stop --quiet --signal 1 --exec /usr/sbin/lircmd fi ;; restart) $0 stop $0 start ;; *) echo "Usage: /etc/init.d/lircd {start|stop|reload|restart|force-reload}" exit 1 esac exit 0 |
Author: | cliffsjunk [ Sat May 24, 2008 11:05 pm ] |
Post subject: | |
A little background... Typically MythTV sits between the IR remote control and the set top box. You tell MythTV what to do via tha remote and then MythTV tells the set top box what to do. It is done this way so that MythTV can control the set top box to tell it to record when you are not there. So you press a button on the remote and MythTV receives the IR command that tells MythTV to schedule a recording for 3am. At 3am MythTV will sends an IR channel change command to the set top box. Your hardware appears to have a standard serial IR receiver. Once you set that up with LIRC you could control the MythTV menus, but that is only half the battle. From the link you gave it appears that there is a PCI card instead of a set top box. This PCI card needs to be controlled by a special driver, not by IR commands. You may find additional info here, and there are some email addresses and names of people that have this card: http://www.knoppmythwiki.org/index.php?id=PowerSearch&q=skystar2&where=content Google found a newbie post that said the driver may be stv0299 which is built into KnoppMyth, otherwise you may have to find drivers, download them, compile them, install them, set them up... These drivers are outside my area of knowledge. I hope that someone else that has used this card can help you. Cliff |
Author: | stinga [ Sun May 25, 2008 6:49 am ] |
Post subject: | |
If this is the remote that came with a DVB-S card and has a USB dongle then don't bother. It does work and it does work well, but it is a HID device, I.E. it acts like a keyboard, some of the buttons don't work and it can be hard, if not impossible, to make it work with all the other bits (xine, mplayer etc) I spent a bit of time testing it out, there is also a mod you can do to make some of the non-working buttons work. Also some of the keyboard code that are sent are just not able to be used by mythtv. |
Author: | heilig [ Sun May 25, 2008 2:01 pm ] |
Post subject: | |
If it has a USB dongle, and if you understand german, look here: http://mythwiki.de/index.php?title=Technisat_Skystar2_mit_USB_IR-Empf%C3%A4nger Instead of the config file provided there, I recommend mine Code: # ~/.mythtv/lircrc
# # LIRC config file for Technisat TTS35AI USB Remote # # # Mythtv configuration # Up Arrow begin prog = mythtv button = UP repeat = 0 config = Up end # Down Arrow begin prog = mythtv button = DOWN repeat = 0 config = Down end # Left Arrow begin prog = mythtv button = LEFT repeat = 0 config = Left end # Right Arrow begin prog = mythtv button = RIGHT repeat = 0 config = Right end # Mute begin prog = mythtv button = MUTE repeat = 0 config = F9 end # 1 begin prog = mythtv button = 1 repeat = 0 config = 1 end # 2 begin prog = mythtv button = 2 repeat = 0 config = 2 end # 3 begin prog = mythtv button = 3 repeat = 0 config = 3 end # 4 begin prog = mythtv button = 4 repeat = 0 config = 4 end # 5 begin prog = mythtv button = 5 repeat = 0 config = 5 end # 6 begin prog = mythtv button = 6 repeat = 0 config = 6 end # 7 begin prog = mythtv button = 7 repeat = 0 config = 7 end # 8 begin prog = mythtv button = 8 repeat = 0 config = 8 end # 9 begin prog = mythtv button = 9 repeat = 0 config = 9 end # 0 begin prog = mythtv button = 0 repeat = 0 config = 0 end # -/-- jump backward begin prog = mythtv button = -/-- repeat = 0 config = < end # A/B jump forward begin prog = mythtv button = A/B repeat = 0 config = > end # Red button - Escape begin prog = mythtv button = RED repeat = 1 config = Esc end # Green button - Browse begin prog = mythtv button = GREEN repeat = 0 config = O end # Green button - Jump to Previous Commercial Marker begin prog = mythtv button = GREEN repeat = 0 config = Q end # Blue button - jump to Next Commercial marker / Load Comercial Marking List begin prog = mythtv button = BLUE repeat = 0 config = Z end # OK begin prog = mythtv button = OK repeat = 0 config = Space end # SFI - Switch to channel in EPG begin prog = mythtv button = SFI repeat = 0 config = X end # Exit - Pause/Play begin prog = mythtv button = EXIT repeat = 0 config = p end # INFO - Info on program/show/... begin prog = mythtv button = INFO repeat = 0 config = I end # TV/RADIO - Recording on/off begin prog = mythtv button = TV/RADIO repeat = 0 config = R end # MENU - Menu/EPG begin prog = mythtv button = MENU repeat = 0 config = M end # TXT - PageUp, Jump forward begin prog = mythtv button = TXT repeat = 0 config = PgUp end # STOP - PageDown, Jump backward begin prog = mythtv button = STOP repeat = 0 config = PgDown end # EXT - Delete begin prog = mythtv button = EXT repeat = 0 config = D end ############################################### # # Mythwelcome # Up Arrow begin prog = mythwelcome button = UP repeat = 0 config = Up end # Down Arrow begin prog = mythwelcome button = DOWN repeat = 0 config = Down end # Left Arrow begin prog = mythwelcome button = LEFT repeat = 0 config = Left end # Right Arrow begin prog = mythwelcome button = RIGHT repeat = 0 config = Right end # MENU - Menu begin prog = mythwelcome button = MENU repeat = 0 config = M end # INFO - Info on settings begin prog = mythwelcome button = INFO repeat = 0 config = I end ##################################################### # # mplayer # # Up Arrow - Next Chapter begin prog = mplayer button = UP repeat = 0 config = seek_chapter +1 end # Down Arrow begin prog = mplayer button = DOWN repeat = 0 config = seek_chapter -1 end # Left Arrow begin prog = mplayer button = LEFT repeat = 0 config = seek -10 end # Right Arrow begin prog = mplayer button = RIGHT repeat = 0 config = seek +10 end # Mute begin prog = mplayer button = MUTE repeat = 0 config = mute end # 1 UNIMPLEMENTED begin prog = mplayer button = 1 repeat = 0 config = 1 end # 2 UNIMPLEMENTED begin prog = mplayer button = 2 repeat = 0 config = 2 end # 3 UNIMPLEMENTED begin prog = mplayer button = 3 repeat = 0 config = 3 end # 4 UNIMPLEMENTED begin prog = mplayer button = 4 repeat = 0 config = 4 end # 5 UNIMPLEMENTED begin prog = mplayer button = 5 repeat = 0 config = 5 end # 6 UNIMPLEMENTED begin prog = mplayer button = 6 repeat = 0 config = 6 end # 7 UNIMPLEMENTED begin prog = mplayer button = 7 repeat = 0 config = 7 end # 8 UNIMPLEMENTED begin prog = mplayer button = 8 repeat = 0 config = 8 end # 9 UNIMPLEMENTED begin prog = mplayer button = 9 repeat = 0 config = 9 end # 0 begin prog = mplayer button = 0 repeat = 0 config = 0 end # -/-- jump backward begin prog = mplayer button = -/-- repeat = 0 config = seek -100 end # A/B jump forward begin prog = mplayer button = A/B repeat = 0 config = seek +100 end # Red button - Escape/quit begin prog = mplayer button = RED repeat = 1 config = quit end # Green button - Browse UNIMPLEMENTED begin prog = mplayer button = GREEN repeat = 0 config = end # Green button - Jump to Previous Commercial Marker UNIMPLEMENTED begin prog = mplayer button = GREEN repeat = 0 config = Q end # Blue button - jump to Next Commercial marker / Load Comercial Marking List UNIMPLEMENTED begin prog = mplayer button = BLUE repeat = 0 config = Z end # OK UNIMPLEMENTED begin prog = mplayer button = OK repeat = 0 config = Enter end # SFI - Switch to channel in EPG UNIMPLEMENTED begin prog = mplayer button = SFI repeat = 0 config = X end # Exit - Pause/Play begin prog = mplayer button = EXIT repeat = 0 config = pause end # INFO - Info on program/show/... begin prog = mplayer button = INFO repeat = 0 config = get_time_pos config = get_time_length config = get_meta_title config = get_meta_artist end # TV/RADIO - Recording on/off UNIMPLEMENTED begin prog = mplayer button = TV/RADIO repeat = 0 config = R end # MENU - Menu/EPG begin prog = mplayer button = MENU repeat = 0 config = menu end # TXT - PageUp, Jump forward begin prog = mplayer button = TXT repeat = 0 config = seek +300 end # STOP - PageDown, Jump backward begin prog = mplayer button = STOP repeat = 0 config = seek -300 end # EXT - Delete UNIMPLEMENTED begin prog = mplayer button = EXT repeat = 0 config = D end There are some (still incomplete) settings for mplayer, which is sufficient for me so far. No MAME, no Xine (yet). I also made a picture describing the keys. If I can find out how to attach an image, I'll edit this post. jens |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |