On Wed, Dec 03, 2008 at 08:21:34AM -0600, James Buren <[EMAIL PROTECTED]> wrote: > I have uploaded an initial draft of a set of scripts we can attach to the > Eee PC's special acpi functions to acpid. I would appreciate help > extending it as much as possible and also testing it. The package is > no-build until I feel it is ready to be built for regular users. It is > called eeepc-frugalware for now and you can find it in current. Currently > I'm trying to find a secure way to turn off the xorg display through dpms > and launch a "task manager". Obviously, these would launch with root > privileges which seems like a bad idea to me. It would be nice if I could > find a way to find the currently logged in user to xorg so I can just use > su to run it as them.
Actually there is no "the logged in user", there can be multiple ones. However, in most cases there is only one user, so just caring about the first X instance seems OK. Running as root is not an option, since the root user by default has no access to the display you want to touch. Probably the best is not to do anything by default and allowing the user to set the display and xauth path in the config. Then you can do something like: export DISPLAY=:0.0 export XAUTHORITY=/home/vmiklos/.Xauthority and then you can just ran X apps. > The full spread of special buttons I know of are: > wireless toggle(blue tooth too?), power button(automatically handled it > seems), sleep/suspend(I'm nervous to try to implement this...), That should be easy, see: http://frugalware.org/docs/mobile#_hibernation and if you do echo memory instead of echo disk, then you can suspend to ram, not to hdd.
pgpK6flCB1hWf.pgp
Description: PGP signature
_______________________________________________ Frugalware-devel mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-devel
