* Joystick (USB)
@ 2002-07-11 22:11 fixertechno
2002-07-12 8:14 ` Clarence Dang
0 siblings, 1 reply; 9+ messages in thread
From: fixertechno @ 2002-07-11 22:11 UTC (permalink / raw)
To: linux-msdos
Hi, i compiled the latest testing version 1.1.3.2 and have put the new
dosemu.conf joystick info into the config
It's a USB joystick but i've symlinked it to (/dev/js0) and it doesn't
recognize the joystick from DosEmu.
The joystick is recognized with other programs.
I've tried both /dev/js0 and /dev/input/js0 in the configuration, and
neither will detect it.
Any ideas on what I should do would be much appreciated.
(cant get sound either but that could be anything. if i chose the sound
blaster option in a dos game, it does think theres a sound blaster, only
theres no sound being output.)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Joystick (USB)
2002-07-11 22:11 Joystick (USB) fixertechno
@ 2002-07-12 8:14 ` Clarence Dang
2002-07-12 12:16 ` fixertechno
0 siblings, 1 reply; 9+ messages in thread
From: Clarence Dang @ 2002-07-12 8:14 UTC (permalink / raw)
To: fixertechno, linux-msdos
On Fri, 12 Jul 2002 08:11, fixertechno wrote:
> Hi, i compiled the latest testing version 1.1.3.2 and have put the new
> dosemu.conf joystick info into the config
>
> It's a USB joystick but i've symlinked it to (/dev/js0) and it doesn't
> recognize the joystick from DosEmu.
>
> The joystick is recognized with other programs.
>
> I've tried both /dev/js0 and /dev/input/js0 in the configuration, and
> neither will detect it.
>
> Any ideas on what I should do would be much appreciated.
>
Could you please run dosemu with the options -D9j -O and give me the output?
> (cant get sound either but that could be anything. if i chose the sound
> blaster option in a dos game, it does think theres a sound blaster, only
> theres no sound being output.)
>
I think there are some sound patches at dosemu.sourceforge.net/stas but I
haven't tried them myself.
Thanks!
Clarence
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Joystick (USB)
2002-07-12 8:14 ` Clarence Dang
@ 2002-07-12 12:16 ` fixertechno
2002-07-12 13:10 ` Bart Oldeman
0 siblings, 1 reply; 9+ messages in thread
From: fixertechno @ 2002-07-12 12:16 UTC (permalink / raw)
To: linux-msdos
On Fri, 12 Jul 2002, Clarence Dang wrote:
> Could you please run dosemu with the options -D9j -O and give me the output?
debug flags: -a
debug flags: 9j
JOY: joy_init() [unthreaded] CALLED!
JOY: WARNING! joystick axis min (0) and/or max (0) out of range
JOY: --> setting joystick range to hard-coded default 3-150
JOY: WARNING! joystick granularity (0) out of range
JOY: --> disabling granularity setting
JOY: joystick range: 3-150 (148)
JOY: joystick granularity: 1
JOY: joystick 0x0: will not be initialised
JOY: joystick 0x1: will not be initialised
JOY: WARNING! No joysticks enabled!
Slang:S-Lang Error: Inconsistency in define key.
Slang:S-Lang Error: Inconsistency in define key.
JOY: joy_reset() CALLED!
ERROR: SYSCALL ERROR: 13, *Permission denied* in file mouse.c, line 1848: expr=
open(mice->dev, O_RDWR | O_NONBLOCK)
ERROR: iopl(): Operation not permitted
JOY: joy_exist() returning value 0
ERROR: gettype: no disk 0
ERROR: gettype: no disk 0
leavedos(15|0xf) called - shutting down
JOY: joy_uninit() CALLED!
My dosemu.conf file has the following joystick settings
$_joy_device = "/dev/input/js0"
# 1st and 2nd joystick device
# ("" if you don't want an emulated joystick)
# e.g. "/dev/js0" or "/dev/js0 /dev/js1"
#
$_joy_dos_min = (1) # range for joystick axis readings, must be > 0
$_joy_dos_max = (150) # avoid setting this to > 250
$_joy_granularity = (1) # the higher, the less sensitive -
# useful if you have a wobbly joystick
and, heres the dmesg info about my joystick
hub.c: USB new device connect on bus1/2, assigned device number 3
input1,hiddev0: USB HID v1.00 Gamepad [Mega World] on usb1:3.0
> I think there are some sound patches at dosemu.sourceforge.net/stas but I
> haven't tried them myself.
yah, im not too worried, if its destined to work ill figure it out
eventually.
> Thanks!
> Clarence
no, thank you!
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: Joystick (USB)
2002-07-12 12:16 ` fixertechno
@ 2002-07-12 13:10 ` Bart Oldeman
2002-07-13 1:32 ` fixertechno
0 siblings, 1 reply; 9+ messages in thread
From: Bart Oldeman @ 2002-07-12 13:10 UTC (permalink / raw)
To: fixertechno; +Cc: linux-msdos
On Fri, 12 Jul 2002, fixertechno wrote:
> On Fri, 12 Jul 2002, Clarence Dang wrote:
> > Could you please run dosemu with the options -D9j -O and give me the output?
>
> debug flags: -a
> debug flags: 9j
> JOY: joy_init() [unthreaded] CALLED!
> JOY: WARNING! joystick axis min (0) and/or max (0) out of range
did you try updating your global.conf too?
copy it from the etc directory to where the old one is (probably either
/var/lib/dosemu/ or ~/dosemu/conf)
Bart
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Joystick (USB)
2002-07-12 13:10 ` Bart Oldeman
@ 2002-07-13 1:32 ` fixertechno
2002-07-13 10:05 ` Clarence Dang
0 siblings, 1 reply; 9+ messages in thread
From: fixertechno @ 2002-07-13 1:32 UTC (permalink / raw)
To: linux-msdos
> did you try updating your global.conf too?
> copy it from the etc directory to where the old one is (probably either
> /var/lib/dosemu/ or ~/dosemu/conf)
no, i neglected to do that. the problem does remain though, with the
added bonus of the following:
JOY: joy_reset() CALLED!
JOY: joy_exist() returning value 0
JOY: port 0x201: joy_port_outb()
JOY: port 0x201: joy_port_inb(): -1 -1 -1 -1
JOY: port 0x201: joy_port_inb(): -1 -1 -1 -1
(majority cut for brevity suffice it to say it repeats a lot)
JOY: port 0x201: joy_port_inb(): -1 -1 -1 -1
JOY: port 0x201: joy_port_outb()
JOY: port 0x201: joy_port_inb(): -1 -1 -1 -1
STOP TIME
*** dosemu frozen
RESTART TIME
*** dosemu unfrozen
STOP TIME
*** dosemu frozen
leavedos(15|0xf) called - shutting down
JOY: joy_uninit() CALLED!
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Joystick (USB)
2002-07-13 1:32 ` fixertechno
@ 2002-07-13 10:05 ` Clarence Dang
2002-07-13 13:53 ` fixertechno
0 siblings, 1 reply; 9+ messages in thread
From: Clarence Dang @ 2002-07-13 10:05 UTC (permalink / raw)
To: fixertechno; +Cc: linux-msdos
On Sat, 13 Jul 2002 11:32, fixertechno wrote:
> > did you try updating your global.conf too?
> > copy it from the etc directory to where the old one is (probably either
> > /var/lib/dosemu/ or ~/dosemu/conf)
>
> no, i neglected to do that. the problem does remain though,
So what are the messages before "joy_reset() CALLED!"?
Do you still get the same messages?
> with the
> added bonus of the following:
>
> JOY: joy_reset() CALLED!
> JOY: joy_exist() returning value 0
> JOY: port 0x201: joy_port_outb()
> JOY: port 0x201: joy_port_inb(): -1 -1 -1 -1
> JOY: port 0x201: joy_port_inb(): -1 -1 -1 -1
> (majority cut for brevity suffice it to say it repeats a lot)
> JOY: port 0x201: joy_port_inb(): -1 -1 -1 -1
> JOY: port 0x201: joy_port_outb()
> JOY: port 0x201: joy_port_inb(): -1 -1 -1 -1
Hmm, this indicates that your program is trying to read from the joystick but
dosemu still didn't detect your joystick.
Could you please give me the debugging output starting from "JOY: joy_init()
[unthreaded] CALLED!" because that output is still quite important in
diagnosing the problem.
Thanks again!
Clarence
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Joystick (USB)
2002-07-13 10:05 ` Clarence Dang
@ 2002-07-13 13:53 ` fixertechno
2002-07-13 14:55 ` Bart Oldeman
0 siblings, 1 reply; 9+ messages in thread
From: fixertechno @ 2002-07-13 13:53 UTC (permalink / raw)
To: linux-msdos
On Sat, 13 Jul 2002, Clarence Dang wrote:
> Do you still get the same messages?
ostensibly so, yes.
> Could you please give me the debugging output starting from "JOY: joy_init()
> [unthreaded] CALLED!" because that output is still quite important in
> diagnosing the problem.
here we go:
debug flags: -a
debug flags: 9j
JOY: joy_init() [unthreaded] CALLED!
JOY: WARNING! joystick axis min (0) and/or max (0) out of range
JOY: --> setting joystick range to hard-coded default 3-150
JOY: WARNING! joystick granularity (0) out of range
JOY: --> disabling granularity setting
JOY: joystick range: 3-150 (148)
JOY: joystick granularity: 1
JOY: joystick 0x0: will not be initialised
JOY: joystick 0x1: will not be initialised
JOY: WARNING! No joysticks enabled!
Slang:S-Lang Error: Inconsistency in define key.
Slang:S-Lang Error: Inconsistency in define key.
JOY: joy_reset() CALLED!
JOY: joy_exist() returning value 0
STOP TIME
*** dosemu frozen
leavedos(15|0xf) called - shutting down
JOY: joy_uninit() CALLED!
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Joystick (USB)
2002-07-13 13:53 ` fixertechno
@ 2002-07-13 14:55 ` Bart Oldeman
2002-07-13 23:27 ` fixertechno
0 siblings, 1 reply; 9+ messages in thread
From: Bart Oldeman @ 2002-07-13 14:55 UTC (permalink / raw)
To: fixertechno; +Cc: linux-msdos
On Sat, 13 Jul 2002, fixertechno wrote:
> On Sat, 13 Jul 2002, Clarence Dang wrote:
>
> > Do you still get the same messages?
>
> ostensibly so, yes.
>
> > Could you please give me the debugging output starting from "JOY: joy_init()
> > [unthreaded] CALLED!" because that output is still quite important in
> > diagnosing the problem.
>
> here we go:
>
> debug flags: -a
> debug flags: 9j
> JOY: joy_init() [unthreaded] CALLED!
> JOY: WARNING! joystick axis min (0) and/or max (0) out of range
this still hints at a configuration problem. Try -D+c and look for a
line like this:
CONF: Parsing /home/enbeo/dosemu/conf/global.conf file.
this global.conf should have this somewhere:
## joystick settings
joystick_emu { joy_device $_joy_device joy_dos_min $_joy_dos_min
joy_dos_max $_joy_dos_max joy_granularity $_joy_granularity }
if I then have this in dosemu.conf:
$_joy_device = "/dev/js0 /dev/js1" # 1st and 2nd joystick device
# ("" if you don't want an emulated joystick)
# e.g. "/dev/js0" or "/dev/js0 /dev/js1"
#
$_joy_dos_min = (1) # range for joystick axis readings, must be > 0
$_joy_dos_max = (150) # avoid setting this to > 250
$_joy_granularity = (1) # the higher, the less sensitive -
# useful if you have a wobbly joystick
even without a joystick I get the following:
JOY: joy_init() [unthreaded] CALLED!
JOY: joystick range: 1-150 (150)
JOY: joystick granularity: 1
JOY: joystick 0x0: ERROR! can't open "/dev/js0"
JOY: joystick 0x1: ERROR! can't open "/dev/js1"
JOY: WARNING! No joysticks enabled!
JOY: joy_reset() CALLED!
JOY: joy_exist() returning value 0
Bart
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: Joystick (USB)
2002-07-13 14:55 ` Bart Oldeman
@ 2002-07-13 23:27 ` fixertechno
0 siblings, 0 replies; 9+ messages in thread
From: fixertechno @ 2002-07-13 23:27 UTC (permalink / raw)
To: linux-msdos
> this still hints at a configuration problem. Try -D+c and look for a
> line like this:
> CONF: Parsing /home/enbeo/dosemu/conf/global.conf file.
>
> this global.conf should have this somewhere:
> ## joystick settings
> joystick_emu { joy_device $_joy_device joy_dos_min $_joy_dos_min
> joy_dos_max $_joy_dos_max joy_granularity $_joy_granularity }
actually -D+c solved it all for me by telling me that dosemu was finding
another global.conf in a directory i barely remembered creating, so I
updated that and it works perfectly. thanks!
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2002-07-13 23:27 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-11 22:11 Joystick (USB) fixertechno
2002-07-12 8:14 ` Clarence Dang
2002-07-12 12:16 ` fixertechno
2002-07-12 13:10 ` Bart Oldeman
2002-07-13 1:32 ` fixertechno
2002-07-13 10:05 ` Clarence Dang
2002-07-13 13:53 ` fixertechno
2002-07-13 14:55 ` Bart Oldeman
2002-07-13 23:27 ` fixertechno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox