View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 30 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Dec 28, 2006 10:45 am 
Offline
Joined: Fri Nov 25, 2005 10:22 pm
Posts: 73
R5D1 -> R5E50 Upgrade: MCE USB Remote no longer works

Like the subject says - I've upgraded from R5D1 to R5E50. The upgrade worked nearly perfectly; two (tiny) issues one posted here and the other, in another thread.

I carefully followed the upgrade thread - but I'm sure that I just missed something...

I edited the /etc/lirc/hardware.conf file from
Code:
DEVICE="/dev/lirc"
MODULES="lirc_dev lirc_i2c"


to:
Code:
DEVICE="/dev/lirc0"
MODULES="lirc_dev lirc_i2c"


I reran
Code:
>lirc-reconfig.sh
###################
### New MCE USB ###
###################

NOTE, the included lircrc is for the older MCEUSB and may not work.
If you have an updated version, please send it to knoppmyth@gmail.com
 System startup links for /etc/init.d/lirc already exist.
Stopping lirc daemon: lircmd lircd.
Starting lirc daemon: lircd.


It autodetected my remote.

And it updated my /etc/lirc/hardware.conf file to:
Code:
DEVICE="/dev/usb/hiddev0"
MODULES="lirc_dev lirc_mceusb2"


It generated an lircd.conf file that looked like this:
Code:
# cat lircd.conf
#
# RC-6 config file
#
# source: http://home.hccnet.nl/m.majoor/projects__remote_control.htm
#         http://home.hccnet.nl/m.majoor/pronto.pdf
#
# used by: Philips
#
#########
#
# Philips Media Center Edition remote control
# For use with the USB MCE ir receiver
#
# Dan Conti  dconti|acm.wwu.edu
#
# Radio, Print, RecTV are only available on the HP Media Center remote control
#

begin remote

  name mceusb
  bits           16
  flags RC6|CONST_LENGTH
  eps            30
  aeps          100

  header       2667   889
  one           444   444
  zero          444   444
  pre_data_bits 21
  pre_data      0x37FF0
  gap          105000
  toggle_bit     22
  rc6_mask     0x100000000


      begin codes

# starts at af
        Radio    0x00007baf
        Print    0x00007bb1
        Videos   0x00007bb5
        Pictures 0x00007bb6
        RecTV    0x00007bb7
        Music    0x00007bb8
        TV       0x00007bb9
# no ba - d8
        Guide    0x00007bd9
        LiveTV   0x00007bda
        DVD      0x00007bdb
        Back     0x00007bdc
        OK       0x00007bdd
        Right    0x00007bde
        Left     0x00007bdf
        Down     0x00007be0
        Up       0x00007be1
# no e2,e3
        Replay   0x00007be4
        Skip     0x00007be5
        Stop     0x00007be6
        Pause    0x00007be7
        Record   0x00007be8
        Play     0x00007be9
        Rewind   0x00007bea
        Forward  0x00007beb
        ChanDown 0x00007bec
        ChanUp   0x00007bed
        VolDown  0x00007bee
        VolUp    0x00007bef
        More     0x00007bf0
        Mute     0x00007bf1
        Home     0x00007bf2
        Power    0x00007bf3
        Enter    0x00007bf4
        Clear    0x00007bf5
        Nine     0x00007bf6
        Eight    0x00007bf7
        Seven    0x00007bf8
        Six      0x00007bf9
        Five     0x00007bfa
        Four     0x00007bfb
        Three    0x00007bfc
        Two      0x00007bfd
        One      0x00007bfe
        Zero     0x00007bff
      end codes

end remote


It also generated an lircrc file that it placed in /home/mythtv/.mythtv/lircrc with a soft link to that file in /home/mythtv named .lircrc.
File looks like this:
Code:
# my attempt at a config for the Windows Media Center USB remote

begin
    prog = irxevent
    button = Back
    config = Key Escape CurrentWindow
end

begin
    prog = irxevent
    button = One
    config = Key 1 CurrentWindow
end

begin
    prog = irxevent
    button = Two
    config = Key 2 CurrentWindow
end

begin
    prog = irxevent
    button = Three
    config = Key 3 CurrentWindow
end

begin
    prog = irxevent
    button = Four
    config = Key 4 CurrentWindow
end

begin
    prog = irxevent
    button = Five
    config = Key 5 CurrentWindow
end

begin
    prog = irxevent
    button = Six
    config = Key 6 CurrentWindow
end

begin
    prog = irxevent
    button = Seven
    config = Key 7 CurrentWindow
end

begin
    prog = irxevent
    button = Eight
    config = Key 8 CurrentWindow
end

begin
    prog = irxevent
    button = Nine
    config = Key 9 CurrentWindow
end

begin
    prog = irxevent
    button = Zero
    config = Key 0 CurrentWindow
end

begin
   prog = irxevent
   button = More
   config = Key I CurrentWindow
end

begin
    prog = irxevent
    button = Mute
    config = Key Shift-bar CurrentWindow
end

begin
    prog = irxevent
    button = VolUp
    config = Key bracketright CurrentWindow
end

begin
    prog = irxevent
    button = VolDown
    config = Key bracketleft CurrentWindow
end

begin
    prog = irxevent
    button = ChanUp
    config = Key Up CurrentWindow
end

begin
    prog = irxevent
    button = ChanDown
    config = Key Down CurrentWindow
end

begin
    prog = irxevent
    button = Up
    config = Key Up CurrentWindow
end

begin
    prog = irxevent
    button = Down
    config = Key Down CurrentWindow
end

begin
    prog = irxevent
    button = Left
    config = Key Left CurrentWindow
end

begin
    prog = irxevent
    button = Right
    config = Key Right CurrentWindow
end

begin
    prog = irxevent
    button = OK
    config = Key space CurrentWindow
end

begin
    prog = irxevent
    button = Guide
    config = Key M CurrentWindow
end

begin
   prog = irxevent
   button = Home
# This is the "Windows Logo" button
# I use it for commercial skip
    config = Key Z CurrentWindow
end

begin
   prog = irxevent
   button = Skip
    config = Key Page_Down CurrentWindow
 end

begin
  prog = irxevent
  button = Record
   config = Key R CurrentWindow
end

begin
    prog = irxevent
    button = Pause
    config = Key P CurrentWindow
end

begin
   prog = irxevent
   button = Replay
   config = Key Page_Up CurrentWindow
end

begin
    prog = irxevent
    button = Rewind
    config = Key Left CurrentWindow
end

begin
    prog = irxevent
    button = Play
    config = Key P CurrentWindow
end

begin
    prog = irxevent
    button = Forward
    config = Key Right CurrentWindow
end



And I tried my old - modified / working lircrc file too:
Code:
# ~/.mythtv/lircrc
#
# MythTV native LIRC    config file for
# the Microsoft Media Center Edition MCE 2005
# remote control
#
# By Sean O'Boyle, 2006/02/07
#

# Available Buttons
#Power
#Enter

# Numbers 0-9 - channel selection, EPG navigation, ff/rew speed setting (with stickykeys)
begin
   prog = mythtv
   button = Star
   config = \137
   repeat = 0
end

begin
   prog = mythtv
   button = Hash
   config = \137
   repeat = 0
end

begin
   prog = mythtv
   button = Zero
   config = 0
   repeat = 0
end
begin
   prog = mythtv
   button = One
   config = 1
   repeat = 0
end

begin
   prog = mythtv
   button = Two
   config = 2
   repeat = 0
end

begin
   prog = mythtv
   button = Three
   config = 3
   repeat = 0
end

begin
   prog = mythtv
   button = Four
   config = 4
   repeat = 0
end

begin
   prog = mythtv
   button = Five
   config = 5
   repeat = 0
end

begin
   prog = mythtv
   button = Six
   config = 6
   repeat = 0
end

begin
   prog = mythtv
   button = Seven
   config = 7
   repeat = 0
end

begin
   prog = mythtv
   button = Eight
   config = 8
   repeat = 0
end

begin
   prog = mythtv
   button = Nine
   config = 9
   repeat = 0
end


# Arrows - Scroll Left / Right, Up / Down
# Rewind, Fast-Forward, Channel Up, Channel Down
begin
   prog = mythtv
   button = Left
   config = Left
   repeat = 0
end

begin
   prog = mythtv
   button = Right
   config = Right
   repeat = 0
end

begin
   prog = mythtv
   button = Up
   config = Up
   repeat = 0
end

begin
   prog = mythtv
   button = Down
   config = Down
   repeat = 0
end

begin
   prog = mythtv
   button = ChanUp
   config = Up
   repeat = 0
end

begin
   prog = mythtv
   button = ChanDown
   config = Down
   repeat = 0
end

begin
   prog = mythtv
   button = Rewind
   config = Left
   repeat = 0
end

begin
   prog = mythtv
   button = Forward
   config = Right
   repeat = 0
end

# Enter - Select Item, Play (with stikykeys) set bookmark
begin
   prog = mythtv
   button = OK
   config = Space
   repeat = 0
end

# Cancel, Quit Playback
begin
   prog = mythtv
   button = Back
   config = Escape
   repeat = 0
end

# EPG (from watching TV), edit (from playback)
begin
   prog = mythtv
   button = Guide
   config = M
   repeat = 0
end

# Pause / Play
begin
   prog = mythtv
   button = Pause
   config = P
   repeat = 0
end

begin
   prog = mythtv
   button = Play
   config = P
   repeat = 0
end

# Stop
begin
   prog = mythtv
   button = Stop
   config = P
   repeat = 0
end


# TV: Skip to Previous Commercial Break Marker
# Music: Skip to previous track
begin
   prog = mythtv
   button = Skip
   config = Z
   repeat = 0
 end

# TV: Skip to Next Commercial Break Marker
# Music: Skip to next track
begin
   prog = mythtv
   button = Replay
   config = Q
   repeat = 0
end

begin
   prog = mythtv
   button = Record
   config = R
   repeat = 0
end

# Information
begin
   prog = mythtv
   button = More
   config = I
   repeat = 0
end

# Zoom
# cycle through zoom and fill modes:
# 4:3 aspect ratio, 16:9, 4:3 Zoom(like Pan and Scan),
# 16:9 Zoom, and 16:9 Stretch (eliminates black sidebars in TV signal)
begin
   prog = mythtv
   button = Home
# This is the "Windows Logo"    button
   config = W
   repeat = 0
end

# Tuner Card Cycle
# switch between multiple capture cards when watching TV
begin
   prog = mythtv
   button = LiveTV
   config = Y
   repeat = 0
end

# Signal Strength Meter Mode
# show signal strength instead of watching TV
begin
   prog = mythtv
   button = RecTV
   config = F7
   repeat = 0
end

# Help
# show help screen
begin
   prog = mythtv
   button = DVD
   config = F1
   repeat = 0
end

# Delete
begin
   prog = mythtv
   button = Clear
   config = D
   repeat = 0
end

# Sound
# + or - Cycle through audio streams
begin
        prog = mythtv
        button = Hash
        config = +
        repeat = 0
end

begin
        prog = mythtv
        button = Star
        config = -
        repeat = 0
end

begin
   prog = mythtv
   button = Mute
   config = Shift-bar
   repeat = 0
end

begin
   prog = mythtv
   button = VolUp
   config = bracketright
   repeat = 0
end

begin
   prog = mythtv
   button = VolDown
   config = bracketleft
   repeat = 0
end

##XINE

# Exit Xine
begin
   prog = xine
   button = Back
   config = Quit
end

# start playback
begin
   prog = xine
   button = Play
   repeat = 0
   config = Play
end

# playback pause toggle
begin
   prog = xine
   button = Pause
   repeat = 0
   config = Pause
end

# stop playback
begin
   prog = xine
   button = Stop
   repeat = 0
   config = Stop
end

begin
   prog = xine
   button = Up
   repeat = 4
   config = EventUp
end

begin
   prog = xine
   button = Down
   repeat = 4
   config = EventDown
end

begin
   prog = xine
   button = Left
   repeat = 4
   config = EventLeft
end

begin
   prog = xine
   button = Right
   repeat = 4
   config = EventRight
end

begin
   prog = xine
   button = OK
   repeat = 0
   config = EventSelect
end

begin
   prog = xine
   button = DVD
   repeat = 0
   config = Menu
end

begin
   prog = xine
   button = Guide
   repeat = 0
   config = RootMenu
end

# jump to next chapter
begin
   prog   = xine
   button = Skip
   repeat = 0
   config = EventNext
end

# jump to previous chapter
begin
   prog   = xine
   button = Replay
   repeat = 0
   config = EventPrior
end

begin
   prog = xine
   button = VolDown
   repeat = 0
   config = Volume-
end

begin
   prog = xine
   button = VolUp
   repeat = 0
   config = Volume+
end

begin
   prog = xine
   button = Forward
   repeat = 0
   config = SeekRelative+30
end

begin
   prog = xine
   button = Rewind
   repeat = 0
   config = SeekRelative-30
end

begin
   prog = xine
   button = Info
   repeat = 0
   config = OSDStreamInfos
end




I diff'd my R5D1 working lircd.conf file against the R5E50 file and there were no differences. I diff'd the unmodified R5D1 lircrc to the R5E50 file and there are no differences. My updated lircrc has too many diffs to bother diffing...

I get no response from my remote. Keyboard works fine - so this is an annoyance - but it's pretty much the last thing to get completely up in R5E50...

Any advice? Further debugging tips? Any logs I should be looking at to figure this out?

Thanks!

Sean


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 28, 2006 10:59 am 
Offline
Joined: Fri Nov 25, 2005 10:22 pm
Posts: 73
Looking at the kern.log I see:
Code:
Dec 28 02:40:22 mythtv kernel: lirc_dev: lirc_register_plugin: sample_rate: 0
Dec 28 02:40:22 mythtv kernel: lirc_mceusb2[2]: Philips eHome Infrared Transceiver on usb1:2
Dec 28 02:40:22 mythtv kernel: usbcore: registered new driver lirc_mceusb2


So everything is found correctly - I think.
Where do I look next? Any other logs? Isn't there a standalone test for lirc? What's the binary?

-seano


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 28, 2006 11:33 am 
Offline
Joined: Fri Nov 25, 2005 10:22 pm
Posts: 73
I see this routed to stderr when I run mythfrontend:
Code:
mythtv: could not connect to socket
mythtv: Connection refused
lirc_init failed for mythtv, see preceding messages
Could not initialize /dev/input/js0
open: No such file or directory
ioctl JSIOCGAXES: Bad file descriptor
no record for '/block/hdc/device' in database
no record for '/block/hdc/holders' in database
no record for '/block/hdc/queue' in database
no record for '/block/hdc/slaves' in database
no record for '/block/hdc/subsystem' in database
Failed to run 'cdrecord --scanbus'
SIP listening on IP Address 192.168.2.100:5060 NAT address 192.168.2.100


so could not connect to socket; lirc_init failed. At least I found an error...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 28, 2006 12:14 pm 
Offline
Joined: Mon Nov 28, 2005 9:05 pm
Posts: 200
From the command line, as root, type "irw" and hit enter. then try your remote buttons, does it resolve the button on the screen? it should look something like:

root@mythtv:~# irw
0000000000001795 00 DOWN test
0000000000001795 01 DOWN test
0000000000001797 00 RIGHT test
0000000000001797 01 RIGHT test
0000000000001796 00 LEFT test
0000000000001796 01 LEFT test
0000000000001795 00 DOWN test
0000000000001795 01 DOWN test
0000000000001794 00 UP test
0000000000001794 01 UP test
00000000000017a0 00 Ch+ test
00000000000017a0 01 Ch+ test

What do you get?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 28, 2006 12:45 pm 
Offline
Joined: Fri Nov 25, 2005 10:22 pm
Posts: 73
ethernut wrote:
From the command line, as root, type "irw" and hit enter.


Hi ethernut,

Thanks for the help!

Code:
root@mythtv:~# irw
connect: Connection refused



I ran it from an xterm after exiting mythfrontend. The backend is still running.

-sean


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 28, 2006 1:14 pm 
Offline
Joined: Fri Nov 25, 2005 10:22 pm
Posts: 73
Here's some wierdness - from a remote ssh shell:
Code:
root@mythtv:~# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 0471:0815 Philips
Bus 001 Device 001: ID 0000:0000
root@mythtv:~# lircd
root@mythtv:~# irw
root@mythtv:~# irw
connect: Connection refused
root@mythtv:~# lircd
root@mythtv:~# lircd
lircd: there seems to already be a lircd process with pid 3471
lircd: otherwise delete stale lockfile /var/run/lircd.pid
root@mythtv:~# irw
root@mythtv:~# irw
connect: Connection refused
root@mythtv:~#


It seems like I can get two copies of lircd running.
irw always returns to a prompt with no output.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 28, 2006 1:20 pm 
Offline
Joined: Thu Sep 07, 2006 11:20 am
Posts: 389
I also have this problem. Manually launching lircd with the device specified seems to work. I have not been able to find a config file setup which works. Currently, lircd will exit once it receives the first connection.

Run this as root:

lircd -d /dev/lirc0

then use the lircrc from the Ubuntu help web site.

https://help.ubuntu.com/community/Install_Lirc_Edgy

This combo works for me. However, you will have to edit the init script for lircd to make this stick on a reboot. Maybe someone knows the proper fix for this.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 28, 2006 1:34 pm 
Offline
Joined: Thu Sep 07, 2006 11:20 am
Posts: 389
Ok. I think I have the proper fix for this figured out. For a default R5E50 install:

edit /etc/init.d/lirc and change
from:
start-stop-daemon --start --quiet --exec /usr/sbin/lircd \
to:
start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- $LIRCD_ARGS \


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 28, 2006 1:43 pm 
Offline
Joined: Fri Nov 25, 2005 10:22 pm
Posts: 73
nharris wrote:
Ok. I think I have the proper fix for this figured out. For a default R5E50 install:

edit /etc/init.d/lirc and change
from:
start-stop-daemon --start --quiet --exec /usr/sbin/lircd \
to:
start-stop-daemon --start --quiet --exec /usr/sbin/lircd -- $LIRCD_ARGS \


If that really works then that's crazy! For previous KM versions it was the opposite... :lol:

I'll try it.

-seano


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 28, 2006 1:45 pm 
Offline
Joined: Tue Oct 24, 2006 9:50 pm
Posts: 13
That's very interesting, because there's been several earlier posts that recommend doing just the opposite.

Postscript - Seano, you beat me to the punch!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 28, 2006 4:14 pm 
Offline
Joined: Mon Nov 28, 2005 9:05 pm
Posts: 200
Well I hate to say this but your problem has to be in your /etc/lirc/hardware.conf

http://mysettopbox.tv/phpBB2/viewtopic.php?t=13108

;-) I had a similar issue in my post below:

http://mysettopbox.tv/phpBB2/viewtopic.php?t=13097

Do a clean reboot, dont touch anything and then log in as root, do a:

ps -ef | grep lirc

do you see the process running?

If you do that's what I'd see. then I would do an irw and the process would crash. now to a ps -ef | grep lirc is it still there? Bet not.
Not sure about the USB part but your symptoms are the same symtoms I was having. As a bandaid symlink /dev/lirc0 /dev/lirc (see my post above, but see Cecils response) and reboot, does it work now? ln -s /dev/lirc0 /dev/lirc

The Ether..


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 28, 2006 4:48 pm 
Offline
Joined: Fri Nov 25, 2005 10:22 pm
Posts: 73
ethernut wrote:
Well I hate to say this but your problem has to be in your /etc/lirc/hardware.conf

http://mysettopbox.tv/phpBB2/viewtopic.php?t=13108

;-) I had a similar issue in my post below:

http://mysettopbox.tv/phpBB2/viewtopic.php?t=13097

Do a clean reboot, dont touch anything and then log in as root, do a:

ps -ef | grep lirc

do you see the process running?

If you do that's what I'd see. then I would do an irw and the process would crash. now to a ps -ef | grep lirc is it still there? Bet not.
Not sure about the USB part but your symptoms are the same symtoms I was having. As a bandaid symlink /dev/lirc0 /dev/lirc (see my post above, but see Cecils response) and reboot, does it work now? ln -s /dev/lirc0 /dev/lirc

The Ether..


Hi ethernut,

I followed the instructions from the Upgrade Hints and Tips page:
Quote:
6.1) The lirc device has changed from "/dev/lirc" to "/dev/lirc0". This may require you to change the settings in your "/etc/lirc/hardware.conf", rerun "lirc-reconfig.sh", and reboot.


After a reboot lircd isn't running...

This changed my /etc/lirc/hardware.conf to:
Code:
DEVICE="/dev/usb/hiddev0"
MODULES="lirc_dev lirc_mceusb2"


The /dev/usb/hiddev0 path doesn't exist.

Sooo...

What does the final hardware.conf look like?

I've tried changing the DEVICE to /dev/lirc0 without rerunning the lirc-reconfig script. Didn't work.

A soft link from /dev/lirc0 to /dev/lirc gets nuked on reboot... don't know why.

-seano


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 28, 2006 4:55 pm 
Offline
Joined: Mon Nov 28, 2005 9:05 pm
Posts: 200
Well durn, I was confident I had put you on the right track.. Sorry about that. Did you do an upgrade or a fresh install?

If upgrade, then is it possible for you to grab an old 10+gig hard drive and do a fresh auto install to see if R5E50 handles it correctly on a fresh install?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 28, 2006 5:00 pm 
Offline
Joined: Fri Nov 25, 2005 10:22 pm
Posts: 73
ethernut wrote:
Well durn, I was confident I had put you on the right track.. Sorry about that. Did you do an upgrade or a fresh install?

If upgrade, then is it possible for you to grab an old 10+gig hard drive and do a fresh auto install to see if R5E50 handles it correctly on a fresh install?


Bummers... thanks for the help though.
It's an upgrade. I'll try to find a drive before this weekend and I'll mess with it then...


Thanks for the help.


-seano


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 28, 2006 5:24 pm 
Offline
Joined: Tue Sep 26, 2006 9:35 am
Posts: 85
http://mysettopbox.tv/phpBB2/viewtopic.php?t=13126

See if this thread helps.

_________________
nMediaPC HT100SA ASUS A8N-VM CSM
AMD 3200+ AMPO DDR 3200 512MB RAM
PVR-150 (1062) WD 320 GB SATA-2 HD
NEC OEM ND-3550A DVD burner
D-Link DWL-G510 PCI wireless adapter
MS wireless optical desktop 1000
R5F27 (+ modified sa3250ch)


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 30 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 29 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:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu