View Single Post
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#23
Originally Posted by impeham View Post
Is it possible to get an event when the phone is connected to TV? i'd like to reduce the brightness to minimum in such case to save battery.
First step is to run:

Code:
dbus-scripts --debug --system
then watch the output of the command when you plug/unplug the cable. If there is an output (I highly suspect there will be) there will be a message on dbus you can 'hook' onto.

The next step would be to then write a dbus triggered script for the dimming.

This is all possible, the parts are available, you just have to assemble them!

So, run the above command...
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.