From 06eb539c08463f0d0b6de3f780c4236bf9b26b03 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sat, 25 Sep 2010 22:35:32 +0200 Subject: [PATCH] xbmc-dharma: make PS3 remote more quiet Signed-off-by: Stephan Raue --- .../xbmc-ps3_remote_be_more_quiet-0.1.diff | 32 ++++++++----------- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/packages/mediacenter/xbmc-dharma/patches/xbmc-ps3_remote_be_more_quiet-0.1.diff b/packages/mediacenter/xbmc-dharma/patches/xbmc-ps3_remote_be_more_quiet-0.1.diff index 350df94684..4bbd0f3b1f 100644 --- a/packages/mediacenter/xbmc-dharma/patches/xbmc-ps3_remote_be_more_quiet-0.1.diff +++ b/packages/mediacenter/xbmc-dharma/patches/xbmc-ps3_remote_be_more_quiet-0.1.diff @@ -1,33 +1,29 @@ diff -Naur xbmc-dharma-33971/tools/EventClients/Clients/PS3 BD Remote/ps3_remote.py xbmc-dharma-33971.patch/tools/EventClients/Clients/PS3 BD Remote/ps3_remote.py --- xbmc-dharma-33971/tools/EventClients/Clients/PS3 BD Remote/ps3_remote.py 2010-09-19 14:54:08.000000000 +0200 -+++ xbmc-dharma-33971.patch/tools/EventClients/Clients/PS3 BD Remote/ps3_remote.py 2010-09-22 19:58:26.000000000 +0200 -@@ -58,14 +58,13 @@ - global xbmc ++++ xbmc-dharma-33971.patch/tools/EventClients/Clients/PS3 BD Remote/ps3_remote.py 2010-09-25 22:30:55.174281890 +0200 +@@ -59,9 +59,6 @@ target_connected = False target_address = None -- while target_connected is False: + while target_connected is False: - xbmc.send_notification("Action Required!", - "Hold Start+Enter on your remote.", - bticon) -- print "Searching for %s" % target_name -- print "(Hold Start + Enter on remote to make it discoverable)" -- time.sleep(2) + print "Searching for %s" % target_name + print "(Hold Start + Enter on remote to make it discoverable)" + time.sleep(2) +@@ -72,7 +69,6 @@ + except Exception, e: + print "Error performing bluetooth discovery" + print str(e) +- xbmc.send_notification("Error", "Unable to find devices.", bticon) + time.sleep(5) + continue -+ xbmc.send_notification("Action Required!","Hold Start+Enter on your remote.",bticon) -+ print "Searching for %s" % target_name -+ print "(Hold Start + Enter on remote to make it discoverable)" -+ time.sleep(2) -+ -+ while target_connected is False: - if not target_address: - try: - nearby_devices = bt_discover_devices() -@@ -109,7 +108,7 @@ +@@ -109,7 +105,6 @@ print "ERROR - Could Not Connect. Trying again..." time.sleep(2) else: - xbmc.send_notification("Error", "No remotes were found.", bticon) -+# xbmc.send_notification("Error", "No remotes were found.", bticon) print "Could not find BD Remote Control. Trying again..." time.sleep(2) return (remote,target_address)