Thread: Odds and ends
View Single Post
Posts: 875 | Thanked: 918 times | Joined on Sep 2010
#58
Originally Posted by Addison View Post
The thing is, this doesn't work with the tablet locked so that the screen is turned off to save on battery life.

Is there any possible trick around this?
Not easily. Write a script that calls MCE's req_tklock_mode_change method with "locked". Then write a '0' to /sys/devices/platform/omap2_mcspi.1/spi1.0/disable_kp to unlock the keys. Replace with /sys/devices/platform/i2c_omap.2/i2c-0/0-0045/disable_kp on the n810. Then you must detect the display on signal and write a '1' to /sys/devices/platform/omap2_mcspi.1/spi1.0/disable_ts to relock the screen. You also need to listen for the unlock signal and terminate your script.

Each time you press a key the screen will turn on but your script will relock it. The only problem is that all keys will be active, you could of course write an Xlib app that grabs keys you don't want active and ignore them.


Originally Posted by Addison View Post
Also, I usually don't have Xmms on the screen either since it can be graphically intensive.

Is there perhaps a way to focus the zoom keys directly to Xmms even while it's minimized?
You could write an Xlib app that grabs the keys and redirects them to the XMMS window. Or you could figure out if XMMS exposes the those actions to dbus and just call them.
 

The Following 3 Users Say Thank You to auouymous For This Useful Post: