[GH-ISSUE #779] Steam profile blocks access to xboxdrv gamepads #527

Closed
opened 2026-05-05 06:03:15 -06:00 by gitea-mirror · 8 comments
Owner

Originally created by @ghost on GitHub (Sep 14, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/779

I'm running Arch Linux with linux 4.7.2, firejail 0.9.40, xboxdrv 0.8.8 and latest stable version of Steam. I'm trying to use a Sony DualShock 3 controller over USB with the xboxdrv driver, installed from AUR. Xboxdrv is a userspace gamepad driver for Linux that works with the Xbox One/360 controllers, but also has support for other controllers (such as DualShock 3) and acts as an abstraction layer to make them behave like a standard XInput (Xbox) controller. It's the default gamepad driver in SteamOS, therefore it provides best compatibility for native Linux games on Steam.

Running Steam in firejail, the gamepad works fine in Big Picture (Steam TV Mode), but games (tested Rocket League and Stardew Valley) complain about being unable to access udev. Without firejail, the gamepad works fine in those games.

Steps to reproduce:

  1. Connect your controller and start xboxdrv. xboxdrv --silent --detach-kernel-driver
  2. Run Steam inside Firejail with the default Steam profile.
  3. Install and run a game with gamepad support.
  • Expected outcome: Game should detect and use the gamepad.
  • Actual outcome: Game can't access udev to detect the gamepad.

Stardew Valley stdout log (SDL game):

With Firejail
Game update: AppID 413150 "Stardew Valley", ProcID 217, IP 0.0.0.0:0
ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Please use SDL 2.0.5 or higher.
Could not initialize UDEV
Setting breakpad minidump AppID = 413150
Steam_SetMinidumpSteamID:  Caching Steam ID:  <removed> [API loaded no]
Installing breakpad exception handler for appid(gameoverlayui)/version(20160823182503)
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 80: saw unknown, expected number
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)
/home/tjg/.local/share/Steam/steamapps/common/Stardew Valley/StardewValley: line 38:   223 Killed                  ./StardewValley.bin.x86_64 $@
Game removed: AppID 413150 "Stardew Valley", ProcID 223

Note the Could not initialize UDEV line.

Without Firejail
Game update: AppID 413150 "Stardew Valley", ProcID 9940, IP 0.0.0.0:0
ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Please use SDL 2.0.5 or higher.
Setting breakpad minidump AppID = 413150
Steam_SetMinidumpSteamID:  Caching Steam ID:  <removed> [API loaded no]
Installing breakpad exception handler for appid(gameoverlayui)/version(20160823182503)
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 80: saw unknown, expected number
Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)
/home/tjg/.local/share/Steam/steamapps/common/Stardew Valley/StardewValley: line 38:  9946 Killed                  ./StardewValley.bin.x86_64 $@
Game removed: AppID 413150 "Stardew Valley", ProcID 9946
Originally created by @ghost on GitHub (Sep 14, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/779 I'm running Arch Linux with linux 4.7.2, firejail 0.9.40, xboxdrv 0.8.8 and latest stable version of Steam. I'm trying to use a Sony DualShock 3 controller over USB with the xboxdrv driver, installed from AUR. Xboxdrv is a userspace gamepad driver for Linux that works with the Xbox One/360 controllers, but also has support for other controllers (such as DualShock 3) and acts as an abstraction layer to make them behave like a standard XInput (Xbox) controller. It's the default gamepad driver in SteamOS, therefore it provides best compatibility for native Linux games on Steam. Running Steam in firejail, the gamepad works fine in Big Picture (Steam TV Mode), but games (tested Rocket League and Stardew Valley) complain about being unable to access udev. Without firejail, the gamepad works fine in those games. #### Steps to reproduce: 1. Connect your controller and start xboxdrv. `xboxdrv --silent --detach-kernel-driver` 2. Run Steam inside Firejail with the default Steam profile. 3. Install and run a game with gamepad support. - **Expected outcome**: Game should detect and use the gamepad. - **Actual outcome**: Game can't access udev to detect the gamepad. #### Stardew Valley stdout log (SDL game): ###### With Firejail ``` Game update: AppID 413150 "Stardew Valley", ProcID 217, IP 0.0.0.0:0 ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. Please use SDL 2.0.5 or higher. Could not initialize UDEV Setting breakpad minidump AppID = 413150 Steam_SetMinidumpSteamID: Caching Steam ID: <removed> [API loaded no] Installing breakpad exception handler for appid(gameoverlayui)/version(20160823182503) Installing breakpad exception handler for appid(gameoverlayui)/version(1.0) Installing breakpad exception handler for appid(gameoverlayui)/version(1.0) Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 80: saw unknown, expected number Installing breakpad exception handler for appid(gameoverlayui)/version(1.0) /home/tjg/.local/share/Steam/steamapps/common/Stardew Valley/StardewValley: line 38: 223 Killed ./StardewValley.bin.x86_64 $@ Game removed: AppID 413150 "Stardew Valley", ProcID 223 ``` Note the `Could not initialize UDEV` line. ###### Without Firejail ``` Game update: AppID 413150 "Stardew Valley", ProcID 9940, IP 0.0.0.0:0 ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. ERROR: ld.so: object '/home/tjg/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. Please use SDL 2.0.5 or higher. Setting breakpad minidump AppID = 413150 Steam_SetMinidumpSteamID: Caching Steam ID: <removed> [API loaded no] Installing breakpad exception handler for appid(gameoverlayui)/version(20160823182503) Installing breakpad exception handler for appid(gameoverlayui)/version(1.0) Installing breakpad exception handler for appid(gameoverlayui)/version(1.0) Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 80: saw unknown, expected number Installing breakpad exception handler for appid(gameoverlayui)/version(1.0) /home/tjg/.local/share/Steam/steamapps/common/Stardew Valley/StardewValley: line 38: 9946 Killed ./StardewValley.bin.x86_64 $@ Game removed: AppID 413150 "Stardew Valley", ProcID 9946 ```
gitea-mirror 2026-05-05 06:03:15 -06:00
Author
Owner

@netblue30 commented on GitHub (Sep 15, 2016):

Could not initialize UDEV

The sandbox will prevent udev from loading new drivers into the kernel. If you start steam with --noprofile, does it work?

$ firejail --noprofile steam
<!-- gh-comment-id:247340601 --> @netblue30 commented on GitHub (Sep 15, 2016): > Could not initialize UDEV The sandbox will prevent udev from loading new drivers into the kernel. If you start steam with --noprofile, does it work? ``` $ firejail --noprofile steam ```
Author
Owner

@ghost commented on GitHub (Sep 15, 2016):

The sandbox will prevent udev from loading new drivers into the kernel. If you start steam with --noprofile, does it work?

Yes.

<!-- gh-comment-id:247391805 --> @ghost commented on GitHub (Sep 15, 2016): > The sandbox will prevent udev from loading new drivers into the kernel. If you start steam with --noprofile, does it work? Yes.
Author
Owner

@netblue30 commented on GitHub (Sep 16, 2016):

In a text editor open /etc/firejail/stream.profile and comment out all the lines there - you add a # at the beginning of the line. Then, you uncomment them one by one and test "firejail steam". Some of them are blocking udev. I would suspect seccomp and nonewprivs lines.

<!-- gh-comment-id:247586318 --> @netblue30 commented on GitHub (Sep 16, 2016): In a text editor open /etc/firejail/stream.profile and comment out all the lines there - you add a # at the beginning of the line. Then, you uncomment them one by one and test "firejail steam". Some of them are blocking udev. I would suspect seccomp and nonewprivs lines.
Author
Owner

@ghost commented on GitHub (Sep 17, 2016):

It's the protocol unix,inet,inet6 line. If I only uncomment that line, I can't use the gamepad and get the UDEV error in Stardew Valley. All other lines uncommented and the gamepad works fine.

<!-- gh-comment-id:247759919 --> @ghost commented on GitHub (Sep 17, 2016): It's the `protocol unix,inet,inet6` line. If I only uncomment that line, I can't use the gamepad and get the UDEV error in Stardew Valley. All other lines uncommented and the gamepad works fine.
Author
Owner

@netblue30 commented on GitHub (Sep 17, 2016):

Can you please give it a try with "protocol unix,inet,inet6,netlink". If this works for you I'll modify the steam profile.

<!-- gh-comment-id:247767427 --> @netblue30 commented on GitHub (Sep 17, 2016): Can you please give it a try with "protocol unix,inet,inet6,netlink". If this works for you I'll modify the steam profile.
Author
Owner

@ghost commented on GitHub (Sep 17, 2016):

Yes. That fixed it. Opened a pull request with the change.

<!-- gh-comment-id:247769769 --> @ghost commented on GitHub (Sep 17, 2016): Yes. That fixed it. Opened a pull request with the change.
Author
Owner

@ghost commented on GitHub (Aug 22, 2017):

I have this same problem, yet the steam profile says "protocol unix,inet,inet6,netlink". Any other ideas?

<!-- gh-comment-id:324052340 --> @ghost commented on GitHub (Aug 22, 2017): I have this same problem, yet the steam profile says "protocol unix,inet,inet6,netlink". Any other ideas?
Author
Owner

@SkewedZeppelin commented on GitHub (Aug 22, 2017):

@CykloTronic86 Please try commenting out 'private-dev'

<!-- gh-comment-id:324071618 --> @SkewedZeppelin commented on GitHub (Aug 22, 2017): @CykloTronic86 Please try commenting out 'private-dev'
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#527
No description provided.