protonscr

DualShock 4 device node(s) deleted at startup

steamclosed Distro Family: DebianGeneral controller / Steam Input
ValveSoftware/steam-for-linux#5620 · opened 2018-08-12 by genpfault · updated 2019-01-14 · 3 comments · github
Ggenpfault 2018-08-12 github

System information

  • Steam client version: Built: Aug 8 2018, at 21:32:49, Steam package versions 1533766730
  • Distribution: Debian Buster, amd64 (using Debian's steam package; installing/uninstalling Debian's steam-devices package makes no difference)
  • Opted into Steam client beta?: No (tried the beta, same behavior)
  • Checked for system updates?: Yes

Description:

Expected behavior: I should be able to continue running gamepad apps or otherwise access my DualShock 4's /dev/input/js0 device during and after Steam startup, and again after Steam shutdown.

Actual behavior: Sometime during Steam startup my DualShock 4's /dev/input/js0 device (and associated /dev/input/eventXXX node) disappears and any programs currently accessing it such as jstest-gtk or sdl-jstest stop reporting joystick events and fail to detect any gamepads when relaunched. Exiting Steam does not restore /dev/input/js0, only replugging the DualShock 4 restores full functionality.

Reproduction procedure:

  1. Exit Steam
  2. (Re)plug a DualShock 4 over USB
  3. /dev/input/js0 should now exist and be functional via jstest-gtk
  4. Start Steam
  5. /dev/input/js0 disappears and jstest-gtk can't find any gamepads

Additional information

sdl2-jstest --list output:

Found 1 joystick(s)

Joystick Name:     'Sony Computer Entertainment Wireless Controller'
Joystick GUID:     030000004c050000c405000011810000
Joystick Number:    0
Number of Axes:     6
Number of Buttons: 13
Number of Hats:     1
Number of Balls:    0
GameController:
  Name:    'PS4 Controller'
  Mapping: '030000004c050000c405000011810000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,'

EDIT: Tried some other controllers and none of them exhibited the issue:

  • Wired XBox 360 controller
  • Wii U Pro controller via an 8Bitdo Retro Receiver
  • DualShock 3 controller via USB
  • XBox One controller via USB

Switching to a V2 DualShock 4 (CUH-ZCT2U) doesn't help; same issue.

Ggenpfault 2018-11-20 github

Still happening as of today.

Help -> About Steam:

  • Built: Nov 10 2018, at 02:44:42
  • Steam API: v018
  • Steam package versions: 1541819448
Ggenpfault 2018-11-20 github

Starting Steam with STEAM_RUNTIME=0 (after installing some missing libva i386 packages from Debian Stretch) changes things up a bit:

Running Steam on debian  64-bit
STEAM_RUNTIME is disabled by the user
[2018-11-19 21:37:09] Startup - updater built Nov 10 2018 02:44:20
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2018-11-19 21:37:09] Checking for update on startup
[2018-11-19 21:37:09] Checking for available updates...
[2018-11-19 21:37:09] Downloading manifest: client-download.steampowered.com/client/steam_client_ubuntu12
[2018-11-19 21:37:10] Download skipped: /client/steam_client_ubuntu12 version 1541819448, installed version 1541819448
[2018-11-19 21:37:10] Nothing to do
[2018-11-19 21:37:10] Verifying installation...
[2018-11-19 21:37:10] Performing checksum verification of executable files
[2018-11-19 21:37:10] Verification complete
Local Device Found
type: 054c 05c4
path: sdl://0
serial_number:  - 0
Manufacturer: 
Product:      PS4 Controller
Release:      8111
Interface:    -1

controllerabstraction.cpp (5114) : Assertion Failed: Unexpected SDL controller type 34, ignoring
Local Device Found
type: 054c 05c4
path: sdl://0
serial_number:  - 0
Manufacturer: 
Product:      PS4 Controller
Release:      8111
Interface:    -1

controllerabstraction.cpp (5114) : Assertion Failed: Unexpected SDL controller type 34, ignoring
Opted-in Controller Mask for AppId 0: 0
roaming config store loaded successfully - 5345 bytes.
migrating temporary roaming config store
appdatacache.cpp (2124) : Assertion Failed: !bSharedKVSymbols
appdatacache.cpp (2124) : Assertion Failed: !bSharedKVSymbols

Steam never finishes starting this way (gets stuck on "Connecting Steam account: <account-name>...") but on the other hand the joystick device doesn't disappear around the "Verification complete" line like it usually does without STEAM_RUNTIME=0.

Ggenpfault 2019-01-14 github

Fixed as of today.

Steam info:

  • Built: Nov 26 2018, at 20:15:48
  • Steam API: v018
  • Steam package versions: 1543346820

System info:

  • Up-to-date Debian Buster (major change since last time: kernel 4.18 -> 4.19)

Nothing extracted yet.