[MPlayer-users] Joystick as input device failing
Thomas Scheffler
thomas.scheffler at bigfoot.de
Fri Jun 14 00:51:01 CEST 2002
Hi,
I want to be a good bug reporter so I enclose the requested informations
later in the mail. But I think my problem is a pretty obvious one to see
and maybe to solve. I use my wireless Joystick as a kind of remote
controll and so I configured some buttons in the input config file. The
problem now seems to be that the joystick axis (4) are not completly
centred all the time and so the "input key" is a mixture of both some
currently uncentred axis and the bound button. As a respond to that
Mplayer does not know what to do. Of cause you can argue that I have
simply have to bound my controlls to every such combination.
2 directions * 4 axis * 12 buttons are 96 bindings I really don't need.
And the thing is. Although it recently didn't occur it was sometimes
that the input key was a mixture of several axis and the pressed
buttons. What I suggest, that axis and buttons are not taken as one
input but two or three depending on the number of axis movements
detected. So that if no binding for the axis are detected only the
action for the button is fired. Maybe you can implement something like a
death zone for the joystick input in which minimal movements or
uncentered Joysticks inputs where ingored.
I hope this get fixed cause this could improve usability a lot. I'm not
member of the mailing list since I can not handle such big mail streams
anymore. So if there are any questions left, please mail me. I for
myself just check every new release to see if it's fixed, OK?
best regards
Thomas Scheffler
So now it comes my full bug report attachment:
Distrubution: Debian Woody 3.0
uname -a:
Linux workstation.homenet.ews 2.4.18-ac3 #1 Die Apr 2 22:10:46 CEST 2002
i686 unknown
Libc Version:
-rwxr-xr-x 1 root root 1153784 28. Apr 11:57
/lib/libc-2.2.5.so
lrwxrwxrwx 1 root root 13 13. Mai 21:36 /lib/libc.so.6
-> libc-2.2.5.so
X -version
This is a pre-release version of XFree86, and is not supported in any
way. Bugs may be reported to XFree86 at XFree86.Org and patches submitted
to fixes at XFree86.Org. Before reporting bugs in pre-release versions,
please check the latest version in the XFree86 CVS repository
(http://www.XFree86.Org/cvs)
XFree86 Version 4.1.0.1 / X Window System
(protocol Version 11, revision 0, vendor release 6510)
Release Date: 21 December 2001
If the server is older than 6-12 months, or if your card is
newer than the above date, look for a newer version before
reporting problems. (See http://www.XFree86.Org/FAQ)
Build Operating System: Linux 2.4.17 i686 [ELF]
Module Loader present
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/3.1/specs
Configured with: /mnt/data/gcc-3.1/gcc-3.1-3.1ds2/src/configure -v
--enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr
--mandir=$(prefix)/share/man --infodir=$(prefix)/share/info
--with-gxx-include-dir=$(prefix)/include/g++-v3-3.1 --enable-shared
--with-system-zlib --enable-long-long --enable-nls
--without-included-gettext --enable-clocale=gnu --enable-threads=posix
--enable-java-gc=boehm --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.1 (Debian)
$ ld -v
GNU ld version 2.12.90.0.7 20020423 Debian GNU/Linux
$ as --version
GNU assembler 2.12.90.0.7 20020423 Debian GNU/Linux
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms
of
the GNU General Public License. This program has absolutely no
warranty.
This assembler was configured for a target of `i386-linux'.
~$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Pentium III (Katmai)
stepping : 3
cpu MHz : 574.969
cache size : 512 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca
cmov pat pse36 mmx fxsr sse
bogomips : 1146.88
Video Card: Creative GeForce DDR
Video Driver: NVIDIA 1.0-2960
SoundCard: SB Live! Alsa OSS Emulation
Joystick: Thrustmaster Firestorm Wireless
Joystick driver: USB HID kernel driver + joydev kernel driver
Not in mplayer.log:
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 61 for hw scaling
vo_xv: reset gamma correction
[xv] dx: 0 dy: 0 dw: 640 dh: 480
*** [vo] Exporting mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
[xv] dx: 0 dy: 0 dw: 640 dh: 480
XXX initial v_pts=0,000 a_pos=9991 (0,500) / 1 0% 0% 0,0% 0 0 0%
No bind found for key JOY_AXIS2_MINUS-JOY_BTN1
%%
No bind found for key JOY_AXIS2_MINUS-JOY_BTN0 %
No bind found for key JOY_AXIS2_MINUS-JOY_BTN2 %
No bind found for key JOY_AXIS2_MINUS-JOY_BTN1 %
No bind found for key JOY_AXIS2_MINUS-JOY_BTN3 %
No bind found for key JOY_AXIS2_MINUS-JOY_BTN2 %
No bind found for key JOY_AXIS2_MINUS-JOY_BTN7 %
No bind found for key JOY_AXIS2_MINUS-JOY_BTN5 %
No bind found for key JOY_AXIS2_MINUS-JOY_BTN6 %
No bind found for key JOY_AXIS2_MINUS-JOY_BTN4 %
No bind found for key JOY_AXIS2_MINUS-JOY_BTN9 %
No bind found for key JOY_AXIS2_MINUS-JOY_BTN8 %
-------------- next part --------------
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale
'-v' '/media/lvm/temp/Die Feuerzangenbowle CD2.avi'
font: can't open file: /home/thosch/.mplayer/font/font.desc
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 chars)
Opening joystick device /dev/input/js0
======= AVI Header =======
us/frame: 40000 (fps=25,000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames total: 69983 initial: 0
streams: 2
Suggested BufferSize: 0
Size: 640 x 480
======= STREAM Header =======
Type: vids FCC: div3 (33766964)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 25/1 = 25,000
Start: 0 Len: 69983
Suggested BufferSize: 90631
Quality -1
Sample size: 0
======= VIDEO Format ======
biSize 40
biWidth 640
biHeight 480
biPlanes 1
biBitCount 24
biCompression 861292868='DIV3'
biSizeImage 921600
===========================
======= STREAM Header =======
Type: auds FCC: (0)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 1
Rate: 19983/1 = 19983,000
Start: 0 Len: 55937260
Suggested BufferSize: 9991
Quality -1
Sample size: 1
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 44100
avg byte/sec: 19983
Block align: 1
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=522
mp3.nFramesPerBlock=1
mp3.nCodecDelay=1393
libavcodec: CPU flags: mmx mmxext sse
-------------- next part --------------
00:00.0 Host bridge: Intel Corp. 440BX/ZX - 82443BX/ZX Host bridge (rev 03)
Subsystem: Asustek Computer, Inc.: Unknown device 8024
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ >SERR- <PERR-
Latency: 64
Region 0: Memory at e0000000 (32-bit, prefetchable) [size=128M]
Capabilities: [a0] AGP version 1.0
Status: RQ=31 SBA+ 64bit- FW- Rate=x1,x2
Command: RQ=0 SBA+ AGP+ 64bit- FW- Rate=x2
00:01.0 PCI bridge: Intel Corp. 440BX/ZX - 82443BX/ZX AGP bridge (rev 03) (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B-
Status: Cap- 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 64
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
Memory behind bridge: d5000000-d67fffff
Prefetchable memory behind bridge: d7f00000-dfffffff
BridgeCtl: Parity- SERR- NoISA- VGA+ MAbort- >Reset- FastB2B+
00:04.0 ISA bridge: Intel Corp. 82371AB PIIX4 ISA (rev 02)
Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 0
00:04.1 IDE interface: Intel Corp. 82371AB PIIX4 IDE (rev 01) (prog-if 80 [Master])
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 16
Region 4: I/O ports at d800 [size=16]
00:04.2 USB Controller: Intel Corp. 82371AB PIIX4 USB (rev 01) (prog-if 00 [UHCI])
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 16
Interrupt: pin D routed to IRQ 7
Region 4: I/O ports at d400 [size=32]
00:04.3 Bridge: Intel Corp. 82371AB PIIX4 ACPI (rev 02)
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Interrupt: pin ? routed to IRQ 9
00:09.0 Multimedia video controller: Brooktree Corporation Bt878 (rev 11)
Subsystem: Hauppauge computer works Inc. WinTV/GO
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 20 (4000ns min, 10000ns max)
Interrupt: pin A routed to IRQ 7
Region 0: Memory at d7000000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00:09.1 Multimedia controller: Brooktree Corporation Bt878 (rev 11)
Subsystem: Hauppauge computer works Inc. WinTV/GO
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 20 (1000ns min, 63750ns max)
Interrupt: pin A routed to IRQ 7
Region 0: Memory at d6800000 (32-bit, prefetchable) [size=4K]
Capabilities: [44] Vital Product Data
Capabilities: [4c] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00:0b.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 04)
Subsystem: Creative Labs CT4620 SBLive!
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 16 (500ns min, 5000ns max)
Interrupt: pin A routed to IRQ 3
Region 0: I/O ports at d000 [size=32]
Capabilities: [dc] Power Management version 1
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00:0b.1 Input device controller: Creative Labs SB Live! (rev 01)
Subsystem: Creative Labs Gameport Joystick
Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 16
Region 0: I/O ports at b800 [size=8]
Capabilities: [dc] Power Management version 1
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev 10)
Subsystem: Allied Telesyn International: Unknown device 2503
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 20 (8000ns min, 16000ns max)
Interrupt: pin A routed to IRQ 7
Region 0: I/O ports at b400 [size=256]
Region 1: Memory at d4800000 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0+,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
01:00.0 VGA compatible controller: nVidia Corporation GeForce 256 DDR (rev 10) (prog-if 00 [VGA])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop+ ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Latency: 248 (1250ns min, 250ns max)
Interrupt: pin A routed to IRQ 10
Region 0: Memory at d5000000 (32-bit, non-prefetchable) [size=16M]
Region 1: Memory at d8000000 (32-bit, prefetchable) [size=128M]
Expansion ROM at d7ff0000 [disabled] [size=64K]
Capabilities: [60] Power Management version 1
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [44] AGP version 2.0
Status: RQ=31 SBA+ 64bit- FW+ Rate=x1,x2
Command: RQ=31 SBA+ AGP+ 64bit- FW- Rate=x2
-------------- next part --------------
JOY_UP seek +10
JOY_DOWN seek -10
JOY_LEFT seek -1
JOY_RIGHT seek +1
JOY_BTN0 pause
JOY_BTN1 osd
JOY_BTN2 vo_fullscreen
JOY_BTN3 quit
JOY_BTN4 volume -1
JOY_BTN5 volume -5
JOY_BTN6 volume +1
JOY_BTN7 volume +5
JOY_BTN8 seek -60
JOY_BTN9 seek +60
More information about the MPlayer-users
mailing list