[maemo-developers] Keeping the display OFF?

From: Andrew Godwin andrewgodwin at gmail.com
Date: Sat Jun 23 13:45:22 EEST 2007
Instead of the usual thing of wanting to keep the display on, I want to
keep it off. Let me describe the situation...

I'm writing a music player (yes, another one!) which I can operate while
walking (I do a lot of this). Specifically, I wanted to be able to skip
songs without getting the n800 out of my pocket, so I implemented a mode
where the player ignores all touchscreen input, and responds only to
hardware keypresses.

Only issue is that, of course, whenever the screen is hit, the display
turns on again, even though nothing can happen. Any idea of how I'd go
about keeping it off? I've tried echoing "0" to
/sys/devices/platform/omapfb/panel/backlight_level, but something keeps
turning the display back on (perhaps I can convince _that_ to keep it off?)

It's not vital, but my battery is going to like me more if I can stop
the screen turning on whenever it gets hit in my pocket. Any ideas?

Andrew

More information about the maemo-developers mailing list