From: Joshua Wise <joshua@joshuawise.com>
To: Bernhard Ager <ager@in.tum.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Joystick not found on Linux/amd64
Date: Sun, 19 Dec 2004 22:07:59 -0500 [thread overview]
Message-ID: <41C6420F.10109@joshuawise.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0412200235440.6947@tuvok.enterprise>
Bernhard Ager wrote:
> Hello,
>
> I just tried out version 8.03 of X-Plane for Linux. Works really smoothly
> for me, except that the joystick is not found :-( The joystick
> itself should be working, as e.g. jstest tells me:
>
> Joystick (Analog 4-axis 4-button joystick) has 4 axes and 4 buttons. Driver version is 2.1.0.
>
> The issue might be, that I am using Linux on the amd64 architecture and
> letting run X-Plane in the 32bit "emulation", though I can't really see
> why.
I've had a report of this problem in the past. I have a vague
understanding of why it happens, but I'm not sure how to fix it.
As far as I can tell, the problem is that my code uses the joystick
ioctls to get the version, passing it a 32-bit address to return the
version into. This doesn't work out so hot in the 64-bit kernel, which
decides that my 32-bit address is full of crap, and gives me an errno of
-EFAULT, which means that I passed it a bad address. My code handles
this by not detecting the joystick at all, thinking that the version is
too old, since the kernel didn't change it.
So, basically, I think I know why it happens, but I'm not certain
whether its my code at fault or the kernel's. This is a good question.
I'm going to cc: this to LKML, in the hope that somebody there can
provide some insight.
I am not subscribed to LKML - anyone on there who is responding, please
cc: me in your responses.
joshua
next parent reply other threads:[~2004-12-20 3:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.58.0412200235440.6947@tuvok.enterprise>
2004-12-20 3:07 ` Joshua Wise [this message]
2004-12-20 22:34 ` Bernhard Ager
2004-12-21 1:37 ` Bernhard Ager
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41C6420F.10109@joshuawise.com \
--to=joshua@joshuawise.com \
--cc=ager@in.tum.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®