kernel-packages team mailing list archive
-
kernel-packages team
-
Mailing list archive
-
Message #24301
[Bug 836335] Re: 054c:0268 Sony Playstation 2 controller PC adaptator : buttons are not mapped correctly
The C++ code using libusb.
** Attachment added: "C++ code to reverse ingeneer the USB traffic"
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/836335/+attachment/3892209/+files/test.cpp
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/836335
Title:
054c:0268 Sony Playstation 2 controller PC adaptator : buttons are not
mapped correctly
Status in “linux” package in Ubuntu:
Incomplete
Bug description:
I just received an adaptator that allows one to plug a PlayStation 2 controller into an USB port to use it as a joystick in ubuntu.
The adpatator is from Gameron, but there is no clear product name (in french : "Adaptateur Manette PS2 > PS3, Compatible Sony PS3 / PC", so it seems to emulate a Playstation 3 controller). It has a "Gamepad / Wheel" switch on its side.
Using the "Wheel" mode, the controller is recognized as a "Logitech
Logitech Driving Force" (output from jstest) and works correctly but
is missing some features (half working analog sticks). I think this is
working as intended.
Using the "Gamepad" mode, some buttons are missing.
The controller was set in that mode for all that follows.
Note that I've made the following tests with two different official Playstation 2 gamepads and the result was the same.
Here is the result of lsusb :
Bus 002 Device 012: ID 054c:0268 Sony Corp. Batoh Device
And here is the initial output of jstest :
Joystick (Sony PLAYSTATION(R)3 Controller) has 30 axes (X, Y, Z, Rz, Hat0X, Hat0Y, (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null))
and 13 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2, PinkieBtn, BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4, BaseBtn5, BaseBtn6, BtnDead).
All axes are working correctly (they correspond to button pressure levels).
The 13 button IDs correspond to the following :
0 : select
1 : analog left
2 : analog right
3 : start
4 : directional pad top
5 : directional pad right
6 : directional pad bottom
7 : directional pad left
8 : L2
9 : R2
10 : L1
11 : R1
12 : triangle
As you can see, "circle", "cross" and "square" are missing from the
button list.
I've plugged the adaptator on a Windows XP machine, and it was
recognized out of the box (no additional driver required), and all
buttons were working correctly. It also reported 13 buttons, which
were mapped to the corresponding actions :
0 : triangle
1 : circle
2 : cross
3 : square
4 : L1
5 : R1
6 : L2
7 : R2
8 : select
9 : start
10 : analog left
11 : analog right
12 : ? (analog on/off button ?)
The directional pad was mapped to a joystick hat as far as I can tell,
and the two analog sticks were working properly.
See the corresponding forum post :
http://ubuntuforums.org/showthread.php?p=11193828#post11193828
Other people having the exact same problem with unofficial Playstation 3 controllers :
http://ubuntuforums.org/showthread.php?t=920636
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: linux-image-2.6.38-11-generic 2.6.38-11.48
ProcVersionSignature: Ubuntu 2.6.38-11.48-generic 2.6.38.8
Uname: Linux 2.6.38-11-generic i686
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: i386
ArecordDevices:
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC269 Analog [ALC269 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/controlC0: kalith 1639 F.... pulseaudio
/dev/snd/pcmC0D0p: kalith 1639 F...m pulseaudio
CRDA: Error: [Errno 2] Aucun fichier ou dossier de ce type
Card0.Amixer.info:
Card hw:0 'Intel'/'HDA Intel at 0xf0700000 irq 43'
Mixer name : 'Intel IbexPeak HDMI'
Components : 'HDA:10ec0269,10cf0200,00100004 HDA:80862804,80860101,00100000'
Controls : 16
Simple ctrls : 8
Date: Mon Aug 29 00:13:44 2011
HibernationDevice: RESUME=UUID=961ec798-a386-4b00-8827-f15196d5a77e
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
MachineType: FUJITSU LIFEBOOK A530
ProcEnviron:
LANGUAGE=fr_FR:en
LANG=fr_FR.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-11-generic root=UUID=e8424bc6-ca68-4a71-982b-a2456bb7abd8 ro quiet splash vt.handoff=7
RelatedPackageVersions:
linux-restricted-modules-2.6.38-11-generic N/A
linux-backports-modules-2.6.38-11-generic N/A
linux-firmware 1.52
SourcePackage: linux
UpgradeStatus: Upgraded to natty on 2011-06-30 (59 days ago)
dmi.bios.date: 08/19/2010
dmi.bios.vendor: FUJITSU // Phoenix Technologies Ltd.
dmi.bios.version: Version 1.16
dmi.board.name: FJNBB06
dmi.board.vendor: FUJITSU
dmi.chassis.type: 10
dmi.chassis.vendor: FUJITSU
dmi.modalias: dmi:bvnFUJITSU//PhoenixTechnologiesLtd.:bvrVersion1.16:bd08/19/2010:svnFUJITSU:pnLIFEBOOKA530:pvr:rvnFUJITSU:rnFJNBB06:rvr:cvnFUJITSU:ct10:cvr:
dmi.product.name: LIFEBOOK A530
dmi.sys.vendor: FUJITSU
---
ApportVersion: 2.4-0ubuntu5
Architecture: i386
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/controlC0: ubuntu 4556 F.... pulseaudio
CRDA:
country FR:
(2402 - 2482 @ 40), (N/A, 20)
(5170 - 5250 @ 40), (N/A, 20)
(5250 - 5330 @ 40), (N/A, 20), DFS
(5490 - 5710 @ 40), (N/A, 27), DFS
CasperVersion: 1.320
DistroRelease: Ubuntu 12.10
LiveMediaBuild: Ubuntu 12.10 "Quantal Quetzal" - Alpha i386 (20120724.2)
MachineType: FUJITSU LIFEBOOK A530
Package: linux (not installed)
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: initrd=/casper/initrd.lz file=/cdrom/preseed/username.seed boot=casper quiet splash -- persistent BOOT_IMAGE=/casper/vmlinuz
ProcVersionSignature: Ubuntu 3.5.0-6.6-generic 3.5.0
RelatedPackageVersions:
linux-restricted-modules-3.5.0-6-generic N/A
linux-backports-modules-3.5.0-6-generic N/A
linux-firmware 1.85
Tags: quantal running-unity
Uname: Linux 3.5.0-6-generic i686
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
dmi.bios.date: 08/19/2010
dmi.bios.vendor: FUJITSU // Phoenix Technologies Ltd.
dmi.bios.version: Version 1.16
dmi.board.name: FJNBB06
dmi.board.vendor: FUJITSU
dmi.chassis.type: 10
dmi.chassis.vendor: FUJITSU
dmi.modalias: dmi:bvnFUJITSU//PhoenixTechnologiesLtd.:bvrVersion1.16:bd08/19/2010:svnFUJITSU:pnLIFEBOOKA530:pvr:rvnFUJITSU:rnFJNBB06:rvr:cvnFUJITSU:ct10:cvr:
dmi.product.name: LIFEBOOK A530
dmi.sys.vendor: FUJITSU
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/836335/+subscriptions