Wine ne détecte pas les Joysticks

Postez ici toutes vos demandes d’assistance générale concernant le fonctionnement de Linux Mint, qui n'entrent pas dans les autres rubriques.
Répondre
Sarago
Messages : 5
Enregistré le : jeu. 8 mai 2025 20:18

Wine ne détecte pas les Joysticks

Message par Sarago »

Bonjour, j'ai le souci suivant :
lorsque je lance mes jeux via steam ou lanceur dédié (c'est le cas pour star citizen) tout se passe correctement mais les joysticks ne sont pas détectés.
Une vérification sous mon utilisateur habituel "wine control" ne trouve aucun joystick, alors que lancé en sudo , il les détecte bien.
Après de longues et laborieuses recherches (n'étant pas anglophone et débutant sous linux) j'ai cru comprendre qu'il s'agirait d'un problème de permissions.
Si quelqu'un à une suggestion je serait ravi.
Ordinateur de bureau // Linux Mint 22.1 Xia // Cinnamon v: 6.4.8 // 6.8.0-59-generic arch: x86_64 bits: 64 // 12-core model: AMD Ryzen 9 5900X bits: 64 type: MT MCP // AMD Navi 21 [Radeon RX 6950 XT] // 32 Go
Avatar du membre
arghlub
Administrateur du site
Messages : 11797
Enregistré le : dim. 21 mai 2017 08:19
Localisation : Provence

Re: Wine ne détecte pas les Joysticks

Message par arghlub »

Salut,
C'est quoi ton joystick/gamepad/manette ?
xbox, nintendo ...???
Tu es sur steam ou avec des .exe (micro$oft) ?
Tour1 (custom) CPU Intel I7-7700K | CG Nvidia GTX 1080 | RAM 16Go | tripleBoot : LMint 22.3 | Debian 12 | MX Linux | XFCE
Tour2 (custom) CPU AMD Athlon 5200+ | CG Nvidia GTX 560 | RAM 6Go | FreeBSD XFCE
Portable1 MSI GF75 Thin 9SC | CPU Intel I7-9750H | CG Nvidia GTX 1650 | RAM 32Go | dualBoot : LMint 22.1 | MX Linux | XFCE
Portable2 MacBook Air A1466 | CPU Intel I5-5250U | CG Intel HD Graphics 6000 | RAM 8Go | dualBoot : macOS Sierra | MX Linux XFCE
─────( pour une informatique libre ! )─────
Sarago
Messages : 5
Enregistré le : jeu. 8 mai 2025 20:18

Re: Wine ne détecte pas les Joysticks

Message par Sarago »

Bonjour arglub, merci de ton attention,

Les joysticks sont un T16000 et son throttle de thrusmaster.

J'ai testé Star citizen avec une aide à l'installation trouvée ici : https://github.com/starcitizen-lug/lug-helper et là : https://github-wiki-see.page/m/starciti ... leshooting
N'étant pas suffisamment anglophone et débutant totalement sous linux, je n'en comprends malheureusement que quelques informations.

Pour confirmer, avant de répondre à ton message, j'ai été vérifier avec d'autres jeux steam car je n'avais testé que sur planeteSide2.
Planetside2 ne détecte pas les joysticks, mais warplanesWW2 et aeroflyFS2 flight simulator les détectent sans problème. Pour planetside ce n'est pas un problème car le joystick n'est pas du tout indispensable, et je ne l'utilisais que rarement.
J'ai chargé également flightgear (linux) et là aussi les joysticks sont bien détectés.

Pour en revenir à StaCitizen, j'ai testé différents "runners" sans plus de succès.
Pour donner une idée de l'un de ses runners :

Code : Tout sélectionner

#!/usr/bin/env bash

################################################################################
# This script configures and launches Star Citizen.
# It is installed by the LUG Helper for a non-Lutris installation.
#
# The following .desktop files are added by wine during installation and then
# modified by the LUG Helper to call this script.
# They are automatically detected by most desktop environments for easy game
# launching.
#
################################################################################
# $HOME/Desktop/RSI Launcher.desktop
# $HOME/.local/share/applications/wine/Programs/Roberts Space Industries/RSI Launcher.desktop
################################################################################
#
# If you do not wish to use the above .desktop files, simply run this script
# from your terminal.
#
# version: 1.5
################################################################################

################################################################
# Configure the environment
# Add additional environment variables here as needed
################################################################
export WINEPREFIX="/home/sarago/Games/star-citizen"
launch_log="$WINEPREFIX/sc-launch.log"

export WINEDLLOVERRIDES=winemenubuilder.exe=d # Prevent updates from overwriting our .desktop entries
export WINEDEBUG=-all # Cut down on console debug messages
export EOS_USE_ANTICHEATCLIENTNULL=1
# Nvidia cache options
export __GL_SHADER_DISK_CACHE=1
export __GL_SHADER_DISK_CACHE_SIZE=10737418240
export __GL_SHADER_DISK_CACHE_PATH="$WINEPREFIX"
export __GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1
# Mesa (AMD/Intel) shader cache options
export MESA_SHADER_CACHE_DIR="$WINEPREFIX"
export MESA_SHADER_CACHE_MAX_SIZE="10G"
# Optional HUDs
#export DXVK_HUD=fps,compiler
#export MANGOHUD=1

################################################################
# Configure the wine binaries to be used
#
# To use a custom wine runner, set the path to its bin directory
# export wine_path="/path/to/custom/runner/bin"
################################################################
export wine_path="/home/sarago/Games/star-citizen/runners/wine-10.7-amd64/bin"

#############################################
# Command line arguments
#############################################
# shell - Drop into a Wine maintenance shell
# config - Wine configuration
# controllers - Game controller configuration
# Usage: ./sc-launch.sh shell
case "$1" in
    "shell")
        echo "Entering Wine prefix maintenance shell. Type 'exit' when done."
        export PATH="$wine_path:$PATH"; export PS1="Wine: "
        cd "$WINEPREFIX"; /usr/bin/env bash --norc; exit 0
        ;;
    "config")
        /usr/bin/env bash --norc -c "winecfg"; exit 0
        ;;
    "controllers")
        /usr/bin/env bash --norc -c "wine control joy.cpl"; exit 0
        ;;
esac

#############################################
# Run optional prelaunch and postexit scripts
#############################################
# To use, update the game install paths here, create the scripts with your
# desired actions in them, then place them in your prefix directory:
# sc-prelaunch.sh and sc-postexit.sh
# Replace the trap line in the section below with the example provided here
#
# "$WINEPREFIX/sc-prelaunch.sh"
# trap "update_check; \"$wine_path\"/wineserver -k; \"$WINEPREFIX\"/sc-postexit.sh" EXIT

#############################################
# It's a trap!
#############################################
# Kill the wine prefix when this script exits
# This makes sure there will be no lingering background wine processes
update_check() {
    while "$wine_path"/winedbg --command "info proc" | grep -qi "rsi.*setup"; do
        sleep 2
    done
}
trap "update_check; \"$wine_path\"/wineserver -k" EXIT

#############################################
# Launch the game
#############################################
# To enable feral gamemode, replace the launch line below with:
# gamemoderun "$wine_path"/wine "C:\Program Files\Roberts Space Industries\RSI Launcher\RSI Launcher.exe" > "$launch_log" 2>&1
#
# To enable gamescope and feral gamemode, replace the launch line below with the
# desired gamescope arguments. For example:
# gamescope --hdr-enabled -W 2560 -H 1440 --force-grab-cursor gamemoderun "$wine_path"/wine "C:\Program Files\Roberts Space Industries\RSI Launcher\RSI Launcher.exe" > "$launch_log" 2>&1

"$wine_path"/wine "C:\Program Files\Roberts Space Industries\RSI Launcher\RSI Launcher.exe" > "$launch_log" 2>&1
Certes intéressant mais auquel je ne comprends strictement rien :)

Après, ce n'est ni urgent ni grave en soi, je dispose d'un dualboot avec windows toujours accessible sur lequel le jeu tourne sans problème. C'est surtout que j'ai dans l'idée de m'en débarasser un jour (de windows, pas de star citizen) et que le plus tôt sera le mieux.
Ordinateur de bureau // Linux Mint 22.1 Xia // Cinnamon v: 6.4.8 // 6.8.0-59-generic arch: x86_64 bits: 64 // 12-core model: AMD Ryzen 9 5900X bits: 64 type: MT MCP // AMD Navi 21 [Radeon RX 6950 XT] // 32 Go
Sarago
Messages : 5
Enregistré le : jeu. 8 mai 2025 20:18

Re: Wine ne détecte pas les Joysticks

Message par Sarago »

Je me suis rendu sur le discord linux gaming fr, si je trouve une solution je la partagerai ici.
Depuis hier j'ai mis à jour le lug-helper (un executable qui facilite l'installation de sar citizen) qui a changé ceci :
use $wine_path when running winecfg or joy.cpl
Otherwise, it uses system Wine, which isn't bad per se, but if someone installed a runner with staging patches, they will expect to see Staging and Input tabs.
ça permet la reconnaissance dans star citizen, du coup je vais voir si je peux utiliser l'idée pour Elite Dangerous (lancé par steam).
Ordinateur de bureau // Linux Mint 22.1 Xia // Cinnamon v: 6.4.8 // 6.8.0-59-generic arch: x86_64 bits: 64 // 12-core model: AMD Ryzen 9 5900X bits: 64 type: MT MCP // AMD Navi 21 [Radeon RX 6950 XT] // 32 Go
Répondre