[UNOFFICIAL] Running BMS on Linux/WINE with opentrack HOWTO
-
Hi all.
Just to have Linux/Wine things together in the same thread, I just solved a problem I had with my HOTAS setup. The solution might help for other controller/devices detection problems.
So, I had a problem with BMS not detecting my CH Pro Pedals (edit: it detects it, but not as a game controller). Doing research I found out that Linux has problems with it because it doesn’t have buttons, just axis, thus is not classified as a controller. But, jstest sees it (as js, not event). Evdev sees it as events… but that’s all.
I tried several solutions I’ve found: creating udev rules, giving permissions… none of them worked for me. But at some point I found a post about checking if wine is detecting the controllers in the “Wine Control Panel” -> “Game Controllers” and there I found the pedals as js in the “deactivated” section. I activated them and they work perfectly now. I have to do this every time I launch the wine prefix but… well… good enough.In the image you can see wine detects my stick and throttle both as events and js, but the pedals just as js.
-
Good to know such things, I’ve mentioned issue of two game controller drivers in kernel and using control panel to pick which driver you gonna use, bit not in such context.
Very good piece of info indeed. -
Oh, I missed the thing you mentioned.
I’m glad this could be useful.
-
Maybe we could try another campi to create a “BMS on other platforms (unsupported)” where we could organize these little gems of info in a structured manner… here’s to hoping.
All the best &thanks for sharing your find!
uwe
-
Hi all.
Just to have Linux/Wine things together in the same thread, I just solved a problem I had with my HOTAS setup. The solution might help for other controller/devices detection problems.
So, I had a problem with BMS not detecting my CH Pro Pedals (edit: it detects it, but not as a game controller). Doing research I found out that Linux has problems with it because it doesn’t have buttons, just axis, thus is not classified as a controller. But, jstest sees it (as js, not event). Evdev sees it as events… but that’s all.
I tried several solutions I’ve found: creating udev rules, giving permissions… none of them worked for me. But at some point I found a post about checking if wine is detecting the controllers in the “Wine Control Panel” -> “Game Controllers” and there I found the pedals as js in the “deactivated” section. I activated them and they work perfectly now. I have to do this every time I launch the wine prefix but… well… good enough.In the image you can see wine detects my stick and throttle both as events and js, but the pedals just as js.
Sorry for being so dense, but how do I get to that joystick control panel shown in your screenshot?
All the best,
Uwe
-
Sorry for being so dense, but how do I get to that joystick control panel shown in your screenshot?
All the best,
Uwe
No worries. I had to google it because in Lutris there’s a menu option. With “wine control” (without the quotes) inside the same wineprefix (haven’t tested otherwise).
-
Run wine explorer or wine file, navigate to My Computer/Control Panel/Game Controllers
-
That seems to have worked nicely, thanks! Buttons start with “1” on the stick as they should, most of the functions from my win10 keyfile work except Trigger detent, pickle, msl step and TMS, but this should be easily fixed.
All the best,
Uwe
-
I’m glad you’ve sorted it out.
I guess I wrote in post#1 of this very thread:- in the same prefix open explorer, go to "My Computer/Control Panel/Game Controllers and disable evdev controllers (optional but highly recommended)
Linux talks with game controllers using two drivers (kernel modules): older js and newer evdev.
[…]
Wine apps will see two distinct devices, while pysically there’s just one. This may lead to confusion with button mapping where one joystick is selected, but apps “thinks” button was pressed on the other device.
for a reason
- in the same prefix open explorer, go to "My Computer/Control Panel/Game Controllers and disable evdev controllers (optional but highly recommended)
-
I have to admit I never caught that note about explorer when reading your howto… sorry for being a bit dense there
Cheers, Uwe
-
I didn’t got that either until later. You are not being dense… or not the only one
Deviating slitghtly but still in this controller subject… does anyone know how to (easily?) merge two controllers into one? I’m not having problems with mine once I solved my issue through the control panel, but for a moment it was the approach I was taking and failed. The few options I found were old and complex. Again, for now is just out of curiosity and only if it’s “easy”.
Cheers!
-
Just got opentrack to work with BMS as well, very cool (I was missing the wine protocol configuration part, might be due to the fact that I wasn’t using a dedicated wine prefix for bms previously).
So what’s everyone using for display extraction on Linux?
All the best,
uwe
-
Hi all again.
Sorry hoover for not answering the extraction thing. Never tried it. Did you manage to get it working?
I’m here to share another thing I just found out: create shortcuts for wine virtual desktop. Is not as easy as it sounds. If the program you install (like Opentrack) gives you the create a desktop shortcut, then there will it be but, otherwise, seems you have to fiddle with some weird configs.
So I found that using the shortcut file is easier. Donwload it and extract where you want. I put it directly in the wine’s
Then open wineconsole and go to where you extract the file. Write:Shortcut /a:c /f:"%USERPROFILE%\Desktop\WDP.lnk" /t:"C:\WDP\WeaponDeliveryPlanner.exe" ```Mind the quotes. In the image you can see my trial and errors and final success with the Weapon Delivery Planner (with a typo :mrgreen:). Hope it helps someone! Sources: [https://askubuntu.com/questions/433623/how-to-add-shortcut-onto-wine-desktop](https://askubuntu.com/questions/433623/how-to-add-shortcut-onto-wine-desktop) [https://superuser.com/questions/392061/how-to-make-a-shortcut-from-cmd](https://superuser.com/questions/392061/how-to-make-a-shortcut-from-cmd) [https://ss64.com/nt/shortcut.html](https://ss64.com/nt/shortcut.html)
-
for DE I’ve fiddled with YAME on Linux for a while and it worked quite wll in the 4.34 days. I haven’t gotten around to trying it with 4.35 on Linux sadly.
Cheers Uwe
-
Hey flying penguins,
I am still trying to figure out what is different with my setup where Falcon BMS straight up crashes on startup, seeing that it works quite well for lots of you here. To get an overview and after put me in a position to either have it solved, or be able to post a well researched bug report on the bugs.winehq.org bugtracker, I would like to ask those of you who have gotten Falcon BMS running for a favor:Here on the Wine AppDB https://appdb.winehq.org/objectManager.php?sClass=application&iId=14685, one can submit short test results about how well Wine runs a program. Would you who it works for mind filling this out?
It is rather structured and doesn’t need many words, but specifying the wine version (and staging or non-staging), any winetricks/dxvk used (which would prevent a Platinum or Gold rating), the distribution and what kind of graphics hardware and driver are used is what it asks for. You wouldn’t need the details about all the external programs BMS interfaces with (WDP, opentrack, the weather thingy and the like)
Having a current structured overview of a few recent results might help in establishing a pattern.
Thanks. -
I personally installed it through Lutris, so can’t help with that but is a good idea.
-
Just submitted my report, however the wine version used on my end (5.5) is not listed in the available versions.
cheers, Uwe
wine-5.5 (Ubuntu 5.5-3ubuntu1)
-
BMS 4.35 runs great on linux, considerably faster than on windows with the same hardware.
I have checked that it runs on ubuntu 20.04, 20.10 and 21.04. You do need
winetricks dxvkI use the latest winehq-staging version of wine, currently wine 6.15 (Staging)
It also runs on manjaro; select dxvk there too.
-
Just submitted my report, however the wine version used on my end (5.5) is not listed in the available versions.
cheers, Uwe
wine-5.5 (Ubuntu 5.5-3ubuntu1)
This is the wine version you get from the ubuntu repository, right? Nothing custom just apt install wine. Do you use dxvk with that?
BMS 4.35 runs great on linux, considerably faster than on windows with the same hardware.
I have checked that it runs on ubuntu 20.04, 20.10 and 21.04. You do need
winetricks dxvkI use the latest winehq-staging version of wine, currently wine 6.15 (Staging)
It also runs on manjaro; select dxvk there too.
What happens if you try to run it without dxvk?
Does non-staging work too?–----
And are you guys using a nvidia card with the proprietary drivers or something else?
I get a crash on startup with what I tried, even though I have confirmed that wine runs other games fine and the same hardware runs BMS on windows.
-
Yep dauerhaft that’s correct, it’s the wine version from the ubuntu repo which I am using with dxvk (installed using winetricks).
All the best, Uwe