rashevskyv / dbi

Author is duckbill
2.17k stars 92 forks source link

Switch connection lost #336

Open R3qu0 opened 7 months ago

R3qu0 commented 7 months ago

When starting DBI Backend server, it repeatedly outputs "Switch connection lost". Tried Debian and Arch, different games, different USB cables, updated to latest Switch firmware, latest version of DBI and DBI Backend (658), still the same error.

Installing games through the MTP responder works perfectly.

xotakfr commented 5 months ago

A bit late but try adding this udev rule SUBSYSTEM=="usb", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="3000", MODE="0666" (in /etc/udev/rules.d). This fixed it for me.

Vinfall commented 4 months ago

Works after adding the udev rule and reload, many thanks! FWIW, here is a slightly more detailed instruction in case anyone has the same issue:

# create udev directory in case it does not exist
sudo mkdir -p /etc/udev/rules.d/
# create dbi usb udev rule
/usr/bin/sudo -e /etc/udev/rules.d/81-switch-dbi-usb.rules
# reload w/o logout
sudo udevadm trigger

# now dbibackend should work fine
dbibackend ~/Game/Switch

udev rule:

# Used for DBI USB installation

# Identifies Nintendo Switch by its vid/pid.
# The values below are for earliest retail model HAC-001.
# I don't know if Mariko/Lite/OLED has different ones.
# For reference, check https://switchbrew.org/wiki/Hardware
# and https://switchbrew.org/wiki/Product_Information

# Assign Switch to group nx, and give RW permission to users in that
# You need to create group and add users first.
# SUBSYSTEM=="usb", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="3000", MODE="0660", GROUP="nx"
# Alternatively, give everyone RW permission for Switch.
SUBSYSTEM=="usb", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="3000", MODE="0666"

@rashevskyv Are you willing to accept a PR for this (or maybe just link this issue in README)?