<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<span class="postbody">Hi all,
<br>
<br>
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:
<br>
<br>
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? <br>
edit: the same thing happens with the other keys I assigned - skip
back/forward, and pause.<br>
<br>
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? <br>
<br>
Also, can anyone tell me what the path to the existing mythbuntu/ubuntu
suspend script is? <br>
<br>
Thanks in advance. I've attached the contents of my ~/.lirc/mythtv and
/etc/lirc/lircd.conf files below:
<br>
<br>
<br>
<br>
<br>
</span>
<table align="center" border="0" cellpadding="3" cellspacing="1"
width="90%">
<tbody>
<tr>
<td><span class="genmed"><b>Code:</b></span></td>
</tr>
<tr>
<td class="code"><br>
leeko@leeko-media:~$ cat /etc/lirc/lircd.conf
<br>
# Config file for Packard Bell Remotes (with repeat codes!)
<br>
# created by Samuel Wood (<a class="moz-txt-link-abbreviated" href="mailto:sjw@umr.edu">sjw@umr.edu</a>)
<br>
#
<br>
# brand: Packard Bell Remote
<br>
# model: El Cheapo Packard Bell Remote
<br>
#
<br>
# This is a config file for the cheap excess Packard Bell remotes
<br>
# you sometimes can buy from online auctions like <b>URL:</b><a class="moz-txt-link-abbreviated" href="http://www.onsale.com">www.onsale.com</a>.
<br>
#
<br>
# The receiver that comes with it hooks into the serial port and works
<br>
# fine with lirc 0.5.4.
<br>
#
<br>
# The receiver that comes with the remote is near garbage. If
<br>
# you don't point almost directly at it, it will not detect. But
<br>
# it's simpler than building your own. :-)
<br>
#
<br>
# Repeat works fine for me. You just have to modify or add the
<br>
# "repeat=" lines in your .lircrc.
<br>
#
<br>
# irrecord was used to generate the file, then I modified and
<br>
# added repeat codes.
<br>
#
<br>
# The button names used are identical to what was printed on the
<br>
# remote, except for the number pads (using actual numbers like
<br>
# "1" and so forth did not seem to work. Similarly, '*' is Star
<br>
# and '#' is Hash. LMB and RMB refer to the two mousepad buttons
<br>
# on the left and right respectively.
<br>
#
<br>
# I still need to modify the gap setting. Right now, if you don't
<br>
# hold the button down long enough, it may not register, but if
<br>
# you hold it too long, it will detect a repeat or two. Feel free
<br>
# to modify this to work better. If you get it to work better, send
<br>
# me a copy. :-)
<br>
<br>
begin remote
<br>
<br>
name PackBell
<br>
bits 15
<br>
flags SPACE_ENC|CONST_LENGTH
<br>
eps 30
<br>
aeps 100
<br>
<br>
header 9065 4500
<br>
one 597 532
<br>
zero 597 1643
<br>
ptrail 597
<br>
pre_data_bits 16
<br>
pre_data 0xF708
<br>
post_data_bits 1
<br>
post_data 0x0
<br>
gap 107000
<br>
repeat_bit 0
<br>
repeat 9050 2250
<br>
<br>
begin codes
<br>
Help 0x0000000000006F90
<br>
Phone 0x0000000000004FB0
<br>
Message 0x0000000000006E91
<br>
SRS 0x0000000000004EB1
<br>
CD 0x0000000000002FD0
<br>
Aux1 0x0000000000000FF0
<br>
Aux2 0x0000000000002ED1
<br>
Aux3 0x0000000000000EF1
<br>
LMB 0x00000000000023DC
<br>
RMB 0x000000000000639C
<br>
Up 0x00000000000037C8
<br>
Down 0x00000000000057A8
<br>
Left 0x0000000000007788
<br>
Right 0x00000000000017E8
<br>
Menu 0x0000000000007B84
<br>
Mute 0x0000000000003BC4
<br>
Enter 0x00000000000047B8
<br>
CHUp 0x00000000000027D8
<br>
CHDown 0x0000000000006798
<br>
VolUp 0x0000000000005BA4
<br>
VolDown 0x0000000000001BE4
<br>
Display 0x00000000000007F8
<br>
One 0x0000000000005EA1
<br>
Two 0x0000000000001EE1
<br>
Three 0x0000000000000BF4
<br>
Four 0x0000000000007E81
<br>
Five 0x0000000000003EC1
<br>
Six 0x0000000000004BB4
<br>
Seven 0x0000000000005FA0
<br>
Eight 0x0000000000001FE0
<br>
Nine 0x0000000000002BD4
<br>
Zero 0x0000000000003FC0
<br>
Star 0x0000000000007F80
<br>
Hash 0x0000000000006B94
<br>
end codes
<br>
<br>
end remote
<br>
<br>
<br>
leeko@leeko-media:~$
<br>
<br>
</td>
</tr>
</tbody>
</table>
<span class="postbody"><br>
<br>
<br>
</span>
<table align="center" border="0" cellpadding="3" cellspacing="1"
width="90%">
<tbody>
<tr>
<td><span class="genmed"><b>Code:</b></span></td>
</tr>
<tr>
<td class="code"><br>
eeko@leeko-media:~$ cat .lirc/mythtv
<br>
# LIRCRC Auto Generated by Mythbuntu Lirc Generator
<br>
# Author(s): Mario Limonciello, Nick Fox
<br>
# Created for use with Mythbuntu
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = Seven
<br>
config = 7
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = Right
<br>
config = Right
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = Mute
<br>
config = |
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = One
<br>
config = 1
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = Down
<br>
config = Down
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = Zero
<br>
config = 0
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = Menu
<br>
config = M
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = Six
<br>
config = 6
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = Two
<br>
config = 2
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = CHDown
<br>
config = Down
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = CHUp
<br>
config = Up
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = VolDown
<br>
config = [
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = VolUp
<br>
config = ]
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = Five
<br>
config = 5
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = Display
<br>
config = I
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = Four
<br>
config = 4
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = Enter
<br>
config = Return
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = Up
<br>
config = Up
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = Nine
<br>
config = 9
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = Three
<br>
config = 3
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = Enter
<br>
config = Enter
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = Eight
<br>
config = 8
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = Left
<br>
config = Left
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = Aux1
<br>
config = Escape
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = Aux2
<br>
config = r
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = Aux3
<br>
config = p
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = Phone
<br>
config = Home
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
<br>
begin
<br>
remote = PackBell
<br>
prog = mythtv
<br>
button = Message
<br>
config = End
<br>
repeat = 0
<br>
delay = 0
<br>
end
<br>
leeko@leeko-media:~$ <br>
</td>
</tr>
</tbody>
</table>
<span class="postbody"><br>
<br>
<br>
Best regards,
<br>
<br>
Leeko</span><!-- right top row table end --><!-- right bottom row start -->
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tbody>
<tr>
<td width="100%"><span class="postbody"><span class="gensmall"></span></span><br>
</td>
</tr>
</tbody>
</table>
</body>
</html>