Suuntolink PnPutil.exe issue

Questions about Wine on Linux
Locked
6u1d0
Newbie
Newbie
Posts: 3
Joined: Tue Nov 21, 2017 1:26 pm

Suuntolink PnPutil.exe issue

Post by 6u1d0 »

Hy,
I am trying to run Suuntolink (required to sync a Ambit2 watch with its online setup) with wine-5.0.2 on LMDE.
I found this report on Moveslink2 (former app same usage but killed by Suunto). So for the same reasons, the installer doesn't work, and I am trying to use suuntolink files from a windows10 installation.
I am ruuning in some PnPutil.ex issue. Here's a report log created by Suuntolink.exe (found in \users\***\Application Data\Suuntolink)

Code: Select all

[2021-05-20 10:39:37 +0200] [info] Using config file production.json
[2021-05-20 10:39:38 +0200] [info] Starting version 3.5.2
[2021-05-20 10:39:38 +0200] [info] Using PnpUtil from PnPutil.exe
[2021-05-20 10:39:38 +0200] [info] Checking if ucrt was already moved
[2021-05-20 10:39:38 +0200] [error] Error installing driver: spawn PnPutil.exe ENOENT
Error: spawn PnPutil.exe ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
    at onErrorNT (internal/child_process.js:469:16)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)
[2021-05-20 10:39:38 +0200] [info] Windows version check
[2021-05-20 10:39:38 +0200] [info] This system is not Windows 10: 
Error: Command failed: REG.exe QUERY HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion /v CurrentMajorVersionNumber
[2021-05-20 10:39:38 +0200] [info] Copying ucrt
[2021-05-20 10:39:38 +0200] [info] Moving ucrt
[2021-05-20 10:39:38 +0200] [info] ucrt setup results:  EEXIST: file already exists, link 'C:\users\guido\Application Data\mySuuntoPC\app-3.5.2\resources\app\ucrt' -> 'C:\users\guido\Application Data\mySuuntoPC\app-3.5.2\resources\app'
Error: EEXIST: file already exists, link 'C:\users\guido\Application Data\mySuuntoPC\app-3.5.2\resources\app\ucrt' -> 'C:\users\guido\Application Data\mySuuntoPC\app-3.5.2\resources\app'
[2021-05-20 10:39:38 +0200] [info] Install SuuntolinkLauncher.exe
[2021-05-20 10:39:38 +0200] [info] Windows autostart
[2021-05-20 10:39:39 +0200] [info] Windows SuuntolinkLauncher taskkill error: Command failed: taskkill /f /im SuuntolinkLauncher.exe
Error: Command failed: taskkill /f /im SuuntolinkLauncher.exe

    at ChildProcess.exithandler (child_process.js:312:12)
    at ChildProcess.emit (events.js:315:20)
    at maybeClose (internal/child_process.js:1021:16)
    at Socket.<anonymous> (internal/child_process.js:443:11)
    at Socket.emit (events.js:315:20)
    at Pipe.<anonymous> (net.js:674:12)
First issue seems to be that PnPutil.exe isn't where expected. I googled for some informations on PnPutil.exe, but got nothing revelant. I'd appreciate any information, work around or trick regarding PnPutil.exe.

Thanks.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Suuntolink PnPutil.exe issue

Post by jkfloris »

I tried the SuuntoLink (version 3.5.2) installer.

Although the installer does not work, it is possible to unpack and run the program manually.

The program seems to work with Wine 6.8, but whether it will recognize the watch is the question. The program tries to install a Windows driver with pnputil, but also looks for an FTDI driver that is built into the Linux kernel.

In other words, update Wine and try again.
6u1d0
Newbie
Newbie
Posts: 3
Joined: Tue Nov 21, 2017 1:26 pm

Re: Suuntolink PnPutil.exe issue

Post by 6u1d0 »

Ok. Thanks.
I'll give a try upgrading wine.
Just for upgrading my knowledge, do you mean that a FTDI driver could do the job and that puputil might not be compulsory ?
tconnelly3
Newbie
Newbie
Posts: 1
Joined: Sun May 23, 2021 3:41 pm

Re: Suuntolink PnPutil.exe issue

Post by tconnelly3 »

I'm also attempting to use SuuntoLink. I was able to install and run SuuntoLink using Wine 6.9.

However, the watch (Ambit 2R) is not recognized. Getting SuuntoLink to recognize the watch is normally flaky on Windows in my experience.

I'm new to Wine so I'm not really sure where to look for troubleshooting information.
jmb11
Newbie
Newbie
Posts: 1
Joined: Sat Dec 11, 2021 5:23 am

Re: Suuntolink PnPutil.exe issue

Post by jmb11 »

Hi tconnelly3,
If you have Suuntolink starting, you need 2 things for connecting your watch :

1- Set a rule for you linux hidraw device to have the correct rights for your USB watch :

Code: Select all

sudo wget https://raw.githubusercontent.com/openambitproject/openambit/master/src/libambit/libambit.rules -O /etc/udev/rules.d/libambit.rules
sudo udevadm control --reload-rules && udevadm trigger
2- Disable the use of SDL to discover and communicate with HID devices in Wine :

Code: Select all

wine regedit

Under [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\WineBus], add a DWORD Key named "Enable SDL" with a 00000000 value.
(I have Suuntolink 4.0.2 working with wine-staging on my Ubuntu 20.04).
Locked