Home | News | Download | Packages | Forum | Wiki | Github

Why doesn't w (or who) show my X login and open X terminals?


#1

Hello,
When I type w on e.g. debian, in an X terminal, I get something like this:

$ w
USER       TTY      FROM    LOGIN@   IDLE     JCPU   PCPU    WHAT
username   console  :0      13:37    15:23m   0.00s  0.65s   -:0
username   pts/0    :0.0    13:37    12:10m   1.04s  0.01s   w

in void, I get something more along the lines of

$ w
USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT

This only changes if I log in over the console, but any login done with X and any shells opened in there do not appear.

Why is this and how can I fix it? One Major differences is that I run twm on the debian computer, but i3 on the void one, but both are logged in through xdm.

Thanks for the help already :slight_smile: .


#2

Interesting.
I run fluxbox , logged in through lxdm , and I get:

$ w
 14:14:00 up  7:23,  0 users,  load average: 0.39, 0.50, 0.77
USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT

#3

Uhm - I took the liberty to remove the stats line with uptime and load average… so ignore that being missing on my side.


(maxice8's favorite salad) #4
 11:59:50 up 12:26,  2 users,  load average: 2.35, 1.82, 1.28
USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT
terran   tty1      Mon23   12:25m  3:40   0.00s xinit /home/terran/etc/X11/xinitrc -- /usr/bin/X :0 vt1 -auth /tmp/serverauth.mwHznyVj0p
terran   tty2      Mon23   12:25m  0.04s  0.04s fish -l

are you using musl by any chance ?


#5

No utmp/wtmp in musl Q: Why is the utmp/wtmp functionality only implemented as stubs?


#6

me too… this is x86_64 , openbox via lxdm:

$w
 14:59:50 up  5:58,  0 users,  load average: 0.94, 0.89, 0.78
USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT

#7

I do not use musl, no.


(John Peach) #8

x86_64 XFCE with lightdm

: w
14:37:10 up 6:48, 0 users, load average: 0.58, 0.50, 0.46
USER TTY LOGIN@ IDLE JCPU PCPU WHAT

wtmp only has console & ssh sessions: