I keep getting errors about power-manager in my logs
Pasi Koivisto
pasi at me.com
Tue Feb 2 14:25:33 UTC 2016
Hi and thanks for helping Olivier!
> Please could you post complete log somewhere. Kill the xfce4-power
> -manager daemon, then restarts it.
>
> % xfce4-power-manager --quit
> % xfce4-power-manager --no-daemon --debug --dump
This is my log without the rules.
https://dpaste.de/pkZK
This is my log with the rules.
https://dpaste.de/HyHZ
When I tried xfce4-power-manager --no-daemon --debug --dump I got a
core dump and all that was added to the log file was this:
Feb 2 14:07:17 X230 su: pasi to root on /dev/pts/0
Feb 2 14:07:55 X230 sm-mta[2059]: unable to qualify my own domain name
(X230) -- using short name
Feb 2 14:07:55 X230 sm-msp-queue[2197]: My unqualified host name
(X230) unknown; sleeping for retry
Feb 2 14:08:49 X230 gcr-prompter[2242]: GLib-GObject: The property
GtkSettings:gtk-button-images is deprecated and shouldn't be used
anymore. It will be removed in a future version.
Feb 2 14:08:49 X230 gcr-prompter[2242]: Gtk: GtkDialog mapped without
a transient parent. This is discouraged.
Feb 2 14:08:55 X230 sm-msp-queue[2197]: unable to qualify my own
domain name (X230) -- using short name
Feb 2 14:09:03 X230 kernel: error: [drm:pid909:gen6_sanitize_pm]
*ERROR* Power management discrepancy: GEN6_RP_INTERRUPT_LIMITS expected
00070000, was 16070000
Feb 2 14:09:41 X230 su: pasi to root on /dev/pts/0
Feb 2 14:10:09 X230 kernel: pid 2367 (xfce4-power-manager), uid 0:
exited on signal 5 (core dumped)
Link to the dump file.
https://www.dropbox.com/s/paw3jqxj4t0k9c3/xfce4-power-manager.core?dl=0
> xfce4-session contains information how to create / add rules. Try:
>
> % pkg query %M xfce4-session
I removed everything I have tried and created the rules following the
examples in the pkg message. And this is how it looks:
In /usr/local/etc/polkit-1/rules.d/60-xfce-power.rules
polkit.addRule(function (action, subject) {
if (action.id == "org.freedesktop.consolekit.system.restart" ||
action.id == "org.freedesktop.consolekit.system.stop"
&& subject.isInGroup("pasi")) {
return polkit.Result.YES;
}
});
polkit.addRule(function (action, subject) {
if (action.id == "org.freedesktop.consolekit.system.suspend"
&& subject.isInGroup("pasi")) {
return polkit.Result.YES;
}
});
Kind regards
Pasi
More information about the freebsd-xfce
mailing list