Active Topics

 


Reply
Thread Tools
Posts: 19 | Thanked: 34 times | Joined on Sep 2016 @ Poland
#1
The Thing:
when walking or placing the N900 in a pocket of trousers or a jacket somehow it goes down, probably by unknowingly pressing the power button. It happens sometimes, there's no pattern nor probable bug causing this. I can't find any log of power on/off.

Potential solution:
disable the long-press on power button through file in (not sure about this) /sys/devices/platform/gpio-switch/

Advantages:
N900 won't turn off anymore by incidental long-press.

Disadvantages:
When stuck or in need to do a hard restart you will have to remove battery.

Does anyone have an idea how to debug or just disable the button?
 

The Following 2 Users Say Thank You to ynzinier For This Useful Post:
pichlo's Avatar
Posts: 6,447 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#2
How do you know it was the power button press and not, for example, a dodgy battery?

The simplest solution is a hardware mod: glue a small ring (for example, a washer) to the case around the power button. You will still be able to press it with a tool but not by accident.
__________________
Русский военный корабль, иди нахуй!
 

The Following 6 Users Say Thank You to pichlo For This Useful Post:
Posts: 19 | Thanked: 34 times | Joined on Sep 2016 @ Poland
#3
Originally Posted by pichlo View Post
How do you know it was the power button press and not, for example, a dodgy battery?
Well, it happens only when in my pocket.
 

The Following 2 Users Say Thank You to ynzinier For This Useful Post:
Posts: 3,074 | Thanked: 12,960 times | Joined on Mar 2010 @ Sofia,Bulgaria
#4
Originally Posted by ynzinier View Post
Well, it happens only when in my pocket.
Most probably it is bad battery/weak battery holder springs.
__________________
Never fear. I is here.

720p video support on N900,SmartReflex on N900,Keyboard and mouse support on N900
Nothing is impossible - Stable thumb2 on n900

Community SSU developer
kernel-power developer and maintainer

 

The Following 4 Users Say Thank You to freemangordon For This Useful Post:
Posts: 19 | Thanked: 34 times | Joined on Sep 2016 @ Poland
#5
Checked in another pocket and there was no such accident.
Back to the question: how to disable this functionality with some software edit?
 

The Following User Says Thank You to ynzinier For This Useful Post:
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#6
Originally Posted by ynzinier View Post
Checked in another pocket and there was no such accident.
Back to the question: how to disable this functionality with some software edit?
Could well be I am wrong here, but the long press cannot be masked in software; it triggers a hard shutdown even in case where cpu is totally locked.
 

The Following 2 Users Say Thank You to juiceme For This Useful Post:
pichlo's Avatar
Posts: 6,447 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#7
...all of which brings us back neatly to the weak battery contacts.
__________________
Русский военный корабль, иди нахуй!
 

The Following 2 Users Say Thank You to pichlo For This Useful Post:
Posts: 19 | Thanked: 34 times | Joined on Sep 2016 @ Poland
#8
Originally Posted by juiceme View Post
Could well be I am wrong here, but the long press cannot be masked in software; it triggers a hard shutdown even in case where cpu is totally locked.
Hm, that makes the problem harder to solve.

Originally Posted by pichlo View Post
...all of which brings us back neatly to the weak battery contacts.
I can fold them to better connect to board (fold the battery holders too), but even after falling from about 1 m it didn't switch off.
 

The Following User Says Thank You to ynzinier For This Useful Post:
Posts: 1,293 | Thanked: 4,319 times | Joined on Oct 2014
#9
I seriously doubt that this should not be configurable somehow.
Linux is in basics just configs in file system . Even hardware.
Just, no one have been told where it's hidden.
 

The Following User Says Thank You to nieldk For This Useful Post:
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#10
Originally Posted by nieldk View Post
I seriously doubt that this should not be configurable somehow.
Linux is in basics just configs in file system . Even hardware.
Just, no one have been told where it's hidden.
heh, if there's a rc delay connected to the power supply enable line I sure would like to see that configured by software
 

The Following User Says Thank You to juiceme For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 09:10.