[mythtv-users] lirc, fastmedia remote - partially working
Lee Alkureishi
lee_alkureishi at hotmail.com
Fri Sep 5 05:16:32 UTC 2008
Hi all,
I'm setting up my mythbuntu 8.04 box, with a packard bell fastmedia
serial remote and lirc. The remote is working well, but I have two issues:
1. I have added an entry for the Escape key to the .lirc/mythtv file.
This works well in the menus (it takes me back to the parent menu), but
does not cancel me out of playing videos. i.e. I have no way of stopping
a playing video from the remote. Any ideas why this is the case, or any
way round it?
edit: the same thing happens with the other keys I assigned - skip
back/forward, and pause.
2. I'd like to assign the "SRS" button on the remote, to call a suspend
script and send the machine to S3 suspend mode. I see in the myth setup
there is a box for "Keypress application". I could put the path to a
suspend script there, but I don't know the correct syntax - how do I
tell lirc which key calls this script?
Also, can anyone tell me what the path to the existing mythbuntu/ubuntu
suspend script is?
Thanks in advance. I've attached the contents of my ~/.lirc/mythtv and
/etc/lirc/lircd.conf files below:
*Code:*
leeko at leeko-media:~$ cat /etc/lirc/lircd.conf
# Config file for Packard Bell Remotes (with repeat codes!)
# created by Samuel Wood (sjw at umr.edu)
#
# brand: Packard Bell Remote
# model: El Cheapo Packard Bell Remote
#
# This is a config file for the cheap excess Packard Bell remotes
# you sometimes can buy from online auctions like *URL:*www.onsale.com.
#
# The receiver that comes with it hooks into the serial port and works
# fine with lirc 0.5.4.
#
# The receiver that comes with the remote is near garbage. If
# you don't point almost directly at it, it will not detect. But
# it's simpler than building your own. :-)
#
# Repeat works fine for me. You just have to modify or add the
# "repeat=" lines in your .lircrc.
#
# irrecord was used to generate the file, then I modified and
# added repeat codes.
#
# The button names used are identical to what was printed on the
# remote, except for the number pads (using actual numbers like
# "1" and so forth did not seem to work. Similarly, '*' is Star
# and '#' is Hash. LMB and RMB refer to the two mousepad buttons
# on the left and right respectively.
#
# I still need to modify the gap setting. Right now, if you don't
# hold the button down long enough, it may not register, but if
# you hold it too long, it will detect a repeat or two. Feel free
# to modify this to work better. If you get it to work better, send
# me a copy. :-)
begin remote
name PackBell
bits 15
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100
header 9065 4500
one 597 532
zero 597 1643
ptrail 597
pre_data_bits 16
pre_data 0xF708
post_data_bits 1
post_data 0x0
gap 107000
repeat_bit 0
repeat 9050 2250
begin codes
Help 0x0000000000006F90
Phone 0x0000000000004FB0
Message 0x0000000000006E91
SRS 0x0000000000004EB1
CD 0x0000000000002FD0
Aux1 0x0000000000000FF0
Aux2 0x0000000000002ED1
Aux3 0x0000000000000EF1
LMB 0x00000000000023DC
RMB 0x000000000000639C
Up 0x00000000000037C8
Down 0x00000000000057A8
Left 0x0000000000007788
Right 0x00000000000017E8
Menu 0x0000000000007B84
Mute 0x0000000000003BC4
Enter 0x00000000000047B8
CHUp 0x00000000000027D8
CHDown 0x0000000000006798
VolUp 0x0000000000005BA4
VolDown 0x0000000000001BE4
Display 0x00000000000007F8
One 0x0000000000005EA1
Two 0x0000000000001EE1
Three 0x0000000000000BF4
Four 0x0000000000007E81
Five 0x0000000000003EC1
Six 0x0000000000004BB4
Seven 0x0000000000005FA0
Eight 0x0000000000001FE0
Nine 0x0000000000002BD4
Zero 0x0000000000003FC0
Star 0x0000000000007F80
Hash 0x0000000000006B94
end codes
end remote
leeko at leeko-media:~$
*Code:*
eeko at leeko-media:~$ cat .lirc/mythtv
# LIRCRC Auto Generated by Mythbuntu Lirc Generator
# Author(s): Mario Limonciello, Nick Fox
# Created for use with Mythbuntu
begin
remote = PackBell
prog = mythtv
button = Seven
config = 7
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = Right
config = Right
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = Mute
config = |
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = One
config = 1
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = Down
config = Down
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = Zero
config = 0
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = Menu
config = M
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = Six
config = 6
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = Two
config = 2
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = CHDown
config = Down
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = CHUp
config = Up
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = VolDown
config = [
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = VolUp
config = ]
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = Five
config = 5
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = Display
config = I
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = Four
config = 4
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = Enter
config = Return
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = Up
config = Up
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = Nine
config = 9
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = Three
config = 3
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = Enter
config = Enter
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = Eight
config = 8
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = Left
config = Left
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = Aux1
config = Escape
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = Aux2
config = r
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = Aux3
config = p
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = Phone
config = Home
repeat = 0
delay = 0
end
begin
remote = PackBell
prog = mythtv
button = Message
config = End
repeat = 0
delay = 0
end
leeko at leeko-media:~$
Best regards,
Leeko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20080904/391eaeea/attachment.htm
More information about the mythtv-users
mailing list