Re: One more rotate version

2008-10-23 Thread Thomas des Courières
Thanks for the warning !
Looks like it's time to move my repositories ...

2008/10/23 clare johnstone [EMAIL PROTECTED]

 On Wed, Oct 22, 2008 at 2:56 PM, Thomas des Courières
 [EMAIL PROTECTED] wrote:
  Do you know http://www.assembla.com/ ?
  they provide for free trac, subversion, and team managing facilities.
  And they don't are affiliated with big brother ...
 

 Beware:

 http://blog.assembla.com/assemblablog/tabid/12618/bid/7019/New-subscription-plans-Clarification-and-even-better-pricing.aspx

 clare

 ___
 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: One more rotate version

2008-10-23 Thread Neil Jerram
2008/10/22 clare johnstone [EMAIL PROTECTED]:

 Beware:
 http://blog.assembla.com/assemblablog/tabid/12618/bid/7019/New-subscription-plans-Clarification-and-even-better-pricing.aspx

(And never mind the content, just the .aspx is a strong hint of what
we need to know.)

 Neil

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: One more rotate version

2008-10-22 Thread Thomas des Courières
Do you know http://www.assembla.com/ ?
they provide for free trac, subversion, and team managing facilities.
And they don't are affiliated with big brother ...


2008/10/22 Sarton O'Brien [EMAIL PROTECTED]

 On Tuesday 21 October 2008 18:47:58 DJDAS wrote:
  Sarton O'Brien ha scritto:
   Speaking of formatting ... I imagine there's a reply in there somewhere
   :P
  
   On Tuesday 21 October 2008 01:31:21 DJDAS wrote:
   !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
   html
   head
   /head
  
   ..
   /body
   /html
 
  Sorry :P Sent in HTML. I simply suggested a man indent ;)
  Bye!

 Hehe, I know, I was just ribbin ya  ;)

 Sarton

 ___
 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: One more rotate version

2008-10-22 Thread clare johnstone
On Wed, Oct 22, 2008 at 2:56 PM, Thomas des Courières
[EMAIL PROTECTED] wrote:
 Do you know http://www.assembla.com/ ?
 they provide for free trac, subversion, and team managing facilities.
 And they don't are affiliated with big brother ...


Beware:
http://blog.assembla.com/assemblablog/tabid/12618/bid/7019/New-subscription-plans-Clarification-and-even-better-pricing.aspx

clare

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: One more rotate version

2008-10-21 Thread DJDAS
Sarton O'Brien ha scritto:
 Speaking of formatting ... I imagine there's a reply in there somewhere :P

 On Tuesday 21 October 2008 01:31:21 DJDAS wrote:
   
 !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 html
 head
 /head
 
 ..
 /body
 /html
 

Sorry :P Sent in HTML. I simply suggested a man indent ;)
Bye!

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: One more rotate version

2008-10-21 Thread Stefan Monnier
The more I look at it, the more I think there's more to it
than rotation.  How about a tool that considers orientation as an input
event?  E.g. I'd love to be able to say if upside down, lock the
screen, and if still upside down after 5s, suspend.


Stefan



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: One more rotate version

2008-10-21 Thread Rui Miguel Silva Seabra
On Tue, Oct 21, 2008 at 10:17:10AM -0400, Stefan Monnier wrote:
 The more I look at it, the more I think there's more to it
 than rotation.  How about a tool that considers orientation as an input
 event?  E.g. I'd love to be able to say if upside down, lock the
 screen, and if still upside down after 5s, suspend.

Since projects.openmoko.org isn't working well enough for me, I've
created http://code.google.com/omnewrotate

Other people working on rotate... if you want to join in, notify me your
google email address (they require one).

Please don't use my google email address, I don't really use it...

Rui

-- 
Pzat!
Today is Prickle-Prickle, the 2nd 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: One more rotate version

2008-10-21 Thread Fabian Henze
Hey guys,
I have spend more time optimizing the code and fixing bugs of my previous 
release. So here are the changes compared with my previous version:
 - Fixed a memleak
 - Changed the angle, which is required to initiate a rotation from 22.5° to
   15°
 - Added a workaround for a bug in the input driver - fewer false positives
 - Reduced CPU time even more (when in idle it consumes about 600% fewer CPU
   cycles compared Rui's version. Non-idle workloads are hard to measure but
   the usage should be _at_least_ equal)
 - Achieved by introducing a hack, which might break if some parts of the
   system are compiled with different cflags. So please report if it is not
   working for you
 - Uses exactly 760 byte RAM now.
 - Added more comments
 - It's actually usable now (imo)
 - BUT: The accelerometers stop working after a while bug persists
 - Sorry Rui, still no patch for your version

I hope you enjoy it.

-- Fabian

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: One more rotate version

2008-10-21 Thread Rui Miguel Silva Seabra
On Tue, Oct 21, 2008 at 10:26:41PM +0200, Fabian Henze wrote:
 Hey guys,
 I have spend more time optimizing the code and fixing bugs of my previous 
 release. So here are the changes compared with my previous version:
  - Fixed a memleak
  - Changed the angle, which is required to initiate a rotation from 22.5° to
15°
  - Added a workaround for a bug in the input driver - fewer false positives
  - Reduced CPU time even more (when in idle it consumes about 600% fewer CPU
cycles compared Rui's version. Non-idle workloads are hard to measure but
the usage should be _at_least_ equal)
  - Achieved by introducing a hack, which might break if some parts of the
system are compiled with different cflags. So please report if it is not
working for you
  - Uses exactly 760 byte RAM now.
  - Added more comments
  - It's actually usable now (imo)
  - BUT: The accelerometers stop working after a while bug persists
  - Sorry Rui, still no patch for your version
 
 I hope you enjoy it.

It's easier now! http://code.google.com/p/omnewrotate/

Rui

-- 
Kallisti!
Today is Prickle-Prickle, the 2nd 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: One more rotate version

2008-10-21 Thread Fabian Henze
On 21.10.2008 at 22:26:41, Fabian Henze wrote:
 Hey guys,
 I have spend more time optimizing the code and fixing bugs of my previous
 release. So here are the changes compared with my previous version:
  - Fixed a memleak
  - Changed the angle, which is required to initiate a rotation from 22.5°
 to 15°
  - Added a workaround for a bug in the input driver - fewer false
 positives - Reduced CPU time even more (when in idle it consumes about 600%
 fewer CPU cycles compared Rui's version. Non-idle workloads are hard to
 measure but the usage should be _at_least_ equal)
  - Achieved by introducing a hack, which might break if some parts of the
system are compiled with different cflags. So please report if it is not
working for you
  - Uses exactly 760 byte RAM now.
  - Added more comments
  - It's actually usable now (imo)
  - BUT: The accelerometers stop working after a while bug persists
  - Sorry Rui, still no patch for your version

 I hope you enjoy it.

Whoops forgot the files.

P.S. @Rui: you google code link seems broken.


accel-rotate-allyouneed.tar.bz2
Description: application/bzip-compressed-tar


rotate.tar.bz2
Description: application/bzip-compressed-tar
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: One more rotate version

2008-10-21 Thread Rui Miguel Silva Seabra
On Tue, Oct 21, 2008 at 10:33:49PM +0200, Fabian Henze wrote:
 On 21.10.2008 at 22:26:41, Fabian Henze wrote:
  Hey guys,
  I have spend more time optimizing the code and fixing bugs of my previous
  release. So here are the changes compared with my previous version:
   - Fixed a memleak
   - Changed the angle, which is required to initiate a rotation from 22.5°
  to 15°
   - Added a workaround for a bug in the input driver - fewer false
  positives - Reduced CPU time even more (when in idle it consumes about 600%
  fewer CPU cycles compared Rui's version. Non-idle workloads are hard to
  measure but the usage should be _at_least_ equal)
   - Achieved by introducing a hack, which might break if some parts of the
 system are compiled with different cflags. So please report if it is not
 working for you
   - Uses exactly 760 byte RAM now.
   - Added more comments
   - It's actually usable now (imo)
   - BUT: The accelerometers stop working after a while bug persists
   - Sorry Rui, still no patch for your version
 
  I hope you enjoy it.
 
 Whoops forgot the files.
 
 P.S. @Rui: you google code link seems broken.

Forgot a P: http://code.google.com/p/omnewrotate/


-- 
Grudnuk demand sustenance!
Today is Prickle-Prickle, the 2nd 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: One more rotate version

2008-10-21 Thread Rui Miguel Silva Seabra
On Tue, Oct 21, 2008 at 10:33:49PM +0200, Fabian Henze wrote:
 On 21.10.2008 at 22:26:41, Fabian Henze wrote:
  Hey guys,
  I have spend more time optimizing the code and fixing bugs of my previous
  release. So here are the changes compared with my previous version:
   - Fixed a memleak
   - Changed the angle, which is required to initiate a rotation from 22.5°
  to 15°
   - Added a workaround for a bug in the input driver - fewer false
  positives - Reduced CPU time even more (when in idle it consumes about 600%
  fewer CPU cycles compared Rui's version. Non-idle workloads are hard to
  measure but the usage should be _at_least_ equal)
   - Achieved by introducing a hack, which might break if some parts of the
 system are compiled with different cflags. So please report if it is not
 working for you
   - Uses exactly 760 byte RAM now.
   - Added more comments
   - It's actually usable now (imo)
   - BUT: The accelerometers stop working after a while bug persists
   - Sorry Rui, still no patch for your version
 
  I hope you enjoy it.
 
 Whoops forgot the files.
 
 P.S. @Rui: you google code link seems broken.

Hi Fabian,

I'm adding your changes, and we should agree on an indent style. After
skimming indent(1) I propose to use indent -kr.

I'm not giving up on the brightness thing unless I can be proven the
split screen isn't worked around with it, but we should add a flag for
enabling/disabling it.

I'd just like to add the following (don't take me wrong, I'm not mad or
anything even closer :) ):

You can't really replace...

 * Copyright © 2008 Rui Miguel Silva Seabra [EMAIL PROTECTED]
 *
 * Inspired upon Chris Ball's rotate, this is a totally new rewrite.

With...

 * Copyright (c) 2008 Fabian Henze [EMAIL PROTECTED]
 *
 * Based on Rui Miguel Silva Seabra's rotate, but more optimized for
 * speed memory usage and a better algorithm.

So in the mix and matching I'm doing, I'm writing:
 * Copyright © 2008 Rui Miguel Silva Seabra [EMAIL PROTECTED]
 * Copyright © 2008 Fabian Henze [EMAIL PROTECTED]
 *
 * Inspired upon Chris Ball's rotate, this is a totally new rewrite.

Fine with you?

Can you get a google mail account (just for having an account on 
code.google.com)
so I can add you as a project member?

Best,
Rui

-- 
Pzat!
Today is Prickle-Prickle, the 2nd 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: One more rotate version

2008-10-21 Thread Fabian Henze
 Hi Fabian,

 I'm adding your changes, and we should agree on an indent style. After
 skimming indent(1) I propose to use indent -kr.

Yeah indent should not be an issue. Just use whatever you think is good and I 
will use it from now on.

 I'm not giving up on the brightness thing unless I can be proven the
 split screen isn't worked around with it, but we should add a flag for
 enabling/disabling it.

What about enabling/disabling it with #ifdefs? This should work well as the 
code for the brightness handling is more or less seperate from the rest (iirc 
just three codeblocks).

 I'd just like to add the following (don't take me wrong, I'm not mad or
 anything even closer :) ):

 You can't really replace...

* Copyright © 2008 Rui Miguel Silva Seabra [EMAIL PROTECTED]
*
* Inspired upon Chris Ball's rotate, this is a totally new rewrite.

 With...

* Copyright (c) 2008 Fabian Henze [EMAIL PROTECTED]
*
* Based on Rui Miguel Silva Seabra's rotate, but more optimized for
* speed memory usage and a better algorithm.

Much apologies. I should have thought more about this part :)

 So in the mix and matching I'm doing, I'm writing:
* Copyright © 2008 Rui Miguel Silva Seabra [EMAIL PROTECTED]
* Copyright © 2008 Fabian Henze [EMAIL PROTECTED]
*
* Inspired upon Chris Ball's rotate, this is a totally new rewrite.

 Fine with you?

Sure.

 Can you get a google mail account (just for having an account on
 code.google.com) so I can add you as a project member?

*sigh* google ... yeah guess I can do that tomorrow.

-- Fabian

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: One more rotate version

2008-10-21 Thread Rui Miguel Silva Seabra
On Wed, Oct 22, 2008 at 12:24:31AM +0200, Fabian Henze wrote:
  Hi Fabian,
 
  I'm adding your changes, and we should agree on an indent style. After
  skimming indent(1) I propose to use indent -kr.
 
 Yeah indent should not be an issue. Just use whatever you think is good and I 
 will use it from now on.

I don't mind changing :) I think indent -kr is similar to yours and at
least we'll have a way to computationally keep it that way :)

  I'm not giving up on the brightness thing unless I can be proven the
  split screen isn't worked around with it, but we should add a flag for
  enabling/disabling it.
 
 What about enabling/disabling it with #ifdefs? This should work well as the 
 code for the brightness handling is more or less seperate from the rest (iirc 
 just three codeblocks).

meh... let's just wait for the new release to decide on that, the cost
of compiling seems greater to me than the small waste of keeping a simple
option :)

 Much apologies. I should have thought more about this part :)

No harm done :)

  Can you get a google mail account (just for having an account on
  code.google.com) so I can add you as a project member?
 
 *sigh* google ... yeah guess I can do that tomorrow.

yeah... google... but I like it better than sourceforge and all the
others I know didn't let me commit immediately after creating the
project :)

The cost is to just add an account for only that (I mainly use mine for
xmpp, anyways...)

Rui

-- 
Wibble.
Today is Prickle-Prickle, the 2nd 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: One more rotate version

2008-10-21 Thread Sarton O'Brien
On Tuesday 21 October 2008 18:47:58 DJDAS wrote:
 Sarton O'Brien ha scritto:
  Speaking of formatting ... I imagine there's a reply in there somewhere
  :P
 
  On Tuesday 21 October 2008 01:31:21 DJDAS wrote:
  !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
  html
  head
  /head
 
  ..
  /body
  /html

 Sorry :P Sent in HTML. I simply suggested a man indent ;)
 Bye!

Hehe, I know, I was just ribbin ya  ;)

Sarton

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: One more rotate version

2008-10-20 Thread Fabian Henze
On 20.10.2008 at 04:14:08, SCarlson wrote:
  Very snappy. It does die pretty quickly.. Due to accelerometer failing?
 How can I help test this further. I ran from command line and when it
 dies it just stopping writing to stdout. Also, if I re-run it just sits
 and waits for stdout. I assume this is the acc. problem that you mentioned
 above.?

 Scott

Yes I think so. It might as well be a bug in my code, but as other rotate 
programs have the same problem (or build around it), this is not very likely. 
It would help, if anyone could tell me how to avoid the bug by altering some 
timeouts or how to predict the next death.
I am currently trying if `cat /dev/input/event3` is also dying after a while, 
however it has not stopped yet. Is there some information on this bug around? 
I have not found anything in the bugtracker.

-- Fabian

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: One more rotate version

2008-10-20 Thread Rui Miguel Silva Seabra
On Mon, Oct 20, 2008 at 01:37:33AM +0200, Fabian Henze wrote:
 As it seems popular these days to publish a custom version of the rotate 
 program, I am also going to do it.

heh, you could've just sent a patch :)

 After reading the source code of Rui Miguel Silva Seabra's rotate program, I 
 found some parts that could be improved and hacked on those. The result 
 differs 
 from the original in the following points:
  - No brightness control (Its just annoying)

I found that ever since I added it I never again had the weird split
screen after rotation bug which sometimes happened when going
horizontal.

Doesn't that ever occur to you?

  - Imo better (and faster) heuristics

I'll check on them and perhaps integrate.

  - Fewer errors and false positives (the display won't rotate while the phone 
 is shaken around or sth. like this)

Ah, that's very much needed but I haven't had a lot of chance to hack
(having an ITIL exam tomorrow).

  - uses fewer CPU cycles (I have not done much research, because it would not 
 even show up in top)

? I hardly ever see mine on top, and even so when it did never more than
1% (especially with the dimmed screen).

 BUT:
  - It still suffers from the accelerometers stop working after a while bug.

This is hopefully a driver problem (if it's a hardware problem we're
SOL).

 I would much appreciate feedback on the program and especially on the quality 
 of the code. And I would even more appreciate a better accelerometer driver 
 so 
 userland hacks like one by Oscar Casamitjana are not necessary anymore

Yeah...

Rui


-- 
You are what you see.
Today is Pungenday, the 1st 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: One more rotate version

2008-10-20 Thread Fabian Henze
On 20.10.2008 at 12:00:36, Rui Miguel Silva Seabra wrote:
 On Mon, Oct 20, 2008 at 01:37:33AM +0200, Fabian Henze wrote:
  As it seems popular these days to publish a custom version of the rotate
  program, I am also going to do it.

 heh, you could've just sent a patch :)

Then I would have to write in your style, which I am not used to :p

  After reading the source code of Rui Miguel Silva Seabra's rotate
  program, I found some parts that could be improved and hacked on those.
  The result differs from the original in the following points:
   - No brightness control (Its just annoying)

 I found that ever since I added it I never again had the weird split
 screen after rotation bug which sometimes happened when going
 horizontal.

 Doesn't that ever occur to you?
It always occur if I switch from xrandr -o 1 to xrandr -o 3. However only 
then.


   - Imo better (and faster) heuristics

 I'll check on them and perhaps integrate.

Great :)

   - uses fewer CPU cycles (I have not done much research, because it would
  not even show up in top)

 ? I hardly ever see mine on top, and even so when it did never more than
 1% (especially with the dimmed screen).

oh, okay^^ Your announce message said something around 0.9%.

  BUT:
   - It still suffers from the accelerometers stop working after a while
  bug.

 This is hopefully a driver problem (if it's a hardware problem we're
 SOL).

Yeah hopefully. I have tried running cat /dev/input/event3 and it also stops 
after some time.
@openmoko-devs: this would be a great bugfix for your 'back to the basics' path


-- Fabian

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: One more rotate version

2008-10-20 Thread Fabian Henze
On 20.10.2008 at 13:49:32, SCarlson wrote:
 Someone correct me if I'm wrong, but from what i've read, the
 accelerometers are not dieing but the mechanism that exposes them to
 /dev/eventX does.? Still able to view throught the /sys/proc route?

That's possible but why do you care? The effect is the same.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: One more rotate version

2008-10-20 Thread Rui Miguel Silva Seabra
On Mon, Oct 20, 2008 at 01:33:20PM +0200, Fabian Henze wrote:
 On 20.10.2008 at 12:00:36, Rui Miguel Silva Seabra wrote:
  On Mon, Oct 20, 2008 at 01:37:33AM +0200, Fabian Henze wrote:
   As it seems popular these days to publish a custom version of the rotate
   program, I am also going to do it.
 
  heh, you could've just sent a patch :)
 
 Then I would have to write in your style, which I am not used to :p

It would be easier than fixing the indent in order to join the patch and
have you as a co-author :)

I'm not prickly about any style, that's just my default and it's
manually done.

If someone can cookup indent recipes for converting between one and
another I'd gladly use it to facilitate integration :)

   After reading the source code of Rui Miguel Silva Seabra's rotate
   program, I found some parts that could be improved and hacked on those.
   The result differs from the original in the following points:
- No brightness control (Its just annoying)
 
  I found that ever since I added it I never again had the weird split
  screen after rotation bug which sometimes happened when going
  horizontal.
 
  Doesn't that ever occur to you?
 It always occur if I switch from xrandr -o 1 to xrandr -o 3. However only 
 then.
 
- uses fewer CPU cycles (I have not done much research, because it would
   not even show up in top)
 
  ? I hardly ever see mine on top, and even so when it did never more than
  1% (especially with the dimmed screen).
 
 oh, okay^^ Your announce message said something around 0.9%.

That was previously... and when I saw it :)

   BUT:
- It still suffers from the accelerometers stop working after a while
   bug.
 
  This is hopefully a driver problem (if it's a hardware problem we're
  SOL).
 
 Yeah hopefully. I have tried running cat /dev/input/event3 and it also stops 
 after some time.
 @openmoko-devs: this would be a great bugfix for your 'back to the basics' 
 path

:)

-- 
Or not.
Today is Pungenday, the 1st 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: One more rotate version

2008-10-20 Thread SCarlson

Someone correct me if I'm wrong, but from what i've read, the accelerometers
are not dieing but the mechanism that exposes them to /dev/eventX does.?
Still able to view throught the /sys/proc route?

Scott


Fabian Henze wrote:
 
 On 20.10.2008 at 04:14:08, SCarlson wrote:
  Very snappy. It does die pretty quickly.. Due to accelerometer
 failing?
 How can I help test this further. I ran from command line and when it
 dies it just stopping writing to stdout. Also, if I re-run it just sits
 and waits for stdout. I assume this is the acc. problem that you
 mentioned
 above.?

 Scott
 
 Yes I think so. It might as well be a bug in my code, but as other rotate 
 programs have the same problem (or build around it), this is not very
 likely. 
 It would help, if anyone could tell me how to avoid the bug by altering
 some 
 timeouts or how to predict the next death.
 I am currently trying if `cat /dev/input/event3` is also dying after a
 while, 
 however it has not stopped yet. Is there some information on this bug
 around? 
 I have not found anything in the bugtracker.
 
 -- Fabian
 
 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community
 
 

-- 
View this message in context: 
http://n2.nabble.com/One-more-rotate-version-tp1353381p1355095.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: One more rotate version

2008-10-20 Thread DJDAS




Rui Miguel Silva Seabra ha scritto:

  On Mon, Oct 20, 2008 at 01:33:20PM +0200, Fabian Henze wrote:
  
  
On 20.10.2008 at 12:00:36, Rui Miguel Silva Seabra wrote:


  On Mon, Oct 20, 2008 at 01:37:33AM +0200, Fabian Henze wrote:
  
  
As it seems popular these days to publish a custom version of the rotate
program, I am also going to do it.

  
  heh, you could've just sent a patch :)
  

Then I would have to write in your style, which I am not used to :p

  
  
It would be easier than fixing the indent in order to join the patch and
have you as a co-author :)

I'm not prickly about any style, that's just my default and it's
manually done.

If someone can cookup indent recipes for converting between one and
another I'd gladly use it to facilitate integration :)

"man indent"? ;)




___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: One more rotate version

2008-10-20 Thread Rui Miguel Silva Seabra
On Mon, Oct 20, 2008 at 04:31:21PM +0200, DJDAS wrote:
 If someone can cookup indent recipes for converting between one and
 another I'd gladly use it to facilitate integration :)
 man indent? ;)

I don't care enough about indentation to spend time learning indent, I
just want it sufficiently consistent.

If someone who cares can cookup a recipe, great.

Rui

-- 
Wibble.
Today is Pungenday, the 1st 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: One more rotate version

2008-10-20 Thread Stroller

On 20 Oct 2008, at 15:37, Rui Miguel Silva Seabra wrote:

 On Mon, Oct 20, 2008 at 04:31:21PM +0200, DJDAS wrote:
 If someone can cookup indent recipes for converting between one and
 another I'd gladly use it to facilitate integration :)
 man indent? ;)

 I don't care enough about indentation to spend time learning indent, I
 just want it sufficiently consistent.

 If someone who cares can cookup a recipe, great.

indent -kr file.c

Stroller.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: One more rotate version

2008-10-20 Thread Rui Miguel Silva Seabra
On Mon, Oct 20, 2008 at 05:35:11PM +0100, Stroller wrote:
 
 On 20 Oct 2008, at 15:37, Rui Miguel Silva Seabra wrote:
 
  On Mon, Oct 20, 2008 at 04:31:21PM +0200, DJDAS wrote:
  If someone can cookup indent recipes for converting between one and
  another I'd gladly use it to facilitate integration :)
  man indent? ;)
 
  I don't care enough about indentation to spend time learning indent, I
  just want it sufficiently consistent.
 
  If someone who cares can cookup a recipe, great.
 
 indent -kr file.c

Thank you very much, I'll check it out tomorrow night (Portugal time).

Rui

-- 
Grudnuk demand sustenance!
Today is Pungenday, the 1st 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: One more rotate version

2008-10-20 Thread Sarton O'Brien
Speaking of formatting ... I imagine there's a reply in there somewhere :P

On Tuesday 21 October 2008 01:31:21 DJDAS wrote:
 !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 html
 head
 /head
 body bgcolor=#ff text=#00
 Rui Miguel Silva Seabra ha scritto:
 blockquote id=mid_20081020130945_GB9125_roque_1407_org
  cite=mid:[EMAIL PROTECTED] type=cite
   pre wrap=On Mon, Oct 20, 2008 at 01:33:20PM +0200, Fabian Henze
 wrote: /pre
   blockquote id=StationeryCiteGenerated_1 type=cite
 pre wrap=On 20.10.2008 at 12:00:36, Rui Miguel Silva Seabra wrote:
 /pre
 blockquote id=StationeryCiteGenerated_2 type=cite
   pre wrap=On Mon, Oct 20, 2008 at 01:37:33AM +0200, Fabian Henze
 wrote: /pre
   blockquote id=StationeryCiteGenerated_3 type=cite
 pre wrap=As it seems popular these days to publish a custom
 version of the rotate program, I am also going to do it.
 /pre
   /blockquote
   pre wrap=heh, you could've just sent a patch :)
   /pre
 /blockquote
 pre wrap=Then I would have to write in your style, which I am not
 used to :p /pre
   /blockquote
   pre wrap=!
 It would be easier than fixing the indent in order to join the patch and
 have you as a co-author :)

 I'm not prickly about any style, that's just my default and it's
 manually done.

 If someone can cookup indent recipes for converting between one and
 another I'd gladly use it to facilitate integration :)/pre
 /blockquote
 man indent? ;)br
 br
 /body
 /html


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


One more rotate version

2008-10-19 Thread Fabian Henze
Hi,
As it seems popular these days to publish a custom version of the rotate 
program, I am also going to do it.
After reading the source code of Rui Miguel Silva Seabra's rotate program, I 
found some parts that could be improved and hacked on those. The result differs 
from the original in the following points:
 - No brightness control (Its just annoying)
 - Imo better (and faster) heuristics
 - Fewer errors and false positives (the display won't rotate while the phone 
is shaken around or sth. like this)
 - uses fewer CPU cycles (I have not done much research, because it would not 
even show up in top)
BUT:
 - It still suffers from the accelerometers stop working after a while bug.

I would much appreciate feedback on the program and especially on the quality 
of the code. And I would even more appreciate a better accelerometer driver so 
userland hacks like one by Oscar Casamitjana are not necessary anymore

-- Fabian


accel-rotate.tar.bz2
Description: application/bzip-compressed-tar


accel-rotate-allyouneed.tar.bz2
Description: application/bzip-compressed-tar
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: One more rotate version

2008-10-19 Thread SCarlson

 Very snappy. It does die pretty quickly.. Due to accelerometer failing?
How can I help test this further. I ran from command line and when it dies
it just stopping writing to stdout. Also, if I re-run it just sits and waits
for stdout. I assume this is the acc. problem that you mentioned above.?

Scott


Fabian Henze wrote:
 
 Hi,
 As it seems popular these days to publish a custom version of the rotate 
 program, I am also going to do it.
 After reading the source code of Rui Miguel Silva Seabra's rotate program,
 I 
 found some parts that could be improved and hacked on those. The result
 differs 
 from the original in the following points:
  - No brightness control (Its just annoying)
  - Imo better (and faster) heuristics
  - Fewer errors and false positives (the display won't rotate while the
 phone 
 is shaken around or sth. like this)
  - uses fewer CPU cycles (I have not done much research, because it would
 not 
 even show up in top)
 BUT:
  - It still suffers from the accelerometers stop working after a while
 bug.
 
 I would much appreciate feedback on the program and especially on the
 quality 
 of the code. And I would even more appreciate a better accelerometer
 driver so 
 userland hacks like one by Oscar Casamitjana are not necessary anymore
 
 -- Fabian
 
  
  
 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community
 
 

-- 
View this message in context: 
http://n2.nabble.com/One-more-rotate-version-tp1353381p1353702.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