Re: [debian] Re: disable power-button

2009-01-12 Thread ant

The GTA02 isn't too hard to dismantle - four screws and a stiff 
thumbnail/guitar pick - so you could just /remove/ the power button - IIRC 
it's just a plastic moulding slipped in over the microswitch. Cover the hole 
with some tape and off you go.

On Friday 09 January 2009 16:26:56 Davide Scaini wrote:
 I was interested in something similar... I could I change the action of the
 single-press power button? i would like to do something more than just
 supend (like switch down the wifi with wmiconfig that works reliably for
 me) is that something embedded in kernel like the shutdown?
 thanks in advance for your reply
 d

 On Fri, Jan 9, 2009 at 4:26 PM, arne anka openm...@ginguppin.de wrote:
   Actually, the kernel will call shutdown if the power is held for 8
   seconds.
 
  ah! wasn't sure about that -- i sort of hoped, fso would consume the key
  press and do it's own stuff to shutdown.
 



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


[debian] Re: disable power-button

2009-01-09 Thread arne anka
 ok, excuse me:
 we are using the official debian installed by the official script in the
 flash!

that's the important part, since every distribution handles it differently.
debian uses fso and fso in turn handles the pwr -- i think, you can hanlde  
your task by creating a rule in rules.yaml or so.

but you better ask on the fso-lists, see  
http://www.freesmartphone.org/index.php/Infrastructure#Mailing_Lists

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


Re: [debian] Re: disable power-button

2009-01-09 Thread Sean McNeil
Actually, the kernel will call shutdown if the power is held for 8 
seconds. To disable that, you'd need to recompile the kernel. There is 
no proc interface to enable/disable its behavior.

Sean

arne anka wrote:
 ok, excuse me:
 we are using the official debian installed by the official script in the
 flash!
 

 that's the important part, since every distribution handles it differently.
 debian uses fso and fso in turn handles the pwr -- i think, you can hanlde  
 your task by creating a rule in rules.yaml or so.

 but you better ask on the fso-lists, see  
 http://www.freesmartphone.org/index.php/Infrastructure#Mailing_Lists

 ___
 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: [debian] Re: disable power-button

2009-01-09 Thread arne anka
 Actually, the kernel will call shutdown if the power is held for 8
 seconds.

ah! wasn't sure about that -- i sort of hoped, fso would consume the key  
press and do it's own stuff to shutdown.

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


Re: [debian] Re: disable power-button

2009-01-09 Thread Davide Scaini
I was interested in something similar... I could I change the action of the
single-press power button? i would like to do something more than just
supend (like switch down the wifi with wmiconfig that works reliably for me)
is that something embedded in kernel like the shutdown?
thanks in advance for your reply
d

On Fri, Jan 9, 2009 at 4:26 PM, arne anka openm...@ginguppin.de wrote:

  Actually, the kernel will call shutdown if the power is held for 8
  seconds.

 ah! wasn't sure about that -- i sort of hoped, fso would consume the key
 press and do it's own stuff to shutdown.

 ___
 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: [debian] Re: disable power-button

2009-01-09 Thread Timo Juhani Lindfors
Davide Scaini dsca...@gmail.com writes:
 I was interested in something similar... I could I change the action of the
 single-press power button? i would like to do something more than just
 supend (like switch down the wifi with wmiconfig that works reliably for me)
 is that something embedded in kernel like the shutdown?

Kernel generates an event via /dev/input/event* and oeventsd subsystem
of fso-frameworkd catches it. Either zhone or your oeventsd (via
rules.yaml) is afaik the one that then calls the actual 'apm -s'
depending on what software you actually run.




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


Re: [debian] Re: disable power-button

2009-01-09 Thread Johny Tenfinger
On Fri, Jan 9, 2009 at 16:14, arne anka openm...@ginguppin.de wrote:
 ok, excuse me:
 we are using the official debian installed by the official script in the
 flash!

 that's the important part, since every distribution handles it differently.
 debian uses fso and fso in turn handles the pwr -- i think, you can hanlde
 your task by creating a rule in rules.yaml or so.

Wrong: this behavior (It starts a reboot after 4 or 5 seconds
pressing it and powers off the
device after some 6 or 8 seconds.) is on Debian with no frameworkd
installed too.

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