Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xorg grabbing ps3 controller as pointer [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
mattmatteh
Guru
Guru


Joined: 10 Mar 2004
Posts: 449
Location: near chicago

PostPosted: Wed Apr 25, 2018 4:55 am    Post subject: xorg grabbing ps3 controller as pointer [solved] Reply with quote

I have never set up the ps3 controller to act as an xorg mouse pointer. I have not installed x11-drivers/xf86-input-joystick. I have installed steam but have not used it in a while as I play games using steamos installed on a separate disk. Before I installed steamos on a different disk, I had the steam controller working.

I attempted to play a game today and noticed the mouse cursor was moving erratically in the middle of the screen; any attempt to move it with the mouse and it would move back to the center in within second. I spent several hours looking at udev and xorg files, removed steam, removed a few udev files and after a reboot and plugging my ps3 controller I always get this:
Code:
xinput --list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Logitech Logitech USB Keyboard            id=9    [slave  pointer  (2)]
⎜   ↳ Logitech USB Receiver                     id=10   [slave  pointer  (2)]
⎜   ↳ Logitech USB Receiver                     id=11   [slave  pointer  (2)]
⎜   ↳ Sony PLAYSTATION(R)3 Controller           id=13   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Power Button                              id=7    [slave  keyboard (3)]
    ↳ Logitech Logitech USB Keyboard            id=8    [slave  keyboard (3)]
    ↳ Eee PC WMI hotkeys                        id=12   [slave  keyboard (3)]

I have 2 mostly similar computers with the only major difference being one has an nvidia graphics card using the proprietary driver and the other uses intel graphics. The system with the nvidia graphics grabs the ps3 controller as pointer and the one without does not.

Could anyone tell me why xorg is using the ps3 controller as pointer device and suggest how can I fix this? I can not play games with controller hijacked like this.

Matt


Last edited by mattmatteh on Thu May 17, 2018 9:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5137

PostPosted: Thu Apr 26, 2018 3:16 am    Post subject: Reply with quote

What input drivers do you have installed? Only libinput should be present.

You can make X ignore the controller with this (untested):
/etc/X11/xorg.conf.d/ps3.conf:
Section "InputClass"
        Identifier "PS3 controller blacklist"
        MatchProduct "Sony PLAYSTATION(R)3 Controller"
        Option "Ignore" "on"
EndSection
Back to top
View user's profile Send private message
mattmatteh
Guru
Guru


Joined: 10 Mar 2004
Posts: 449
Location: near chicago

PostPosted: Thu Apr 26, 2018 5:28 am    Post subject: Reply with quote

The computer with a problem:
Code:
eix -sIc xf86
[I] x11-drivers/xf86-input-evdev (2.10.5@11/20/17): Generic Linux input driver
[I] x11-libs/libXxf86dga (1.1.4@03/18/18): X.Org Xxf86dga library
[I] x11-libs/libXxf86vm (1.1.4@03/18/18): X.Org Xxf86vm library
[I] x11-proto/xf86bigfontproto (1.2.0-r2@03/25/18): X.Org XF86BigFont protocol headers
[I] x11-proto/xf86dgaproto (2.1-r3@03/25/18): X.Org XF86DGA protocol headers
[I] x11-proto/xf86driproto (2.1.1-r2@03/25/18): X.Org XF86DRI protocol headers
[I] x11-proto/xf86vidmodeproto (2.3.1-r2@03/25/18): X.Org XF86VidMode protocol headers
eix -sIc libinput
[I] dev-libs/libinput (1.9.4@03/18/18): Library to handle input devices in Wayland

The similar system that works fine:
Code:
eix -sIc xf86
[I] x11-drivers/xf86-input-evdev (2.10.5@01/11/18): Generic Linux input driver
[I] x11-libs/libXxf86dga (1.1.4@02/28/18): X.Org Xxf86dga library
[I] x11-libs/libXxf86misc (1.0.3-r1@03/20/18): X.Org Xxf86misc library
[I] x11-libs/libXxf86vm (1.1.4@01/27/18): X.Org Xxf86vm library
[I] x11-proto/xf86bigfontproto (1.2.0-r2@03/25/18): X.Org XF86BigFont protocol headers
[I] x11-proto/xf86dgaproto (2.1-r3@03/25/18): X.Org XF86DGA protocol headers
[I] x11-proto/xf86driproto (2.1.1-r2@03/25/18): X.Org XF86DRI protocol headers
[I] x11-proto/xf86miscproto (0.9.3-r1@03/25/18): X.Org XF86Misc protocol headers
[I] x11-proto/xf86vidmodeproto (2.3.1-r2@03/25/18): X.Org XF86VidMode protocol headers
eix -sIc libinput
[I] dev-libs/libinput (1.9.4@01/26/18): Library to handle input devices in Wayland

I did add this to /etc/X11/xorg.conf.d/51-joystick.conf and it fixed the controller acting as a mouse. I am still wondering why I need it.
Code:
Section "InputClass"
        Identifier "joystick catchall"
        MatchIsJoystick "on"
        MatchDevicePath "/dev/input/event*"
        Driver "joystick"
        Option "StartKeysEnabled" "False"       #Disable mouse
        Option "StartMouseEnabled" "False"      #support
EndSection
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5137

PostPosted: Thu Apr 26, 2018 11:11 am    Post subject: Reply with quote

evdev just uses any input device it can; you have a controller with an accelerometer so it configures that as a mouse. libinput uses udev so it can see the device is a joypad and ignore it.
Back to top
View user's profile Send private message
mattmatteh
Guru
Guru


Joined: 10 Mar 2004
Posts: 449
Location: near chicago

PostPosted: Fri Apr 27, 2018 4:48 am    Post subject: Reply with quote

I thought libinput was for wayland?

Both computers have libinput and evdev installed yet one works fine and the other does not.

I removed x11-drivers/xf86-input-evdev and the keyboard stopped working.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5137

PostPosted: Fri Apr 27, 2018 10:27 am    Post subject: Reply with quote

The xorg libinput driver is xf86-input-libinput; you get it by setting INPUT_DEVICES=libinput.
Back to top
View user's profile Send private message
mattmatteh
Guru
Guru


Joined: 10 Mar 2004
Posts: 449
Location: near chicago

PostPosted: Thu May 17, 2018 9:26 pm    Post subject: Reply with quote

Changing to libinput fixed my issue, thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum