Difference between revisions of "PS3 Remote"

From MythTV Official Wiki
Jump to: navigation, search
(PS3 Remote - Sony BD Remote)
(Requirements and 10 min install)
 
(69 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{Template:Merge|Sony_PS3_BD_Remote}}
 +
 
[[Image:Ps3-remote-cakemote-mythtv.png|thumb|right|450px| cakemote-mythtv.py layout for Sony PS3 Bluetooth remote control.]]
 
[[Image:Ps3-remote-cakemote-mythtv.png|thumb|right|450px| cakemote-mythtv.py layout for Sony PS3 Bluetooth remote control.]]
=PS3 Remote - Sony BD Remote=
+
=ps3 remote=
[http://www.us.playstation.com/PS3/Accessories/SCPH-98046 The PS3 Remote - Sony BD Remote] is a nice peice of hardware, It is bluetooth so no line of site is needed. This is great for a mythtv frontend that feeds multiple rooms.
+
[[http://www.mythtv.org/wiki/PS3_Remote#Requirements_and_10_min_install 10 minute install]]
 +
 
 +
[http://www.us.playstation.com/PS3/Accessories/SCPH-98046 ps3 remote - Sony BD Remote] is a nice peice of hardware, It is bluetooth so no line of site is needed. This is great for a mythtv frontend that feeds multiple rooms.
 
As a side note, the [http://www.logitech.com/index.cfm/gaming/playstation_3/devices/3616&cl=US,EN Logitec Cordless MediaBoard Pro™] is a nice cheap keyboard-touchpad combo that is also bluetooth.
 
As a side note, the [http://www.logitech.com/index.cfm/gaming/playstation_3/devices/3616&cl=US,EN Logitec Cordless MediaBoard Pro™] is a nice cheap keyboard-touchpad combo that is also bluetooth.
  
The preferred method for setting up this remote can be found [http://www.mythtv.org/wiki/Sony_PS3_BD_Remote here]
+
Other methods for setting up this remote can be found at [http://www.mythtv.org/wiki/Sony_PS3_BD_Remote Sony_PS3_BD_Remote]. battery life is still short from my tests on the other methods.
  
Unfortunately Debian based distributions bluetooth stack, seems to not like the above method right now. The option for Distributions that will not work with the above method is to use the cakemote.py python script. The cakemote.py script as is, behaves badly due to the multi key press function and requires you to change all your key bindings in myth. With the multi key press function disabled and the remote keys mapped for mythtv this remote rocks.
 
  
 
==Drawback to the cakemote-mythtv.py is battery life of 4-5 days.==
 
==Drawback to the cakemote-mythtv.py is battery life of 4-5 days.==
I have a 15 minute battery charger which makes it tolerable, yes short battery life is a pain in the butt, but the remote works so good my basement, kitchen, living room... that it is worth it, till k/ubuntu bluetooth stack works with the [http://www.mythtv.org/wiki/Sony_PS3_BD_Remote preferred method].
+
I have a 15 minute battery charger which makes it tolerable, yes short battery life is a pain in the butt, but the remote works so good my basement, kitchen, living room... that it is worth it.
  
 
==Credit to the original authors==
 
==Credit to the original authors==
Line 18: Line 21:
 
I only tweaked it for use with mythtv, all changes i made are commented.
 
I only tweaked it for use with mythtv, all changes i made are commented.
  
==Requirements==
+
==Requirements and 10 min install==
 
This is geared towards k/ubuntu. You will also need sudo privileges.  
 
This is geared towards k/ubuntu. You will also need sudo privileges.  
 
  sudo apt-get install python-bluez
 
  sudo apt-get install python-bluez
If you do not already have /home/username/bin directory lets make on
+
If you do not already have /home/username/bin directory lets make one
 
  mkdir ~/bin
 
  mkdir ~/bin
work in progress 4/3/9
+
 
 +
Download the files:
 +
[http://lang-world.com/cakemote-mythtv/bd-remote-mythtv-svg.tar.gz cakemote-mythtv]
 +
Please note the script was tweaked for myth .22 and ubuntu 9.10 - 10.04
 +
 
 +
'''If you have tweak it your way and change the svg to match your layout i will host it and add a download link. send to lift28@gmail.com'''
 +
 
 +
File List:
 +
cakemote-mythtv.py -- the script, should reside inside your ~/bin.
 +
ps3-remote-cakemote-mythtv.png -- layout of the remote.
 +
ps3remote-start -- command line bash script for starting the remote. should reside inside your ~/bin.
 +
A directory called bd-remote-mythtv-svg -- this has the svg file for editing the picture of the remote layout, if you reassign the keys.
 +
 
 +
==Extract all files into your ~/bin directory==
 +
tar -C ~/bin -xvzf filename.tar.gz
 +
 
 +
Then you must enter the Bluetooth Address of the Remote into the cakemote-mythtv.py on line 563. Use  hcitool scan to get the address.
 +
 
 +
Hold 'Start' and 'Enter' buttons on the remote
 +
 
 +
  hcitool scan
 +
  Scanning ...
 +
            00:00:00:00:00:00      BD Remote Control
 +
 
 +
then add the address you get to the cakemote-mythtv.py about line 563
 +
 
 +
nano ~/bin/cakemote-mythtv.py 
 +
 
 +
################ PS3 Remote address #############################
 +
#### MANUAL PS3-MOTE ADDRESS GOES BELOW!!!
 +
####
 +
#### Type 'hcitool scan' at a terminal prompt to get the address.
 +
    # Manual Input of PS3 Remote address required for now.
 +
    w=Ps3mote("00:1E:3D:1B:60:F9",0)
 +
#################################################################
 +
 
 +
 
 +
You must log out and back in to make scripts in ~/bin directory to be seen in your shell.
 +
 
 +
=Starting cakemote-mythtv.py=
 +
open a shell and run:
 +
ps3remote-start
 +
After you connect you can close your shell.
 +
 
 +
 
 +
==ps3 remote myth keybindings that need to be changed== 
 +
In mythweb - settings - keybindings make these changes.
 +
 
 +
TV Recording Playback << add F6
 +
Live TV  << add F8
 +
MythGallery  << add F5
 +
MythVideo  << add F7
 +
Teletext Menu  MENURED  >> remove  F2
 +
Teletext Menu MENUGREEN >> remove F3
 +
Teletext Menu MENUYELLOW >> remove F4
 +
Teletext Menu MENUBLUE >> remove F5
 +
Teletext Menu MENUWHITE >> remove  F6
 +
Teletext Menu TOGGLEBACKGROUND >>  remove F7
 +
Teletext Menu REVEAL Reveal hidden Text >> remove  F7
 +
TV Playback  TOGGLEAUDIOSYNC  Turn on audio sync adjustment controls << change to F4
 +
TV Playback  TOGGLEASPECT  Toggle the video aspect ratio << change to F3
 +
 
 +
On the button layout picture, is the info for the setup of these buttons.
 +
 
 +
==Mplayer key bindings==
 +
to make mplayer key bindings match we need to make a input.conf
 +
 
 +
nano ~/.mplayer/input.conf
 +
 
 +
and add the following:
 +
 
 +
##
 +
## MPlayer input control file
 +
##
 +
F3 panscan -0.1
 +
F4 panscan +0.1
 +
t  sub_visibility
 +
i osd
 +
w panscan +0.1
 +
 
 +
 
 +
[[Category:Remote Controls]]

Latest revision as of 11:37, 26 April 2010

Merge-arrows.gif
It has been suggested that this article or section be merged with Sony_PS3_BD_Remote. (Discuss)
cakemote-mythtv.py layout for Sony PS3 Bluetooth remote control.

ps3 remote

[10 minute install]

ps3 remote - Sony BD Remote is a nice peice of hardware, It is bluetooth so no line of site is needed. This is great for a mythtv frontend that feeds multiple rooms. As a side note, the Logitec Cordless MediaBoard Pro™ is a nice cheap keyboard-touchpad combo that is also bluetooth.

Other methods for setting up this remote can be found at Sony_PS3_BD_Remote. battery life is still short from my tests on the other methods.


Drawback to the cakemote-mythtv.py is battery life of 4-5 days.

I have a 15 minute battery charger which makes it tolerable, yes short battery life is a pain in the butt, but the remote works so good my basement, kitchen, living room... that it is worth it.

Credit to the original authors

Thanks to those below for their hard work.

#cakemote.py - uinput driver for PS3 remote
#Heavily hacked from work by Will Woods, Brett Rodgers and the WMD team
#by Jo Shields <directhex@apebox.org>

I only tweaked it for use with mythtv, all changes i made are commented.

Requirements and 10 min install

This is geared towards k/ubuntu. You will also need sudo privileges.

sudo apt-get install python-bluez

If you do not already have /home/username/bin directory lets make one

mkdir ~/bin

Download the files:

cakemote-mythtv

Please note the script was tweaked for myth .22 and ubuntu 9.10 - 10.04

If you have tweak it your way and change the svg to match your layout i will host it and add a download link. send to lift28@gmail.com

File List:

cakemote-mythtv.py -- the script, should reside inside your ~/bin.
ps3-remote-cakemote-mythtv.png -- layout of the remote.
ps3remote-start -- command line bash script for starting the remote. should reside inside your ~/bin.
A directory called bd-remote-mythtv-svg -- this has the svg file for editing the picture of the remote layout, if you reassign the keys.

Extract all files into your ~/bin directory

tar -C ~/bin -xvzf filename.tar.gz

Then you must enter the Bluetooth Address of the Remote into the cakemote-mythtv.py on line 563. Use hcitool scan to get the address.

Hold 'Start' and 'Enter' buttons on the remote

 hcitool scan
 Scanning ...
           00:00:00:00:00:00       BD Remote Control
 

then add the address you get to the cakemote-mythtv.py about line 563

nano ~/bin/cakemote-mythtv.py  
################ PS3 Remote address #############################
#### MANUAL PS3-MOTE ADDRESS GOES BELOW!!!
####
#### Type 'hcitool scan' at a terminal prompt to get the address.
   # Manual Input of PS3 Remote address required for now.
   w=Ps3mote("00:1E:3D:1B:60:F9",0)
#################################################################


You must log out and back in to make scripts in ~/bin directory to be seen in your shell.

Starting cakemote-mythtv.py

open a shell and run:

ps3remote-start

After you connect you can close your shell.


ps3 remote myth keybindings that need to be changed

In mythweb - settings - keybindings make these changes.

TV Recording Playback << add F6
Live TV  << add F8
MythGallery  << add F5
MythVideo  << add F7
Teletext Menu  	MENURED  	>> remove  F2
Teletext Menu 	MENUGREEN 	>> remove F3
Teletext Menu 	MENUYELLOW 	>> remove F4
Teletext Menu 	MENUBLUE 	>> remove F5
Teletext Menu 	MENUWHITE 	>> remove  F6
Teletext Menu 	TOGGLEBACKGROUND >>  remove F7	
Teletext Menu 	REVEAL 	Reveal hidden Text >> remove  F7
TV Playback  	TOGGLEAUDIOSYNC  Turn on audio sync adjustment controls << change to F4
TV Playback  	TOGGLEASPECT  	Toggle the video aspect ratio << change to F3

On the button layout picture, is the info for the setup of these buttons.

Mplayer key bindings

to make mplayer key bindings match we need to make a input.conf

nano ~/.mplayer/input.conf

and add the following:

##
## MPlayer input control file
##
F3 panscan -0.1 
F4 panscan +0.1
t  sub_visibility
i osd
w panscan +0.1