Hauppauge remote key mapping (1 Viewer)

No1Daemon

Portal Member
November 6, 2007
25
0
Home Country
New Zealand New Zealand
Hi all

Could someone please xplain how to change the mapping in the remote section of mediaportal?

I cannot understand what I need to do.

I want to map a button so it will start mediaportal from windows. Mediaportal is in the usual folder c:program files\Team mediaportal\Mediaportal\Mediaportal.exe is what I want to add to the button to start it.

I also want to put the pc to sleep and wake again if possible.








TV-Server Version:
MediaPortal Version:
MediaPortal Skin:
Windows Version:
CPU Type: AMD 64bit Athlon 4000+ AM2 Dual Core 2.1GHzx2 1MB L2
HDD:
Memory:
Motherboard: ASUS M2A-VM HDMI AMD690G Motherboard
Motherboard Chipset:
Motherboard Bios:
Video Card: ATI Radeon 256MB Geforce X1250 onboard
Video Card Driver:
Sound Card:
Sound Card AC3:
Sound Card Driver:
1. TV Card:
1. TV Card Type:
1. TV Card Driver:
2. TV Card:
2. TV Card Type:
2. TV Card Driver:
3. TV Card:
3. TV Card Type:
3. TV Card Driver:
4. TV Card:
4. TV Card Type:
4. TV Card Driver:
MPEG2 Video Codec:
MPEG2 Audio Codec:
Satelite/CableTV Provider:
HTPC Case:
Cooling:
Power Supply:
Remote:
TV:
TV - HTPC Connection:
 

ptitnain

New Member
October 24, 2007
2
0
Home Country
France France
To start MP from windows, you need to edit the irremote.ini file (in C:\windows directory).
In the default section, find the button identifier you want to use to start MP, then, add this line:
{close(wintv2k.exe)}{sleep(750)}{run(C:\Progra~1\Teamme~1\MediaPortal\MediaPortal.exe)}

[Default]
OLD0=
0=
1=
2=
3=
4=
5=
6=
7=
8=
9=
RADIO={close(wintv2k.exe)}{sleep(750)}{run(radio.exe)}
TV={close(radio.exe)}{sleep(750)}{run(wintv2k.exe)}
TVNEW={close(radio.exe)}{sleep(750)}{run(wintv2k.exe)}
SOURCE={switch(*task*)}{shift}{tab}
MINIMIZE=
FULLSCREEN={alt}{space}x
RESERVED=

; close current active window; disabled for now
;GRNPOWER={sys(0xF060)}
GRNPOWER={run(C:\windows\ehome\ehshell.exe)}
MCEJEWEL={run(C:\windows\ehome\ehshell.exe)}
;GUIDE={run(epgdemo.exe)}
GO={gomenu()}{findwnd(,WinTV Remote)}{fgnwnd()}
;GO={run(hcwGo\hcwGo.exe)}
MENU={switch(*task*)}{shift}{tab}

;;these 3 buttons are not offical yet
RED={close(radio.exe)}{sleep(750)}{run(wintv2k.exe)}
GREEN={close(wintv2k.exe)}{sleep(750)}{run(radio.exe)}
YELLOW={close(wintv2k.exe)}{sleep(750)}{run(C:\Progra~1\adslTV\adsltv.exe)}
BLUE={close(wintv2k.exe)}{sleep(750)}{run(C:\Progra~1\Teamme~1\MediaPortal\MediaPortal.exe)}
TEXT={close(radio.exe)}{sleep(750)}{run(..\vtplus\vtplus32.exe)}

To put the computer in sleep mode, there is probably a command to add in front of the GRNPOWER identifier (i don't know which).
But to wake up a computer, i don't think that there is a solution. The Ir32 software is certainly shutdown when the PC is spleeping.
 

Furetto

Moderator - Dutch Forums
April 11, 2005
664
61
50
Brussels
Home Country
Belgium Belgium
Two small additions:

First, if you do not use Hauppauge's software at all, maybe you want to attribute the "start MP" function to the Go button and/or the green power button.

Second, in the above case, you do not need to close wintv and to wait...

Excerpt from my own irremote.ini (search for the default section !)

Code:
[Default]
OLD0=
0=
1=
2=
3=
4=
5=
6=
7=
8=
9=
TV={close(radio.exe)}{sleep(750)}{run(wintv2k.exe)}
TVNEW={close(radio.exe)}{sleep(750)}{run(wintv2k.exe)}
SOURCE={switch(*task*)}{shift}{tab}		
MINIMIZE=				
FULLSCREEN={alt}{space}x					
RESERVED=	

; close current active window; disabled for now
;GRNPOWER={sys(0xF060)}
GRNPOWER={run("c:\\progra~1\teamme~1\mediaportal\mediaportal.exe")}
;GUIDE={run(epgdemo.exe)}
GO={run("c:\\progra~1\teamme~1\mediaportal\mediaportal.exe")}
;GO={run(hcwGo\hcwGo.exe)}
MENU={switch(*task*)}{shift}{tab}
 

No1Daemon

Portal Member
November 6, 2007
25
0
Home Country
New Zealand New Zealand
Hey Furetto. Yeah that was all it took. I have got that working now. Any idea on how to hibernate or standby?
I realise you cannot come back from standby via the remote which I can live with if I can get it to resume from standby by pressing the power button briefly.

I thought the code might be vk_sleep but that doesnt seem to work.
 

Furetto

Moderator - Dutch Forums
April 11, 2005
664
61
50
Brussels
Home Country
Belgium Belgium
The default setting for the Green Power button of the Hauppauge when running Media Portal is to close Media Portal. You can redefine this to call the Shutdown menu, in which you can (from memory) choose Shutdown, Reboot, Standby etc...

To do this, go into Configuration > Remote > choose tab Hauppauge > Learn

After this I have to go from memory again... I think you can choose Map, then you need to pick the right version of remote (Hauppauge 45 button in my case).

Search for the entry for Green Power button, then search around a bit which entry to change to "Shutdown".

Hope you can find it, and hope this is what you need.
 

No1Daemon

Portal Member
November 6, 2007
25
0
Home Country
New Zealand New Zealand
I:D

It worked. I reconfigured the green button to exit mediaportal and the greenpower button to go into standby instead.
I thought at first it hadnt worked, and that was due to the fact I was still in windows and had not run mediaportal.
It will only go to standby from mediaportal whcih should be okay.
The only thing I have to work around now is the fact that when it comes back from standby it comes to the user account logon screen and as I am logged on as administrator and do not plan on having a mouse connected to this pc then I will need to remove that, but that should only take a small amount of googling.

Thanks a lot
 

Users who are viewing this thread

Top Bottom