PDA

View Full Version : [Solved] KDM not loading after the latest upgrade


pkubaj
March 26th, 2011, 11:36
Yesterday I upgraded from KDE 4.5.5 to 4.6.1 (already in ports). The upgrade wasn't smooth, it broke twice, but I portsnapped updates to ports tree and they seemed to fix the build, so it finished successfully. However, having rebooted my PC, I found out that KDM simply doesn't load. I have necessary entries in /etc/rc.conf, in fact it worked like a charm before. Now it doesn't.

If I load KDM manually, it starts without issues, not even reporting that it's running (so it didn't even start). There is the same warning that's been since upgrade to 4.5 i.e. Do not know how to create missing GreeterUID user kdm but there wasn't any problem in 4.5. I'm running 8.2-RELEASE.

pkubaj
March 26th, 2011, 16:31
I added user kdm, but it did nothing, though the warning I quoted didn't appear (but kdm didn't autostart). Then, I deciced to the old way by editing /etc/ttys and disabling two entries related to KDE4 in /etc/rc.conf and it loads properly. Anyone have the same problem?

avilla@
March 27th, 2011, 02:11
Can you please paste your /etc/rc.conf (how it was when KDM was in)?

nackpere
March 27th, 2011, 03:04
I am having the same issue. My /etc/rc.conf file is below:

zfs_enable="YES"
# -- sysinstall generated deltas -- # Tue Feb 22 07:57:33 2011
ifconfig_re0="DHCP"
sshd_enable="YES"
hostname="tim.jeeze"
sendmail_enable="NO"
hald_enable="YES"
dbus_enable="YES"
kdm4_enable="YES"
local_startup="${local_startup} /usr/local/kde4/etc/rc.d"
linux_enable="YES"
powerd_enable="YES"
syslogd_flags="-c"
denyhosts_enable="YES"
vboxnet_enable="YES"
devfs_system_ruleset="Removable_Media"

pkubaj
March 27th, 2011, 14:42
# -- sysinstall generated deltas -- # Thu Mar 3 22:31:26 2011
# Created: Thu Mar 3 22:31:26 2011
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
hostname="FreeBSD"
ifconfig_rl0="DHCP"
moused_enable="YES"
sshd_enable="YES"
dbus_enable="YES"
hald_enable="YES"
linux_enable="YES"
fusefs_enable="YES"
devfs_system_ruleset="system"
vboxnet_enable="YES"
bsdstats_enable="YES"
local_startup="${local_startup} /usr/local/kde4/etc/rc.d"
kdm4_enable="YES"
devfs_system_ruleset="Removable_Media"
webcamd_enable="YES"
ntpd_enable="YES"

wblock@
March 27th, 2011, 17:26
devfs_system_ruleset is in there twice. Only the last one is used. Probably not responsible for KDM problems, though.

Oxyd
March 27th, 2011, 17:59
The problem is in /usr/local/kde4/etc/rc.d/kdm4 itself. Line 41 reads while ! pgrep -fq "^/usr/libexec/getty " > /dev/null 2>&1; do The q in there is spurious and it's what's causing the problem. Remove it and it'll work.

And yes, it has been reported (http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/155961).

avilla@
March 27th, 2011, 18:22
It looks like option -q was added in CURRENT, and our testers didn't catch it. An update is in the process.

nackpere
March 28th, 2011, 00:43
Just updated ports and a new version of kdebase-workspace has been released which fixes the problem (at least for me).