#1106780 w command: TTY shown as -

Package:
procps
Source:
procps
Description:
/proc file system utilities
Submitter:
Date:
2025-12-08 07:55:04 UTC
Severity:
normal
#1106780#5
Date:
2025-05-29 17:13:18 UTC
From:
To:
When I run the w command the TTY is shown as -

Like this:
# w
  18:05:00 up  2:32,  1 user,  load average: 0.57, 0.63, 0.93
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU  WHAT
c                 -                15:33           0.00s   ?    lightdm --session-child 15 26

I expect a value to be shown, in this case tty7

The fgconsole command shows the tty number

# fgconsole
7

I am using Debian testing.  Some uname -a output:
Linux 6.12.27-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.27-1 (2025-05-06) x86_64 GNU/Linux

The desktop is Xfce 4.20.0

Best

Charles

#1106780#10
Date:
2025-12-08 07:53:13 UTC
From:
To:
tags -1 fixed-upstream
thankyou
the process if it can't get it from libsystem/utmp.

 - Craig

#1106780#15
Date:
2025-12-08 07:53:13 UTC
From:
To:
tags -1 fixed-upstream
thankyou
the process if it can't get it from libsystem/utmp.

 - Craig