You are not logged in.

#1 2019-01-12 16:52:17

thommen
Member
From: Poland
Registered: 2017-12-30
Posts: 220

What is this -2 in /var/log/Xorg.0.log

I my /var/log/Xorg.0.log i have

[  1491.997] -2
[  1525.914] -2
[  1526.600] -2
[  1526.632] -2
[  1529.548] -2
[  1529.751] -2
[  1532.153] -2
[  1532.698] -2
[  1532.762] -2
[  1535.948] -2
[  1537.066] -2
[  1537.792] -2
[  1540.319] -2
[  1542.385] -2
[  1542.776] -2
[  1543.467] -2
[  1548.505] -2
[  1554.849] -2
[  1556.251] -2
[  1560.750] -2
[  1564.941] -2
[  1573.521] -2
[  1573.882] -2
[  1581.202] -2
[  1581.450] -2
[  1589.562] -2
[  1590.366] -2
[  1593.233] -2
[  1593.276] -2
[  1593.801] -2
[  1597.038] -2
[  1598.658] -2
[  1601.546] -2
[  1601.874] -2
[  1603.885] -2
[  1617.802] -2
[  1617.803] -2
[  1619.473] -2
[  1620.361] -2
[  1623.023] -2
[  1624.476] -2
[  1628.509] -2
[  1634.960] -2

which means -2?

Offline

#2 2019-01-12 16:54:12

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,517
Website

Re: What is this -2 in /var/log/Xorg.0.log

It means some X11 client is echoing -2.  If you want more details than that, you'll have to give more details than this.

How do you start X?  What is in your xinitrc, xsession, or equivalent files?  Does this happen every time you run X, or just after you start some other programs?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2019-01-12 17:48:14

thommen
Member
From: Poland
Registered: 2017-12-30
Posts: 220

Re: What is this -2 in /var/log/Xorg.0.log

My .xinitrc

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

#twm &
#xclock -geometry 50x50-1+1 &
#xterm -geometry 80x50+494+51 &
#xterm -geometry 80x20+494-0 &
#exec xterm -geometry 80x66+0+0 -name login
exec startkde

I start Filezilla, and when I turn on file transfer I have "-2" in log, and CPU 100% (for process Filezilla), the Xorg process 30%

Offline

#4 2019-01-12 20:28:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,517
Website

Re: What is this -2 in /var/log/Xorg.0.log

Why is that log under /var/log/?  If you use startx/xinit that's not where it should be.  In any case, it sounds like you found where it is coming from.  Start Filezilla from a terminal and watch the output for errors.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2019-01-12 21:48:02

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: What is this -2 in /var/log/Xorg.0.log

I don't want to judge things, but why on earth did you make such a mess of that file where is all that white-space for?
you can do the same in quite a few lines less in your case, you also don't really need the if statements.

sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources &
[ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap &
[ -f $sysresources ] && xrdb -merge "$sysresources" &
[ -f $sysmodmap ] && xmodmap "$sysmodmap" &

Offline

#6 2019-01-12 21:55:46

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,517
Website

Re: What is this -2 in /var/log/Xorg.0.log

qinohe, it always baffles me too, but that's the xinitrc template distributed with the xorg-xinit package.  Really, though, it's not nearly as absurd as the startx and xinit code.

Last edited by Trilby (2019-01-12 21:59:01)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2019-01-12 22:23:57

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: What is this -2 in /var/log/Xorg.0.log

Trilby, that's just silly , they should know better over 'there',
well @ thommen, your chance to make a pick;)

Offline

Board footer

Powered by FluxBB