On Sat, Aug 19, 2006 at 08:31:15AM -0500, Pat Double wrote:
> I have a small patch I used to get powersave working on my setup. The reason 
> for this one is that wttyhx looks for processes named as "X", my binary 
> is "Xorg". I added Xorg to the 'pidof' command. Possibly "Xgl" should also be 
> added to the list for XGL users.

Yes, this looks fine. It always worked on suse because we always use that
symlink, but this should not stop us from fixing it for the other cases :-)
I applied the fix (with Xgl added).

> --- wttyhx.orig       2006-08-19 07:42:33.000000000 -0500
> +++ wttyhx    2006-08-16 08:46:56.000000000 -0500
> @@ -89,7 +89,7 @@
>  # this will only work, if the X server is called by a "/usr/bin/X"-symlink.
>  # this is common, so we don't need to search the whole PID-space
>  pushd /proc &>/dev/null
> -for PID in `pidof X`; do
> +for PID in `pidof X Xorg`; do
>       # At first search all XFree86 processes and get their versions and utime
>       BIN=`readlink $PID/exe`
>       case "$BIN" in

BTW: this whole wttyhx stuff is really ugly, so anybody knowing a better
     solution please speak up now :-)
-- 
Stefan Seyfried                     | "Please, just tell people
QA / R&D Team Mobile Devices        |               to use KDE."
SUSE LINUX Products GmbH, Nürnberg  |          -- Linus Torvalds
_______________________________________________
powersave-devel mailing list
[email protected]
http://forge.novell.com/mailman/listinfo/powersave-devel

Reply via email to