* [9fans] Mouse inverted Y-axis
@ 2012-12-16 13:58 Eduard Streahlau
2012-12-16 14:17 ` cinap_lenrek
` (5 more replies)
0 siblings, 6 replies; 13+ messages in thread
From: Eduard Streahlau @ 2012-12-16 13:58 UTC (permalink / raw)
To: 9fans
Ok recompiling the kernel after modifying kb.c did the job,
nusb was documented as userspace program so I never thought of it
thanks
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [9fans] Mouse inverted Y-axis
2012-12-16 13:58 [9fans] Mouse inverted Y-axis Eduard Streahlau
@ 2012-12-16 14:17 ` cinap_lenrek
2012-12-16 14:27 ` erik quanstrom
2012-12-17 9:40 ` Pavel Klinkovsky
` (4 subsequent siblings)
5 siblings, 1 reply; 13+ messages in thread
From: cinap_lenrek @ 2012-12-16 14:17 UTC (permalink / raw)
To: 9fans
cool.
they are userspace programs. but for the keyboard to work on
bootup (so you can enter stuff like the root filesystem
location), they are started from a ram filesystem build into
the kernel image. the files that get build into that ram
filesystem are listed in: /sys/src/9/port/bootfs.proto
--
cinap
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [9fans] Mouse inverted Y-axis
2012-12-16 14:17 ` cinap_lenrek
@ 2012-12-16 14:27 ` erik quanstrom
0 siblings, 0 replies; 13+ messages in thread
From: erik quanstrom @ 2012-12-16 14:27 UTC (permalink / raw)
To: 9fans
> the kernel image. the files that get build into that ram
> filesystem are listed in: /sys/src/9/port/bootfs.proto
that's specific to your 9front. in the distribution, those
files are listed in the config file bootdir section.
- erik
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [9fans] Mouse inverted Y-axis
2012-12-16 13:58 [9fans] Mouse inverted Y-axis Eduard Streahlau
2012-12-16 14:17 ` cinap_lenrek
@ 2012-12-17 9:40 ` Pavel Klinkovsky
2013-02-21 13:39 ` Pavel Klinkovsky
` (3 subsequent siblings)
5 siblings, 0 replies; 13+ messages in thread
From: Pavel Klinkovsky @ 2012-12-17 9:40 UTC (permalink / raw)
To: 9fans
> Ok recompiling the kernel after modifying kb.c did the job,
Great.
> nusb was documented as userspace program so I never thought of it
I discovered it a some time ago when I had needed to fix the wheel direction of my IBM mouse.
Pavel
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [9fans] Mouse inverted Y-axis
2012-12-16 13:58 [9fans] Mouse inverted Y-axis Eduard Streahlau
2012-12-16 14:17 ` cinap_lenrek
2012-12-17 9:40 ` Pavel Klinkovsky
@ 2013-02-21 13:39 ` Pavel Klinkovsky
2013-02-22 9:57 ` Pavel Klinkovsky
` (2 subsequent siblings)
5 siblings, 0 replies; 13+ messages in thread
From: Pavel Klinkovsky @ 2013-02-21 13:39 UTC (permalink / raw)
To: 9fans
Hi all,
was not something changed in Plan9 kernel(?) in the near past related to the mouse wheel scrolling direction?
I still have opposite scrolling direction when scrolling my mouse wheel (even with my patched kb.c). :(
Thanks for any help.
Pavel
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [9fans] Mouse inverted Y-axis
2012-12-16 13:58 [9fans] Mouse inverted Y-axis Eduard Streahlau
` (2 preceding siblings ...)
2013-02-21 13:39 ` Pavel Klinkovsky
@ 2013-02-22 9:57 ` Pavel Klinkovsky
2013-02-22 10:42 ` erik quanstrom
2013-02-22 12:50 ` Pavel Klinkovsky
2013-02-22 14:43 ` Pavel Klinkovsky
5 siblings, 1 reply; 13+ messages in thread
From: Pavel Klinkovsky @ 2013-02-22 9:57 UTC (permalink / raw)
To: 9fans
Hi all,
> I still have opposite scrolling direction when scrolling my mouse wheel (even with my patched kb.c). :(
I have found a problem - as usually placed between keyboard and chair. ;)
I made such sequence to install my modification in kb.c:
- cd /sys/src/cmd/usb/kb
- mk
- mk install
- /sys/src/9/pc
- mk 'CONF=pcf'
- cp 9pcf /n/9fat
- reboot
The modification in kb.c was not used.
So I made such sequence to install my modification in kb.c:
- cd /sys/src/cmd/usb (not into kb subdirectory!)
- mk
- mk install
- /sys/src/9/pc
- mk 'CONF=pcf'
- cp 9pcf /n/9fat
- reboot
The modification in kb.c was used.
Sorry for noice... :(
Pavel
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [9fans] Mouse inverted Y-axis
2013-02-22 9:57 ` Pavel Klinkovsky
@ 2013-02-22 10:42 ` erik quanstrom
0 siblings, 0 replies; 13+ messages in thread
From: erik quanstrom @ 2013-02-22 10:42 UTC (permalink / raw)
To: 9fans
> So I made such sequence to install my modification in kb.c:
> - cd /sys/src/cmd/usb (not into kb subdirectory!)
> - mk
> - mk install
> - /sys/src/9/pc
> - mk 'CONF=pcf'
> - cp 9pcf /n/9fat
> - reboot
>
> The modification in kb.c was used.
usb is a pain. i generally rebuild everything from the top
directory. nuke it from orbit. it's the only way to be sure!
- erik
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [9fans] Mouse inverted Y-axis
2012-12-16 13:58 [9fans] Mouse inverted Y-axis Eduard Streahlau
` (3 preceding siblings ...)
2013-02-22 9:57 ` Pavel Klinkovsky
@ 2013-02-22 12:50 ` Pavel Klinkovsky
2013-02-22 13:30 ` erik quanstrom
2013-02-22 14:43 ` Pavel Klinkovsky
5 siblings, 1 reply; 13+ messages in thread
From: Pavel Klinkovsky @ 2013-02-22 12:50 UTC (permalink / raw)
To: 9fans
> i generally rebuild everything from the top directory.
I see, good to know. Thanks.
In any case I think there is a bug in kb.c.
The function 'ptrbootpvals' seems correct:
if(c > 3 && ch->buf[3] == 1) /* up */
b |= 0x08;
if(c > 3 && ch->buf[3] == 0xff) /* down */
b |= 0x10;
Wheel-up should set the flag 0x08.
Wheel-down should set the flag 0x10.
But the function 'ptrrepvals' seems buggy:
if(c > 3 && hidifcval(&kd->templ, KindWheel, 0) > 0) /* up */
b |= 0x10;
if(c > 3 && hidifcval(&kd->templ, KindWheel, 0) < 0) /* down */
b |= 0x08;
Wheel-up sets the flag 0x10.
Wheel-down sets the flag 0x08.
Pavel
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [9fans] Mouse inverted Y-axis
2013-02-22 12:50 ` Pavel Klinkovsky
@ 2013-02-22 13:30 ` erik quanstrom
0 siblings, 0 replies; 13+ messages in thread
From: erik quanstrom @ 2013-02-22 13:30 UTC (permalink / raw)
To: 9fans
> I see, good to know. Thanks.
>
> In any case I think there is a bug in kb.c.
> The function 'ptrbootpvals' seems correct:
>
> if(c > 3 && ch->buf[3] == 1) /* up */
> b |= 0x08;
> if(c > 3 && ch->buf[3] == 0xff) /* down */
> b |= 0x10;
>
> Wheel-up should set the flag 0x08.
> Wheel-down should set the flag 0x10.
>
>
> But the function 'ptrrepvals' seems buggy:
> if(c > 3 && hidifcval(&kd->templ, KindWheel, 0) > 0) /* up */
> b |= 0x10;
> if(c > 3 && hidifcval(&kd->templ, KindWheel, 0) < 0) /* down */
> b |= 0x08;
>
> Wheel-up sets the flag 0x10.
> Wheel-down sets the flag 0x08.
something's wrong, but is it the code or the comment?
- erik
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [9fans] Mouse inverted Y-axis
2012-12-16 13:58 [9fans] Mouse inverted Y-axis Eduard Streahlau
` (4 preceding siblings ...)
2013-02-22 12:50 ` Pavel Klinkovsky
@ 2013-02-22 14:43 ` Pavel Klinkovsky
5 siblings, 0 replies; 13+ messages in thread
From: Pavel Klinkovsky @ 2013-02-22 14:43 UTC (permalink / raw)
To: 9fans
> something's wrong, but is it the code or the comment?
Code.
Pavel
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [9fans] Mouse inverted Y-axis
2012-12-14 4:36 Eduard Streahlau
@ 2012-12-14 9:40 ` Pavel Klinkovsky
0 siblings, 0 replies; 13+ messages in thread
From: Pavel Klinkovsky @ 2012-12-14 9:40 UTC (permalink / raw)
To: 9fans
> Even if i set x and y to 0 before they get printed to mousein the
> mouse still works.
Have you recompiled the kernel with your modification and installed it in 9fat partition?
Pavel
^ permalink raw reply [flat|nested] 13+ messages in thread
* [9fans] Mouse inverted Y-axis
@ 2012-12-14 4:36 Eduard Streahlau
2012-12-14 9:40 ` Pavel Klinkovsky
0 siblings, 1 reply; 13+ messages in thread
From: Eduard Streahlau @ 2012-12-14 4:36 UTC (permalink / raw)
To: 9fans
ok now im totally lost.
Even if i set x and y to 0 before they get printed to mousein the
mouse still works.
I have no idea how ps/2 works, but couldn't my bios emulate it for usb devices?
So could there be two values set for mousein, one from the kernel and
one by nusb/kb and because of the ps2 emulation the kernel value is
like 3 times bigger then the negative equivalent of the userspace
driver?
Im really guessing here
-Eddi
^ permalink raw reply [flat|nested] 13+ messages in thread
* [9fans] Mouse inverted Y-axis
@ 2012-12-14 1:27 Eduard Streahlau
0 siblings, 0 replies; 13+ messages in thread
From: Eduard Streahlau @ 2012-12-14 1:27 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 653 bytes --]
Hello all,
this is the first mailing list I'm using so bare with me....
I installed plan9 a few hours ago and haven't actually gotten any time with
the
system before.
My usb-mouse (razer deathadder) is somehow inverted on the y-axis,
I tried the mac mighty mouse and it worked flawlessly.
Not having spent any time with plan9 i googled up nusb flipped y to minus y
and
recompiled. Nothing.
I also changed the mouse delta in the kernel to negative and recompiled
still nothing.
Have i missed something pretty obvious? I admire a quick response(using the
mighty mouse is actually worse then the puck one)
Thanks in advance,
Eddi
[-- Attachment #2: Type: text/html, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2013-02-22 14:43 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-16 13:58 [9fans] Mouse inverted Y-axis Eduard Streahlau
2012-12-16 14:17 ` cinap_lenrek
2012-12-16 14:27 ` erik quanstrom
2012-12-17 9:40 ` Pavel Klinkovsky
2013-02-21 13:39 ` Pavel Klinkovsky
2013-02-22 9:57 ` Pavel Klinkovsky
2013-02-22 10:42 ` erik quanstrom
2013-02-22 12:50 ` Pavel Klinkovsky
2013-02-22 13:30 ` erik quanstrom
2013-02-22 14:43 ` Pavel Klinkovsky
-- strict thread matches above, loose matches on Subject: below --
2012-12-14 4:36 Eduard Streahlau
2012-12-14 9:40 ` Pavel Klinkovsky
2012-12-14 1:27 Eduard Streahlau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).