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:

(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...)