Bart Samwel wrote:
Hi Phil,

Phil Endecott wrote:
I am trying to get the lid event to suspend on my Eee 901 and have encountered
the following problems:

1. getXuser() in /usr/share/acpi-support/power-funcs uses finger, but the package does not depend on finger (and I didn't have it installed).

Thanks for reporting, added!

I've just spotted detect_x_display() in /usr/share/eeepc-acpi-scripts/functions.sh from package eeepc-acpi-scripts which does a similar thing by parsing the output of "who", rather than "finger". "who" has the advantage of being provided by coreutils, which is a "Priority: required" package, while finger is "Priority: standard". There is also "w" from procps.

the format provided by finger is (:$displaynum) or (:$displaynum.screennum).

Err, no; mine doesn't have the ():

$ finger
Login     Name            Tty      Idle  Login Time   Office     Office Phone
phil      Phil Endecott  *tty1    14:51  Sep  2 16:40
phil      Phil Endecott   pts/0          Sep  4 12:09 (egypt.chezphil.org)
phil      Phil Endecott  *:0             Sep  4 12:29
root      root           *tty2    13:02  Sep  3 21:40

Obviously yours does and I'm sure I've seem that notation somewhere or other; I don't know if the () mean something or whether it's a finger version thing, or what.


Phil.






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

Reply via email to