Difference between revisions of "Using Simucube wheel base in Linux"

From Granite Devices Knowledge Wiki
Jump to: navigation, search
[checked revision][unchecked revision]
(Created page with "Page under construction. Category:Software")
 
Line 1: Line 1:
Page under construction.
+
== Simucube 2 on Linux ==
 +
 
 +
====This is a ‘Extraction’ from the forum topic: "Driving Simulator for Vehicle Research", the credits for me being able to write this guide goes to all that commented on that thread.====
 +
 
 +
=====The latest True Drive releases added some missing descriptors needed by Linux, the bellow tutorial lists the extra changes needed=====
 +
 
 +
{| class="wikitable"
 +
|-
 +
| Install Wine, preferably wine >= 7.17
 +
|}
 +
 
 +
* To isolate this Truedrive from the main wine setup we will use a dedicated WINEPREFIX, you can use whatever WINEPREFIX name you want, think of it as sandbox that you can delete and recreate if something goes wrong.
 +
 
 +
* In order to avoid special character expansion problems, as users may use different shells, the next commands use slemke as username, please adapt to your username, which you can get with the command '''whoami'''
 +
 
 +
{| class="wikitable"
 +
|-
 +
| mkdir /home/slemke/simucube
 +
|}
 +
 
 +
* Now we need to do some regedit changes, but those changes will only apply to the WINEPREFIX we created above:
 +
 
 +
{| class="wikitable"
 +
|-
 +
| WINEPREFIX="/home/slemke/simucube" wine regedit
 +
|}
 +
 
 +
* In the windows registry that opened with the command above, create the bellow 2 registry entries:
 +
 
 +
Right click on the bellow entry->New->DWORD value, and set to "0"
 +
{| class="wikitable"
 +
|-
 +
| HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\winebus
 +
|}
 +
The DWORD to add and set to 0 is:
 +
{| class="wikitable"
 +
|-
 +
| Enable SDL
 +
|}
 +
 
 +
And:
 +
 
 +
Right click on the bellow entry->New->DWORD value, and set to "1"
 +
{| class="wikitable"
 +
|-
 +
| HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\winebus
 +
|}
 +
The DWORD to add and set to 1 is:
 +
 
 +
{| class="wikitable"
 +
|-
 +
| DisableInput
 +
|}
 +
 
 +
* Now we can already install Truedrive:
 +
{| class="wikitable"
 +
|-
 +
| WINEPREFIX="home/slemke/simucube" wine Simucube_2_True_Drive_version.exe
 +
|}
 +
 
 +
Create the bellow file and add(You can add all or only your model, doesn't really matter):
 +
{| class="wikitable"
 +
|-
 +
| vim /etc/udev/rules.d/72-simucube.rules
 +
|}
 +
 
 +
{| class="wikitable"
 +
|-
 +
|
 +
<nowiki>#Simucube 1:</nowiki>
 +
 
 +
KERNEL=="hidraw*", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0d5a", MODE="0660", TAG+="uaccess"
 +
 
 +
 
 +
<nowiki>#Simucube 2 Sport:</nowiki>
 +
 
 +
KERNEL=="hidraw*", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0d61", MODE="0660", TAG+="uaccess"
 +
 
 +
 
 +
<nowiki>#Simucube 2 Pro:</nowiki>
 +
 
 +
KERNEL=="hidraw*", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0d60", MODE="0660", TAG+="uaccess"
 +
 
 +
 
 +
<nowiki>#Simucube 2 Ultimate:</nowiki>
 +
 
 +
KERNEL=="hidraw*", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0d5f", MODE="0660", TAG+="uaccess"
 +
|}
 +
 
 +
* Power on the simucube base, open true drive(you probably have an icon in the wine submenu), see it if connects.
 +
 
 +
* If you cannot open the online profiles, you probably need to import the .exe from the wineprefix used above into Steam.
 +
* Then set the True Drive entry created on steam to use proton (in compatibility mode), start testing with Proton 7 as this one works fine.
  
 
[[Category:Software]]
 
[[Category:Software]]

Revision as of 11:38, 1 June 2023

Simucube 2 on Linux

This is a ‘Extraction’ from the forum topic: "Driving Simulator for Vehicle Research", the credits for me being able to write this guide goes to all that commented on that thread.

The latest True Drive releases added some missing descriptors needed by Linux, the bellow tutorial lists the extra changes needed
Install Wine, preferably wine >= 7.17
  • To isolate this Truedrive from the main wine setup we will use a dedicated WINEPREFIX, you can use whatever WINEPREFIX name you want, think of it as sandbox that you can delete and recreate if something goes wrong.
  • In order to avoid special character expansion problems, as users may use different shells, the next commands use slemke as username, please adapt to your username, which you can get with the command whoami
mkdir /home/slemke/simucube
  • Now we need to do some regedit changes, but those changes will only apply to the WINEPREFIX we created above:
WINEPREFIX="/home/slemke/simucube" wine regedit
  • In the windows registry that opened with the command above, create the bellow 2 registry entries:

Right click on the bellow entry->New->DWORD value, and set to "0"

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\winebus

The DWORD to add and set to 0 is:

Enable SDL

And:

Right click on the bellow entry->New->DWORD value, and set to "1"

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\winebus

The DWORD to add and set to 1 is:

DisableInput
  • Now we can already install Truedrive:
WINEPREFIX="home/slemke/simucube" wine Simucube_2_True_Drive_version.exe

Create the bellow file and add(You can add all or only your model, doesn't really matter):

vim /etc/udev/rules.d/72-simucube.rules

#Simucube 1:

KERNEL=="hidraw*", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0d5a", MODE="0660", TAG+="uaccess"


#Simucube 2 Sport:

KERNEL=="hidraw*", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0d61", MODE="0660", TAG+="uaccess"


#Simucube 2 Pro:

KERNEL=="hidraw*", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0d60", MODE="0660", TAG+="uaccess"


#Simucube 2 Ultimate:

KERNEL=="hidraw*", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0d5f", MODE="0660", TAG+="uaccess"

  • Power on the simucube base, open true drive(you probably have an icon in the wine submenu), see it if connects.
  • If you cannot open the online profiles, you probably need to import the .exe from the wineprefix used above into Steam.
  • Then set the True Drive entry created on steam to use proton (in compatibility mode), start testing with Proton 7 as this one works fine.