Yes Rusty brought my attention to gnome-screensaver, currently I am looking at this code and hopefully I will come with solution without X. Mohamed
-----Original Message----- From: Matthew Garrett [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 13, 2007 6:43 PM To: Abbas, Mohamed Cc: Lynch, Rusty; [email protected] Subject: Re: PPM status On Wed, Nov 07, 2007 at 10:28:34AM -0800, Abbas, Mohamed wrote: > I tried to replace all X call with HAL, there are some HAL call to set brightness but there are no equivalent to set screen saver or dpms. I found another solution to solve running ppmd at boot time as a root causing call X call to fail because the DISPLAY environment will be empty. The work around is: Hm, no. This isn't ideal. Anything that's supposed to alter X settings should run under the context of the session user. Gnome-screensaver is already able to alter settings in response to dbus events - I suspect that modelling something along those lines would work better. -- Matthew Garrett | [EMAIL PROTECTED] -- Ubuntu-mobile mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile
