View previous topic :: View next topic |
Author |
Message |
pa4wdh l33t
Joined: 16 Dec 2005 Posts: 808
|
Posted: Thu Jul 14, 2016 5:59 pm Post subject: LibreOffice and Bluetooth |
|
|
Hi All,
I'm trying to get the Remote Control function of LibreOffice Impress going. So far I got TCP going (it listens and responds as expected), but bluetooth doesn't work. I have to say i'm quite inexperienced when it comes to bluetooth so I could be doing something wrong.
I have two systems: A laptop with LibreOffice running and /etc/init.d/bluetooth started and a desktop where i use hcitool and sdptool to test.
LibreOffice has been compiled with the "bluetooth" USE flag and Remote Control is enabled (verified with the working tcp connection).
On both systems the kernel has been reconfigured to include bluetooth, rfcomm and the appropriate drivers.
When i perform a hcitool scan form my desktop, the laptop shows up, when i use sdptool browse I get a response with some bluez provided services, but not LibreOffice. When i use sdptool browse --uuid 0x1101 I get no response at all, according to this information https://cgit.freedesktop.org/libreoffice/core/tree/sd/README_REMOTE that should be the UUID for LibreOffice.
Do you have any suggestions on how to troubleshoot this ?
Thanks in advance. _________________ The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world
My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com
Last edited by pa4wdh on Fri Jul 15, 2016 6:20 pm; edited 1 time in total |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9665 Location: almost Mile High in the USA
|
Posted: Thu Jul 14, 2016 11:28 pm Post subject: |
|
|
I've never used LibreOffice's BT control but one thing is that it may require certain classes of devices "device profile" to allow remote control.
Are you saying you have one of those discrete BT clickers, or were you planning on using a laptop as the remote control for the desktop? The latter was not intended to be the use mechanism and probably won't work the way you want, at least as it is.
(You could use the "report topic" button to get a mod's attention to move the post if you want.) _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
pa4wdh l33t
Joined: 16 Dec 2005 Posts: 808
|
Posted: Fri Jul 15, 2016 2:55 pm Post subject: |
|
|
I'm sorry if my question was unclear.
This is not about the BT clickers, as far as I know these are just HID devices and usually show up as bluetooth keyboards handled by the OS.
LibreOffice Impress has it's own remote control protocol (described in the link in my previous post) which allows more functions than the BT clickers. For now I'm trying to connect between a laptop running LibreOffice Impress and a desktop which i will use to develop a remote control client application. The desktop will eventually change for a Sailfish OS based smartphone and then things will start to make sense
Independent of the device classes I should be able to discover a LibreOffice Impress service and it should return a rfcomm channel number to use, as least, that's as far as I understood from information I have now. _________________ The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world
My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Fri Jul 15, 2016 5:44 pm Post subject: |
|
|
Moved from Unsupported Software to Other Things Gentoo by user request. _________________ "I'm just very selective about the reality I choose to accept." -- Calvin |
|
Back to top |
|
|
pa4wdh l33t
Joined: 16 Dec 2005 Posts: 808
|
Posted: Fri Jul 15, 2016 6:21 pm Post subject: |
|
|
Thanks Pilla _________________ The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world
My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com |
|
Back to top |
|
|
pa4wdh l33t
Joined: 16 Dec 2005 Posts: 808
|
Posted: Sat Jul 16, 2016 6:43 am Post subject: |
|
|
I made a little progress with this issue.
There seems to be some kind of permissions involved here. When I run LibreOffice as root bluetooth seems to work, if I run it as a regular user it doesn't. However, i can't see what to change to give a regular user permission to do this.
Any hints ? _________________ The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world
My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Sat Jul 16, 2016 12:19 pm Post subject: |
|
|
Code: | Permissions for Bluetooth devices will be handled automatically if the USE variable is set to acl, and ConsoleKit or systemd is being used.
Alternatively, adding a user to the plugdev group will allow that user to access Bluetooth devices:
root #gpasswd -a <user> plugdev
|
https://wiki.gentoo.org/wiki/Bluetooth _________________ "I'm just very selective about the reality I choose to accept." -- Calvin |
|
Back to top |
|
|
pa4wdh l33t
Joined: 16 Dec 2005 Posts: 808
|
Posted: Sat Jul 16, 2016 6:52 pm Post subject: |
|
|
Somehow I managed to miss that part of the howto. Fixed it and now it works, thanks ! _________________ The gentoo way of bringing peace to the world:
USE="-war" emerge --newuse @world
My shared code repository: https://code.pa4wdh.nl.eu.org
Music, Free as in Freedom: https://www.jamendo.com |
|
Back to top |
|
|
|