Author Topic: Mouse Directions Rotated (xfbdev)  (Read 6208 times)

dlj0

  • Full Member
  • ***
  • Posts: 218
    • View Profile
Mouse Directions Rotated (xfbdev)
« 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.
Zaurus:  SL C3100
ROM:  eabi debian/sid

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Mouse Directions Rotated (xfbdev)
« Reply #1 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...
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

InSearchOf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
    • http://
Mouse Directions Rotated (xfbdev)
« Reply #2 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
Sharp Zaurus SL-C3100 and SL-6000L
pdaXrom Developer
Please visit pdaXrom.org for updates
My Blog
IRC #pdaxrom @ FreeNode

utx

  • Full Member
  • ***
  • Posts: 135
    • View Profile
    • http://www.penguin.cz/~utx/zaurus/
Mouse Directions Rotated (xfbdev)
« Reply #3 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]

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].