Package: procps
Version: 2:4.0.4-9+b2
Severity: minor

In the output of "w -t", for most X terminals (such as xterm, rxvt,
mlterm, sakura), the time in the "LOGIN@" column seems to be the
start time of the login session ("loginctl session-status self",
or id given by /proc/self/sessionid) instead of the time when the
terminal was started. The login session is

3 - vinc17 (1000)
  Since: Sat 2026-05-02 04:25:02 CEST; 4 days ago
  State: active
 Leader: 2197 (lightdm)
   Seat: seat0; vc7
Display: :0
 Remote: no
Service: lightdm
   Type: x11
  Class: user
Desktop: lightdm-xsession
   Idle: no
   Unit: session-3.scope
[various processes, including these terminals]

There is no such issue with GNOME Terminal, but it does not belong
to any login session: "loginctl session-status self" outputs

  Failed to get path for session 'self': Caller does not belong to
  any known session.

and "loginctl session-status $(cat /proc/self/sessionid)" just gives

4 - vinc17 (1000)
  Since: Sat 2026-05-02 04:25:02 CEST; 4 days ago
  State: active
 Leader: 2372 (systemd)
 Remote: no
Service: systemd-user
   Type: unspecified
  Class: manager
   Idle: no

without any unit and processes (and no seat, no display).

So it seems that you should not rely on systemd-logind information.

-- System Information:
Debian Release: forky/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 
'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), 
(500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.7.12-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages procps depends on:
ii  init-system-helpers  1.69
ii  libc6                2.42-15
ii  libncursesw6         6.6+20251231-1
ii  libproc2-0           2:4.0.4-9+b2
ii  libsystemd0          260.1-1
ii  libtinfo6            6.6+20251231-1

Versions of packages procps recommends:
ii  linux-sysctl-defaults  4.15
ii  psmisc                 23.7-2

procps suggests no packages.

-- no debconf information

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)

Reply via email to