ps3 remote not working after accidentally reinstalling bluez :(
#1
Hey people,

Long story short, I was building 2 HTPC's for friends, I thought I was working on theirs (they have the EXACT hardware/case etc.. as me) but had mine plugged in, and I purged bluez, then installed it again, and now only the directional pad on my PS3 controller is working. It took me FOREVER to get it working in the first case, and I really don't want to have to go through that again, here are the exact commands I ran before realizing what I had done :\

sudo apt-get purge bluez
sudo echo deb http://ppa.launchpad.net/kitlaan/ppa/ubuntu jaunty main >> /etc/apt/sources.list
vi /etc/apt/sources.list
gedit /etc/apt/sources.list
nano /etc/apt/sources.list
sudo echo deb-src http://ppa.launchpad.net/kitlaan/ppa/ubuntu karmic main >> /etc/apt/sources.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6F7177CC
sudo apt-get update
sudo apt-get install bluez
sudo apt-get update
lsmod | grep uinput
cd ~
wget http://kitlaan.twinaxis.com/holdingcell/ps3pair.tar.gz
tar xvfz ps3pair.tar.gz
cd ~/ps3pair
sudo python ps3_pair.py
sudo python ps3_pair.py
sudo python ps3_pair.py
/usr/share/doc/bluez/examples/list-devices
cat /proc/bus/input/devices | grep emot
cat /proc/bus/input/devices | grep emot
shutdown -r now
cat /proc/bus/input/devices | grep emot
/usr/share/doc/bluez/examples/list-devices
nano /etc/bluetooth/input.conf
/usr/share/doc/bluez/examples/test-input
/usr/share/doc/bluez/examples/test-input connect 00:23:06:E9:2E:42
/usr/share/doc/bluez/examples/test-input connect 00:23:06:EA:E6:64
sudo python ps3_pair.py
cd ~/ps3pair
sudo python ps3_pair.py
/usr/share/doc/bluez/examples/test-input connect 00:23:06:E9:2E:42


My expertise with linux is in networking, everything else is so-so with me, so I'm not sure exactly what is wrong, only thing I can think of is that by reinstalling bluez, I need to maybe run the patch again for it? (bluez_ps3remote.diff)

Any advice would be GREATLY appreciated!

Thanks.
Reply
#2
try

Code:
sudo modprobe uinput

also add it to your /etc/modules. that's the only thing I can think of.
Reply
#3
It is in /etc/modules already.. it does work, but only the directional pad, none of the other buttons Sad
Reply
#4
probably because its being picked up as a keyboard if the directional pad works
Reply
#5
Any suggestions on how to fix that?
Reply
#6
make sure you have a decent config

Code:
sudo nano /etc/bluetooth/input.conf

here's mine, make sure you replace the bold numbers with your remotes address.

Code:
# Configuration file for the input service

# This section contains options which are not specific to any
# particular interface
[General]

# Set idle timeout (in seconds) before the connection will
# be disconnect (defaults to 0 for no timeout)
IdleTimeout=120



# This section contains options that are specific to a device
[b][11:22:33:44:55:66][/b]
#
# Set a custom idle timeout (in seconds) for this specific device
#IdleTimeout=30



# This section is the PS3 Remote keymap.  It is loaded when bluez starts.
# Use 'uinput.h' from bluez sources or '/usr/include/linux/input.h' for
# a list of possible KEY_* values.
#
[PS3 Remote Map]
# When the 'OverlayBuiltin' option is TRUE (the default), the keymap uses
# the built-in keymap as a starting point.  When FALSE, an empty keymap is
# the starting point.
#OverlayBuiltin = TRUE
0x16 = KEY_EJECTCD        # EJECT
0x64 = KEY_A              # AUDIO             (XBMC recommendation: KEY_A)
0x65 = KEY_U          # ANGLE             (XBMC recommendation: KEY_Z)
0x63 = KEY_T              # SUBTITLE          (XBMC recommendation: KEY_T)
0x0f = KEY_DELETE         # CLEAR             (XBMC recommendation: KEY_DELETE)
0x28 = KEY_END            # TIMER             (XBMC recommendation: KEY_END)
0x00 = KEY_1              # NUM-1
0x01 = KEY_2              # NUM-2
0x02 = KEY_3              # NUM-3
0x03 = KEY_4              # NUM-4
0x04 = KEY_5              # NUM-5
0x05 = KEY_6              # NUM-6
0x06 = KEY_7              # NUM-7
0x07 = KEY_8              # NUM-8
0x08 = KEY_9              # NUM-9
0x09 = KEY_0              # NUM-0
0x81 = KEY_F7             # RED               (XBMC recommendation: KEY_F7)
0x82 = KEY_F8             # GREEN             (XBMC recommendation: KEY_F8)
0x80 = KEY_F9             # BLUE              (XBMC recommendation: KEY_F9)
0x83 = KEY_F10            # YELLOW            (XBMC recommendation: KEY_F10)
0x70 = KEY_Z              # DISPLAY           (XBMC recommendation: KEY_D)
0x1a = KEY_O              # TOP MENU
0x40 = KEY_I              # POP UP/MENU       (XBMC recommendation: KEY_F11)
0x0e = KEY_ESC            # RETURN
0x5c = KEY_C              # TRIANGLE/OPTIONS  (XBMC recommendation: KEY_C)
0x5d = KEY_ESC            # CIRCLE/BACK
0x5f = KEY_TAB         # SQUARE/VIEW       (XBMC recommendation: KEY_V)
0x5e = KEY_BACKSPACE      # CROSS             (XBMC recommendation: KEY_X)
0x54 = KEY_UP             # UP
0x56 = KEY_DOWN           # DOWN
0x57 = KEY_LEFT           # LEFT
0x55 = KEY_RIGHT          # RIGHT
0x0b = KEY_ENTER          # ENTER
0x5a = KEY_KPPLUS         # L1                (XBMC recommendation: KEY_F1)
0x58 = KEY_KPMINUS        # L2                (XBMC recommendation: KEY_F2)
0x51 = KEY_M              # L3                (XBMC recommendation: KEY_F3)
0x5b = KEY_PAGEUP         # R1                (XBMC recommendation: KEY_F4)
0x59 = KEY_PAGEDOWN       # R2                (XBMC recommendation: KEY_F5)
0x52 = BTN_THUMBR         # R3                (XBMC recommendation: KEY_F6)
0x43 = KEY_HOMEPAGE       # PS button
0x50 = KEY_S              # SELECT            (XBMC recommendation: KEY_INSERT)
0x53 = BTN_START          # START             (XBMC recommendation: KEY_HOME)
0x33 = KEY_R              # SCAN BACK         (XBMC recommendation: KEY_R)
0x32 = KEY_P              # PLAY
0x34 = KEY_F              # SCAN FORWARD      (XBMC recommendation: KEY_F)
0x30 = KEY_PREVIOUS       # PREVIOUS          (XBMC recommendationL KEY_PAGEUP)
0x38 = KEY_STOP           # STOP
0x31 = KEY_NEXT           # NEXT              (XBMC recommendation: KEY_PAGEDOWN)
0x60 = KEY_FRAMEBACK      # SLOW/STEP BACK    (XBMC recommendation: KEY_COMMA)
0x39 = KEY_P              # PAUSE
0x61 = KEY_FRAMEFORWARD   # SLOW/STEP FORWARD (XBMC recommendation: KEY_DOT)
0xff = KEY_MAX

sorry if you've already checked/this is a rubbish suggestion, but I'm just trying to help.
Reply
#7
Thanks a lot for trying to help, I ended up restoring from a backup I had.
Reply

Logout Mark Read Team Forum Stats Members Help
ps3 remote not working after accidentally reinstalling bluez :(0