maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   App to Wake N900 When Picked up or Tap the Screen (https://talk.maemo.org/showthread.php?t=45008)

Rex32 2010-02-18 17:41

App to Wake N900 When Picked up or Tap the Screen
 
Hey Guys,

I really like how when I picked my iphone up, the screen would come on. Is there an app for the N900 that can do this? I figured this could be done with the acceleromator...

Also, how about when I tap the screen... I hate having to slide the keyboard open to get the screen to come on, is there a better way?


Thanks,

Mike

Strutten 2010-02-18 17:44

Re: App to Wake N900 When Picked up or Tap the Screen
 
Quote:

Originally Posted by Rex32 (Post 534866)
Hey Guys,

I really like how when I picked my iphone up, the screen would come on. Is there an app for the N900 that can do this? I figured this could be done with the acceleromator...

Also, how about when I tap the screen... I hate having to slide the keyboard open to get the screen to come on, is there a better way?


Thanks,

Mike

You can use the slider, and press the power button and then slide the virtuall slider.

Swirnoff 2010-02-18 17:51

Re: App to Wake N900 When Picked up or Tap the Screen
 
I want it to come on just by thinking it.
Need an app for that!

bugelrex 2010-02-18 17:52

Re: App to Wake N900 When Picked up or Tap the Screen
 
Quote:

Originally Posted by Strutten (Post 534871)
You can use the slider, and press the power button and then slide the virtuall slider.

yes, but its much better (usability wise) to just pick up the phone, tap the screen or maybe pickup and shake the phone.

I hate pressing the power button => the button is too small
I feel the slide button will eventually wear out
I should only need to open the keyboard when I want to use the keys

jolouis 2010-02-18 17:54

Re: App to Wake N900 When Picked up or Tap the Screen
 
If nobody else has one yet this would probably be a pretty easy app to build; not having an N900 I couldn't test it, but in theory it's easy. The bigger question would be about practicality:
1) Doesn't the screen come on when you press it anyways? Unless you've got it locked? Or is that not the case on the N900 (that's how the old N8x0's worked)
2) Danger would be having the phone in your pant pocket and moving too fast/quickly would cause screen to come on as well which would be bad (the phone doesn't know when you "pick it up", it only knows "when it's been moved with a certain amount of force in a certain direction"...

As I said I don't have one to test with but... thoughts?

ARJWright 2010-02-18 18:19

Re: App to Wake N900 When Picked up or Tap the Screen
 
Quote:

Originally Posted by jolouis (Post 534892)
If nobody else has one yet this would probably be a pretty easy app to build; not having an N900 I couldn't test it, but in theory it's easy. The bigger question would be about practicality:
1) Doesn't the screen come on when you press it anyways? Unless you've got it locked? Or is that not the case on the N900 (that's how the old N8x0's worked)
2) Danger would be having the phone in your pant pocket and moving too fast/quickly would cause screen to come on as well which would be bad (the phone doesn't know when you "pick it up", it only knows "when it's been moved with a certain amount of force in a certain direction"...

As I said I don't have one to test with but... thoughts?

The key would be tying the proximity sensor to the accelerometer so that this doesn't happen.

Device moves in pocket, but the proximity sensor senses an object within a certain amt of inches and it won't come on. No sensing but object moves and then it comes on.

Really makes for a simple gesture and works alongside the phone-app activation one if you think about it.

Bratag 2010-02-18 18:26

Re: App to Wake N900 When Picked up or Tap the Screen
 
Wouldnt this require something to be constantly running in the background and that could result in the phone never truly entering a idle/sleep state. Could be quite a battery killer.

jolouis 2010-02-18 18:29

Re: App to Wake N900 When Picked up or Tap the Screen
 
Quote:

Originally Posted by Bratag (Post 534948)
Wouldnt this require something to be constantly running in the background and that could result in the phone never truly entering a idle/sleep state. Could be quite a battery killer.

Running daemons in the background happens all the time on Maemo... it's not a battery concern at all as long as your daemon isn't DOING a lot... i.e. if it's polling an accelerometer value once each second it shouldn't be a big deal... on the other hand, if part of the phone "idle mode" is to power down accellerometer then that might have an effect as the daemon would keep the accellerometer powered up. Won't know until somebody tries it...

vabgeo 2010-02-18 18:30

Re: App to Wake N900 When Picked up or Tap the Screen
 
maybe a simple gesture should be enough, have an app that waits for a gesture and do an action. shake two times wake up. shake three times open browser, etc....

Bratag 2010-02-18 18:37

Re: App to Wake N900 When Picked up or Tap the Screen
 
Quote:

Originally Posted by jolouis (Post 534960)
Running daemons in the background happens all the time on Maemo... it's not a battery concern at all as long as your daemon isn't DOING a lot... i.e. if it's polling an accelerometer value once each second it shouldn't be a big deal... on the other hand, if part of the phone "idle mode" is to power down accellerometer then that might have an effect as the daemon would keep the accellerometer powered up. Won't know until somebody tries it...

The only real experience I have with the accelerometer is with shake2control. I do know however that even when not playing music that app will move to the next song if shaken.

I know daemons are running the in background of maemo, but would worry the poll period for this to be beneficial as an app would have to be so short that it would amount to being "always on". I wish I knew more about accessing the accelerometer and writing a daemon so I could contribute something more to this.


All times are GMT. The time now is 19:43.

vBulletin® Version 3.8.8