While you're here, please consider supporting GamingOnLinux on:
Reward Tiers: Patreon. Plain Donations: PayPal.
This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!
You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Reward Tiers: Patreon. Plain Donations: PayPal.
This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!
You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register
- GE-Proton 9-3 and 9-4 released with a new option to help with modded games
- MineClone2, inspired by Minecraft, gets renamed to VoxeLibre
- Bazzite v2.5 has fixes for Lenovo Legion Go and ASUS ROG Ally, plus smoother installs
- Half-Life remake Black Mesa has a big upgrade with DXVK 2.3.1, optimizations and bug fixes
- OpenTTD 14.0 brings a scalable font, a new ship pathfinder, social platform integration
- > See more over 30 days here
-
Team Fortress 2 64bit support released, plus Vulkan for…
- WorMzy -
Stardew Valley 1.6.4 brings even more new free content
- Linux_Rocks -
World of Goo 2 delayed until August 2nd
- Lembritt -
Former Nouveau driver lead joins NVIDIA and sent a mass…
- whizse -
Former Nouveau driver lead joins NVIDIA and sent a mass…
- Shmerl - > See more comments
Latest Forum Posts
- The Evercade Outpost!
- Pengling - What sorta display and audio setup do you folks got?
- Shmerl - Weekend Players' Club 4/12/2024
- Pengling - Deus Ex GOTY Weird Resolution Issue on Steam But Not GOG…
- Vortex_Acherontic - Colin McRae Rally 3 at 22 years young looking great!
- Pengling - See more posts
View PC info
I'm running 4.8.0-2 kernel on debian testing. My udev rules are the ones from steam.
Thanks!.
View PC info
0. You MUST have kernel >=4.10
1. Disable steam's support for DS.
2. Udev rules (the ones from steam):
sudo gedit /lib/udev/rules.d/99-steam-controller-perms.rules
# This rule is needed for basic functionality of the controller in Steam and keyboard/mouse emulation
SUBSYSTEM=="usb", ATTRS{idVendor}=="28de", MODE="0666"
# This rule is necessary for gamepad emulation; make sure you replace 'pgriffais' with a group that the user that runs Steam belongs to
KERNEL=="uinput", MODE="0660", GROUP="YOUR_USERNAME", OPTIONS+="static_node=uinput"
# 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"
# DualShock 4 over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="05c4", MODE="0666"
# DualShock 4 wireless adapter over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0ba0", MODE="0666"
# DualShock 4 Slim over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="09cc", MODE="0666"
# DualShock 4 over bluetooth hidraw
KERNEL=="hidraw*", KERNELS=="*054C:05C4*", MODE="0666"
# DualShock 4 Slim over bluetooth hidraw
KERNEL=="hidraw*", KERNELS=="*054C:09CC*", MODE="0666"
Trigger a refresh of UDEV rules:
sudo udevadm control --reload-rules
sudo udevadm trigger
3. If mapping is messed out, you'll probably need the correct mapping, controllermap is needed for that purpose:
sudo apt-get install build-essential xorg-dev libudev-dev libgl1-mesa-dev libglu1-mesa-dev libasound2-dev libpulse-dev libopenal-dev libogg-dev libvorbis-dev libaudiofile-dev libpng12-dev libfreetype6-dev libusb-dev libdbus-1-dev zlib1g-dev libdirectfb-dev
download sdl 2.0.2 (woking on ubuntu 17.04):
cd
cd Downloads
wget https://libsdl.org/release/SDL2-2.0.2.zip
unzip SDL2-2.0.2.zip
cd SDL2-2.0.2
./configure
make
sudo make install
cd test
./configure
make
./controllermap
follow on screen instructions, use backspace key if you mess up an input.
Then you should get something like:
050000004c050000cc09000000810000,Wireless Controller,platform:Linux,x:b3,a:b0,b:b1,y:b2,back:b8,guide:b10,start:b9,dpleft:h0.8,dpdown:h0.0,dpdown:h0.4,dpright:h0.0,dpright:h0.2,dpup:h0.0,dpup:h0.1,leftshoulder:h0.0,leftshoulder:b4,lefttrigger:a2,rightshoulder:b6,rightshoulder:b5,righttrigger:a5,leftstick:b7,leftstick:b11,rightstick:b12,leftx:a0,lefty:a1,rightx:a3,righty:a4,
Let's use this for grid autosport, for example:
gedit ~/.steam/steam/steamapps/common/GRID Autosport/share/controllermapping.txt
add the result from controllermap at the end.
Done.
I have to test it on other games. Working fine on grid autosport so far.