• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[solved]: [Gamepad PC Twin Shock] on usb-0000:00:1d.1-1

der Linux part Hat sich gelöst auf einmal. Wird erkannt!

Hi :)

ich habe meinen Playstation Controller mittels Converter am PC angeschlossen, und dachte mir es wäre mal zumindest vorerst wichtig, dass ich von allen Knöpfen ein Feedback erhalte? Kann mir jemand helfen, diesen einzurichten?

Erkannt scheint er zu werden, jedoch erhalte ich unter Persönliche Einstellungen beim Drücken kein Feedback. Mit der Meldung ich solle das /dev/input/XY gerät angeben:

Hier mal zunächst ein paar Ausgaben:
Code:
wild-thing:~> grep input /var/log/boot.msg
<6>input: PC Speaker as /class/input/input0
<6>input: AT Translated Set 2 keyboard as /class/input/input1
<6>input: Gamepad PC Twin Shock as /class/input/input2
<6>input: USB HID v1.11 Joystick [Gamepad PC Twin Shock] on usb-0000:00:1d.1-1
<6>input: Logitech USB-PS/2 Optical Mouse as /class/input/input3
<6>input: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:1d.1-2
<6>drivers/usb/input/hid-core.c: v2.6:USB HID core driver
<6>input: Gamepad PC Twin Shock as /class/input/input4
<6>input: USB HID v1.11 Joystick [Gamepad PC Twin Shock] on usb-0000:00:1d.1-1
<6>input: Logitech USB-PS/2 Optical Mouse as /class/input/input5
<6>input: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:1d.1-2
Code:
wild-thing:/home/disk # lsusb
Bus 007 Device 001: ID 0000:0000
Bus 006 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 005: ID 046d:c01d Logitech, Inc.
Bus 004 Device 004: ID 0079:0006
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000

Ich gehe mal davon aus, dass ich eine device node erstellen müsste?

Wenn ich nach Input4 suche im Terminal finde ich folgendes:
Code:
wild-thing:/dev/input # cd /dev/input/
wild-thing:/dev/input # ls
by-id  by-path  event0  event1  event2  event3  mice  mouse0
wild-thing:/dev/input # ls -a
.  ..  by-id  by-path  event0  event1  event2  event3  mice  mouse0
wild-thing:/dev/input #

Also leider nicht das hier:
<6>input: Gamepad PC Twin Shock as /class/input/input4

Noch eine Ausgabe die von nutzen sein könnte:

Code:
wild-thing:~ # cat /proc/bus/input/devices
I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
S: Sysfs=/class/input/input0
H: Handlers=kbd event0
B: EV=40001
B: SND=6

I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/class/input/input1
H: Handlers=kbd event1
B: EV=120013
B: KEY=4 2000000 3802078 f840d001 feffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0003 Vendor=0079 Product=0006 Version=0100
N: Name="Gamepad PC Twin Shock"
P: Phys=usb-0000:00:1d.1-1/input0
S: Sysfs=/class/input/input4
H: Handlers=event2
B: EV=b
B: KEY=1fff 0 0 0 0 0 0 0 0 0
B: ABS=ffffff00 30027


I: Bus=0003 Vendor=046d Product=c01d Version=2100
N: Name="Logitech USB-PS/2 Optical Mouse"
P: Phys=usb-0000:00:1d.1-2/input0
S: Sysfs=/class/input/input5
H: Handlers=mouse0 event3
B: EV=7
B: KEY=ff0000 0 0 0 0 0 0 0 0
B: REL=103

wild-thing:~ #

Wo könnte den der Haken sein? Kennt sich jemand aus?

Danke schonmal!

Gruss

R
 
und zwar wäre es toll, dass das Gerät richtig angesteuert würde aus folgendem Grund:

Ich hab Vista Ultimate und SUSE 10.2 im Multiboot. Und wenn ich SUSE runterfahre und Vista wieder starte, dann hängt der Controller, lässt sich nicht mehr bedienen und das Testfeld im Vista sieht wie folgt aus:


http://www.pic-upload.de/view_04.07.07/4u63fi.jpg.html

Man beachte dabei den POV nach oben, welcher ohne jegliches Drücken am Controller nicht in Neutralposition ist.

(Reproduzierbar)

Danke für jegliche Hilfe ohne umstecken zu müssen?

Gruss

R
 

misiu

Moderator
Teammitglied
Passiert es nur nach "reboot" oder auch, wenn der Rechner vollständig
runtergefahren (Ausgeschaltet) und wieder hochgefahren wird?

Hast du den versucht, als Joystick (Yast->Hardware) einzurichten?
( http://www.qbik.ch/usb/devices/showdev.php?id=3774 )

Mit dem Device-Anlegen dürfte es ungefähr so sein:
http://www.linux-club.de/viewtopic.php?t=67235&highlight=key+event

Mit dem Programm "xev" (Textkonsole) kannst du dann die Knöpfe
belegen, sehe auch:
http://www.linux-club.de/viewtopic.php?t=28530&highlight=key+event
Bemühe auch die Suchfunktion: key+event

MfG
misiu
 
Danke für Die Antwort! :)

Passiert es nur nach "reboot"
nur nach reboot! Also quasi Warmstart.
-> nach Kaltstart und Adapter 1x aus und Anstecken, geht es dan wieder.

Hab sogar noch paar mehr details:

Es ist der hier:
http://www.bigben-interactive.de/
Gamepad Converter PS2 auf PS3

Art.-Nr.: BB 251449
Gamepad Converter zum Anschluss eines PS2 Controllers an die PS3
Direktlink französisch:
http://www.bigben.fr/access.php?id=173&cat=media

In verbindung mit einem handelsüblichen original DualShock2.

ls Joystick (Yast->Hardware) einzurichten?
nein in dem Fall war ich über "Persönliche Einstellungen" in dem Menü für Joystick. Werde es mir im YaST nochmals ansehen.

Die Tools und Kniffe werde ich mir bei Zeit ansehen :) Danke schonmal so weit!

Nochmal das läge mir sehr am Herzen, dass der Boot zumindest klappen würde ohne das der Controller im Windows dann probleme hat, weil ich nach dem Umstecken jedesmal die Tasten für die Spiele neu belegen muss. Das ist ein wenig nervig. Noch komm ich halbwegs klar so, bzw hab die Lust noch nicht verloren.

OT:
Ich hab auch noch einen Logitech Attack 3 Joystick hier, dieser beispielsweise lief wie von Geisterhand allein konfiguriert. Da musste ich nicht/kaum eingreifen.
/OT

Wenn ich im YaST Joystick konfigurieren möchte kommt beim ersten Klick:
Es wurde kein Joystick-Port für die Konfiguration gefunden. Die konfigurierten Karten bieten keine Unterstützung für den Joystick. Konfiguration der Soundkarte starten? (Ja)(Nein)
Jetzt schau ich mir die Links an.

das muss ich erstmal parsen:
http://www.linux-club.de/viewtopic.php?t=67235&highlight=key+event
kann mir dazu jemand eventuell in einzelnen Schritten helfen?

Also ich hab die Xorg.conf mal ergänzt und auch genau die selbe Datei wie der TE erstellt, jetzt bin ich an dieser Stelle:

Code:
Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device '/class/input/input4/event2':
    KERNEL=="event2"
    SUBSYSTEM=="input"
    DRIVER==""
    ATTR{dev}=="13:66"

  looking at parent device '/class/input/input4':
    KERNELS=="input4"
    SUBSYSTEMS=="input"
    DRIVERS==""
    ATTRS{uniq}==""
    ATTRS{phys}=="usb-0000:00:1d.1-1/input0"
    ATTRS{name}=="Gamepad PC Twin Shock"

  looking at parent device '/devices/pci0000:00/0000:00:1d.1/usb4/4-1/4-1:1.0':
    KERNELS=="4-1:1.0"
    SUBSYSTEMS=="usb"
    DRIVERS=="usbhid"
    ATTRS{modalias}=="usb:v0079p0006d0100dc00dsc00dp00ic03isc00ip00"
    ATTRS{bInterfaceProtocol}=="00"
    ATTRS{bInterfaceSubClass}=="00"
    ATTRS{bInterfaceClass}=="03"
    ATTRS{bNumEndpoints}=="02"
    ATTRS{bAlternateSetting}==" 0"
    ATTRS{bInterfaceNumber}=="00"

  looking at parent device '/devices/pci0000:00/0000:00:1d.1/usb4/4-1':
    KERNELS=="4-1"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{configuration}==""
    ATTRS{product}=="PC Twin Shock"
    ATTRS{manufacturer}=="Gamepad"
    ATTRS{maxchild}=="0"
    ATTRS{version}==" 2.00"
    ATTRS{devnum}=="4"
    ATTRS{speed}=="12"
    ATTRS{bMaxPacketSize0}=="8"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bDeviceClass}=="00"
    ATTRS{bcdDevice}=="0100"
    ATTRS{idProduct}=="0006"
    ATTRS{idVendor}=="0079"
    ATTRS{bMaxPower}=="500mA"
    ATTRS{bmAttributes}=="80"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bNumInterfaces}==" 1"

  looking at parent device '/devices/pci0000:00/0000:00:1d.1/usb4':
    KERNELS=="usb4"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{configuration}==""
    ATTRS{serial}=="0000:00:1d.1"
    ATTRS{product}=="UHCI Host Controller"
    ATTRS{manufacturer}=="Linux 2.6.18.8-0.3-default uhci_hcd"
    ATTRS{maxchild}=="2"
    ATTRS{version}==" 1.10"
    ATTRS{devnum}=="1"
    ATTRS{speed}=="12"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bDeviceClass}=="09"
    ATTRS{bcdDevice}=="0206"
    ATTRS{idProduct}=="0000"
    ATTRS{idVendor}=="0000"
    ATTRS{bMaxPower}=="  0mA"
    ATTRS{bmAttributes}=="e0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bNumInterfaces}==" 1"

  looking at parent device '/devices/pci0000:00/0000:00:1d.1':
    KERNELS=="0000:00:1d.1"
    SUBSYSTEMS=="pci"
    DRIVERS=="uhci_hcd"
    ATTRS{broken_parity_status}=="0"
    ATTRS{enable}=="1"
    ATTRS{modalias}=="pci:v00008086d00002831sv00001043sd000081ECbc0Csc03i00"
    ATTRS{local_cpus}=="ffffffff"
    ATTRS{irq}=="177"
    ATTRS{class}=="0x0c0300"
    ATTRS{subsystem_device}=="0x81ec"
    ATTRS{subsystem_vendor}=="0x1043"
    ATTRS{device}=="0x2831"
    ATTRS{vendor}=="0x8086"

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""

wild-thing:/etc/udev/rules.d #

Und werde neustarten.

Dazu habe ich jetzt einen Erfolg zu verbuchen!

Code:
su
cat /dev/input/by-path/pci-0000\:00\:1d.1-usb-0\:1\:1.0-event
Und man bekommt was vom Playstation Controller beim bewegen der Sticks usw!!! *gg*

Also soweiterstellt:
Code:
/etc/udev/rules.d/10-local.rules
# Playstation Controller Converter (Bigben Interactive)
BUS="serio", Driver="psmouse", SYSFS(description)="i8042 Aux-3 Port",
Kernel "event*", NAME=input/touchpad", MODE="0644"
Und Eintrag in der xorg.conf:
Code:
Section "InputDevice"
	Identifier "Synaptics Touchpad"
	Driver     "synaptics"
	Option     "AlwaysCore"
	Option     "SendCoreEvents" "true"
   Option     "Device" "/dev/input/event4"
	Option     "Protocol" "event"
EndSection

Aber das mit der Node scheint noch nicht hingehaut zu haben? Help!

Dabei habe ich jetzt auch noch ein Problem:

Wenn ich sage:
su
cat /dev/input/event2
Erhalte ich in der Ausgabe Feedback von Tastatur als auch Gamepad.
Hier noch die Verzeichnisstruktur von /dev/input:
Code:
wild-thing:/dev/input # ls
by-id  by-path  event0  event1  event2  event3  mice  mouse0


gruss
 
Oben