<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PLAYSTATION 3 Bluetooth Remote driver for Linux</title>
	<atom:link href="http://www2.apebox.org/wordpress/programming/28/feed/" rel="self" type="application/rss+xml" />
	<link>http://www2.apebox.org/wordpress/programming/28/</link>
	<description>we like kittens and spoons and cake</description>
	<lastBuildDate>Thu, 25 Feb 2010 15:46:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: liftman</title>
		<link>http://www2.apebox.org/wordpress/programming/28/comment-page-1/#comment-361</link>
		<dc:creator>liftman</dc:creator>
		<pubDate>Sun, 08 Mar 2009 23:31:25 +0000</pubDate>
		<guid isPermaLink="false">http://www2.apebox.org/wordpress/programming/28/#comment-361</guid>
		<description>thanks for the script :)
is their a way to turnoff the multi key actions -- this is causing crazy stuff with mythtv
thanks</description>
		<content:encoded><![CDATA[<p>thanks for the script :)<br />
is their a way to turnoff the multi key actions &#8212; this is causing crazy stuff with mythtv<br />
thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://www2.apebox.org/wordpress/programming/28/comment-page-1/#comment-314</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Tue, 06 Jan 2009 06:40:42 +0000</pubDate>
		<guid isPermaLink="false">http://www2.apebox.org/wordpress/programming/28/#comment-314</guid>
		<description>This worked great for me using Mythbuntu 8.10.  I would be nice to not have to push enter+start to pair it on reboot though.  I tried the bdremoted first but could not get it working on 8.10.  Thanks for the great work.</description>
		<content:encoded><![CDATA[<p>This worked great for me using Mythbuntu 8.10.  I would be nice to not have to push enter+start to pair it on reboot though.  I tried the bdremoted first but could not get it working on 8.10.  Thanks for the great work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PSP PAD</title>
		<link>http://www2.apebox.org/wordpress/programming/28/comment-page-1/#comment-89</link>
		<dc:creator>PSP PAD</dc:creator>
		<pubDate>Fri, 25 Apr 2008 18:39:03 +0000</pubDate>
		<guid isPermaLink="false">http://www2.apebox.org/wordpress/programming/28/#comment-89</guid>
		<description>Has this script worked for anyone yet ???</description>
		<content:encoded><![CDATA[<p>Has this script worked for anyone yet ???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: directhex</title>
		<link>http://www2.apebox.org/wordpress/programming/28/comment-page-1/#comment-27</link>
		<dc:creator>directhex</dc:creator>
		<pubDate>Sun, 03 Feb 2008 22:16:33 +0000</pubDate>
		<guid isPermaLink="false">http://www2.apebox.org/wordpress/programming/28/#comment-27</guid>
		<description>You, mister Antst, are a very sexy individual! I&#039;ll give this a shot myself. The Python &quot;driver&quot; was only ever a dirty hack</description>
		<content:encoded><![CDATA[<p>You, mister Antst, are a very sexy individual! I&#8217;ll give this a shot myself. The Python &#8220;driver&#8221; was only ever a dirty hack</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antst</title>
		<link>http://www2.apebox.org/wordpress/programming/28/comment-page-1/#comment-25</link>
		<dc:creator>Antst</dc:creator>
		<pubDate>Fri, 01 Feb 2008 13:21:08 +0000</pubDate>
		<guid isPermaLink="false">http://www2.apebox.org/wordpress/programming/28/#comment-25</guid>
		<description>here is my driver for LIRC: http://antst.mine.nu/linuxdriverforsonybdremote

Not a script. Normal C daemon.</description>
		<content:encoded><![CDATA[<p>here is my driver for LIRC: <a href="http://antst.mine.nu/linuxdriverforsonybdremote" rel="nofollow">http://antst.mine.nu/linuxdriverforsonybdremote</a></p>
<p>Not a script. Normal C daemon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: psubuntu bd-user</title>
		<link>http://www2.apebox.org/wordpress/programming/28/comment-page-1/#comment-21</link>
		<dc:creator>psubuntu bd-user</dc:creator>
		<pubDate>Sun, 06 Jan 2008 17:12:36 +0000</pubDate>
		<guid isPermaLink="false">http://www2.apebox.org/wordpress/programming/28/#comment-21</guid>
		<description>I&#039;m unable to pair the Sony BD remote. Here&#039;s a diff of the code I used:

$ diff -urN cakemote.py cakemote.local.py 
--- cakemote.py 2008-01-06 17:38:50.000000000 +0200
+++ cakemote.local.py   2008-01-06 17:57:20.000000000 +0200
@@ -529,23 +529,27 @@
 #### MANUAL PS3-MOTE ADDRESS GOES BELOW!!!
 ####
 #### Type &#039;hcitool scan&#039; at a terminal prompt to get the address.
-
-    # Manual Input of PS3 Remote address required for now.
-    w=Ps3mote(&quot;00:19:C1:4E:DA:53&quot;,0)
-
-    w.connect()
-print &quot;Connection to remote established.&quot;
-
-print &quot;Initializing uinput device.&quot;
-fd = init_uinput(uinput_dev)
-
-print &quot;Press any key on the remote to test, or the circle key to exit.&quot;
+name = &quot;BD Remote Control&quot;
+address = None
+nearby_devices = bluetooth.discover_devices()
+
+for bdaddr in nearby_devices:
+        if name == bluetooth.lookup_name( bdaddr ):
+                address = bdaddr
+                break
+
+if address is not None:
+        print &quot;Found remote at address %s&quot; % address
+        w=Ps3mote(address)
+        w.connect()
+else:
+        print &quot;Could not find target bluetooth device nearby&quot;
+        sys.exit(1)
 
 try:
-       last=time.time()
-       while not w.done:
-               w._getpacket()
-
+        last=time.time()
+        while not w.done:
+                w._getpacket()
 finally:
         w.disconnect()
         destroy_uinput(fd)

$ ./cakemote.local.py 
Found uinput dev at /dev/input/uinput
Scanning for PS3 remote.
Press Start+Enter to make your remote discoverable.
Found remote at address xx:xx:xx:xx:xx:xx
Attempting to pair with remote xx:xx:xx:xx:xx:xx
Traceback (most recent call last):
  File &quot;./cakemote.local.py&quot;, line 544, in 
    w.connect()
  File &quot;./cakemote.local.py&quot;, line 423, in connect
    self.rx.connect((self.addr,19))
  File &quot;&quot;, line 5, in connect
bluetooth.BluetoothError: (111, &#039;Connection refused&#039;)

Relevantish hcidump output:

&gt; HCI Event: Read Remote Supported Features (0x0b) plen 11
    status 0x00 handle 43
    Features: 0xbc 0x02 0x04 0x38 0x08 0x00 0x00 0x00
&gt; ACL data: handle 43 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0000 scid 0x0040 result 2 status 0
      Connection refused - PSM not supported
&gt; HCI Event: Remote Name Req Complete (0x07) plen 255
    status 0x00 bdaddr xx:xx:xx:x:xx:xx name &#039;BD Remote Control&#039;
&lt; HCI Command: Disconnect (0x01&#124;0x0006) plen 3
    handle 43 reason 0x13
    Reason: Remote User Terminated Connection

Any idea what I&#039;m doing wrong? :)

P.S. I&#039;ve tried fiddling with differend hcid.conf options, but to no avail.</description>
		<content:encoded><![CDATA[<p>I&#8217;m unable to pair the Sony BD remote. Here&#8217;s a diff of the code I used:</p>
<p>$ diff -urN cakemote.py cakemote.local.py<br />
&#8212; cakemote.py 2008-01-06 17:38:50.000000000 +0200<br />
+++ cakemote.local.py   2008-01-06 17:57:20.000000000 +0200<br />
@@ -529,23 +529,27 @@<br />
 #### MANUAL PS3-MOTE ADDRESS GOES BELOW!!!<br />
 ####<br />
 #### Type &#8216;hcitool scan&#8217; at a terminal prompt to get the address.<br />
-<br />
-    # Manual Input of PS3 Remote address required for now.<br />
-    w=Ps3mote(&#8220;00:19:C1:4E:DA:53&#8243;,0)<br />
-<br />
-    w.connect()<br />
-print &#8220;Connection to remote established.&#8221;<br />
-<br />
-print &#8220;Initializing uinput device.&#8221;<br />
-fd = init_uinput(uinput_dev)<br />
-<br />
-print &#8220;Press any key on the remote to test, or the circle key to exit.&#8221;<br />
+name = &#8220;BD Remote Control&#8221;<br />
+address = None<br />
+nearby_devices = bluetooth.discover_devices()<br />
+<br />
+for bdaddr in nearby_devices:<br />
+        if name == bluetooth.lookup_name( bdaddr ):<br />
+                address = bdaddr<br />
+                break<br />
+<br />
+if address is not None:<br />
+        print &#8220;Found remote at address %s&#8221; % address<br />
+        w=Ps3mote(address)<br />
+        w.connect()<br />
+else:<br />
+        print &#8220;Could not find target bluetooth device nearby&#8221;<br />
+        sys.exit(1)</p>
<p> try:<br />
-       last=time.time()<br />
-       while not w.done:<br />
-               w._getpacket()<br />
-<br />
+        last=time.time()<br />
+        while not w.done:<br />
+                w._getpacket()<br />
 finally:<br />
         w.disconnect()<br />
         destroy_uinput(fd)</p>
<p>$ ./cakemote.local.py<br />
Found uinput dev at /dev/input/uinput<br />
Scanning for PS3 remote.<br />
Press Start+Enter to make your remote discoverable.<br />
Found remote at address xx:xx:xx:xx:xx:xx<br />
Attempting to pair with remote xx:xx:xx:xx:xx:xx<br />
Traceback (most recent call last):<br />
  File &#8220;./cakemote.local.py&#8221;, line 544, in<br />
    w.connect()<br />
  File &#8220;./cakemote.local.py&#8221;, line 423, in connect<br />
    self.rx.connect((self.addr,19))<br />
  File &#8220;&#8221;, line 5, in connect<br />
bluetooth.BluetoothError: (111, &#8216;Connection refused&#8217;)</p>
<p>Relevantish hcidump output:</p>
<p>&gt; HCI Event: Read Remote Supported Features (0&#215;0b) plen 11<br />
    status 0&#215;00 handle 43<br />
    Features: 0xbc 0&#215;02 0&#215;04 0&#215;38 0&#215;08 0&#215;00 0&#215;00 0&#215;00<br />
&gt; ACL data: handle 43 flags 0&#215;02 dlen 16<br />
    L2CAP(s): Connect rsp: dcid 0&#215;0000 scid 0&#215;0040 result 2 status 0<br />
      Connection refused &#8211; PSM not supported<br />
&gt; HCI Event: Remote Name Req Complete (0&#215;07) plen 255<br />
    status 0&#215;00 bdaddr xx:xx:xx:x:xx:xx name &#8216;BD Remote Control&#8217;<br />
&lt; HCI Command: Disconnect (0&#215;01|0&#215;0006) plen 3<br />
    handle 43 reason 0&#215;13<br />
    Reason: Remote User Terminated Connection</p>
<p>Any idea what I&#8217;m doing wrong? :)</p>
<p>P.S. I&#8217;ve tried fiddling with differend hcid.conf options, but to no avail.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iljusu</title>
		<link>http://www2.apebox.org/wordpress/programming/28/comment-page-1/#comment-4</link>
		<dc:creator>iljusu</dc:creator>
		<pubDate>Wed, 24 Oct 2007 07:05:46 +0000</pubDate>
		<guid isPermaLink="false">http://www2.apebox.org/wordpress/programming/28/#comment-4</guid>
		<description>Hi, 

If this works for me i buy you a virtual beer :-)

Br, iljusu</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>If this works for me i buy you a virtual beer :-)</p>
<p>Br, iljusu</p>
]]></content:encoded>
	</item>
</channel>
</rss>
