openSUSE Forums > Hardware » Bluetooth Solution for openSUSE 11.1

Go Back   openSUSE Forums > Hardware
Forums FAQ Members List Search Today's Posts Mark Forums Read

Hardware Questions about drivers, peripheral cabling, configuration

Reply
Page 1 of 5 1 23 Last »
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 19-Dec-2008, 16:31
Puzzled Penguin
 
Join Date: Dec 2008
Posts: 9
matthewcraig hasn't been rated much yet
Thumbs up Bluetooth Solution for openSUSE 11.1

After having great difficulty getting the new KDE graphical interface for Bluetooth running in the new 11.1, so I changed tracks and focused on the command line, instead. With a lot of help from "jhe" in freenode, we got the BT device registered and automatically detected in future reboots. I wanted to document these commands for everyone else struggling with their own bluetooth configuration. After reading through the forum posts here, it seems like I was not alone in having problems.

HOWTO Bluetooth Apple Keyboard (aluminum model):

All commands must be run as root.

First, determine the BT dongle is working correctly. This HOWTO assumes it is. Refer to other documents if you are having trouble here.

Next, determine the address of the BT device. In this case, the keyboard was 00:1E:52:FF:68:44
Code:
hcitool scan
Next, download the two developer scripts, simple-agent and test-device :
git.kernel.org - bluetooth/bluez.git/tree - test/

Configure these scripts on your system so they can be run as root, with the chmod command.

Turn on your BT device.

Pair your device with the bluetooth dongle using the following command :
Code:
./simple-agent hci0 00:1E:52:FF:68:44
Type a four digit code when prompted for a PIN, and type the same on the keyboard. You should get a device path, if it works correctly. For example:
Code:
New device (/org/bluez/6308/hci0/dev_00_1E_52_FF_68_44)
Lastly, connect to the device, using your device path :
Code:
dbus-send --system --dest=org.bluez --print-reply /org/bluez/6308/hci0/dev_00_1E_52_FF_68_44 org.bluez.Input.Connect
Your BT keyboard should now be functional. Do not be afraid to run these commands more than once, if they did not immediately succeed. Bluetooth works on cycles of many seconds. Personally, I ran the dbus-send command three times before a connection was established.

Finally, to keep from having to run these commands on every boot, run this command to establish a trust for the device:
Code:
./test-device.pl trusted 00:1E:52:FF:68:44 yes
Let me know if this helps you get up and running. Happy hacking.
Reply With Quote
  #2 (permalink)  
Old 20-Dec-2008, 05:52
Puzzled Penguin
 
Join Date: Jun 2008
Posts: 4
torbenk hasn't been rated much yet
Default Re: Bluetooth Solution for openSUSE 11.1

Thanks, that helped me with my bluetooth mouse.
But I really hope there will be a patch or something, because I don't want to manage my bluetooth devices with the console.
Reply With Quote
  #3 (permalink)  
Old 20-Dec-2008, 09:48
coomac's Avatar
Explorer Penguin
 
Join Date: Jun 2008
Location: Cleveland USA
Posts: 131
coomac hasn't been rated much yet
Default Re: Bluetooth Solution for openSUSE 11.1

There was an outstanding bug regarding the lack of a working bluetooth gui before 11.1 was released. Honestly I'm very disappointed it was released before the issue was resolved. The best work around proposed was to install the gnome bluetooth package since kde3 bluetooth is broken on kde4. It's an upstream issue, but hopefully an update to bluetooth will be released soon.
__________________
Unintentionally left blank...
Reply With Quote
  #4 (permalink)  
Old 21-Dec-2008, 21:28
Puzzled Penguin
 
Join Date: Dec 2008
Posts: 4
raid3868 hasn't been rated much yet
Default Re: Bluetooth Solution for openSUSE 11.1

hi,

i hv problem when execute ./simple-agent

error as below
insp1420:~ # ./simple-agent hci0 00:07:61:9B:FF:A5
File "./simple-agent", line 21
def Release(self):
^
IndentationError: unexpected indent

can someone tell me what is happen?

tks
Reply With Quote
  #5 (permalink)  
Old 22-Dec-2008, 02:16
Puzzled Penguin
 
Join Date: Dec 2008
Posts: 1
scheskis hasn't been rated much yet
Default Re: Bluetooth Solution for openSUSE 11.1

The solution is working well with Logitech travel bluetooth mouse
Reply With Quote
  #6 (permalink)  
Old 23-Dec-2008, 04:01
Puzzled Penguin
 
Join Date: Dec 2008
Posts: 1
demuthb hasn't been rated much yet
Default Re: Bluetooth Solution for openSUSE 11.1

worked fine for the MS mice 5000 'til the next reboot.
Even after the restart hcitool scan can't find the mice again.
Any idea?
Best regards
Bernd
Reply With Quote
  #7 (permalink)  
Old 23-Dec-2008, 08:18
Puzzled Penguin
 
Join Date: Dec 2008
Posts: 4
rainerklier hasn't been rated much yet
Exclamation Re: Bluetooth Solution for openSUSE 11.1

bluetooth works if using bluez packages from seifes repo and using gnome-bluetooth tools from within a gnome-session.
when using gnome-bluetooth tools from within a kde-session it doesn't work.
Reply With Quote
  #8 (permalink)  
Old 25-Dec-2008, 10:24
Puzzled Penguin
 
Join Date: Dec 2008
Posts: 8
silalaval hasn't been rated much yet
Default Re: Bluetooth Solution for openSUSE 11.1

Quote:
Next, download the two developer scripts, simple-agent and test-device :
git.kernel.org - bluetooth/bluez.git/tree - test/

Configure these scripts on your system so they can be run as root, with the chmod command.

Could you please explain how to do this?

Thank you in advance
Reply With Quote
  #9 (permalink)  
Old 26-Dec-2008, 07:06
Puzzled Penguin
 
Join Date: Dec 2008
Posts: 7
Drunken hasn't been rated much yet
Default Re: Bluetooth Solution for openSUSE 11.1

Nope doesn't work for me in 11.0. My logitech cordless mediaboard pro still doesn't work I only get errors.
Code:
linux-*:/home/*/Documents # ./simple-agent hci0 00:07:61:76:8F:A0
ERROR:dbus.connection:Unable to set arguments ('00:07:61:76:8F:A0', '/test/agent', 'DisplayYesNo') according to signature u'so': <type 'exceptions.TypeError'>: Fewer items found in D-Bus signature than in Python arguments
Traceback (most recent call last):
  File "/usr/lib64/python2.5/site-packages/dbus/connection.py", line 563, in msg_reply_handler
    reply_handler(*message.get_args_list(**get_args_opts))
  File "/usr/lib64/python2.5/site-packages/dbus/proxies.py", line 391, in _introspect_reply_handler
    self._introspect_execute_queue()
  File "/usr/lib64/python2.5/site-packages/dbus/proxies.py", line 378, in _introspect_execute_queue
    proxy_method(*args, **keywords)
  File "/usr/lib64/python2.5/site-packages/dbus/proxies.py", line 132, in __call__
    **keywords)
  File "/usr/lib64/python2.5/site-packages/dbus/connection.py", line 543, in call_async
    message.append(signature=signature, *args)
TypeError: Fewer items found in D-Bus signature than in Python arguments

^CTraceback (most recent call last):
  File "./simple-agent", line 109, in <module>
    mainloop.run()
KeyboardInterrupt
linux-*:/home/*/Documents # New device (/org/bluez/6308/hci0/dev_00_07_61_76_8F_A0)
bash: syntax error near unexpected token `('
linux-*:/home/*/Documents # New device /org/bluez/6308/hci0/dev_00_07_61_76_8F_A0
bash: New: command not found
linux-*:/home/*/Documents # dbus-send --system --dest=org.bluez --print-reply /org/bluez/6308/hci0/dev_00_07_61_76_8F_A0 org.bluez.Input.Connect
Error org.freedesktop.DBus.Error.UnknownMethod: Method "Connect" with signature "" on interface "org.bluez.Input" doesn't exist
Reply With Quote
  #10 (permalink)  
Old 27-Dec-2008, 04:26
Explorer Penguin
 
Join Date: Jun 2008
Location: Mexico
Posts: 160
LuisC-SM hasn't been rated much yet
Default Re: Bluetooth Solution for openSUSE 11.1

Quote:
Originally Posted by silalaval View Post
Could you please explain how to do this?

Thank you in advance
Download them. Right mouse click on "raw" and use "Save link As" (probably you must rename it with the original name)
After downloading...
open a terminal or konsole and change to the directory where you have previously downloaded them. (cd /downloaded/directory)
then execute the command "chmod +x nameofthefile" without quotes and then execute "su" without quotes and
Then execute "python name_of_script" (I think this is a python script) and follow the rest of the manual

Good luck

Luis
__________________
La Humildad no es "Status"..
... es un ¡"Don"!

My Laptop Specs (PDF in Spanish)
Reply With Quote
Reply
Page 1 of 5 1 23 Last »

Bookmarks

Tags
11.1, apple keyboard bluetooth, bluetooth, kde, solution


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.2