Giter Site home page Giter Site logo

Comments (21)

fabiscafe avatar fabiscafe commented on August 31, 2024 2

@nanonyme no that wont work. Some distros needs some changes to the udev rules to make them work. like arch for example, where the normal steam udev rules wont work to make the controller work, and it also needs to load uinput. Since we use the same base in Manjaro I try to keep up rules in an external package.
-> https://gitlab.com/Fabish/steam-devices

So I dont think it's possible to add rules on a flatpak level. So maybe just add some message at the first start. So users will know.

from com.valvesoftware.steam.

fabiscafe avatar fabiscafe commented on August 31, 2024 2

@PureTryOut In that case you can just use:
https://github.com/ValveSoftware/steam-devices

However I still provide a few more devices (including the steam-devices) in
https://gitlab.com/fabis_cafe/game-devices-udev

from com.valvesoftware.steam.

fabiscafe avatar fabiscafe commented on August 31, 2024 1

@pablodav I dont know if its different on fedora, but mode 666 isnt a good idea. Thats why we're using an additional tag "uaccess" so only the current loged-in user got access to the device. On top of that I need to load the uinput kernel module. I've done some readme now in the gitlab repo

from com.valvesoftware.steam.

nanonyme avatar nanonyme commented on August 31, 2024 1

Added some comments to https://github.com/flathub/com.valvesoftware.Steam/wiki/Frequently-asked-questions#my-controller-isnt-recognized-at-all; might turn that into a separate page if it expands too much

from com.valvesoftware.steam.

PureTryOut avatar PureTryOut commented on August 31, 2024 1

Actually, I would recommend the udev rules used by the official Steam package itself.

The latest Steam package can be found here. Once you've downloaded and extracted the archive, the udev rules can be found under steam-launcher/subprojects/steam-devices/.

Note there is also a SteamVR rules file in there, but SteamVR has other issues preventing it from being used, #636.

from com.valvesoftware.steam.

TingPing avatar TingPing commented on August 31, 2024

As I understand it udev has no stability guarantees between versions so it impossible to use in a portable way. So there has to be some stable interface to the host to use it be it another library or service.

from com.valvesoftware.steam.

TingPing avatar TingPing commented on August 31, 2024

By the way my steam controller does work fine here in big picture mode at least (host is F26).

from com.valvesoftware.steam.

Anti-Ultimate avatar Anti-Ultimate commented on August 31, 2024

Make sure you do not have a native Steam package installed, as that will implement udev rules and load them during boot.

from com.valvesoftware.steam.

TingPing avatar TingPing commented on August 31, 2024

I don't have steam installed on the host.

EDIT: Oh but I have sc-controller so that might do it.

from com.valvesoftware.steam.

Anti-Ultimate avatar Anti-Ultimate commented on August 31, 2024

Sure enough, that includes udev rules to access the Steam controller.

It seems that Steam itself already ships with a libudev library. If it's possible to access udev devices in the flatpak itself anyways, maybe it's possible to include these inside the flatpak? I'm not sure if loading udev rules inside the flatpak sandbox is even possible.

from com.valvesoftware.steam.

yajo avatar yajo commented on August 31, 2024

When there are udev rule problems, you usually can use the steam controller in big picture mode, but not on games. Have you tried gaming, @TingPing?

FTR: http://steamcommunity.com/app/353370/discussions/0/490123197956024380/

from com.valvesoftware.steam.

TingPing avatar TingPing commented on August 31, 2024

@yajo works fine in game if you have the udev rules on the host. I don't think there is any way for the rules from the guest to work currenlty though.

from com.valvesoftware.steam.

swick avatar swick commented on August 31, 2024

Some games (e.g. Dirt Rally) do not work with steering wheels when run in flatpak. Not entirely sure if this is udev related but it seems plausible.

from com.valvesoftware.steam.

nanonyme avatar nanonyme commented on August 31, 2024

Seems to me like the only workaround possible for this currently is to manually copy the udev rules from inside the Flatpak app into the host.

from com.valvesoftware.steam.

nanonyme avatar nanonyme commented on August 31, 2024

Sounds like exactly why I found https://github.com/flathub/com.valvesoftware.Steam/wiki/Frequently-asked-questions in the first place

from com.valvesoftware.steam.

TingPing avatar TingPing commented on August 31, 2024

You can do something hacky:

flatpak-spawn --host pkexec cp $the_udev_rule_in_our_install $the_host_udev_path

from com.valvesoftware.steam.

nanonyme avatar nanonyme commented on August 31, 2024

Wow, that's really scary :)

from com.valvesoftware.steam.

pablodav avatar pablodav commented on August 31, 2024

In fedora28 with 4.17 kernel steam-controller doesn't works out-of-the-box too.

But probably it could be supported in 4.18 as docummented in:

https://wiki.archlinux.org/index.php/Gamepad#Steam_Controller

I have got steam-controller support doing it:

Create file:

# file  /etc/udev/rules.d/99-steam-controller-perms.rules
# Valve USB devices
SUBSYSTEM=="usb", ATTRS{idVendor}=="28de", MODE="0666"
# Steam Controller udev write access
KERNEL=="uinput", SUBSYSTEM=="misc", MODE="0660", GROUP="input"

# Valve HID devices over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="28de", MODE="0666"

# Valve HID devices over bluetooth hidraw
KERNEL=="hidraw*", KERNELS=="*28DE:*", MODE="0666"

Add users to input group and logoff/logon.

source: https://wiki.gentoo.org/wiki/Steam_Controller

Also see: https://gitlab.com/Fabish/steam-devices

I think it could be good to have it in frequently asked questions wiki.

from com.valvesoftware.steam.

pablodav avatar pablodav commented on August 31, 2024

thanks @Tids for your comment, I don't know what's the proper configuration, but great to have better examples in your repo https://gitlab.com/Fabish/steam-devices/blob/master/71-Valve-Controllers.rules

I think it is the best set of examples I can find.

@nanonyme thanks for adding it on wiki, looks good as it is now, over time linux kernel could get more and more support, let's see what happens in some months...

from com.valvesoftware.steam.

Lctrs avatar Lctrs commented on August 31, 2024

FTR, you can also take the udev rules included in rpmfusion's steam package.

from com.valvesoftware.steam.

PureTryOut avatar PureTryOut commented on August 31, 2024

Oh I didn't realize they have tagged releases for that in a separate repo, awesome!

from com.valvesoftware.steam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.