Registered Member
|
Hi,
I'm completely new to linux, after tasting many desktops I opted for debian + kde (x64), and so, I began to translate mi wind*** life to linux. I was traying to kill a process from within a script (python), and the kde went black for a moment, and then came back, and every thing worked fine until reboot. Alt+f2, the rest of the subject and some others things won't work. I've been reading some posts, and there are some recommendations, but there's seem to be several causes to the same problem - in a couple of times they ask for some outputs: kwrapper4 ksmserver
No protocol specified unnamed app(2198): Cannot connect to the X server No protocol specified ksmserver: cannot connect to X server :0 qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout -1 -1 -1
Autolaunch error: X11 initialization failed. $PATH
In the first two I used sudo. At this time, to shutdown or reboot I do it in the console. Any help will be appreciated, ps: I'm that new, that I hope this is the right forum for my question, case not, can some one tell me where to post it? Thanks again |
|
The outputs say there's no connection to an X11 server - likely because you attempted them via ssh or from VT2.
Let's start with what works and what not. Enter the broken login and obtain a process tree (works via ssh or from VT2 w/o problems):
(the new pstree.txt will contain the output you saw on screen - in case you're currently doing it the windows way to write down screen ouputs by hand In the broken session, do you have a desktop and panels? Can you show kickoff (an application launcher) by clicking the gearbox icon? Finally, it would be great to see what you did by "kill a process from within a script (python)" ie. the script. Sounds as if you nuked ksmserver (never do that easily, it's what keeps the session alive) |
Registered Member
|
Thanks luebking,
here: PID TTY STAT TIME COMMAND 2 ? S 0:00 [kthreadd] 3 ? S 0:00 \_ [ksoftirqd/0] 4 ? S 0:00 \_ [kworker/0:0] 5 ? S< 0:00 \_ [kworker/0:0H] 6 ? S 0:00 \_ [kworker/u16:0] 7 ? S 0:00 \_ [rcu_sched] 8 ? S 0:00 \_ [rcu_bh] 9 ? S 0:00 \_ [migration/0] 10 ? S 0:00 \_ [watchdog/0] 11 ? S 0:00 \_ [watchdog/1] 12 ? S 0:00 \_ [migration/1] 13 ? S 0:00 \_ [ksoftirqd/1] 14 ? S 0:00 \_ [kworker/1:0] 15 ? S< 0:00 \_ [kworker/1:0H] 16 ? S< 0:00 \_ [khelper] 17 ? S 0:00 \_ [kdevtmpfs] 18 ? S< 0:00 \_ [netns] 19 ? S 0:00 \_ [khungtaskd] 20 ? S< 0:00 \_ [writeback] 21 ? SN 0:00 \_ [ksmd] 22 ? SN 0:00 \_ [khugepaged] 23 ? S< 0:00 \_ [crypto] 24 ? S< 0:00 \_ [kintegrityd] 25 ? S< 0:00 \_ [bioset] 26 ? S< 0:00 \_ [kblockd] 27 ? S 0:00 \_ [kworker/0:1] 28 ? S 0:00 \_ [kworker/1:1] 29 ? S 0:00 \_ [kswapd0] 30 ? S 0:00 \_ [fsnotify_mark] 36 ? S< 0:00 \_ [kthrotld] 37 ? S< 0:00 \_ [ipv6_addrconf] 38 ? S< 0:00 \_ [deferwq] 39 ? S 0:00 \_ [kworker/u16:1] 46 ? S 0:00 \_ [kworker/1:2] 75 ? S 0:00 \_ [khubd] 76 ? S< 0:00 \_ [acpi_thermal_pm] 77 ? S< 0:00 \_ [ata_sff] 83 ? S 0:00 \_ [scsi_eh_1] 84 ? S< 0:00 \_ [scsi_tmf_1] 85 ? S 0:00 \_ [scsi_eh_2] 86 ? S< 0:00 \_ [scsi_tmf_2] 87 ? S 0:00 \_ [scsi_eh_3] 88 ? S< 0:00 \_ [scsi_tmf_3] 89 ? S 0:00 \_ [scsi_eh_4] 90 ? S< 0:00 \_ [scsi_tmf_4] 91 ? S 0:00 \_ [scsi_eh_5] 92 ? S< 0:00 \_ [scsi_tmf_5] 93 ? S 0:00 \_ [scsi_eh_6] 94 ? S< 0:00 \_ [scsi_tmf_6] 95 ? S 0:00 \_ [kworker/u16:2] 96 ? S 0:00 \_ [kworker/u16:3] 97 ? S 0:00 \_ [kworker/u16:4] 98 ? S 0:00 \_ [kworker/u16:5] 99 ? S 0:00 \_ [kworker/u16:6] 100 ? S 0:00 \_ [kworker/u16:7] 101 ? S 0:00 \_ [scsi_eh_7] 102 ? S< 0:00 \_ [scsi_tmf_7] 103 ? S 0:00 \_ [usb-storage] 105 ? S 0:00 \_ [kworker/u16:8] 108 ? S< 0:00 \_ [kworker/0:1H] 110 ? S< 0:00 \_ [kworker/1:1H] 111 ? S 0:00 \_ [kworker/0:2] 141 ? S 0:00 \_ [jbd2/sdb1-8] 142 ? S< 0:00 \_ [ext4-rsv-conver] 179 ? S 0:00 \_ [kauditd] 221 ? S 0:00 \_ [irq/43-mei_me] 222 ? S< 0:00 \_ [hd-audio0] 227 ? S< 0:00 \_ [kpsmoused] 232 ? S< 0:00 \_ [cfg80211] 238 ? S 0:00 \_ [kworker/0:3] 240 ? S 0:00 \_ [kworker/1:3] 263 ? S< 0:00 \_ [kvm-irqfd-clean] 307 ? S 0:00 \_ [jbd2/sdb6-8] 308 ? S< 0:00 \_ [ext4-rsv-conver] 508 ? S< 0:00 \_ [rpciod] 510 ? S< 0:00 \_ [nfsiod] 1 ? Ss 0:01 /sbin/init 182 ? Ss 0:00 /lib/systemd/systemd-udevd 188 ? Ss 0:00 /lib/systemd/systemd-journald 493 ? Ss 0:00 /sbin/rpcbind -w 503 ? Ss 0:00 /sbin/rpc.statd 517 ? Ss 0:00 /usr/sbin/rpc.idmapd 522 ? Ss 0:00 /usr/sbin/sshd -D 523 ? Ss 0:00 /usr/sbin/atd -f 524 ? Ss 0:00 /usr/sbin/cron -f 526 ? Ssl 0:00 /usr/sbin/NetworkManager --no-daemon 914 ? S 0:00 \_ /sbin/dhclient -d -q -sf /usr/lib/NetworkManager/nm-dhcp-helper -pf /var/run/dhclient-wlan0.pid -lf /var/lib/NetworkManager/dhclient-81c3731c-1e6e-4733-96bf-0d4c26bb3173-wlan0.lease -cf /var/lib/NetworkManager/dhclient-wlan0.conf wlan0 528 ? Ssl 0:00 /usr/sbin/ModemManager 532 ? Ss 0:00 /lib/systemd/systemd-logind 541 ? Ss 0:00 avahi-daemon: running [centralv.local] 569 ? S 0:00 \_ avahi-daemon: chroot helper 542 ? Ss 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation 570 ? Ss 0:00 /usr/sbin/privoxy --pidfile /var/run/privoxy.pid --user privoxy /etc/privoxy/config 580 ? Ssl 0:00 /usr/sbin/rsyslogd -n 586 ? Ss 0:00 /usr/sbin/cupsd -f 587 ? Ss 0:00 /usr/sbin/cups-browsed 588 ? Ss 0:00 /usr/sbin/acpid 601 tty1 Ss+ 0:00 /sbin/agetty --noclear tty1 linux 602 ? Ss 0:00 /usr/sbin/irqbalance --pid=/var/run/irqbalance.pid 604 ? Ss 0:00 /usr/sbin/atieventsd 1712 ? S 0:00 \_ sh -c /etc/ati/authatieventsd.sh grant :0 /tmp/atievntX.pVLk9W 1713 ? S 0:00 \_ /bin/sh /etc/ati/authatieventsd.sh grant :0 /tmp/atievntX.pVLk9W 854 ? Ss 0:00 /usr/bin/kdm -config /var/run/kdm/kdmrc 856 tty7 Rs+ 0:03 \_ /usr/bin/X :0 vt7 -br -nolisten tcp -auth /var/run/xauth/A:0-3wArhb 912 ? S 0:00 \_ -:0 1108 ? Ss 0:00 \_ /bin/sh /usr/bin/x-session-manager 1174 ? Ss 0:00 \_ /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session x-session-manager 1288 ? S 0:00 \_ kwrapper4 ksmserver 862 ? Ssl 0:00 /usr/lib/policykit-1/polkitd --no-debug 886 ? Ss 0:00 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant 891 ? Ss 0:00 /usr/sbin/exim4 -bd -q30m 1105 ? Ss 0:00 /lib/systemd/systemd --user 1106 ? S 0:00 \_ (sd-pam) 1159 ? S 0:00 dbus-launch --autolaunch=634c0e4db2dc4039ac95e8069f2bca85 --binary-syntax --close-stderr 1171 ? Ss 0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session 1177 ? S 0:00 /usr/bin/dbus-launch --exit-with-session x-session-manager 1178 ? Ss 0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session 1229 ? S 0:00 /usr/lib/kde4/libexec/start_kdeinit +kcminit_startup 1230 ? Ss 0:00 kdeinit4: kdeinit4 Running... 1297 ? Sl 0:00 \_ kdeinit4: ksmserver [kdeinit] 1347 ? Sl 0:02 | \_ kwin -session 10d5c6daea000145463533400000013350000_1455495673_73965 1449 ? S 0:00 \_ kdeinit4: kio_desktop [kdeinit] desktop local:/tmp/ksocket-gerardo/klauncherMT1242.slave-socket local:/tmp/ksocket-gerardo/plasma-deskt 1457 ? Sl 0:00 \_ kdeinit4: kio_trash [kdeinit] trash local:/tmp/ksocket-gerardo/klauncherMT1242.slave-socket local:/tmp/ksocket-gerardo/plasma-desktopoN 1492 ? S 0:00 \_ kdeinit4: kio_file [kdeinit] file local:/tmp/ksocket-gerardo/klauncherMT1242.slave-socket local:/tmp/ksocket-gerardo/kio_desktopnS1449. 1726 ? S 0:00 \_ kdeinit4: klauncher [kdeinit] --fd=13 1728 ? Sl 0:24 \_ /usr/bin/iceweasel 1244 ? Sl 0:00 kdeinit4: kded4 [kdeinit] 1258 ? S 0:00 /usr/bin/kglobalaccel 1278 ? Sl 0:00 kdeinit4: kcminit_startup [kdeinit] 1280 ? Sl 0:00 /usr/bin/kactivitymanagerd 1281 ? Ssl 0:00 /usr/lib/upower/upowerd 1327 ? Ssl 0:00 /usr/lib/udisks2/udisksd --no-debug 1366 ? Sl 0:06 /usr/bin/plasma-desktop 1391 ? S 0:00 \_ ksysguardd 1429 ? S 0:00 /usr/bin/kuiserver 1430 ? Ss 0:00 /usr/lib/bluetooth/bluetoothd 1451 ? Sl 0:00 /usr/bin/akonadi_control 1453 ? Sl 0:00 \_ akonadiserver 1455 ? Sl 0:00 | \_ /usr/sbin/mysqld --defaults-file=/home/gerardo/.local/share/akonadi/mysql.conf --datadir=/home/gerardo/.local/share/akonadi/db_data/ --socket=/tmp/akonadi-gerardo.kWJ2kN/mysql.socket 1570 ? Sl 0:00 \_ /usr/bin/akonadi_agent_launcher akonadi_akonotes_resource akonadi_akonotes_resource_0 1571 ? S 0:00 \_ /usr/bin/akonadi_archivemail_agent --identifier akonadi_archivemail_agent 1572 ? Sl 0:00 \_ /usr/bin/akonadi_agent_launcher akonadi_contacts_resource akonadi_contacts_resource_0 1573 ? S 0:00 \_ /usr/bin/akonadi_followupreminder_agent --identifier akonadi_followupreminder_agent 1574 ? Sl 0:00 \_ /usr/bin/akonadi_agent_launcher akonadi_ical_resource akonadi_ical_resource_0 1575 ? Sl 0:00 \_ /usr/bin/akonadi_agent_launcher akonadi_maildir_resource akonadi_maildir_resource_0 1576 ? S 0:00 \_ /usr/bin/akonadi_maildispatcher_agent --identifier akonadi_maildispatcher_agent 1585 ? S 0:00 \_ /usr/bin/akonadi_mailfilter_agent --identifier akonadi_mailfilter_agent 1586 ? S 0:00 \_ /usr/bin/akonadi_migration_agent --identifier akonadi_migration_agent 1589 ? S 0:00 \_ /usr/bin/akonadi_newmailnotifier_agent --identifier akonadi_newmailnotifier_agent 1595 ? S 0:00 \_ /usr/bin/akonadi_notes_agent --identifier akonadi_notes_agent 1597 ? S 0:00 \_ /usr/bin/akonadi_sendlater_agent --identifier akonadi_sendlater_agent 1754 ? Sl 0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher 1804 ? Sl 0:00 /usr/bin/konsole 1806 pts/0 Ss 0:00 \_ /bin/bash 1813 pts/0 R+ 0:00 \_ ps fax 1814 pts/0 D+ 0:00 \_ /bin/bash
It's quite embarrassing, but, do you mean the 'k' with the gear in the (normaly, I hope so) left side of the panel? If that's the case, yes, I can click it and launch applications, console, vlc, etc. (although, there is no sound control in the panel...)
I was trying to kill a process I started with subprocess (subprocess.kill() - it was firefox, well, iceweasel), when I couldn't I tried os.system('kill pid#'), and then it happend... (a little off topic, but, I ended up using os.kill(int(pid#), signal.SIGTERM). This is the second os reinstalation... pls, pls pls tell me I can fix this, thanks again, |
|
Alt+F2 doesn't work because krunner isn't running (just start it from konsole: "krunner &")
ctrl+alt+del is usually bound to ksysguard (taskmanager on steroids) as a hotkey, three things need to work here: 1. the hotkeys daemon is running (calling "qdbus org.kde.kded /kded loadedModules" should include "khotkeys"), it's configurable from "kcmshell[4] kded" (the "4" is optional, names changes across distros since KDE5 was introduced) 2. there's an enabled shortcut to ksyguard (run "kcmshell[4] khotkeys" to configure hotkeys) 3. ksysguard must not fail (just run "ksysguard &" in konsole) Shutdown and restart is a matter of its own - can you use it from the kickoff launcher?
Please never do this, it's a bad habit among windows users (because windows is largely a black box), but the preferred approach should be to fix things. The only thing like this that might ever be required is to force-update all packages (because there was an update failure due to a power loss or whatever) |
Registered Member
|
Hi,
It's possible to launch all 4 applications
The output doesn't include khotkeys: keyboard networkstatus statusnotifierwatcher desktopnotifier powerdevil device_automounter networkmanagement ktimezoned kscreen I couldn't find what to do in the service manager, this is what I found: Load-on-Demand Services Cookie jar Not running Directory Watcher Running Display Management Not running Favicons Not running Hardware Detection Not running Konqueror Porxy Configuration Not running Network Watcher Not running Password Caching Not running Recent Document Watcher Not running Sound Policy Not running SSL Certificate Policy Not running Startup Services Apper Monitor Not running Application menus daemon Not running Drive Ejector Not running Free Space Notifier Not running Input Actions Not running Keyboard Daemon Running KMixD Not running KScreen 2 Running Network Status Running Plasma Networmanagement module Running Power Management Running Remote URL Change Notifier Not running Remobable Device Automounter Running Status Notifier Manager Running Time Zone Running Write Deamon Not running I changed to the default settings, all the startup services changed to running, but after a reboot I returned to the list above. In the "Custom Shortcuts", same history, couldn't find what to do.
noup.... have to do it from console ha!!! may be it's obvious, but after the reboot Alt+f2 won't work again (unless I launch it from the console as you said before). The thing is, it's not only alt+f2, ctrl+alt+del, shutdown and restart that stop working, also there is no sound control besides the clock in the panel, the shutdown option from the right menu in the mouse (in the desktop) won't work, also the mousepad utilities.... and I suspect that there are a couple of other app's deactivated. Is there something I'm missing? thanks again, |
|
The relevant daemon is "Input actions".
So, krunner doesn't autostart, neither does kmix (volume control); the daemon list resets to some subset (that you didn't choose) and you cannot shutdown. Can you logout and login (without a reboot!) - how's the situation after the second login? What's the output of "cat /etc/hostname"? |
Registered Member
|
....
Noup, just reboot or shutdown via the console - and, nothing happen after many reboots (5, 6 ?). There's also an option from krunner, a "lock/logout", and although the app appears, it wont log me out.
centralv Thanks again |
|
Rebooting shall never fix anything magically - that's voodoo
Let's see whether it's in the system or your account settings => create a new user, log into that account and see whether things work as expected over there. |
Registered Member
|
I created the new user, and nothing, exactly the same thing (adduser + password + ....).
About the rebooting... too many years under the w....ater Thanks a lot luebking, |
|
ok, let's enter the voodoo arena.
check the outputs of:
Notably if the reply for the first call is empty, but in general try to add
to /etc/profile (debian might have kicked that file and you'll find things like /etc/profile.local or /etc/profile.d - latter being a directory where you can add this to some qt_noglib.sh file that automatically gets sourced) and then reboot (it's just the most simple way to get that environment read in your case |
Registered Member
|
thanks a lot!!!
saved at previous logout
own true
I saved it in /etc/profile
and so I did, and some things came back: krunner, sound mixer, I can logout form the contextual menu in the mouse - in the other hand, apper tried to update the system, but it got stucked trying to ask for the root password (I stooped it and did it from the terminal), also, and may be it's not important, but at the very beginning of the session, the symbols (hd, the "k", etc.) won't appear. The functionalities for the mousepad work, also the sound in the browser (iceweasel). I tried to read something about export QT_NO_GLIB=1, but, to be honest, I didn't understand a thing, just that it has something to do with some Qt libraries... did I mess something up quite deep in kde? or... in the system? Thanks for your patience, |
|
Phewww ... you're running into https://bugs.kde.org/show_bug.cgi?id=328571
The clumsy glib event dispatcher is mostly annoying but required for integration with gobject. This affects several things - polkit in your case. (A known bug, see https://bugs.kde.org/show_bug.cgi?id=294845 or https://bugs.kde.org/show_bug.cgi?id=334009, afair I even filed a patch somewhen since it's really trivial to enforce it inside a particular client like the polkit daemon) Either update to 5.15 and remove the environment or (this is not! a very robust workaround!) move /usr/lib/polkit-kde/polkit-kde-authentication-agent-1 to /usr/lib/polkit-kde/polkit-kde-authentication-agent-1.bin and make /usr/lib/polkit-kde/polkit-kde-authentication-agent-1 a shell script
That script will however be overridden with the next update - and don't forget to make it executable |
Registered Member
|
Thank you luebking,
What to do... I'm not a big fan of working with last versions, so I think I'll pass to update kde - though I'm tempted - and, well, at least it lets me work. I'll go with the work around you suggest, just a question, the modification in /etc/profile (adding "export QT_NO_GLIB=1"), should I leave it? or to delete it (after or before?) the move & new script? Thanks again |
|
leave it, it's still what prevents the broken login - the workaround only ensures that the polkit agent gets the glib dispatcher, since it relies on it.
|
Registered Member
|
Just a quick question,
The only files/dirs polkit* in /usr/lib are:
total 32 -rwsr-xr-x 1 root root 14632 Nov 28 2014 polkit-agent-helper-1 -rwxr-xr-x 1 root root 14912 Nov 28 2014 polkitd Although, I found ./usr/share/doc/polkit-kde-1, should I work with this instead? Thanks!!!! |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]