Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LibreOffice and Bluetooth
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
pa4wdh
l33t
l33t


Joined: 16 Dec 2005
Posts: 808

PostPosted: Thu Jul 14, 2016 5:59 pm    Post subject: LibreOffice and Bluetooth Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9665
Location: almost Mile High in the USA

PostPosted: Thu Jul 14, 2016 11:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
pa4wdh
l33t
l33t


Joined: 16 Dec 2005
Posts: 808

PostPosted: Fri Jul 15, 2016 2:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Fri Jul 15, 2016 5:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
pa4wdh
l33t
l33t


Joined: 16 Dec 2005
Posts: 808

PostPosted: Fri Jul 15, 2016 6:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
pa4wdh
l33t
l33t


Joined: 16 Dec 2005
Posts: 808

PostPosted: Sat Jul 16, 2016 6:43 am    Post subject: Reply with quote

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
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Sat Jul 16, 2016 12:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
pa4wdh
l33t
l33t


Joined: 16 Dec 2005
Posts: 808

PostPosted: Sat Jul 16, 2016 6:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum