LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-07-2013, 01:05 PM   #1
slimkid
LQ Newbie
 
Registered: May 2013
Distribution: Slackware
Posts: 16

Rep: Reputation: Disabled
Steam's Big Picture Mode not detecting Xbox 360 Controller on Slackware 14


Has anyone attempted to play any games with or just use the Big Picture mode at all in Steam for Linux? I'm using AlienBOB's Steam package, Slackware 14.0, and the standard wired Xbox 360 Controller for Windows. The actual controller itself works fine -- the "Joystick" section of Input Devices in KDE's System settings shows that the sticks and buttons are all registered. But Steam Big Picture mode says "no controller detected". I also tried the controller in a game, no luck there either.

http://steamcommunity.com/groups/sla...4134005464155/

This says that it's a permission issue with the /dev/eventX and /dev/jsN files. I have tried expanding the permissions of those files but this did nothing. (Unfortunately that poster was not very specific about what he did.) In fact it actually seemed to make things worse, as when I had enabled more permissive read/write access on the device files, and then removed the controller and plugged it in again, a new event file was created and the light on the controller went into the "player 2" position -- and I was back at square one. (If I then enabled the read/write permissions on the new event file, again no luck, and unplugging/replugging resulted in the "player 3" light going on.)

http://steamcommunity.com/groups/sla...9691159198495/

This guy uses xboxdrv and manually changes the ownership of the device files. What a ridiculous solution -- I don't know why anyone would want to use an extra piece of software and go through all that nonsense for something that works out of the box in Ubuntu.

I'm personally in no rush as I keep all but one of my games in Windows, for the time being. But I'm guessing Linux will become a serious gaming platform in no more than 5 or 6 years. What's needed is a clean solution that can be incorporated in future Slackware releases.

Last edited by slimkid; 10-07-2013 at 01:07 PM.
 
Old 10-08-2013, 04:13 AM   #2
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
I have the same problem with a generic USB JoyPad that describes itself as a Dragonrise USB controller.

Using the links in your post I was able to find a solution, which will fix the problem but is probably not the most elegant or in fact permanent, I would guess you would have to do it each time you rebooted.

The permissions do not match between /dev/input/eventN (640) and /dev/input/jsN (644).

So as root
Code:
chmod 644 /dev/input/event*
then restart steam. Your joystick will be detected in big window mode and be useable ingame.

Thanks for finding the correct links, I hadn't found anything that helped me.

samac
 
Old 10-08-2013, 11:51 AM   #3
jtsn
Member
 
Registered: Sep 2011
Posts: 925

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Quote:
Originally Posted by samac View Post
So as root
Code:
chmod 644 /dev/input/event*
is opening a huge security hole. Use an udev rule matching ID_INPUT_JOYSTICK and let udev set the permissions on the correct device only.
 
Old 10-08-2013, 12:16 PM   #4
jtsn
Member
 
Registered: Sep 2011
Posts: 925

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Drop this into /etc/udev/rules.d/99-joystick.rules
Code:
KERNEL=="event[0-9]*", ENV{ID_BUS}=="?*", ENV{ID_INPUT_JOYSTICK}=="?*", GROUP="games", MODE="0660"
KERNEL=="js[0-9]*", ENV{ID_BUS}=="?*", ENV{ID_INPUT_JOYSTICK}=="?*", GROUP="games", MODE="0664"
It gives members of the 'games' group read and write access (required for force feedback) to all joystick devices. Add your own user account to the 'games' group (it should be in there anyway to run Steam) and the controller is working in big picture without without compromising keyboard and ACPI buttons security.
 
1 members found this post helpful.
Old 10-08-2013, 01:36 PM   #5
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
Quote:
Quote:
Originally Posted by samac View Post
So as root
Code:

chmod 644 /dev/input/event*

is opening a huge security hole. Use an udev rule matching ID_INPUT_JOYSTICK and let udev set the permissions on the correct device only.
Thanks for a more secure and permanent fix.

samac
 
Old 10-08-2013, 05:24 PM   #6
slimkid
LQ Newbie
 
Registered: May 2013
Distribution: Slackware
Posts: 16

Original Poster
Rep: Reputation: Disabled
Thanks guys. I hope this gets added to future Slackware releases.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xbox 360 Controller fatalerror0x00 Slackware 9 11-24-2012 06:15 PM
LXer: Xbox 360 reset glitch hack, Xbox 360 Linux on its way? LXer Syndicated Linux News 0 08-29-2011 11:50 PM
Xbox 360 Controller - CentOS vince4amy Red Hat 2 09-30-2009 10:33 AM
Xbox 360 Controller in PCLInuxOS 2007? DarkSol Linux - Hardware 5 12-08-2007 03:12 AM
xbox 360 controller programming ma1069 Programming 3 01-30-2007 08:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration