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.

Comments are welcomed.

Thanks.

-- 
Pat Double, [EMAIL PROTECTED]
"In the beginning God created the heaven and the earth."
--- 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

Attachment: pgphpZutu0grb.pgp
Description: PGP signature

_______________________________________________
powersave-devel mailing list
[email protected]
http://forge.novell.com/mailman/listinfo/powersave-devel

Reply via email to