openambitproject/openambit

Suuntolink working with Wine

JmB11 opened this issue ยท 15 comments

JmB11 commented

Not an issue of openambit but maybe will help the community :
I have Suuntolink.exe working in Wine... So I can connect my Ambit 3 in Linux.

Need to have at least Wine 6.6 (for installing .net 4.5) in 32 bits mode.
A Staging version is also needed for running installer on Wine (non admin rights needed...)

The rule created by libambit.rules is also needed to have rights on /dev/hidrawX

Need to disable the use of SDL to discover and communicate with HID devices in wine registry.

Install was done with winetricks (corefonts, dotnet452 and win7) before running Suuntolink_installer.exe
( Installer can be downloaded here : https://suuntolink.static.movescount.com/Suuntolink_installer.exe )

App still crash sometimes but almost fine for sync and change settings of my Ambit 3 with USB cable ๐Ÿ‘

Have you tried firmware upgrade via wine?

JmB11 commented

No, just syncing and access sport modes.
I think my Ambit firmware is up to date...

This sounds very encouraging. Would it be possible for you to share all steps at a basic level please?

JmB11 commented

Ok I'll try to prepare a basic tutorial next days...

ProtD commented

Wow, thank you! I just managed to get it working as you described. The crucial steps in more detail:

  • according to your watch, edit /etc/udev/rules.d/libambit.rules: find your watch type and add something like KERNEL=="hidraw*", ATTRS{idProduct}=="001b", ENV{openambit}="yes"
    • or just run sudo chmod 0666 /dev/hidrawX where X corresponds to your device - this sets the necessary rights just for once
  • disable SDL in wine regedit by creating key Enable SDL and setting it to 0
JmB11 commented

Hi !
I've just finished to write the tutorial :
English Version
French Version

JmB11 commented

Hi Rajan,

wine 6.6 and a version of wine-staging. Does this mean we need both?
No. Only 1 version on Wine !!! At least 6.6-Staging (your 7.1-staging is ok).

winetricks -q dotnet45
Why did you use the "-q" option ?
Try without. (only winetricks dotnet45).
And if still not install .NET 4.5, try with another version : dotnet40 or dotnet452 before launching the SuuntoLink installer.

Bye.
JmB11

JmB11 commented

Strange !?!

You can try another way (without installing .NET which seems only needed for suuntolink installer...)
Very simple way :

  1. Create a new wine prefix in 32bits arch : export WINEARCH="win32"
  2. Select a windows 7 emulation : winetricks win7
  3. Add the required key in regsitry : wine reg add 'HKLM\System\CurrentControlSet\Services\WineBus' /v 'Enable SDL' /t REG_DWORD /d 0 /f
  4. Download suuntolink 4.0.5 installed files : here (link valid till March 9th, 2021).
  5. Copy downnloaded ZIP file into YOUR_WINEPREFIX/drive_c/users/YOUR_USERNAME/
  6. Expand the ZIP file into this directory : unzip suuntolink405.zip
  7. Move into the directory that has been added by the ZIP file : cd AppData/Local/Suuntolink/
  8. Try to run SuuntoLink : wine Suuntolink.exe

Hope App will run (Without .NET !!!!)

JmB11 commented

Great I'll give that a try. However, looks like you missed including the link to the installed files in step 4 above. Thanks.

https://transfert.free.fr/Zm3nBo

JmB11 commented

Wow what a log...
If you want to remove all "fixme" warnings, add export WINEDEBUG="fixme-all" before running Wine !

Just reading it quickly i saw an error on ntlm_auth (was not found or is outdated).

Maybe a sudo apt remove winbind && sudo apt install winbind can help !?!

ProtD commented

You can also try a higher version of .NET - for me, dotnet48 works fine.