OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => C1000/3x00 Hardware => Topic started by: dlj0 on September 16, 2007, 05:07:57 pm

Title: Mouse Directions Rotated (xfbdev)
Post by: dlj0 on September 16, 2007, 05:07:57 pm
I'm currently using titchy linux, which provides a kernerl (2.6.20), some utilities including the Xfbdev kdriver Xserver, and then I installed debian-arm (now testing, originally etch) on top of it.  I have a borzoi (Zaurus 3100).

The X server is started with
exec /opt/kdrive/Xfbdev -screen 480x640@270 "$@"
because without the rotation it starts in portrait mode.  But, I want to connect a mouse to it, to make it a bit easier to use as my only computer while I am on sabbatical next semester.  The mouse works, but ignores the screen rotation, whether I set it like the above, or change the orientation to 0 and rotate with xrandr.  I can only use the mouse naturally by holding it rotated 90 degrees, which of course makes it awkward to push the buttons.  

I imagine someone using Angstrom with the e17 window manager would have the same problem, since for that we have to rotate the screen as well.

Does anyone know of a way to re-map the pointer axes?  xsetpointer seems to do nothing, xmodmap doesn't have such a setting.  I saw one commercial program, but it of course is not available for arm.

It might make life easier if the kdrive server used a config file (such configuration seems possible in xorg).  I don't know whether trying to use the xorg server would be worth it, since I imagine that takes up a lot more resources.  I even took the mouse apart to see if I could swap the wires around, but that would not be easy, and I don't know which goes where.

Any hints?

BTW, if anyone wants to know more about Titchy linux and how it works on my Z, I'll be glad to expound.  I am just pleased as punch with it, mostly because it has all the apps I want/need, and by gum they all work.  I'd like to see it done in armel rather than arm, but I could not get the suggested hack by Locutus to get debian armel up and running to work.
Title: Mouse Directions Rotated (xfbdev)
Post by: Meanie on September 16, 2007, 08:18:29 pm
Quote
I'm currently using titchy linux, which provides a kernerl (2.6.20), some utilities including the Xfbdev kdriver Xserver, and then I installed debian-arm (now testing, originally etch) on top of it.  I have a borzoi (Zaurus 3100).

The X server is started with
exec /opt/kdrive/Xfbdev -screen 480x640@270 "$@"
because without the rotation it starts in portrait mode.  But, I want to connect a mouse to it, to make it a bit easier to use as my only computer while I am on sabbatical next semester.  The mouse works, but ignores the screen rotation, whether I set it like the above, or change the orientation to 0 and rotate with xrandr.  I can only use the mouse naturally by holding it rotated 90 degrees, which of course makes it awkward to push the buttons. 

I imagine someone using Angstrom with the e17 window manager would have the same problem, since for that we have to rotate the screen as well.

Does anyone know of a way to re-map the pointer axes?  xsetpointer seems to do nothing, xmodmap doesn't have such a setting.  I saw one commercial program, but it of course is not available for arm.

It might make life easier if the kdrive server used a config file (such configuration seems possible in xorg).  I don't know whether trying to use the xorg server would be worth it, since I imagine that takes up a lot more resources.  I even took the mouse apart to see if I could swap the wires around, but that would not be easy, and I don't know which goes where.

Any hints?

BTW, if anyone wants to know more about Titchy linux and how it works on my Z, I'll be glad to expound.  I am just pleased as punch with it, mostly because it has all the apps I want/need, and by gum they all work.  I'd like to see it done in armel rather than arm, but I could not get the suggested hack by Locutus to get debian armel up and running to work.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=167435\"][{POST_SNAPBACK}][/a][/div]

i would say either the kernel needs a patch or the X server needs to be enhanced to allow for mouse pointer adjustments when rotated...
Title: Mouse Directions Rotated (xfbdev)
Post by: InSearchOf on September 16, 2007, 08:34:30 pm
It seems as if the mousedev in the kernel was configured correctly for 640x480 portrait....

When building the kernel flip flop the X and Y axis

Late
Title: Mouse Directions Rotated (xfbdev)
Post by: utx on September 17, 2007, 06:16:05 pm
Quote
When building the kernel flip flop the X and Y axis
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=167443\")

Probably not. Touchscreen evdev returns coordinates in landscape coordinate system for me (Angstrom). Maybe another consequence of OE bug [a href=\"http://bugs.openembedded.org/show_bug.cgi?id=2631]server returns inconsistent RandR on spitz/akita[/url].