Lovense toys and CHs under Linux?

Discussion about Cock Hero and other sexy videos.

Moderator: andyp

Post Reply
monsieur_so
Explorer
Explorer
Posts: 7
Joined: Thu Jun 06, 2019 12:50 am

Re: Lovense toys and CHs under Linux?

Post by monsieur_so »

You can install Intiface Central on Linux, which work great with Buttplug.io. Saldy, I don't know any video player supporting Linux. As they are C# based, they certainly won't easily be ported. Wine seems not to help.

There remains a web-based player, https://funscript-player.vercel.app. However it does not support buttplug.io connection, relying instead to experimental WebBluetooth API. Testing it on one Linux machine (Chrome/Chromium), the device is recognized, but the app fails with an error (in the dev console). Maybe others had better luck. Check these instructions to enable WebBluetooth.

Finally as a non-solution that kinda works: VirtualBox with a Windows VM. You better have a USB dongle for making it accessible to the VM. The issue then is: you may not have video acceleration, which rapidly sucks a lot of CPU... you may even have a laggy video.
diglet
Explorer At Heart
Explorer At Heart
Posts: 203
Joined: Sun Dec 11, 2022 5:43 pm

Re: Lovense toys and CHs under Linux?

Post by diglet »

If you can program, making something that loads the funscript, connects to buttplug.io, and syncs with VLC can't be that hard...
User avatar
gynephilos
Explorer At Heart
Explorer At Heart
Posts: 152
Joined: Tue Jul 25, 2017 5:33 am

Re: Lovense toys and CHs under Linux?

Post by gynephilos »

All the graphical tools seemed too overkill to me. I have created a Python script to convert estim files to intensity levels, which are fed via bluetooth to a device. I had to reverse engineer the device's bluetooth protocol, but it was surprisingly easy. I've been thinking about buying Lovense Edge 2 and creating a driver for it. So yes, it's all possible.
My videos: Cock Hero: Female Pleasure (forum/viewtopic.php?f=25&t=20080) · Cock Hero: Female Pleasure Vol 2 (forum/viewtopic.php?f=25&t=20482) · Cock Hero: Female Pleasure Vol 3 · Cock Hero: Female Pleasure Vol 4 · Cock Hero: Female Pleasure Vol 5 · Cock Hero: Feel the Vibe · Cock Hero: Female Pleasure Vol 6
diglet
Explorer At Heart
Explorer At Heart
Posts: 203
Joined: Sun Dec 11, 2022 5:43 pm

Re: Lovense toys and CHs under Linux?

Post by diglet »

lustfulwh0re wrote: Wed Jan 17, 2024 6:29 pm
diglet wrote: Mon Jan 15, 2024 10:36 pm If you can program, making something that loads the funscript, connects to buttplug.io, and syncs with VLC can't be that hard...
I can program with Python, but I have no idea how I'd sync with a running VLC video. Is VLC offering some API that constantly reports (over a socket?) what time the video is currently at?
Yes. Information here:

Instructions for enabling the VLC API: https://www.youtube.com/watch?v=2wu1vQDazNY
Multifunplayer source code: https://github.com/Yoooi0/MultiFunPlaye ... aSource.cs

Basically you have to query http://127.0.0.1:8080/requests/status.xml repeatedly to retrieve the current media timestamp. Also try /requests/playlist.xml
monsieur_so
Explorer
Explorer
Posts: 7
Joined: Thu Jun 06, 2019 12:50 am

Re: Lovense toys and CHs under Linux?

Post by monsieur_so »

Oh, great! Seems indeed really doable.

For connecting to the devices with buttplug.io, there is a Python library.

So the meaty part seems to get the instructions from the funscript for the current timestamp. All the rest is configuration (the video to read, buttplug device to use).

There is also an API (with a Python lib) to control MPV.

I'll share my script if I ever give it a try.
monsieur_so
Explorer
Explorer
Posts: 7
Joined: Thu Jun 06, 2019 12:50 am

Re: Lovense toys and CHs under Linux?

Post by monsieur_so »

Ok, I got something kind of working with MPV and Buttplug.

Here the code: https://pastes.io/gdmx6pyygu
You need a decent version of Python 3 and to install with pip mpv, buttplug and click libs.

Code: Select all

pip install mpv buttplug-py click
You can then launch the script with a video to play:

Code: Select all

python player.py ch_descent_e1_v3.mp4
I'll make a GitHub repo with all that.

Testing with CH Descent, Andel funscript and a Lovense Gush, it sends the instruction to the vibrator. However I have a vastly different result than with ScriptPlayer: the latter seems to fade the actions (or is it my VM that lag?), which give a much more smooth and interesting result. Does someone knows about the theory of how should be interpreted and transitioned the position?

Beware: this is a POC version, it certainly does not work as is with linear devices.
User avatar
gynephilos
Explorer At Heart
Explorer At Heart
Posts: 152
Joined: Tue Jul 25, 2017 5:33 am

Re: Lovense toys and CHs under Linux?

Post by gynephilos »

lustfulwh0re wrote: Wed Jan 17, 2024 6:27 pm I believe I can figure out a Python script, if you can share it please PM me.
What Python module did you use to speak over Bluetooth to your device?
And also, what HW? Did you use a USB dongle?
I found something called bleak to control the device via Bluetooth. It's a nice library.

I had to reverse engineer the protocol but it was just one message where the number needed to be modified to control the vibration level.

It's a simple USB thing for Kegel exercises but the virbation is too weak and the pressure sensor badly placed to be useful for what I had in mind :lol:
My videos: Cock Hero: Female Pleasure (forum/viewtopic.php?f=25&t=20080) · Cock Hero: Female Pleasure Vol 2 (forum/viewtopic.php?f=25&t=20482) · Cock Hero: Female Pleasure Vol 3 · Cock Hero: Female Pleasure Vol 4 · Cock Hero: Female Pleasure Vol 5 · Cock Hero: Feel the Vibe · Cock Hero: Female Pleasure Vol 6
User avatar
give_a_nap
Explorer
Explorer
Posts: 17
Joined: Thu Apr 18, 2024 6:47 pm

Re: Lovense toys and CHs under Linux?

Post by give_a_nap »

monsieur_so wrote: Thu Jan 18, 2024 10:21 pm Ok, I got something kind of working with MPV and Buttplug.

Here the code: https://pastes.io/gdmx6pyygu
You need a decent version of Python 3 and to install with pip mpv, buttplug and click libs.

Code: Select all

pip install mpv buttplug-py click
You can then launch the script with a video to play:

Code: Select all

python player.py ch_descent_e1_v3.mp4
I'll make a GitHub repo with all that.

Testing with CH Descent, Andel funscript and a Lovense Gush, it sends the instruction to the vibrator. However I have a vastly different result than with ScriptPlayer: the latter seems to fade the actions (or is it my VM that lag?), which give a much more smooth and interesting result. Does someone knows about the theory of how should be interpreted and transitioned the position?

Beware: this is a POC version, it certainly does not work as is with linear devices.
The pastes.io link has expired.
Can you share this again? Or maybe put it up on GitHub?
monsieur_so
Explorer
Explorer
Posts: 7
Joined: Thu Jun 06, 2019 12:50 am

Re: Lovense toys and CHs under Linux?

Post by monsieur_so »

Here a zip of my last try. I don't have time right now to create a GitHub account for it.

In this version I tried to replicate the "position to speed" algo of ScriptPlayer, but I failed. I tried to read the original code to understand how it works, but the timing logic is disseminated in many places. If someone is able to describe how the patterns are generated by ScriptPlayer, that would help.

Setting the vibration level directly to the level specified in the funscript is rather easy, however this is really less fun than the "position to speed" mode of ScriptPlayer. I enclosed also an earlier and more simpler version that does just that.

Good luck.
Attachments
pympv-funscript-player-3221482267808a112a9ec09fa25090f8e4d8575c.zip
(7.73 KiB) Downloaded 8 times
pympv-funscript-player-master.zip
(9.39 KiB) Downloaded 7 times
Post Reply

Who is online

Users browsing this forum: Baidu [Spider], Edharris2020, Tdruss, VolatileCrimson and 48 guests