You are not logged in.

#1 2012-03-30 18:22:15

nashod
Member
Registered: 2012-03-23
Posts: 39

wine mouse problems

so I got wine running on my computer (used WINEARCH to create a 32bit prefix instead of a 64bit one) and I installed bot skyrim and tf2 using steam but on both I have the same problem, the mouse is generally uncontrolable, it works fine when using steam itself but when I enter the games it doesn't work all that well, in skyrim if I move it even a milimeter it just flies off the screen and in tf2 the mouse just appears to jump or something, I mean i place the mouse on a button and button highlights and then turns off and I need to move the mouse above the button for it to rehighlight....

I tried posting on the wine forums but got no help so I'm posting here.

thanks in advanced for any help.

Offline

#2 2012-03-30 18:50:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: wine mouse problems

I think you're experiencing https://bugs.archlinux.org/task/29100

Offline

#3 2012-03-30 18:54:03

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: wine mouse problems

I don't have 3D games so I can't test it, but try these:

Turn on "automatically capture the mouse" in winecfg.

Turn on DXGrab: http://wiki.winehq.org/UsefulRegistryKeys

A mouse grab is disabled when you switch to another window in X11. Try making the game ask for a new grab request, for instance by opening the console or options menu and then going back to the game.

Offline

#4 2012-03-30 19:19:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: wine mouse problems

I'm not sure if this is what OP is experiencing, but turning "automatically capture the mouse" option on rendered Starcraft: Broodwar unusable (not a 3D game ;P) - mouse does what OP reported: jumps around like the sensitivity would be set way too high.
I have no DXGrab, but creating it and setting to 'Y' doesn't change a thing.


Edit: Turning 'Emulate a virtual desktop' on seems to have helped.

Last edited by karol (2012-03-30 19:30:56)

Offline

#5 2012-03-30 20:39:41

nashod
Member
Registered: 2012-03-23
Posts: 39

Re: wine mouse problems

I might be missing something here but how do you apply a patch? I've read this(https://wiki.archlinux.org/index.php/Patching_in_ABS) article in the arch wiki but considering they are talking about making a package build I'm assuming this is not my case (shouldn't be using the computer when I'm half asleep...) I'll just google it tomorrow I guess

Offline

#6 2012-03-30 21:23:35

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: wine mouse problems

First you apply a patch, then you build a package. You can't fix a package that has already been built, you need to build it anew.

Have a look at the xorg-server PKGBUILD http://projects.archlinux.org/svntogit/ … org-server
It's more complicated than the average PKGBUILD because it builds a couple packages (not just one), but the part that interests you is the patching:

build() {
  cd "${srcdir}/${pkgbase}-${pkgver}"

  # Use nouveau/nv/nvidia drivers for nvidia devices
  patch -Np1 -i "${srcdir}/autoconfig-nvidia.patch"

  # Use unofficial imedia SiS driver for supported SiS devices
  patch -Np0 -i "${srcdir}/autoconfig-sis.patch"

Provide a working patch and apply it the same way.

Offline

#7 2012-03-31 11:37:31

Stunts
Member
From: Portugal
Registered: 2009-03-28
Posts: 339
Website

Re: wine mouse problems

I had the same problem and built the package successfully. It solved my problem.
Only to find out that the package in [testing] already has that patch included and solved my problem too.
So in case you still can't build the package yourself - just use the one from [testing]. But learning how to build it is a very good exercise.

Offline

#8 2012-03-31 19:41:47

nashod
Member
Registered: 2012-03-23
Posts: 39

Re: wine mouse problems

it's the first time i patch something so sorry if I'm causing too muach trouble but what does this outpot mean?

can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/dix/getevents.c b/dix/getevents.c
|index 5b9cef3..fd5998d 100644
|--- a/dix/getevents.c
|+++ b/dix/getevents.c
--------------------------

Offline

#9 2012-03-31 20:37:15

Stunts
Member
From: Portugal
Registered: 2009-03-28
Posts: 339
Website

Re: wine mouse problems

Are you using the PKGBUILD from the bug report?

Offline

#10 2012-03-31 22:01:35

nashod
Member
Registered: 2012-03-23
Posts: 39

Re: wine mouse problems

Stunts wrote:

Are you using the PKGBUILD from the bug report?

you mean the patch from the bug report? ya

Offline

#11 2012-04-01 05:04:48

KingX
Member
From: CA
Registered: 2010-03-24
Posts: 324

Re: wine mouse problems

Stunts wrote:

I had the same problem and built the package successfully. It solved my problem.
Only to find out that the package in [testing] already has that patch included and solved my problem too.
So in case you still can't build the package yourself - just use the one from [testing]. But learning how to build it is a very good exercise.

Where in testing is the patched wine package.. I searched in Packages and also through pacman. Care to link it please. smile

Offline

#12 2012-04-01 11:02:54

Stunts
Member
From: Portugal
Registered: 2009-03-28
Posts: 339
Website

Re: wine mouse problems

@ nashod:
I mean this PKGBUILD:
https://bugs.archlinux.org/task/29100?getfile=8455
And the respective patch from here:
http://patchwork.freedesktop.org/patch/9595/raw/

@KingX:
The package that was patched was not wine, but rather xorg-server. You can find it here: (not anymore - it's already in [extra] by now).
http://www.archlinux.org/packages/extra … rg-server/

Offline

#13 2012-04-01 12:04:34

corvinus
Member
Registered: 2011-09-05
Posts: 8

Re: wine mouse problems

Yep! I'd restate, bug seems fixed. Just update xorg-server from extra and that's it.

Offline

#14 2012-04-01 17:55:50

Tomm
Member
Registered: 2012-02-07
Posts: 8

Re: wine mouse problems

I'm still having some what of a problem, when I first start wine after I boot up my system everything works as it should.  However when exiting my game and wine then starting it up again later I come across the mouse bug and the game becomes unusable.

Offline

#15 2012-04-01 18:07:28

Stunts
Member
From: Portugal
Registered: 2009-03-28
Posts: 339
Website

Re: wine mouse problems

That's strange. I can't seem to reproduce that behaviour with Warcraft 3.

Offline

#16 2012-04-01 18:33:04

Tomm
Member
Registered: 2012-02-07
Posts: 8

Re: wine mouse problems

Well you will probably laugh a bit at the game I am playing lol, it's ToonTown (Not the game itself that is having the problem, but the launcher).  I may need to try some other applications in wine to see if it is just a game specific problem, wine, and/or xorg.

Last edited by Tomm (2012-04-01 18:34:43)

Offline

Board footer

Powered by FluxBB