Solved mate-settings-daemon stopped working

After my mistake of forcefully clean /tmp directory, and some portupgrade, I get this message when I try to go into System>Preferences>Hardware>Keyboard:
Code:
Unable to start the settings manager 'mate-settings-daemon'. Without the MATE settings manager running, some preferences may not take effect. This could indicate a problem with DBus, or a non-MATE (e.g. KDE) settings manager may already be active and conflicting with the MATE settings manager.
The need for going there is me being unable to switch keyboard layouts from English to anything. When (after the message window and some lag in time) the Keyboard settings dialogue open, everything stays as it was, the same layouts and keys showing, but they do not work. Neither volume control works or shows.
I suppose, I have deleted something crucial, but I've rebuilt all mate-\* ports, but nothing helped... And how is it that something crucial is in /tmp?
Any ideas will be appreciated.
 
How did you clean /tmp? And what are the permissions on /tmp now? Have you tried restarting? Nothing in /tmp/ is permanent but applications may need to be restarted as they commonly write temporary files there (and those may have gone missing now).
 
If it fails to create a file under /tmp then the problem is in the permissions of /tmp as suggested above or there's something really wrong in how it deals with /tmp (which I refuse to believe). The other possibility is that you don't have devel/dbus running which is required by sysutils/mate-settings-daemon.
 
Well, I made rm for many files (not all), created before some days from that day. Unfortunately, I've made it under root. The reason was "insufficient disc space" (by the way, the size of all files was much less than used /tmp partition space, that disc space was released only after reboot.) Yes, I've even rebooted, rebuild all dbus-mentioned ports, even portaudio ones. Nothing helped. No meaningful errors in dmesg (or /var/log/messages) were found. There are dbus-daemon processes running. What permissions on /tmp can I check (and how)?
Code:
ls -la /tmp
total 154
drwxrwxrwt  25 root  wheel  90624 Apr 28 23:46 .
drwxr-xr-x  24 root  wheel  1024 Apr 27 00:47 ..
drwxrwxrwt  2 root  wheel  512 Apr 27 00:53 .ICE-unix
-r--r--r--  1 root  wheel  11 Apr 27 00:52 .X0-lock
drwxrwxrwt  2 root  wheel  512 Apr 27 00:52 .X11-unix
drwxrwxrwt  2 root  wheel  512 Apr 27 00:48 .XIM-unix
drwxrwxrwt  2 root  wheel  512 Apr 27 00:48 .font-unix
drwxrwx---  2 root  operator  512 Jan  9  2015 .snap
drwxr-xr-x  9 root  wheel  512 Jan  2  2015 LibreOffice
drwx------  2 root  wheel  512 Apr 26 00:44 _l6sKJgg7S
srwxr-xr-x  1 yury  wheel  0 Apr 26 23:43 dbus-JnKpi0K8
srwxr-xr-x  1 yury  wheel  0 Apr 27 00:53 dbus-c7kqqV3D
srwxrwxrwx  1 yury  wheel  0 Apr 27 00:53 dbus-e14MilozOl
srwxrwxrwx  1 yury  wheel  0 Apr 27 00:53 dbus-toKdv3zLc7
drwx------  2 root  wheel  512 Aug 14  2013 fam-root
drwxrwx---  2 root  wheel  512 Apr 25 15:20 firebird
drwx------  2 yury  wheel  512 Apr 28 23:40 gconfd-yury
drwxr-xr-x  2 root  wheel  512 Apr 28 00:19 hsperfdata_root
drwx------  2 root  wheel  512 Apr 28 06:39 mc-root
drwx------  2 yury  wheel  512 Apr 27 07:29 mc-yury
drwx------  2 yury  wheel  512 Apr 27 23:56 mozilla_yury0
drwx------  2 root  wheel  512 Apr 25 15:24 orbit-root
drwx------  2 yury  wheel  512 Apr 28 23:40 orbit-yury
drwxr-xr-x  3 root  wheel  512 Aug 20  2015 pear
drwxr-xr-x  2 root  wheel  512 Aug 20  2015 php-gdtest
drwx------  2 yury  wheel  512 Apr 26 00:54 plugtmp
srwxr-xr-x  1 yury  wheel  0 Apr 27 17:39 pluma.yury.3069180513
drwx------  2 yury  wheel  512 Apr 26 23:26 pulse-Znun5ZVnMlFO
drwx------  2 root  wheel  512 Apr 27 00:19 pulse-jXSdOHbOuEZq
drwx------  2 root  wheel  512 Apr 26 00:43 raYe8dZVgO
drwx------  2 root  wheel  512 Mar 21 00:13 simple-mtpfs-UiMQfs
 
Your permissions on /tmp are fine (1777). I don't think removing stuff from /tmp has anything to so with mate-settings-daemon not running. All files in /tmp are created dynamically, so restarting already made sure files that need to be there got created.
 
Actually, everything is resident in memory. Either /usr/local/libexec/mate-settings-daemon or /usr/local/bin/dbus-daemon are present in ps output. But the warning window shows itself and my keyboard layout switching keys (among others) are not working.
What recommendations can you give further?
 
It's probably caused by the portupgrade you did. Have you looked at /usr/ports/UPDATING? Sometimes ports need to be rebuild in a specific order. This may be the underlying cause.
 
Yes, I always look into /usr/ports/UPDATING before portupgrade. Nothing concerned me since at least 20160412, and the problem arose later.
 
Now I pkg delete mate-\*, then portinstall mate again and with on luck. Still have no keyboard switching. May be some configuration files to look at, manually change something?
 
The problem is solved somehow. There was a problem with the ownership of some files (.ibus, for example) in my home directory. Something went wrong during one of upgrades. Thanks for your attention.
 
Back
Top