[Pkg-acpi-devel] Bug#510619: acpi-support: Use who, instand of w, because w truncates long usernames

Witold Baryluk baryluk at smp.if.uj.edu.pl
Thu Apr 16 12:57:07 UTC 2009


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.


-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages acpi-support depends on:
ii  acpi-support-base             0.109-11   scripts for handling base ACPI eve
ii  acpid                         1.0.8-1    Utilities for using ACPI power man
ii  dmidecode                     2.9-1      Dump Desktop Management Interface 
ii  finger                        0.17-12    user information lookup program
ii  hdparm                        8.9-3      tune hard disk parameters for high
ii  laptop-detect                 0.13.6     attempt to detect a laptop
ii  libc6                         2.7-18     GNU C Library: Shared libraries
ii  lsb-base                      3.2-20     Linux Standard Base 3.2 init scrip
ii  powermgmt-base                1.30+nmu1  Common utils and configs for power
ii  vbetool                       1.0-3      run real-mode video BIOS code to a
ii  x11-xserver-utils             7.3+5      X server utilities

Versions of packages acpi-support recommends:
ii  dbus                          1.2.1-5    simple interprocess messaging syst
ii  hal                           0.5.11-8   Hardware Abstraction Layer
ii  nvclock                       0.8b3-1    Allows you to overclock your nVidi
ii  pm-utils                      1.1.2.4-1  utilities and scripts for power ma
ii  radeontool                    1.5-5      utility to control ATI Radeon back
ii  toshset                       1.73-3     Access much of the Toshiba laptop 

Versions of packages acpi-support suggests:
pn  laptop-mode-tools             <none>     (no description available)

-- no debconf information





More information about the Pkg-acpi-devel mailing list