Linux Switch Pro UHID device repeatedly dropped by Steam due to "hid_read failure"
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 活発
- 技術スタック
- cpp, linux
調査の方向性
Start by reproducing the issue on Fedora Linux with Sunshine's Nintendo Switch Pro emulation and compare it with the working Xbox 360 mode. Investigate the libvirtualhid UHID behavior associated with Steam's HIDAPI read failure while evdev continues receiving input. Done means the virtual Pro Controller remains available throughout a Moonlight session without repeated disconnects.
索引モデルが issue の本文から書いたものです。
説明
Describe the Bug
When Sunshine emulates a Nintendo Switch Pro Controller via libvirtualhid on Fedora Linux, Steam and KDE repeatedly lose and rediscover the controller after a few seconds.
The virtual input device itself does not disappear from the kernel, and evdev input continues working.
Steam logs:
Controller using HIDAPI driver, vid=0x057e, pid=0x2009
Nintendo Controller subtype 3
Controller device closed after hid_read failure
Controller PollState Changed from 2 to 0
"/proc/bus/input/devices" remains unchanged during the disconnect:
N: Name="Sunshine (libvirtualhid) Nintendo Pro Controller"
P: Phys=libvirtualhid/uhid/057e:2009/7
H: Handlers=event28 js1
N: Name="Sunshine (libvirtualhid) Nintendo Pro Controller (IMU)"
P: Phys=libvirtualhid/uhid/057e:2009/7
H: Handlers=event27
"udevadm monitor --kernel --subsystem-match=input" and:
udevadm monitor --kernel --subsystem-match=hidraw
produce no add/remove events while Steam/KDE report the controller disconnecting.
Expected Behavior
The virtual Nintendo Switch Pro Controller should remain continuously available to Steam/KDE for the duration of the Moonlight session, without HIDAPI read failures or repeated disconnect/reconnect cycles.
Additional Context
"evtest /dev/input/event28" continues receiving input immediately even while Steam and KDE consider the controller disconnected.
Example:
Event: type 3 (EV_ABS), code 0 (ABS_X), value 1104
Event: type 3 (EV_ABS), code 1 (ABS_Y), value 4321
-------------- SYN_REPORT ------------
Sunshine logs creation normally:
Gamepad will be Nintendo Switch Pro controller (auto-selected by client-reported type)
Gamepad 0 will be Sunshine (libvirtualhid) Nintendo Pro Controller
Switching Sunshine's emulated controller type from Nintendo Switch Pro to Xbox 360 completely fixes the issue. Steam remains connected and input works normally.
- 主要言語
- C++
- スター
- 66
- フォーク
- 18
- 平均マージ
- 14時間 20分
- マージ済み PR(30日)
- 40
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
LizardByte/libvirtualhid のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 40/100
LizardByte/libvirtualhid#155 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
LizardByte/libvirtualhid#150 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 78/100
LizardByte/libvirtualhid#134 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Windows: Xbox Series Share button is unavailable through Steam's VHF/XInput path再び着手できるかも @LizardByte-bot が 38 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
LizardByte/libvirtualhid#106 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Linux: Chromium misremaps Xbox Series axes and triggers for virtual 045e:0b13 device再び着手できるかも @LizardByte-bot が 49 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
LizardByte/libvirtualhid#84 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
LizardByte/libvirtualhid の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
espressif/esp-matter#1874 ·
-
cudev: Fix MSVC build failures with 64-bit integers (int64_t/uint64_t) in vec_traits.hpp対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
opencv/opencv_contrib#4231 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
MiSTer-devel/Main_MiSTer#1341 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
linux-test-project/lcov#552 ·
メンテナーはふだん 1 日以内に返信