Re: [gentoo-user] Bluetooth and KDE Connect

2020-09-21 Thread Ashley Dixon
On Mon, Sep 21, 2020 at 05:27:58PM +0100, Peter Humphrey wrote:
> > I'm sure you've already seen this, but you might derive value from the 
> > "Device Pairing" section of the Bluetooth Gentoo Wiki page with
> > `bluetoothctl` [4].
> 
> I have, yes. I followed that method to get the devices paired. 
> 
> I was hoping to integrate the phone with my desktop. I had a vague idea of 
> using the multimedia somehow. (I did say it was vague.) KDE Connect sounded 
> like the bee's knees, but as Andrew said, it operates over WiFi, which is a 
> problem for me.

KDE Connect does look fantastic, although I'm not sure  the  client  application
could work with my Nokia 6310i.  Texting is terribly tedious using the  in-built
keyboard; Gnokii works well over Bluetooth, though. ;-)

As for a Bluetooth back-end for KDE Connect, it _does_ seem  like  there's  been
some work done towards such a goal, although it also seems to be  abandoned  and
opaque. There's an unanswered comment on a blog post which goes into some detail
[1], and then there's a package entry in the Arch User repository  (AUR)  called
`kdeconnect-bluetooth` [2].

Cloning the AUR git repository, it seems like the build script (`PKGBUILD`) just
downloads KDE Connect and passes a flag to the configure script:

build() {
  cd build
  cmake ../$_name-kde-$pkgver \
-DBUILD_TESTING=OFF \
-DCMAKE_INSTALL_LIBEXECDIR=lib\
-DBLUETOOTH_ENABLED=ON
  make
}

Gentoo does something similar [3]:

src_configure() {
local mycmakeargs=(
-DBLUETOOTH_ENABLED=$(usex bluetooth)
$(cmake_use_find_package pulseaudio KF5PulseAudioQt)
$(cmake_use_find_package wayland KF5Wayland)
$(cmake_use_find_package X LibFakeKey)
)

ecm_src_configure
}

Unfortunately, getting the Android APK companion application to use Bluetooth as
a back-end is slightly more difficult.  More information, if you really want  to
use KDE Connect: [4], [5], [6], [7], [8]. The developers made it painfully clear
that this is not on their immediate TODO list, as neither  of  the  two  primary
developers are Bluetooth users [9], so I wouldn't  expect  anything  marvellous.

Keep us updated,
Ashley.

[1] 
https://albertvaka.wordpress.com/2019/09/29/kde-connect-sprint-2019/#comment-21243
[2] https://aur.archlinux.org/packages/kdeconnect-bluetooth/
[3] 
https://gitweb.gentoo.org/repo/gentoo.git/tree/kde-misc/kdeconnect/kdeconnect-20.08.1.ebuild#n67
[4] https://bugs.kde.org/show_bug.cgi?id=330536
[5] https://www.reddit.com/r/linux/comments/6ggb36/
[6] https://phabricator.kde.org/T7447
[7] https://nicolasfella.wordpress.com/2018/07/31/kde-connect-new-stuff-ii/
[8] 
https://www.omgubuntu.co.uk/2017/06/kde-connect-bluetooth-backend-development
[9] https://bugs.kde.org/show_bug.cgi?id=330536#c8

-- 

Ashley Dixon
suugaku.co.uk

2A9A 4117
DA96 D18A
8A7B B0D2
A30E BF25
F290 A8AA



signature.asc
Description: PGP signature


Re: [gentoo-user] Bluetooth and KDE Connect

2020-09-21 Thread Peter Humphrey
On Monday, 21 September 2020 11:40:36 BST Ashley Dixon wrote:
> On Mon, Sep 21, 2020 at 10:44:52AM +0100, Peter Humphrey wrote:
> > I should have asked: is there something like KDE Connect but using
> > Bluetooth? Or a direct USB link? My WiFi is served by the Billion router,
> > and as far as I can see it's permanently isolated from the LAN. Mind you,
> > the manual is a 12.4MB PDF, so I might well have missed something.
> 
> If you want a fancy G.U.I.  application (GTK+), I've heard good things about
> The Blueman Project (net-wireless/blueman), although I've never used it 
> myself.   I assume it transfers binary files with OBEX [1], conferring with
> the BlueZ kernel driverset [2, 3].
> 
> $ ash-euses -so obex # shameless plug
> net-wireless/bluez:obex - Enable OBEX transfer support

That sounds good, Ashley. I'll have a look at it.

> I'm sure you've already seen this, but you might derive value from the 
> "Device Pairing" section of the Bluetooth Gentoo Wiki page with
> `bluetoothctl` [4].

I have, yes. I followed that method to get the devices paired. 

I was hoping to integrate the phone with my desktop. I had a vague idea of 
using the multimedia somehow. (I did say it was vague.) KDE Connect sounded 
like the bee's knees, but as Andrew said, it operates over WiFi, which is a 
problem for me.

-- 
Regards,
Peter.






Re: [gentoo-user] Bluetooth and KDE Connect

2020-09-21 Thread Ashley Dixon
On Mon, Sep 21, 2020 at 10:44:52AM +0100, Peter Humphrey wrote:
> I should have asked: is there something like KDE Connect but using Bluetooth? 
> Or a direct USB link? My WiFi is served by the Billion router, and as far as 
> I 
> can see it's permanently isolated from the LAN. Mind you, the manual is a 
> 12.4MB PDF, so I might well have missed something.

If you want a fancy G.U.I.  application (GTK+), I've heard good things about The
Blueman Project (net-wireless/blueman), although I've never used it  myself.   I
assume it transfers binary files with OBEX [1], conferring with the BlueZ kernel
driverset [2, 3].

$ ash-euses -so obex # shameless plug
net-wireless/bluez:obex - Enable OBEX transfer support

I'm sure you've already seen this, but you might derive value from  the  "Device
Pairing" section of the Bluetooth Gentoo Wiki page with `bluetoothctl` [4].

[1] https://en.wikipedia.org/wiki/OBject_EXchange
[2] https://github.com/blueman-project/blueman
[3] 
https://github.com/blueman-project/blueman/wiki/Integrations#obex-file-transfer
[4] https://wiki.gentoo.org/wiki/Bluetooth#Device_pairing

-- 

Ashley Dixon
suugaku.co.uk

2A9A 4117
DA96 D18A
8A7B B0D2
A30E BF25
F290 A8AA



signature.asc
Description: PGP signature


Re: [gentoo-user] Bluetooth and KDE Connect

2020-09-21 Thread Peter Humphrey
On Monday, 21 September 2020 09:40:08 BST Peter Humphrey wrote:
> On Monday, 21 September 2020 05:54:23 BST Andrew Udvare wrote:
> > KDE Connect works over wi-fi by having your phone and computer on the same
> > network. You must run the app on your phone and it should see your
> > computer
> > if it is running KDE Connect.
> > 
> > Make sure you allow the KDE Connect ports in your firewall. 1714-1764 for
> > UDP and TCP.
> > 
> > Bluetooth services from your phone are not related to KDE Connect.
> 
> That explains it. I wonder why the docs don't mention that anywhere - at
> least I tried to find it and failed. The connection dialogue box even
> refers to device pairing, which is a Bluetooth term.

I should have asked: is there something like KDE Connect but using Bluetooth? 
Or a direct USB link? My WiFi is served by the Billion router, and as far as I 
can see it's permanently isolated from the LAN. Mind you, the manual is a 
12.4MB PDF, so I might well have missed something.

-- 
Regards,
Peter.






Re: [gentoo-user] Bluetooth and KDE Connect

2020-09-21 Thread Peter Humphrey
On Monday, 21 September 2020 05:54:23 BST Andrew Udvare wrote:

> KDE Connect works over wi-fi by having your phone and computer on the same
> network. You must run the app on your phone and it should see your computer
> if it is running KDE Connect.
> 
> Make sure you allow the KDE Connect ports in your firewall. 1714-1764 for
> UDP and TCP.
> 
> Bluetooth services from your phone are not related to KDE Connect.

That explains it. I wonder why the docs don't mention that anywhere - at least 
I tried to find it and failed. The connection dialogue box even refers to 
device pairing, which is a bluetooth term.

Thanks Andrew.

-- 
Regards,
Peter.






Re: [gentoo-user] Bluetooth and KDE Connect

2020-09-20 Thread Andrew Udvare
On Sun, Sep 20, 2020, 19:46 Peter Humphrey  wrote:

> Evening all,
>
> I've plugged in a new USB Bluetooth adapter, following the instructions in
> the
> wiki: https://wiki.gentoo.org/wiki/Bluetooth . The idea is to connect to
> my
> Android phone, but I'm only getting part way.
>
> After installing bluez and broadcom-bt-firmware, then booting with the new
> kernel, Bluetooth discovery and pairing work fine, but KDE Connect on each
> device can't see the other: they both report "No Devices".
>
> That nice Mr Google doesn't help, nor do the fine manuals and KDE web
> pages.
> Has anyone succeeded with this?
>

KDE Connect works over wi-fi by having your phone and computer on the same
network. You must run the app on your phone and it should see your computer
if it is running KDE Connect.

Make sure you allow the KDE Connect ports in your firewall. 1714-1764 for
UDP and TCP.

Bluetooth services from your phone are not related to KDE Connect.

Andrew