Skip to contentSkip to conversation

PS3Remote patches

Bluez-devel [email protected] 2 participants 5 messages Jan 29, 2008 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi! I'tried the patches on last cvs checkout and compiled libs and utils, but after restarting bluetooth services and pressing the remote buttons nothing happens.
The remote is paired and works with some python script from
http://tinyurl.com/36kfdz (Thanks Jonas Borgstrom).
In /proc/bus/input/devices i have:
I: Bus=0005 Vendor=054c Product=0306 Version=0100
N: Name="Sony Computer Entertainment Inc BD Remote Control"
P: Phys=XX:XX:XX:XX:XX:XX
S: Sysfs=/class/input/input6
U: Uniq=YY:YY:YY:YY:YY:YY
H: Handlers=event6
B: EV=1
I tried also cat /dev/input/event6 but nothing happens.

Can someone help me understand it? Am I missing something? Thanks.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#1 lore raw

Hi,

Quoted 15 lines

Hi! I'tried the patches on last cvs checkout and compiled libs and utils, but after restarting bluetooth services and pressing the remote buttons nothing happens.
The remote is paired and works with some python script from
http://tinyurl.com/36kfdz (Thanks Jonas Borgstrom).
In /proc/bus/input/devices i have:
I: Bus=0005 Vendor=054c Product=0306 Version=0100
N: Name="Sony Computer Entertainment Inc BD Remote Control"
P: Phys=XX:XX:XX:XX:XX:XX
S: Sysfs=/class/input/input6
U: Uniq=YY:YY:YY:YY:YY:YY
H: Handlers=event6
B: EV=1
I tried also cat /dev/input/event6 but nothing happens.

Quoted 1 line

Can someone help me understand it? Am I missing something?

are you sure you applied the patches I've submitted to the list? the device name doesn't matches the one set on the uinput device.

Signature · 11 lines
Aristeu


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
#2 lore raw
Quoted 5 lines · Aristeu Rozanski

are you sure you applied the patches I've submitted to the list? the device name doesn't matches the one set on the uinput device.

Signature · 1 line
Aristeu

Yes. All of them, i've checked the file in utils/input and assure that the file bluetoothd-service-input just compiled is in /usr/lib/bluetooth/ Is there anything else I can check?

Signature · 11 lines
Ciao, Emiliano. 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
#3 lore raw
Quoted 3 lines

Yes. All of them, i've checked the file in utils/input and assure that the file bluetoothd-service-input just compiled is in /usr/lib/bluetooth/ Is there anything else I can check?

check if bluetoothd-service-input/hcid are running, they may be the old copy. also, by default it'll be installed in /usr/local/...
Is uinput module loaded? is there anything on logs perhaps?

Signature · 11 lines
Aristeu


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
#4 lore raw
Quoted 6 lines · Aristeu Rozanski

check if bluetoothd-service-input/hcid are running, they may be the old copy. also, by default it'll be installed in /usr/local/...
Is uinput module loaded? is there anything on logs perhaps?

Signature · 1 line
Aristeu

let's see:

# ps ax|grep hcid
4704 ?        Ss     0:00 /usr/sbin/hcid -x -s
5323 pts/1    R+     0:00 grep hcid
it seems is running.
Right after I compiled the utils I restarted bluetooth service and had no 
errors.
But now I tried to first stop it:
# /etc/init.d/bluetooth stop
Stopping bluetooth: rfcomm hid_devicesSwitching device 0a12:0001 to HID mode 
failed (Broken pipe)
hidd hcid.
then tried to start:
# /etc/init.d/bluetooth start
Starting bluetooth: hcid hidd hid_devicesNo devices in HCI mode found
rfcomm. 

I think I broke something...
Here is some syslog
-This is when I attach the usb dongle:

Jan 30 00:04:03 soulmate kernel: usb 3-1: new full speed USB device using 
uhci_hcd and address 3
Jan 30 00:04:03 soulmate kernel: usb 3-1: configuration #1 chosen from 1 
choice
Jan 30 00:04:03 soulmate hcid[3291]: HCI dev 0 registered
Jan 30 00:04:03 soulmate hcid[3291]: HCI dev 0 up
Jan 30 00:04:03 soulmate hcid[3291]: Device hci0 has been added
Jan 30 00:04:03 soulmate hcid[3291]: Starting security manager 0
Jan 30 00:04:03 soulmate hcid[3291]: Device hci0 has been activated
 -press a button on the remote:
Jan 30 00:07:40 soulmate hidd[3295]: New HID device XX:XX:XX:XX:XX:XX (Sony 
Computer Entertainment Inc BD Remote Control)
Jan 30 00:07:40 soulmate kernel: input: Sony Computer Entertainment Inc BD 
Remote Control as /class/input/input6
 -tried to stop the service:
an 30 00:10:06 soulmate hidd[3295]: Exit
Jan 30 00:10:06 soulmate hcid[3291]: Stopping SDP server
Jan 30 00:10:06 soulmate hcid[3291]: Unregister path: /org/bluez/hci0
Jan 30 00:10:06 soulmate hcid[3291]: Unregister path: /org/bluez
Jan 30 00:10:06 soulmate hcid[3291]: Shutting down local server
Jan 30 00:10:06 soulmate hcid[3291]: Exit
 -tried to start the service:
Jan 30 00:12:04 soulmate hcid[3856]: Bluetooth HCI daemon
Jan 30 00:12:04 soulmate hcid[3856]: HCI dev 0 registered
Jan 30 00:12:04 soulmate hcid[3856]: HCI dev 0 already up
Jan 30 00:12:04 soulmate hcid[3856]: Device hci0 has been added
Jan 30 00:12:04 soulmate hidd[3860]: Bluetooth HID daemon
Jan 30 00:12:04 soulmate hcid[3856]: Starting security manager 0
Jan 30 00:12:04 soulmate hcid[3856]: Device hci0 has been activated
Jan 30 00:12:04 soulmate hcid[3856]: Starting SDP server
Jan 30 00:12:04 soulmate hcid[3856]: Created local server at 

unix:abstract=/var/run/dbus-DmTOlqsMvO,guid=fd5b47e83850bf415914b64e479fb2c4

Signature · 11 lines
Ciao, Emiliano. 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel