You are not logged in.
Hi,
Like the subject say, if i try to suspend from kde the screen go black for some second and then it go back to kde. If i try to shutdown the computer it just log off and go back to sddm.
i can only suspend with sudo systemctl suspend.
Last edited by edward.81 (2018-04-19 10:12:04)
Offline
Any help?
This is the journalctl log when i try to suspend.
org_kde_powerdevil[1284]: powerdevil: Failed to start suspend job "org.freedesktop.DBus.Error.InteractiveAuthorizationRequired" "Interactive authentication required."
org_kde_powerdevil[1284]: powerdevil: Starting Login1 suspend job
org_kde_powerdevil[1284]: powerdevil: Suspend session triggered with QMap(("Explicit", QVariant(bool, true))("SkipFade", QVariant(bool, true))("Type", QVariant(uint, 1)))
org_kde_powerdevil[1284]: powerdevil: Suspend session triggered with QMap(("Explicit", QVariant(bool, true))("Type", QVariant(uint, 1)))Offline
How are you login in, how do you start X? What are the outputs of
loginctl show-session $XDG_SESSION_ID
groups
printenv
journalctl -bdid you ever change any polkit files?
Offline
Also
hostnamectlOffline
I log to kde with sddm with user and password.
No, i never touched any polkit file.
journalctl -b: https://pastebin.com/UBPdKxLh
loginctl show-session $XDG_SESSION_ID
EnableWallMessages=no
NAutoVTs=6
KillUserProcesses=no
RebootToFirmwareSetup=no
IdleHint=yes
IdleSinceHint=0
IdleSinceHintMonotonic=0
DelayInhibited=sleep
InhibitDelayMaxUSec=5s
HandlePowerKey=poweroff
HandleSuspendKey=suspend
HandleHibernateKey=hibernate
HandleLidSwitch=suspend
HandleLidSwitchDocked=ignore
HoldoffTimeoutUSec=30s
IdleAction=ignore
IdleActionUSec=30min
PreparingForShutdown=no
PreparingForSleep=no
Docked=yes
RemoveIPC=yes
RuntimeDirectorySize=824475648
InhibitorsMax=8192
NCurrentInhibitors=1
SessionsMax=8192
NCurrentSessions=0grups
sys disk lp wheel games video audio storage power users vboxusers wireshark mythtv edward printadmin fuse sambashare roccat steamprintenv
GS_LIB=/home/edward/.fonts
KDE_FULL_SESSION=true
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
XDG_CONFIG_HOME=/home/edward/.config
LANG=it_IT.UTF-8
PROFILEHOME=
DISPLAY=:0
SHELL_SESSION_ID=88b45d25e0b743269c9e7fb1cefde571
EDITOR=nano -c
COLORTERM=truecolor
XDG_VTNR=1
USER=edward
DESKTOP_SESSION=/usr/share/xsessions/plasma
PWD=/home/edward
HOME=/home/edward
XCURSOR_SIZE=24
XDG_SESSION_TYPE=x11
XDG_DATA_DIRS=/usr/share:/usr/share:/usr/local/share
KONSOLE_DBUS_SESSION=/Sessions/1
XDG_SESSION_DESKTOP=KDE
SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0
GTK_MODULES=canberra-gtk-module
_JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=lcd
MAIL=/var/spool/mail/edward
STEAM_FRAME_FORCE_CLOSE=1
TERM=xterm-256color
SHELL=/bin/bash
KONSOLE_DBUS_SERVICE=:1.26
XDG_SESSION_CLASS=user
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XCURSOR_THEME=breeze_cursors
XDG_CURRENT_DESKTOP=KDE
KONSOLE_PROFILE_NAME=Profilo 1
MOZ_USE_OMTC=1
XDG_SEAT=seat0
SHLVL=2
COLORFGBG=15;0
LANGUAGE=
WINDOWID=50331654
LOGNAME=edward
XAUTHORITY=/home/edward/.Xauthority
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
QT_AUTO_SCREEN_SCALE_FACTOR=0
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=5
IMGTEC_USER_HOME=/home/edward/imgtec
SESSION_MANAGER=local/edward-pc:@/tmp/.ICE-unix/1249,unix/edward-pc:/tmp/.ICE-unix/1249
_=/usr/bin/printenvhostnamectl
Static hostname: edward-pc
Icon name: computer-desktop
Chassis: desktop
Machine ID: 01d34e7169474f9cb452b469809e6562
Boot ID: 4de1eb8f20804deaaa84671cf55703d8
Operating System: Arch Linux
Kernel: Linux 4.15.15-1-ARCH
Architecture: x86-64Offline
The session prominently lacks
Active=yes
State=activeSo you're not in an active session, thus lack permissions to do stuff (including shutdown)
You also do not have a "DBUS_SESSION_BUS_ADDRESS" environment what is not necessarily a problem, but highly suspicious.
ps aux | grep -iE '(dbus|ck)'Offline
edward 1073 0.0 0.0 37220 2104 ? S 17:10 0:00 dbus-launch --autolaunch 01d34e7169474f9cb452b469809e6562 --binary-syntax --close-stderr
edward 1074 0.0 0.0 33376 3304 ? Ss 17:10 0:00 /usr/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
edward 1262 0.0 0.1 356416 12268 ? Sl 17:11 0:00 /usr/lib/kf5/kscreen_backend_launcher
edward 1409 0.0 0.0 165728 504 ? Ss 17:11 0:00 gpg-agent --homedir /home/edward/.gnupg --use-standard-socket --daemon
edward 1440 0.0 0.1 290980 11928 ? S 17:11 0:00 file.so [kdeinit5] file local:/tmp/runtime-edward/klauncherWFKTXj.1.slave-socket local:/tmp/runtime-edward/kio_desktopnjmhpr.1.slave-socket
edward 2211 0.0 0.0 32364 3052 ? S 17:16 0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
edward 6289 0.0 0.0 10884 2320 pts/0 S+ 18:11 0:00 grep --color=auto -iE (dbus|ck)Offline
Why is there a "dbus-launch"? sddm should rather not do that, neither should startkde nor anything in the repos (ie. that's for pretty much sure a local alteration)
Offline
I forgot that i filter other user process.
root 45 0.0 0.0 0 0 ? I< 17:10 0:00 [writeback]
root 51 0.0 0.0 0 0 ? I< 17:10 0:00 [kblockd]
dbus 532 0.0 0.0 33340 3704 ? Ss 17:10 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
dnsmasq 966 0.0 0.0 47692 3272 ? Ss 17:10 0:00 /usr/bin/dnsmasq -k --enable-dbus --user=dnsmasq --pid-file
root 976 3.1 3.1 1180688 251760 tty1 Ssl+ 17:10 7:00 /usr/lib/xorg-server/Xorg -nolisten tcp -auth /var/run/sddm/{392075ac-70c6-4103-b36b-e079b34ab79f} -background none -noreset -displayfd 17 -seat seat0 vt1
sddm 1011 0.0 0.0 37220 1816 ? S 17:10 0:00 dbus-launch --autolaunch 01d34e7169474f9cb452b469809e6562 --binary-syntax --close-stderr
sddm 1012 0.0 0.0 32364 316 ? Ss 17:10 0:00 /usr/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
root 1064 0.0 0.1 208280 9112 ? SL 17:10 0:00 /usr/lib/sddm/sddm-helper --socket /tmp/sddm-authc56eb226-e85e-4dd6-b318-0aed477f27a2 --id 1 --start /usr/bin/startkde --user edward
edward 1073 0.0 0.0 37220 1844 ? S 17:10 0:00 dbus-launch --autolaunch 01d34e7169474f9cb452b469809e6562 --binary-syntax --close-stderr
edward 1074 0.0 0.0 33376 3320 ? Ss 17:10 0:00 /usr/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session
edward 1262 0.0 0.1 356416 10188 ? Sl 17:11 0:00 /usr/lib/kf5/kscreen_backend_launcher
edward 1409 0.0 0.0 165728 420 ? Ss 17:11 0:00 gpg-agent --homedir /home/edward/.gnupg --use-standard-socket --daemon
edward 1440 0.0 0.1 290980 9804 ? S 17:11 0:00 file.so [kdeinit5] file local:/tmp/runtime-edward/klauncherWFKTXj.1.slave-socket local:/tmp/runtime-edward/kio_desktopnjmhpr.1.slave-socket
edward 2211 0.0 0.0 32364 2384 ? S 17:16 0:00 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2/accessibility.conf --nofork --print-address 3
edward 16205 0.0 0.0 10884 2316 pts/0 S+ 20:55 0:00 grep --color=auto -iE (dbus|ck)Btw, on my system everything is pretty much the default for a long time. It just stopped working and i don't know why. And maybe is not related, but pulseaudio don't start itself.
Offline
Because your session dbus is bonkers. This breaks all sorts of things. The natural cause is the invocation of dbus-launch, which should not be there.
Start by checking deviations from the stock install:
pacman -QkkThen "grep -r 'dbus-launch' ~" ...
Offline
Nothing relevant with pacman -Qkk ![]()
Offline
Are you using any unofficial repositories in /etc/pacman.conf plus what is the output of `pacman -Qm`
Edit:
Also the output of `grep -r dbus-launch /etc` ( do not run as root )
Last edited by loqs (2018-04-15 21:27:00)
Offline
On pacman.conf i have added:
[mesa-git]
Server = http://pkgbuild.com/~lcarlier/$repo/$arch
pacamn -Qm
audacious-plugins-qt5 3.9-1
audacious-qt5 3.9-1
bootimg-tools-git r10.cc55014-1
calibre-installer 0.3-1
crosti 1.13.0-1
cryptkeeper 0.9.5-5
cstitch-git 0.9.8.r1.gd9a8b1f-1
dmmediaconverter 2.1-1
eilin 3.2-1
emulationstation-git 1137.5e9c296-1
freshplayerplugin 0.3.6-1
gnuradio-gsm-git 20170330-1
go-mtpfs-git 20170418-1
gqrx-git 20170601-1
gr-rds-git r258.a797d90-1
gravit-designer-bin 3.2.6-1
gstreamer0.10 0.10.36-17
gstreamer0.10-base 0.10.36-11
gstreamer0.10-base-plugins 0.10.36-11
gstreamer0.10-ffmpeg 0.10.13-9
gstreamer0.10-good 0.10.31-29
gstreamer0.10-good-plugins 0.10.31-29
gstreamer0.10-ugly 0.10.19-27
gstreamer0.10-ugly-plugins 0.10.19-27
jack-rack 1.4.7-5
jmtpfs 0.5-1
kdebindings-python-common 4.14.3-7
kdebindings-python2 4.14.3-7
kdegraphics-ksaneplugin 17.08.3-1
kdenetwork-kppp 17.08.3-1
kmozillahelper-kf5 5.0.1-2
kvantum-tools-qt5-svn r404-1
kxstitch 2.0.0-2
ladspa-bs2b 0.9.1-3
lib32-gperftools 2.6.1-1
lib32-libtxc_dxtn 1.0.1-5
lib32-libudev.so.0 0.1-1
libgaminggear 0.15.1-1
libksane4 15.08.3-4
libtxc_dxtn 1.0.1-6
libunarr-git 1.0.1.r0.gb57ee2a-1
litecoin-qt 0.14.2-1
mono-basic 4.6-2
mozplugger 2.1.6-1
mplayer2 20131009-12
multimon-ng-git 20170314-1
openal-hrtf 1.0-1
openal-hrtf-kemar 1.0-1
palemoon-bin 27.3.0-1
plasma5-applets-redshift-control-git r67.f3ea169-1
pyside-tools-common 0.2.15-4
python-babelfish 0.5.5-2
python-bitstring 3.1.5-1
python-enzyme 0.4.1-2
python-guessit 2.1.4-1
python-libusb1 1.6.4-1
python-pyqtgraph 0.10.0-3
python-pysmb 1.1.19-1
python-rarfile 3.0-1
python-rebulk 0.9.0-1
python-steamcontroller-git 722f9bf-1
python-ta-lib 0.4.9-1
python2-pyside-tools 0.2.15-4
python2-pyusb-git 1.0.0.r18.g1f66ccd-1
python2-ta-lib 0.4.9-1
qt5-style-kvantum-svn r404-1
radeontop 1.0-5
rar 5.5.0-1
robomongo-bin 1.0.0-1
roccat-tools-common 5.6.0-2
roccat-tools-tyon 5.6.0-2
rtl8814au-dkms-git 4.3.21.r31.ga58c56a-1
sc-controller-git v0.4.1.r8.a9337de-1
shotcut-bin 180102-2
simple-mtpfs 0.3.0-1
soulseekqt 20170830-4
speedcrunch-git 20160507-1
spotify 1.0.67.582-1
steamcontroller-udev 1.0-2
steamos-xpad-dkms 20171105-1
subliminal-git 2.0.5.r1.gdd74383-1
ta-lib 0.4.0-3
tesseract-gui 2.9-2
tor-browser-en 7.0.11-1
tragtor 0.9.2-3
ttf-ancient-fonts 2.60-1
ttf-anjali-old-lipi 0.740-99
ttf-chromeosextra-font 20130214-99
ttf-dejavu-ib 2.37-2
ttf-droid-font 20140815-99
ttf-droid-ib 20121017-12
ttf-ko-nanum-font 3.10.0-99
ttf-liberation-ib 2.00.1-13
ttf-lohit-font 2.5.0-99
ttf-microsoft-arial 5.10-1
ttf-ms-fonts 2.0-10
ttf-my-paduk 2.50-99
ttf-noto-fonts-ib 20170227-1
ttf-oxygen 1:5.4.3-4
ttf-tbt-jomolhari 0.0.3c-99
ttf-th-sarabun-font 1.3.2-99
ttf-ubuntu-font-family-ib 0.83-3
unetbootin 657-1
unigine-tropics 1.3-3
unigine-valley 1.0-1
vapoursynth-editor R16-1
virtualbox-ext-oracle 5.2.8-1
vivaldi 1.13.1008.34-1
vulkan-caps-viewer 1.4-1
wmsystemtray 1.4-1
xdgurl 2.0.3-2
xnviewmp 0.88-1
yacreader 8.5.0-2For `grep -r dbus-launch /etc` i just got a bunch of Permission denied
Last edited by edward.81 (2018-04-16 13:40:04)
Offline
What about the grep through your $HOME dir seth suggested, it might come up with something interesting as well
Offline
What about the grep through your $HOME dir seth suggested, it might come up with something interesting as well
Done. Found .bash_history and some firefox sqlite files ![]()
Offline
grep /usr - it *has* to be invoked somewhere...
Offline
What is the parent of the dbus-launch processes?
Edit:
If needed you could use something like this to find out what is invoking dbus-launch.
Last edited by loqs (2018-04-16 18:42:16)
Offline
What is the parent of the dbus-launch processes?
Edit:
If needed you could use something like this to find out what is invoking dbus-launch.
ppid is Pid 1
so is launched by systemd ?
Offline
If you login from a console does that session also not have DBUS_SESSION_BUS_ADDRESS set and an instance of dbus-launch running as your user?
Offline
If you login from a console does that session also not have DBUS_SESSION_BUS_ADDRESS set and an instance of dbus-launch running as your user?
yes, dbus_session... still missilng and dbus-launch is not running, just the sddm one.
Offline
And do you get an active session there?
loginctl show-session $XDG_SESSION_IDOffline
Is XDG_SESSION_ID set? Does /run/user/$UID exist after console login?
Offline
And do you get an active session there?
loginctl show-session $XDG_SESSION_ID
Active=yes
State=active
Missing.
Is XDG_SESSION_ID set? Does /run/user/$UID exist after console login?
/run/user is empty. Both with kde and terminal login.
Last edited by edward.81 (2018-04-18 20:41:54)
Offline
Offline
Thanks ! As always i just need to wait to fix this ![]()
EDIT: Better, i can fix it. Thanks again to all for the help ![]()
Last edited by edward.81 (2018-04-18 21:05:32)
Offline