Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

Keymap on devinput LIRC

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


josu.lazkano at gmail

Sep 5, 2010, 9:27 AM

Post #1 of 3 (592 views)
Permalink
Keymap on devinput LIRC

Hello everybody! I just installed a backend/fronted and a fronted
system with a DVB-T. I want to control with a remote.

I have a devinput device and well configured LIRC, this is my config:

# cat hardware.conf
# /etc/lirc/hardware.conf
#
# 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

#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false

#Try to load appropriate kernel modules
LOAD_MODULES=true

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="devinput"
# If DEVICE is set to /dev/lirc and udev is in use /dev/lirc0 will be
# automatically used instead
DEVICE="/dev/input/event9"
MODULES=""

# Default configuration files for your hardware if any
LIRCD_CONF="/etc/lirc/lircd.conf"
LIRCMD_CONF="/etc/lirc/lircmd.conf"

# cat lircd.conf
begin remote

name Pinnacle PCTV 72e
bits 16
eps 30
aeps 100

one 0 0
zero 0 0
pre_data_bits 16
pre_data 0x1
gap 251982
toggle_bit_mask 0x16000000

begin codes
Mute 0x0071
Menu 0x008B
Shutdown 0x0074
VolUp 0x0073
VolDown 0x0072
ChannelUp 0x0192
ChannelDown 0x0193
1 0x0002
2 0x0003
3 0x0004
4 0x0005
5 0x0006
6 0x0007
7 0x0008
8 0x0009
9 0x000A
0 0x000B
FullScreen 0x0177
Text 0x0184
Back 0x00A8
Play 0x00CF
Ford 0x00D0
Record 0x00A7
Stop 0x0080
Help 0x00DF
end codes

end remote

How can I config to use on MythTV fronted? Where I must config it?

Thanks for all and best regards.

--
Josu Lazkano
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


josu.lazkano at gmail

Sep 6, 2010, 10:26 AM

Post #2 of 3 (560 views)
Permalink
Re: Keymap on devinput LIRC [In reply to]

Hello again, I configured the lircd.conf and I can get keys with "irw":

$ irw
0000000000010002 00 1 Pinnacle
0000000000010003 00 2 Pinnacle
00000000000100d0 00 Ford Pinnacle
00000000000100cf 00 Play Pinnacle
0000000000010080 00 Stop Pinnacle
0000000000010193 00 ChannelDown Pinnacle
0000000000010192 00 ChannelUp Pinnacle
0000000000010072 00 VolDown Pinnacle
0000000000010073 00 VolUp Pinnacle
000000000001008b 00 Menu Pinnacle

I configure .lircrc on my home this way:

$ cat .lircrc
begin
prog = mythtv
button = ChannelUp
repeat = 3
config = Up
end

begin
prog = mythtv
button = ChannelDown
repeat = 3
config = Down
end

begin
prog = mythtv
button = LEFT
repeat = 3
config = Left
end

# Play
begin
prog = mythtv
button = Play
config = Return
end

# Stop
begin
prog = mythtv
button = Stop
config = I
end

# Power Off/Exit
begin
prog = mythtv
button = Shutdown
config = Esc
end


# Pause
begin
prog = mythtv
button = Menu
repeat = 3
config = P
end

# Mute
begin
prog = mythtv
button = Mute
repeat = 3
config = |
end

# Record
begin
prog = mythtv
button = Record
repeat = 3
config = R
end

But, I can manage MythTV with the keys, shall I need to config some other files?

Thanks or all and best regards.

2010/9/5 Josu Lazkano <josu.lazkano [at] gmail>:
> Hello everybody! I just installed a backend/fronted and a fronted
> system with a DVB-T. I want to control with a remote.
>
> I have a devinput device and well configured LIRC, this is my config:
>
> # cat hardware.conf
> # /etc/lirc/hardware.conf
> #
> # 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
>
> #Don't start irexec, even if a good config file seems to exist.
> #START_IREXEC=false
>
> #Try to load appropriate kernel modules
> LOAD_MODULES=true
>
> # Run "lircd --driver=help" for a list of supported drivers.
> DRIVER="devinput"
> # If DEVICE is set to /dev/lirc and udev is in use /dev/lirc0 will be
> # automatically used instead
> DEVICE="/dev/input/event9"
> MODULES=""
>
> # Default configuration files for your hardware if any
> LIRCD_CONF="/etc/lirc/lircd.conf"
> LIRCMD_CONF="/etc/lirc/lircmd.conf"
>
> # cat lircd.conf
> begin remote
>
>  name  Pinnacle PCTV 72e
>  bits           16
>  eps            30
>  aeps          100
>
>  one             0     0
>  zero            0     0
>  pre_data_bits   16
>  pre_data       0x1
>  gap          251982
>  toggle_bit_mask 0x16000000
>
>      begin codes
>          Mute                     0x0071
>          Menu                     0x008B
>          Shutdown                 0x0074
>          VolUp                    0x0073
>          VolDown                  0x0072
>          ChannelUp                0x0192
>          ChannelDown              0x0193
>          1                        0x0002
>          2                        0x0003
>          3                        0x0004
>          4                        0x0005
>          5                        0x0006
>          6                        0x0007
>          7                        0x0008
>          8                        0x0009
>          9                        0x000A
>          0                        0x000B
>          FullScreen               0x0177
>          Text                     0x0184
>          Back                     0x00A8
>          Play                     0x00CF
>          Ford                     0x00D0
>          Record                   0x00A7
>          Stop                     0x0080
>          Help                     0x00DF
>      end codes
>
> end remote
>
> How can I config to use on MythTV fronted? Where I must config it?
>
> Thanks for all and best regards.
>
> --
> Josu Lazkano
>



--
Josu Lazkano
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


josu.lazkano at gmail

Sep 7, 2010, 1:33 PM

Post #3 of 3 (562 views)
Permalink
Re: Keymap on devinput LIRC [In reply to]

Hello again, I solved it. On Debian is necessary to change
"/var/run/lirc/lircd" for "/dev/lircd", I configure some keys this
way:

$ cat .lircrc
begin
remote = Pinnacle_PCTV_72e
prog = mythtv
button = ChannelUp
repeat = 3
config = Up
end

begin
remote = Pinnacle_PCTV_72e
prog = mythtv
button = ChannelDown
repeat = 3
config = Down
end

# Play
begin
remote = Pinnacle_PCTV_72e
prog = mythtv
button = Play
config = Return
end

And it works! I hope this help other.

Regards.

2010/9/6 Josu Lazkano <josu.lazkano [at] gmail>:
> Hello again, I configured the lircd.conf and I can get keys with "irw":
>
> $ irw
> 0000000000010002 00 1 Pinnacle
> 0000000000010003 00 2 Pinnacle
> 00000000000100d0 00 Ford Pinnacle
> 00000000000100cf 00 Play Pinnacle
> 0000000000010080 00 Stop Pinnacle
> 0000000000010193 00 ChannelDown Pinnacle
> 0000000000010192 00 ChannelUp Pinnacle
> 0000000000010072 00 VolDown Pinnacle
> 0000000000010073 00 VolUp Pinnacle
> 000000000001008b 00 Menu Pinnacle
>
> I configure .lircrc on my home this way:
>
> $ cat .lircrc
> begin
> prog = mythtv
> button = ChannelUp
> repeat = 3
> config = Up
> end
>
> begin
> prog = mythtv
> button = ChannelDown
> repeat = 3
> config = Down
> end
>
> begin
> prog = mythtv
> button = LEFT
> repeat = 3
> config = Left
> end
>
> # Play
> begin
> prog = mythtv
> button = Play
> config = Return
> end
>
> # Stop
> begin
> prog = mythtv
> button = Stop
> config = I
> end
>
> # Power Off/Exit
> begin
> prog = mythtv
> button = Shutdown
> config = Esc
> end
>
>
> # Pause
> begin
> prog = mythtv
> button = Menu
> repeat = 3
> config = P
> end
>
> # Mute
> begin
> prog = mythtv
> button = Mute
> repeat = 3
> config = |
> end
>
> # Record
> begin
> prog = mythtv
> button = Record
> repeat = 3
> config = R
> end
>
> But, I can manage MythTV with the keys, shall I need to config some other files?
>
> Thanks or all and best regards.
>
> 2010/9/5 Josu Lazkano <josu.lazkano [at] gmail>:
>> Hello everybody! I just installed a backend/fronted and a fronted
>> system with a DVB-T. I want to control with a remote.
>>
>> I have a devinput device and well configured LIRC, this is my config:
>>
>> # cat hardware.conf
>> # /etc/lirc/hardware.conf
>> #
>> # 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
>>
>> #Don't start irexec, even if a good config file seems to exist.
>> #START_IREXEC=false
>>
>> #Try to load appropriate kernel modules
>> LOAD_MODULES=true
>>
>> # Run "lircd --driver=help" for a list of supported drivers.
>> DRIVER="devinput"
>> # If DEVICE is set to /dev/lirc and udev is in use /dev/lirc0 will be
>> # automatically used instead
>> DEVICE="/dev/input/event9"
>> MODULES=""
>>
>> # Default configuration files for your hardware if any
>> LIRCD_CONF="/etc/lirc/lircd.conf"
>> LIRCMD_CONF="/etc/lirc/lircmd.conf"
>>
>> # cat lircd.conf
>> begin remote
>>
>>  name  Pinnacle PCTV 72e
>>  bits           16
>>  eps            30
>>  aeps          100
>>
>>  one             0     0
>>  zero            0     0
>>  pre_data_bits   16
>>  pre_data       0x1
>>  gap          251982
>>  toggle_bit_mask 0x16000000
>>
>>      begin codes
>>          Mute                     0x0071
>>          Menu                     0x008B
>>          Shutdown                 0x0074
>>          VolUp                    0x0073
>>          VolDown                  0x0072
>>          ChannelUp                0x0192
>>          ChannelDown              0x0193
>>          1                        0x0002
>>          2                        0x0003
>>          3                        0x0004
>>          4                        0x0005
>>          5                        0x0006
>>          6                        0x0007
>>          7                        0x0008
>>          8                        0x0009
>>          9                        0x000A
>>          0                        0x000B
>>          FullScreen               0x0177
>>          Text                     0x0184
>>          Back                     0x00A8
>>          Play                     0x00CF
>>          Ford                     0x00D0
>>          Record                   0x00A7
>>          Stop                     0x0080
>>          Help                     0x00DF
>>      end codes
>>
>> end remote
>>
>> How can I config to use on MythTV fronted? Where I must config it?
>>
>> Thanks for all and best regards.
>>
>> --
>> Josu Lazkano
>>
>
>
>
> --
> Josu Lazkano
>



--
Josu Lazkano
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.