hi all,
I am using my pc as videorecorder and workpc at the same time. Via ACPI wakeups it starts up automatically. And I want it to shut down, if the PC is idle and no one working. To check if someome is logged in it uses a script that analyses the output of "w". This worked half a year, but now its no more working:
This is the output of w from a console-login directly after a reboot:
Code:
13:21:12 up 0 min, 1 user, load average: 0,60, 0,15, 0,05
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
benedikt tty1 13:20 0.00s 0.20s 0.00s w
This is the output of w after loging off from console and loging into kde:
Code:
13:21:49 up 1 min, 2 users, load average: 1,36, 0,41, 0,14
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
benedikt pts/0 :0 13:21 21.00s 0.00s 0.60s kdeinit4: kded4
benedikt pts/2 :0.0 13:21 0.00s 0.16s 0.00s w
Thats all right, but if I now log off from KDE and again log in to a console, w prints the folloing:
Code:
13:22:21 up 1 min, 2 users, load average: 1,33, 0,50, 0,18
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
benedikt tty1 13:22 0.00s 0.17s 0.00s w
(Note the 2 users in the first line )
It seems that the loggout from KDE is kind of "incomplete", and it makes my pc staying switched on all time... the problem doesn't occur, if I log in and off to fluxbox.
Can anyone give me a hint what could be wrong? I already searched the web, but I didn't find anything (maybe I searched the wrong things...)
thanks for your help! |