Re: Announce: omnewrotate 0.5.0
Hi, Have been playing around with your code and figured out what the possible problem is with the zero values. You essentially try to read 4 packets from the device in 1 read and then decode them into x,y and z assuming they are always send in the same order. However it looks like the sensor/driver does not send a string when the measured value is 0, (can even been seen with hexdump, I'm using SHR with updated kernel from bug 2145 to get around the threshold problem.) If that happens your xyz may get the wrong values resulting in , you'll have to check each message for type and code before you use the value. Efficiency is good, but be careful with shortcuts -- View this message in context: http://n2.nabble.com/Announce%3A-omnewrotate-0.5.0-tp1521019p1598202.html Sent from the Openmoko Community mailing list archive at Nabble.com. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Announce: omnewrotate 0.5.0
Leonti Bielski wrote: > It might be a problem with accelerometers. > Try this: > http://lists.openmoko.org/nabble.html#nabble-td1493922|a1493922 > If it affecting Doom it might also affect rotate program. I put those > two line in .profile and I don't have any problems. > > Leonti > > On Wed, Nov 26, 2008 at 1:07 AM, ivvmm <[EMAIL PROTECTED]> wrote: >> Leonti Bielski wrote: >>> I like it. It works great. >> I have some strange behaviour with this application. Sometimes it just >> freeze. Not the phone, but it suddenly stops rotating at point it >> stopped. Usually not normal one. >> >> I use FDOM 20081023. >> >> Thanks. >> There is no such file. There is either no such directory called lis302dl.1, and no files called threshold either in /sys or /proc Thanks. Hope this is fixed in newer kernels. I'm not sure if I can upgrade my kernel with FDOM. It seem like it can break things, so I'll think twice before upgrading the kernel image. signature.asc Description: OpenPGP digital signature ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Announce: omnewrotate 0.5.0
On Wed, Nov 26, 2008 at 03:07:14AM +0300, ivvmm wrote: > Leonti Bielski wrote: > > I like it. It works great. > > I have some strange behaviour with this application. Sometimes it just > freeze. Not the phone, but it suddenly stops rotating at point it > stopped. Usually not normal one. > > I use FDOM 20081023. With some kernel versions, the drivers stopped working after a certain time and no more data is fed through the file handle to the accelerometer. Merely closing and reopening the file handle would work around that, but I haven't noticed that under FSO M4 and upwards, so that bug may be fixed in newer kernels at the proper point (in kernel). Best, Rui -- You are what you see. Today is Setting Orange, the 38th day of The Aftermath in the YOLD 3174 + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Gandhi + So let's do it...? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Announce: omnewrotate 0.5.0
It might be a problem with accelerometers. Try this: http://lists.openmoko.org/nabble.html#nabble-td1493922|a1493922 If it affecting Doom it might also affect rotate program. I put those two line in .profile and I don't have any problems. Leonti On Wed, Nov 26, 2008 at 1:07 AM, ivvmm <[EMAIL PROTECTED]> wrote: > Leonti Bielski wrote: >> I like it. It works great. > > I have some strange behaviour with this application. Sometimes it just > freeze. Not the phone, but it suddenly stops rotating at point it > stopped. Usually not normal one. > > I use FDOM 20081023. > > Thanks. > > ___ > Openmoko community mailing list > community@lists.openmoko.org > http://lists.openmoko.org/mailman/listinfo/community > ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Announce: omnewrotate 0.5.0
Leonti Bielski wrote: > I like it. It works great. I have some strange behaviour with this application. Sometimes it just freeze. Not the phone, but it suddenly stops rotating at point it stopped. Usually not normal one. I use FDOM 20081023. Thanks. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Announce: omnewrotate 0.5.0
On Tue, Nov 25, 2008 at 11:41:24PM +0100, Leonti Bielski wrote: > Thanks! It works perfectly - now I can rotate my screen just by > rotating my phone. Neat :) Glad to be of service, and I just posted about this tip :) http://blog.1407.org/2008/11/26/starting-omnewrotate-automatically/ -- All Hail Discordia! Today is Prickle-Prickle, the 37th day of The Aftermath in the YOLD 3174 + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Gandhi + So let's do it...? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Announce: omnewrotate 0.5.0
Thanks! It works perfectly - now I can rotate my screen just by rotating my phone. Neat :) Leonti ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Announce: omnewrotate 0.5.0
On Tue, Nov 25, 2008 at 09:30:36PM +0100, Leonti Bielski wrote: > I like it. It works great. > What is the best way to start it during login? I'm working on some integration improvements but for now you could do something like: scp rotate [EMAIL PROTECTED]: echo '/home/root/rotate&' > /etc/X11/Xsession.d/89rotate chmod a+rx /etc/X11/Xsession.d/rotate Meanwhile, I haven't dedicated myself enough to help save Ammendment 138 from being removed. Want to know more on how to save the European internet? Go here for an urgently needing help action: http://www.laquadrature.net/wiki/Letter_save-am138-mister-minister Rui -- Keep the Lasagna flying! Today is Prickle-Prickle, the 37th day of The Aftermath in the YOLD 3174 + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Gandhi + So let's do it...? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Announce: omnewrotate 0.5.0
I like it. It works great. What is the best way to start it during login? Leonti ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Announce: omnewrotate 0.5.0
On Thu, Nov 20, 2008 at 11:09:47AM +0100, Matthias Apitz wrote: > El día Wednesday, November 19, 2008 a las 11:21:42PM +, Rui Miguel Silva > Seabra escribió: > > > http://blog.1407.org/2008/11/19/openmoko-newrotate-050-lazy-edition-is-out/ > > > > Hi, > > > > I???ve just release a new version of omnewrotate (OpenPGP signature), > > the ???Lazy Edition??? because it uses so much less CPU than any version I > > did before. Oh, I forgot to mention it in the release commit, but at > > least with FSO M4 I???m getting a very stable rotation BUT if the screen > > looks garbled, please wait a few seconds until the graphic user > > interface adjusts to the screen changes. I don???t think I can do much > > about that??? > > ... > > Hi, > > Is there somewhere a binary for installation? Thx Yes, in the tarball. It works under FSO, and should also work under Om2008.x, FDOM, and others, but I don't have time to do those tests regularly. Rui -- Fnord. Today is Prickle-Prickle, the 32nd day of The Aftermath in the YOLD 3174 + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Gandhi + So let's do it...? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Announce: omnewrotate 0.5.0
El día Wednesday, November 19, 2008 a las 11:21:42PM +, Rui Miguel Silva Seabra escribió: > http://blog.1407.org/2008/11/19/openmoko-newrotate-050-lazy-edition-is-out/ > > Hi, > > I???ve just release a new version of omnewrotate (OpenPGP signature), > the ???Lazy Edition??? because it uses so much less CPU than any version I > did before. Oh, I forgot to mention it in the release commit, but at > least with FSO M4 I???m getting a very stable rotation BUT if the screen > looks garbled, please wait a few seconds until the graphic user > interface adjusts to the screen changes. I don???t think I can do much > about that??? ... Hi, Is there somewhere a binary for installation? Thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ Q: What's the difference between an iphone and a freerunner? A: One works but takes away your freedom, the other is free but needs your work. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Announce: omnewrotate 0.5.0
http://blog.1407.org/2008/11/19/openmoko-newrotate-050-lazy-edition-is-out/ Hi, I’ve just release a new version of omnewrotate (OpenPGP signature), the ‘Lazy Edition’ because it uses so much less CPU than any version I did before. Oh, I forgot to mention it in the release commit, but at least with FSO M4 I’m getting a very stable rotation BUT if the screen looks garbled, please wait a few seconds until the graphic user interface adjusts to the screen changes. I don’t think I can do much about that… From the ChangeLog: 2008-11-19 - 0.5.0 - Lazy edition * uses a second thread for reading the accellerometer packets * drops Fabian's changes (not that they weren't good, just not needed any more) * adds flags (look at display_help() or ./rotate -h) * drops packets with 0 value coordinates (I got bogus packets like that so I decided to drop them, if you feel you get good packets with 0 value, you can use '-0' as an argument to take them in account). * top -d 1 -p PID shows 0.0% CPU usage (of omnewrotate) even during rotation * seems to waste a little too much memory (some stuff could be done with one number and bitwise operations instead of several numbers, I wonder how much that will improve and if it's worth the effort...) * only output outside of debug mode are real errors -- This statement is false. Today is Pungenday, the 31st day of The Aftermath in the YOLD 3174 + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Gandhi + So let's do it...? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community