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: 1- in the display plugin, we only call X call if X is running. 2- We call XOpenDispaly with ":0.0" argument since calling with "" or NULL will fails since we don’t have access to display the $DISPLAY value is NULL if app launched at system start up. 3- There should be a script to run #xhost local:root to give access to root.
Following these steps will prevent any failure in calling X when launched as a system start up. Any thought? Mohamed -----Original Message----- From: Lynch, Rusty Sent: Friday, October 19, 2007 9:48 AM To: Matthew Garrett; Abbas, Mohamed Cc: Ubuntu-mobile@lists.ubuntu.com Subject: RE: PPM status I'm afraid this might not be the best mechanism to use since it assumes you have access to the display, but the daemon is being launched at system startup instead of inside the user session. I can't just make the script be launched as system startup because other plugins need to be run as root (i.e. the cpu plugin that needs to write to sysfs files.) I suspect the correct mechanism would be to call hal over the system dbus. You can see an implementation of this in the moblin-applets display applet. The problem is that ppm is that the ppm display plugin is also making X calls to adjust the screen saver timeout values, and I'm not sure what the correct mechanism would be for this if we are running below the session. --rusty -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthew Garrett Sent: Friday, October 19, 2007 6:48 AM To: Abbas, Mohamed Cc: Ubuntu-mobile@lists.ubuntu.com Subject: Re: PPM status On Wed, Oct 10, 2007 at 06:24:57PM -0700, Abbas, Mohamed wrote: > ● Installing xbacklight app, PPM uses this app to control brightness, once > installed a more accurate measurement can be taken. How does this interact with the firmware interface to the backlight? -- Matthew Garrett | [EMAIL PROTECTED] -- Ubuntu-mobile mailing list Ubuntu-mobile@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile -- Ubuntu-mobile mailing list Ubuntu-mobile@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile