On Thu, 16 Apr 2009, Witold Baryluk wrote: > Package: acpi-support > Version: 0.109-11 > Followup-For: Bug #510619 > > 'w' truncates longer than 8 char long loings. Mayby use 'who'? > Then after getent passwd $user and finding homedir, ensure that > it is not empty (so such user exists in system database). > > I noticed this using scripts from > https://code.launchpad.net/~karl.hegbloom/tabuntu/tablet-screen-rotation-support > > which rotates screen (on my IBM X41 Tablet), > using xrandr on some acpi event (like turning LCD display). > > On one user it was working, on second not (because login name had 11 letters, > and was truncated by w to 8 or 10 mayby). Then getent passwd failed > to find homedir of this user.
FYI, that script changed multiple times already, it was using finger and then several other alternatives were considered, all had problems similar to the one you report. Also it's higly dependent on the X daemon and the utmp registration… Some digging in past bug reports might be needed when trying to fix this. Cheers, -- Raphaël Hertzog Contribuez à Debian et gagnez un cahier de l'admin Debian Lenny : http://www.ouaza.com/wp/2009/03/02/contribuer-a-debian-gagner-un-livre/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org