Michael,

1. I agree that wttyhx cannot work. If it is run by a non-root user,
"pidof X Xorg Xgl" simply returns an empty string, so that

  /proc/`pid of X Xorg Xgl`/cmdline

becomes /proc/cmdline, which just consists of the boot command line of
kernel. So, wttyhx can find no display informatinon.

2. Nevertheless, my previous message was based on my experiences,
   running wttyhx as root. Let me repeat my findings, just in case my
   previous message was unclear.

  A. If I run xdm and execute wttyhx as root, wttyhx returns the
  display information correctly.

  B. If I use starx to run X instead and execute wttyhx as root,
  wttyhx fails to deliver the display information. The cause of the
  problem seems to be that

   /proc/`pid of X Xorg Xgl`/cmdline

  only contains "/usr/bin/X11/X" in this case.

Please let me know if you need any other information.

Thanks,

  Shinichi

From: Michael Biebl <[EMAIL PROTECTED]>
Subject: Re: Bug#421511: powersaved: /usr/lib/powersave/wttyhx -v fails to 
return DISP.
Date: Mon, 30 Apr 2007 02:43:01 +0200

> I can't confirm the behaviour your are describing. wttyhx works fine for
> me. Please keep in mind, that wttyhx has to be run as root, otherwise
> the access to /proc/$PID/cmdline is denied.
> 
> Could you please recheck if this problems really occurs when you execute
>  wttyhx as root? That wttyhx returns nothing as regular user is normal.
> 
> Cheers,
> Michael
> 
> -- 
> Why is it that all of the instruments seeking intelligent life in the
> universe are pointed away from Earth?
> 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to