LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 11-15-2008, 03:34 PM   #1
Tommo
Member
 
Registered: May 2006
Posts: 80

Rep: Reputation: 15
Getting Windows Media Centre remote to work


Hi there.

I want to get my infrared media centre remote control to work with Mplayer. I followed the instructions here to install lirc etc. I found the following config file posted in another forum (I assume it is for my remote since it says 'rc6' both on my remote, and in the config file):

Code:
#
# RC-6 config file
#
# source: http://home.hccnet.nl/m.majoor/proje...te_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
#
# Updated with codes for MCE 2005 Remote additional buttons
# *, #, Teletext, Red, Green, Yellow & Blue Buttons
# Note: TV power button transmits no code until programmed.
# Updated 12th September 2005
# Graham Auld - mce|graham.auld.me.uk
#
# 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

Blue 0x00007ba1
Yellow 0x00007ba2
Green 0x00007ba3
Red 0x00007ba4
Teletext 0x00007ba5

# 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

Star 0x00007be2
Hash 0x00007be3

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
I have noticed, while googling, lirc seems to be married to mythtv. Do I have to install MythTV? If so, why? I have no use for it, I simply want to use it for Mplayer, if possible. I would appreciate any help on this, thanks.

Last edited by Tommo; 11-15-2008 at 03:35 PM.
 
Old 11-15-2008, 07:31 PM   #2
jiobo
Member
 
Registered: Nov 2008
Posts: 180

Rep: Reputation: 36
Did you try the Testing section?
Quote:
To test your work, run (include the '-d /dev/lirc0' if you needed to include this in running lircd):

mode2

Now press a few buttons on your remote while aiming it at the receiver. You should see some text spit out on your screen. If you don't, then something isn't working.

You will then need to get a lircrc file, and a lircd.conf:. These files will reside in the following locations:

/home/mythtv/.lircrc
/home/mythtv/.mythtv/lircrc
/etc/lirc/lircrc
/etc/lirc/lircd.conf
There is also a link to create your own configuration file if you don't get any text when pressing buttons...http://lircconfig.commandir.com/
And, did you check the batteries?
 
Old 11-16-2008, 05:15 AM   #3
Tommo
Member
 
Registered: May 2006
Posts: 80

Original Poster
Rep: Reputation: 15
Thanks for the reply.

Sorry, I should have stated, I tried irrecord, mode2 etc. They didn't work.

My remote is the 4th one from the left on this page.

When I installed lirc, i received an error saying it hadn't been configured. So that's why I sought out that config file above.


My IR receiver is connected via usb at the moment, and lsusb gives:
Code:
Bus 001 Device 004: ID 0471:0815 Philips
I don't need to check the batteries, I can see the receiver blinking whenever I press a button on the remote.

This whole process is quite awkward, any ideas?


Edit: I downloaded the latest cvs snapshot, compiled with:
Code:
./configure --prefix=/usr --sysconfdir=/etc/conf.d --with-x --with-driver=mceusb2
Then I tested with irw, and all seems to work. Now I just need to configure it for Mplayer. Sorry about that. Aptitude must've installed am inferior version of lirc, which explains why it didn't work before.

Last edited by Tommo; 11-16-2008 at 05:31 AM.
 
Old 11-16-2008, 06:29 AM   #4
Tommo
Member
 
Registered: May 2006
Posts: 80

Original Poster
Rep: Reputation: 15
Hi, I'm trying to install mplayer from source in order to compile lirc support into it, since the binary from aptitude doesn't seem to have such support built in.

I'm a bit miffed by the configure stage:
Code:
debian:/usr/local/bin/mplayer-export-2008-11-16# ./configure --enable-lirc
Detected operating system: Linux
Detected host architecture: i386
Checking for cc version ... 4.1.2
Checking for host cc ... cc
Checking for cross compilation ... no
Checking for CPU vendor ... GenuineIntel (15:4:1)
Checking for CPU type ...  Intel(R) Pentium(R) 4 CPU 2.80GHz
Checking for kernel support of mmx ... yes
Checking for kernel support of mmxext ... yes
Checking for kernel support of sse ... yes
Checking for kernel support of sse2 ... yes
Checking for kernel support of cmov ... yes
Checking for mtrr support ... yes
Checking for GCC & CPU optimization abilities ... prescott
Checking for extern symbol prefix ...
Checking for assembler support of -pipe option ... yes
Checking for compiler support of named assembler arguments ... yes
Checking for assembler (as 2.17) ... ok
Checking for .align is a power of two ... no
Checking for Linux kernel version ... 2.6.18-6-686, ok
Checking for -lposix ... no
Checking for -lm ... yes
Checking for langinfo ... yes
Checking for language ... messages: en - man pages: en - documentation: en
Checking for enable sighandler ... yes
Checking for runtime cpudetection ... no
Checking for restrict keyword ... __restrict
Checking for __builtin_expect ... yes
Checking for kstat ... no
Checking for posix4 ... no
Checking for llrint ... yes
Checking for lrint ... yes
Checking for lrintf ... yes
Checking for round ... yes
Checking for roundf ... yes
Checking for mkstemp ... yes
Checking for nanosleep ... yes
Checking for socklib ... yes
Checking for inet_pton() ... yes (using )
Checking for socklen_t ... yes
Checking for closesocket() ... no
Checking for network ... yes
Checking for inttypes.h (required) ... yes
Checking for int_fastXY_t in inttypes.h ... yes
Checking for malloc.h ... yes
Checking for memalign() ... yes
Checking for alloca.h ... yes
Checking for mman.h ... yes
Checking for dynamic loader ... yes
Checking for dynamic a/v plugins support ... no
Checking for pthread ... yes (using -lpthread)
Checking for w32threads ... no (using pthread instead)
Checking for rpath ... no
Checking for iconv ... yes
Checking for soundcard.h ... yes (sys/soundcard.h)
Checking for sys/dvdio.h ... no
Checking for sys/cdio.h ... no
Checking for linux/cdrom.h ... yes
Checking for dvd.h ... no
Checking for termcap ... no
Checking for termios ... yes (sys/termios.h)
Checking for shm ... yes
Checking for strsep() ... yes
Checking for vsscanf() ... yes
Checking for swab() ... yes
Checking for POSIX select() ... yes
Checking for gettimeofday() ... yes
Checking for glob() ... yes
Checking for setenv() ... yes
Checking for sys/sysinfo.h ... yes
Checking for Apple IR ... yes
Checking for pkg-config ... yes
Checking for Samba support (libsmbclient) ... no
Checking for tdfxfb ... no
Checking for s3fb ... no
Checking for wii ... no
Checking for tdfxvid ... no
Checking for xvr100 ... no
Checking for tga ... yes
Checking for md5sum support ... yes
Checking for yuv4mpeg support ... yes
Checking for bl ... no
Checking for DirectFB ... no
Checking for X11 headers presence ... yes
Checking for X11 ... yes
Checking for Xss screensaver extensions ... no
Checking for DPMS ... yes (using Xdpms 4)
Checking for Xv ... no
Checking for XvMC ... no
Checking for Xinerama ... yes
Checking for Xxf86vm ... no
Checking for XF86keysym ... yes
Checking for DGA ... no
Checking for 3dfx ... no
Checking for OpenGL ... no
Checking for VIDIX ... yes
Checking for VIDIX PCI device name database ... yes
Checking for VIDIX dhahelper support ... no
Checking for VIDIX svgalib_helper support ... no
Checking for /dev/mga_vid ... no
Checking for xmga ... no
Checking for GGI ... no
Checking for GGI extension: libggiwmh ... no
Checking for AA ... no
Checking for CACA ... no
Checking for SVGAlib ... no
Checking for FBDev ... yes
Checking for DVB ... no
Checking for DVB HEAD ... yes
Checking for PNG support ... yes
Checking for JPEG support ... no
Checking for PNM support ... yes
Checking for GIF support ... no
Checking for VESA support ... no
Checking for SDL ... no
Checking for NAS ... no
Checking for DXR2 ... no
Checking for DXR3/H+ ... no
Checking for IVTV TV-Out (pre linux-2.6.24) ... yes
Checking for V4L2 MPEG Decoder ... no
Checking for OSS Audio ... yes
Checking for aRts ... no
Checking for EsounD ... no
Checking for pulse ... no
Checking for JACK ... no
Checking for OpenAL ... no
Checking for ALSA audio ... no
Checking for Sun audio ... no
Checking for VCD support ... yes
Checking for dvdread ... yes (internal)
Checking for internal libdvdcss ... yes
Checking for cdparanoia ... no
Checking for libcdio ... no
Checking for bitmap font support ... yes
Checking for freetype >= 2.0.9 ... yes
Checking for fontconfig ... yes
Checking for SSA/ASS support ... yes
Checking for fribidi with charsets ... no
Checking for ENCA ... no
Checking for zlib ... yes
Checking for RTC ... yes
Checking for liblzo2 support ... no
Checking for mad support ... no
Checking for Twolame ... no
Checking for Toolame ... no
Checking for OggVorbis support ... yes (internal Tremor)
Checking for libspeex (version >= 1.1 required) ... no
Checking for OggTheora support ... no
Checking for internal mp3lib support ... yes
Checking for liba52 support ... yes (internal)
Checking for internal libmpeg2 support ... yes
Checking for libdca support ... no
Checking for libmpcdec (musepack, version >= 1.2.1 required) ... no
Checking for FAAC support ... no (in libavcodec: no)
Checking for FAAD2 support ... yes (internal floating-point)
Checking for LADSPA plugin support ... no
Checking for Win32 codecs ... yes (using /usr/lib/codecs)
Checking for XAnim codecs ... yes (using /usr/lib/codecs)
Checking for RealPlayer codecs ... yes (using /usr/lib/codecs)
Checking for QuickTime codecs ... yes
Checking for Nemesi Streaming Media libraries ... no
Checking for LIVE555 Streaming Media libraries ... no
Checking for FFmpeg libavutil ... yes (static)
Checking for FFmpeg libavcodec ... yes (static)
Checking for FFmpeg libavformat ... yes (static)
Checking for FFmpeg libpostproc ... yes (static)
Checking for FFmpeg libswscale ... yes (static)
Checking for libamr narrowband ... no
Checking for libamr wideband ... no
Checking for libdv-0.9.5+ ... no
Checking for Xvid ... no
Checking for Xvid two pass plugin ... no
Checking for x264 ... no (in libavcodec: no)
Checking for libdirac ... no
Checking for libschroedinger ... no
Checking for libnut ... no
Checking for zr ... no
Checking for libmp3lame (for mencoder) ... no (in libavcodec: no)
Checking for mencoder ... yes
Checking for fastmemcpy ... yes
Checking for UnRAR executable ... yes
Checking for TV interface ... yes
Checking for DirectShow TV interface ... no
Checking for Video 4 Linux TV interface ... yes
Checking for Video 4 Linux 2 TV interface ... yes
Checking for TV teletext interface ... yes
Checking for Radio interface ... no
Checking for Capture for Radio interface ... no
Checking for Video 4 Linux 2 Radio interface ... no
Checking for Video 4 Linux Radio interface ... no
Checking for Video 4 Linux 2 MPEG PVR interface ... yes
Checking for audio select() ... yes
Checking for ftp ... yes
Checking for vstream client ... no
Checking for byte order ... little-endian
Checking for OSD menu ... no
Checking for Subtitles sorting ... yes
Checking for XMMS inputplugin support ... no
Checking for inet6 ... yes
Checking for gethostbyname2 ... yes
Checking for GUI ... no
Checking for automatic gdb attach ... no
Checking for compiler support for noexecstack ... yes
Checking for joystick ... no
Checking for lirc ... yes
Checking for lircc ... no
Checking for DVD support (libdvdnav) ... no (Disabled in favor of the internal copy of dvdread. Append --disable-dvdread-internal.)
Creating config.mak
Creating config.h

Config files successfully generated by ./configure --enable-lirc !

  Install prefix: /usr/local
  Data directory: /usr/local/share/mplayer
  Config direct.: /usr/local/etc/mplayer

  Byte order: little-endian
  Optimizing for: prescott

  Languages:
    Messages/GUI: en
    Manual pages: en

  Enabled optional drivers:
    Input: ftp pvr tv-teletext tv-v4l2 tv-v4l tv libdvdcss(internal) dvdread(internal) vcd dvb network
    Codecs: libavcodec qtx real xanim win32 faad2 libmpeg2 liba52(internal) mp3lib tremor(internal)
    Audio output: oss ivtv mpegpes(dvb)
    Video output: ivtv pnm png mpegpes(dvb) fbdev xvidix cvidix x11 xover yuv4mpeg md5sum tga

  Disabled optional drivers:
    Input: dvdnav vstream radio tv-dshow live555 nemesi cddb cdda smb
    Codecs: libschroedinger libdirac x264 xvid libdv libamr_wb libamr_nb faac musepack libdca libtheora speex toolame twolame libmad liblzo gif
    Audio output: sun alsa openal jack pulse esd arts v4l2 dxr2 nas sdl
    Video output: zr zr2 v4l2 dxr3 dxr2 sdl vesa gif89a jpeg svga caca aa ggi xmga mga winvidix opengl 3dfx dga xvmc xv dfbmga directfb bl xvr100 tdfx_vid wii s3fb tdfxfb

'config.h' and 'config.mak' contain your configuration options.
Note: If you alter theses files (for instance CFLAGS) MPlayer may no longer
      compile *** DO NOT REPORT BUGS if you tweak these files ***

'make' will now compile MPlayer and 'make install' will install it.
Note: On non-Linux systems you might need to use 'gmake' instead of 'make'.

Please check mtrr settings at /proc/mtrr (see DOCS/HTML/en/video.html#mtrr)

Check configure.log if you wonder why an autodetection failed (make sure
development headers/packages are installed).

NOTE: The --enable-* parameters unconditionally force options on, completely
skipping autodetection. This behavior is unlike what you may be used to from
autoconf-based configure scripts that can decide to override you. This greater
level of control comes at a price. You may have to provide the correct compiler
and linker flags yourself.
If you used one of these options (except --enable-gui and similar ones that
turn on internal features) and experience a compilation or linking failure,
make sure you have passed the necessary compiler/linker flags to configure.

If you suspect a bug, please read DOCS/HTML/en/bugreports.html.
All these optional drivers that I assume worked with the binary version, are not enabled when building it from source. Does that mean I have to install tonnes of lib* packages now? If so, that is very annoying.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Can Xandros Linux Desktop replace Windows Media Centre? LXer Syndicated Linux News 0 07-10-2006 07:03 PM
Windows XP Media Centre tigercars Linux - Newbie 1 03-02-2006 01:48 AM
A Media Management Sytem (Windows Media Centre) for linux? carl0ski Linux - Software 5 12-07-2005 07:52 PM
Does Windows media centre remote work with fedora core 3 pmprichard Linux - Hardware 1 10-29-2005 01:44 AM
Help, please help with lirc and media centre remote pmprichard Linux - Software 1 04-30-2005 07:06 PM


All times are GMT -5. The time now is 10:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration