[Risolto con 9.04] Joystick come input X11

Riconoscimento, installazione e configurazione delle periferiche.
marchi
Prode Principiante
Messaggi: 54
Iscrizione: mercoledì 23 maggio 2007, 18:59

[Risolto con 9.04] Joystick come input X11

Messaggio da marchi »

Ciao,

sto cercando di usare un joystick per comandare il cursore del server X ( in pratica al posto del mouse ).

Nome joystick:
Bus 005 Device 002: ID 07b5:0213 Mega World International, Ltd Thrustmaster Firestorm Digital 3 Gamepad ( una foto: http://www.wikio.it/prodotto/thrustmast ... -5039.html )


Per fare questo ho verificato il corretto funzionamento del mouse ( è ok ) e installato xserver-xorg-input-joystick , e modificato il file xorg.conf come segue:

Codice: Seleziona tutto

Section "Module"
	Load "ddc"
EndSection


Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"it"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
EndSection
[b]
Section "InputDevice"
	Identifier	"Joystick"
	Driver	"joystick"
	Option "Device" "/dev/input/js0"
	Option "SendCoreEvents" "true"
EndSection
[/b]

Section "Device"
	Identifier	"Configured Video Device"
EndSection

Section "Monitor"
	Identifier	"Philips"
	Option		"DPMS"
	HorizSync	30-92
	VertRefresh	50-160
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Monitor		"Philips"
	Device		"Configured Video Device"
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	Inputdevice	        "Joystick"	

EndSection
Fin quando premo i pulsanti del joystick, muovendo il cursore con il mouse, tutto ok.
Quando però uso le frecce direzionali del joystick, X crasha, qui il log:

Codice: Seleziona tutto

This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.

X.Org X Server 1.4.0.90
Release Date: 5 September 2007
X Protocol Version 11, Revision 0
Build Operating System: Linux Ubuntu (xorg-server 2:1.4.1~git20080131-1ubuntu9.2)
Current Operating System: Linux i530 2.6.24-23-generic #1 SMP Wed Apr 1 21:43:24 UTC 2009 x86_64
Build Date: 13 June 2008  01:10:57AM
 
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Fri Apr 10 13:16:06 2009
(==) Using config file: "/etc/X11/xorg.conf"

(II) Module "ddc" already built-in
(II) Module "ddc" already built-in
(II) Module "i2c" already built-in
(II) Module "ramdac" already built-in
expected keysym, got XF86KbdLightOnOff: line 70 of pc
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
expected keysym, got XF86KbdBrightnessUp: line 72 of pc
expected keysym, got XF86KbdLightOnOff: line 70 of pc
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
expected keysym, got XF86KbdBrightnessUp: line 72 of pc
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
expected keysym, got XF86KbdLightOnOff: line 70 of pc
expected keysym, got XF86KbdBrightnessDown: line 71 of pc
expected keysym, got XF86KbdBrightnessUp: line 72 of pc
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Error:            No Symbols named "nodeadkeys" in the include file "us"
>                   Exiting
>                   Abandoning symbols file "default"
Errors from xkbcomp are not fatal to the X server
(EE) Joystick: ioctl EVIOCGVERSION on '/dev/input/js0' failed: Invalid argument

Fatal server error:
Bad valuators reported for device Joystick

xinit:  connection to X server lost.



waiting for X server to shut down 

Grazie in anticipo.
Ultima modifica di marchi il domenica 26 aprile 2009, 22:51, modificato 1 volta in totale.
marchi
Prode Principiante
Messaggi: 54
Iscrizione: mercoledì 23 maggio 2007, 18:59

Re: Joystick come input X11

Messaggio da marchi »

Con ubuntu 9.04 32 bit funziona. Meglio così.
Scrivi risposta

Ritorna a “Driver e periferiche”

Chi c’è in linea

Visualizzano questa sezione: Bing [Bot], nick091 e 9 ospiti