Author Topic: pdaXrom 1.1.0 - Power status notifications?  (Read 1673 times)

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
pdaXrom 1.1.0 - Power status notifications?
« on: August 19, 2004, 07:20:07 am »
Is it possible to receive power status change notifications?

I'd like to run xscreensaver, but only when on external power.

Cheers,


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

ikm

  • Full Member
  • ***
  • Posts: 172
    • View Profile
    • http://
pdaXrom 1.1.0 - Power status notifications?
« Reply #1 on: August 20, 2004, 05:03:45 pm »
Quote
Is it possible to receive power status change notifications?

I'd like to run xscreensaver, but only when on external power.

Cheers,


Si
Just grep the output of the 'apm' command periodically and take appopriate actions.