Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suuntolink working with Wine #284

Open
JmB11 opened this issue Dec 11, 2021 · 15 comments
Open

Suuntolink working with Wine #284

JmB11 opened this issue Dec 11, 2021 · 15 comments

Comments

@JmB11
Copy link

JmB11 commented Dec 11, 2021

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 👍

@jadahl
Copy link
Contributor

jadahl commented Dec 11, 2021

Have you tried firmware upgrade via wine?

@JmB11
Copy link
Author

JmB11 commented Dec 11, 2021

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

@RajanChhetri-Astronomy
Copy link

RajanChhetri-Astronomy commented Jan 25, 2022

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

@JmB11
Copy link
Author

JmB11 commented Jan 26, 2022

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

@ProtD
Copy link

ProtD commented Jan 28, 2022

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
Copy link
Author

JmB11 commented Feb 5, 2022

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

@RajanChhetri-Astronomy
Copy link

RajanChhetri-Astronomy commented Feb 7, 2022 via email

@JmB11
Copy link
Author

JmB11 commented Feb 8, 2022

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

@RajanChhetri-Astronomy
Copy link

RajanChhetri-Astronomy commented Feb 10, 2022 via email

@JmB11
Copy link
Author

JmB11 commented Feb 10, 2022

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 !!!!)

@RajanChhetri-Astronomy
Copy link

RajanChhetri-Astronomy commented Feb 10, 2022 via email

@JmB11
Copy link
Author

JmB11 commented Feb 10, 2022

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

@RajanChhetri-Astronomy
Copy link

RajanChhetri-Astronomy commented Feb 11, 2022 via email

@JmB11
Copy link
Author

JmB11 commented Feb 11, 2022

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
Copy link

ProtD commented Feb 12, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants