Author Topic: Matchbox And Rotation  (Read 13414 times)

ins0mniaque

  • Newbie
  • *
  • Posts: 27
    • View Profile
Matchbox And Rotation
« on: September 29, 2005, 10:03:20 am »
I am really interested in using OpenBSD on my Zaurus. I've been reading this forum ever since I had my SL-C3000. My main purpose for the unit is using it for C++/C# (especially when Mono 1.2 gets released) programming, MP3 player, wardriving and sometimes like a real PDA (well, more a eBook reader/web browser). I tried OpenBSD a while ago, but audio was not working so I had to return to Cacko. Right now it seems to have everything I need for programming, music and wardriving, but to use it as a PDA, I would like to use Matchbox (especially matchbox-keyboard) and a rotated screen.

I would like to know if any of you got a rotation applet/program/script/whatever (or even better, an automatic one like to original ROM) and got Matchbox compiled from ports.

I'll start installing OpenBSD tonight anyway.


TIA

Sequethin

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
Matchbox And Rotation
« Reply #1 on: September 29, 2005, 10:29:43 am »
Quote
I would like to know if any of you got a rotation applet/program/script/whatever (or even better, an automatic one like to original ROM) and got Matchbox compiled from ports.

[div align=\"right\"][a href=\"index.php?act=findpost&pid=97549\"][{POST_SNAPBACK}][/a][/div]

Matchbox works great, but I haven't gotten any rotation working yet. As far as "a real PDA", to me that means a GUI PIM, and I'm actually workin on getting ka/pi to run. So far opiemail and the password manager both run, but the address book and organizer both segfault.  

Good luck

Mike

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Matchbox And Rotation
« Reply #2 on: June 08, 2007, 10:09:36 am »
i'm back with a rotation question:

some says:
"In this case you can disable the X.Org screen rotation in
/etc/X11/xorg.conf. "

does that mean that screen rotation should be active by default ? because i tried and nothing happens
(i'm under Icewm)
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Matchbox And Rotation
« Reply #3 on: June 08, 2007, 01:38:54 pm »
What is the command to rotate the screen under obsd? If there is one then I think it is possible to edit ./icewm/menu or ./icewm/toolbar and add the function there.

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

mathemajikian

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
    • http://exit3.i-55.com/~xikon/openbsdzaurus.html
Matchbox And Rotation
« Reply #4 on: June 20, 2007, 04:55:07 pm »
Quote
What is the command to rotate the screen under obsd? If there is one then I think it is possible to edit ./icewm/menu or ./icewm/toolbar and add the function there.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=162839\"][{POST_SNAPBACK}][/a][/div]

There's not a command but rather an option in the xorg.conf file. However, for the rotation to take effect X must be restarted.  

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Matchbox And Rotation
« Reply #5 on: June 20, 2007, 08:06:45 pm »
Quote
Quote
What is the command to rotate the screen under obsd? If there is one then I think it is possible to edit ./icewm/menu or ./icewm/toolbar and add the function there.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=162839\"][{POST_SNAPBACK}][/a][/div]

There's not a command but rather an option in the xorg.conf file. However, for the rotation to take effect X must be restarted.  
[div align=\"right\"][a href=\"index.php?act=findpost&pid=163467\"][{POST_SNAPBACK}][/a][/div]

isn't there an xrandr command?

i have patched icewm to actually have an additional rotate button and option which then calls rotate.sh script which in turn calls other things to ensure correct rotation, etc.. but in essence it calls xrandr

if you are interested, look under the icewm thread on the pdaxrom subforum where i attached patches for icewem..
« Last Edit: June 20, 2007, 08:07:31 pm by Meanie »
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

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Matchbox And Rotation
« Reply #6 on: June 21, 2007, 03:28:42 am »
Quote
...
isn't there an xrandr command?

i have patched icewm to actually have an additional rotate button and option which then calls rotate.sh script which in turn calls other things to ensure correct rotation, etc.. but in essence it calls xrandr

if you are interested, look under the icewm thread on the pdaxrom subforum where i attached patches for icewem..
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

xrandr extensions work now? man I wish I still had as much time to play with my Z.

The last time I chatted with Matthieu he mentioned that xrandr rotate extensions were going to go into the driver... do you know if he triggered touch screen rotation with xrandr? The best way that I could find for managing touch screen rotation was with a Kernel patch that rotated the co-ordinates prior to scaling against the calibration parameters - the previous mechanism where x and y co-ordinates were handled by the X touch screen driver meant that the Kernel scaling was making the touch screen inaccurate when rotated.

Here is the proof of concept patch that I wrote at the time..

[a href=\"http://marc.info/?l=openbsd-arm&m=113993195221600&w=2]http://marc.info/?l=openbsd-arm&m=113993195221600&w=2[/url]

Look right to the end of the posting for a full explanation of the co-ordinate issue.

-Andy
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

PacoBell

  • Newbie
  • *
  • Posts: 3
    • View Profile
Matchbox And Rotation
« Reply #7 on: April 22, 2008, 08:25:57 am »
Quote from: iamasmith
xrandr extensions work now? man I wish I still had as much time to play with my Z.

The last time I chatted with Matthieu he mentioned that xrandr rotate extensions were going to go into the driver... do you know if he triggered touch screen rotation with xrandr?
Quote from: Andrew Smith
Ok I accept that Xorg may at some stage create an extension for doing this but right \
now, and until OpenBSD accepts that release of Xorg there are scaling issues in the \
zts driver when subject to rotation.
Quote
List:       openbsd-cvs
Subject:    CVS: cvs.openbsd.org: xenocara
From:       Matthieu Herrb <matthieu () cvs ! openbsd ! org>
Date:       2008-04-19 14:40:52
Message-ID: 200804191440.m3JEeqFZ013150 () cvs ! openbsd ! org
[Download message RAW]

CVSROOT:   /cvs
Module name:   xenocara
Changes by:   matthieu@cvs.openbsd.org   2008/04/19 08:40:52

Modified files:
   app/xrandr     : COPYING ChangeLog Makefile.am Makefile.in
                    aclocal.m4 configure configure.ac xrandr.c
                    xrandr.man
Added files:
   app/xrandr     : xrandr_test.pl

Log message:
Update to xrandr 1.2.3.
Time to test it again?

P.S. Then again, in Matthieu's FOSDEM address this year, he mentioned "Generalisation of XRandr 1.2 in drivers" in the slide entitled "Coming next: X.Org 7.4". A few slides later, it's mentioned that "OpenBSD 4.3 (to be released on May 1) will include X.ORg 7.3" and that "We should be able to include X.Org 7.5 in OpenBSD 4.4." Looks like we've gotta wait for 4.4 or, at least, 4.3-current?
« Last Edit: April 22, 2008, 08:54:28 am by PacoBell »