View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri Jan 24, 2014 3:53 pm 
Offline
Joined: Sat May 12, 2007 2:41 am
Posts: 51
Location: Southern Germany
Just upgraded from R6.04 to R8.1 and everything's working again, including the remote.

To get the remote, a Technisat TTS35 with a USB receiver (looks like this, hope the link works), to work I put my lircd-technisat.conf and lircrc-technisat.txt in the directory /home/mythtv/remotes/Technisat_TTS35AI and selected the remote in LinHES settings.

But to make it work I had to create the file /etc/runit/lirc.sh:
Code:
#!/bin/sh

# lirc start for Technisat TT35 remote

LIRC_DRIVER="dev/input"
LIRC_DEVICE="name=USB IR Receiver USB IR Receiver"
/usr/sbin/lircd -r -n -d "$LIRC_DEVICE" --driver=$LIRC_DRIVER --output=/dev/lircd /etc/lircd.conf


Now, my question is: If I want to submit the files for inclusion in LinHES, is there anything I can do to make the process of creating the file in /etc/runit/lirc.sh automatic when selecting the remote in LinHES config?

In case anybody else uses this remote, I will attach the two files lircd-technisat.conf and lircrc-technisat.txt below.

Here are the files for this remote. Put them in /home/mythtv/remotes/Technisat_TTS35AI/
lircd-technisat.conf:
Code:
# brand: Technisat
# model no. of remote control: TTS35AI
# devices being controlled by this remote: Skystar2 / Airstar2
#
# Note: The codes for PROG+, PROG-, VOL+ and VOL- are double assigned
# These codes also appear by pressing UP, DOWN, LEFT or RIGHT

begin remote

  name      TTS35AI
  bits           32
  eps            30
  aeps          100

  one             0     0
  zero            0     0
  gap          107965
  toggle_bit      0


      begin codes
          MUTE                     0x80010032
          1                        0x80010002
          2                        0x80010003
          3                        0x80010004
          4                        0x80010005
          5                        0x80010006
          6                        0x80010007
          7                        0x80010008
          8                        0x80010009
          9                        0x8001000A
          0                        0x8001000B
          -/--                     0x80010013
          A/B                      0x8001001F
          RED                      0x8001003F
          GREEN                    0x80010040
          YELLOW                   0x80010041
          BLUE                     0x80010042
          UP                       0x80010067
          RIGHT                    0x8001006A
          DOWN                     0x8001006C
          LEFT                     0x80010069
          OK                       0x8001001C
          SFI                      0x80010012
          EXIT                     0x80010021
          INFO                     0x80010017
#         PROG+                    0x80010067
#         PROG-                    0x8001006C
          TV/RADIO                 0x80010043
          MENU                     0x8001003C
#         VOL+                     0x8001006A
#         VOL-                     0x80010069
          HELP                     0x80010017
          TXT                      0x80010014
          STOP                     0x80010019
          EXT                      0x8001002F
      end codes
end remote
 


lircrc-technisat.txt:
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


And finally a description of what the keys actually do is here


Top
 Profile  
 
PostPosted: Fri Jan 24, 2014 5:55 pm 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location: SC
Move the /etc/runit/lirc.sh you created to ~/remotes/Technisat_TTS35AI/ and rename it to remote.run http://linhes.org/projects/linhes/wiki/ ... remotesrun You will need to reselect your remote in the Service Menu so that the new remote.run file will be picked up. Once you have it working open a ticket and we can get it added to the system templates.


Top
 Profile  
 
PostPosted: Sun Jan 26, 2014 11:11 am 
Offline
Joined: Sat May 12, 2007 2:41 am
Posts: 51
Location: Southern Germany
Thanks brfransen! That is a great mechanism you (developers) implemented there. Works perfectly!

I have created ticket #956 with the files attached.

Jens


Top
 Profile  
 
PostPosted: Mon Jan 27, 2014 12:43 pm 
Offline
Site Admin
Joined: Fri Jun 11, 2004 7:58 am
Posts: 507
it does work well & it won't get wiped out by any updates


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu