Re: I keep getting errors about power-manager in my logs
2016-02-05 23:12 GMT+01:00 Pasi Koivisto: > On Fri, 2016-02-05 at 11:06 +, Olivier Duchateau wrote: > >> Hi, >> >> Sorry for the delay, I was away from my computer for my day job. > > No problem, I am grateful for any help I can get! > >> Unfortunately gdb complains about core dump. Can you post command of >> uname -a? > > FreeBSD X230 10.3-PRERELEASE FreeBSD 10.3-PRERELEASE #17 r295259: Thu > Feb 4 17:16:33 CET 2016 root@X230:/usr/obj/usr/src/sys/GENERIC > amd64 > > >> As I use ConsoleKit2 (fork of ConsoleKit), suspend/resume support is >> better, debug output is different. >> >> Are you able to recompile some ports? If not, give me result of >> following commands: >> >> % pkg query %ro consolekit >> % pkg -vv | grep url | awk -F' ' '{printf "%s\n", $3}' > > I can recompile but I would prefer to use packages Great, I just created new repository on my own server. You can add the "xfpm" repo. 1. Download my public key, and copy into /usr/local/etc/ssl (for example) https://people.freebsd.org/~olivierd/81-7-17-160.blue.kundencontroller.cert 2. Create the following file /usr/local/etc/pkg/repos/xfpm.conf xfpm: { url: "pkg+http://81.7.17.160/packages/xfpm/${ABI};, mirror_type: "srv", signature_type: "pubkey", pubkey: "/usr/local/etc/ssl/81-7-17-160.blue.kundencontroller.cert", enabled: yes, priority: 100 } 3. Update database pkg update pkg upgrade Xfce4-power-manager was build with debug symbols. I also updated sysutils/consolekit. I hope xfce4-power-manager will no crash. Then try to launch daemon (make sure it is not running) with following command: % xfce4-power-manager --no-daemon --debug --dump > > pkg query %ro consolekit > x11/slim > sysutils/hal > x11-wm/xfce4-session > audio/pulseaudio > > pkg -vv | grep url | awk -F' ' '{printf "%s\n", $3}' > "pkg+http://pkg.FreeBSD.org/FreeBSD:10:amd64/latest;, > > > Cheers > Pasi > -- olivier ___ freebsd-xfce@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-xfce To unsubscribe, send any mail to "freebsd-xfce-unsubscr...@freebsd.org"
Re: I keep getting errors about power-manager in my logs
On Tue, 02 Feb 2016 14:25:18 +0100 Pasi Koivistowrote: > 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 > 0007, was 1607 > 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 > > Hi, Sorry for the delay, I was away from my computer for my day job. Unfortunately gdb complains about core dump. Can you post command of uname -a? As I use ConsoleKit2 (fork of ConsoleKit), suspend/resume support is better, debug output is different. Are you able to recompile some ports? If not, give me result of following commands: % pkg query %ro consolekit % pkg -vv | grep url | awk -F' ' '{printf "%s\n", $3}' Regards, -- olivier ___ freebsd-xfce@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-xfce To unsubscribe, send any mail to "freebsd-xfce-unsubscr...@freebsd.org"
Re: I keep getting errors about power-manager in my logs
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 0007, was 1607 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 ___ freebsd-xfce@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-xfce To unsubscribe, send any mail to "freebsd-xfce-unsubscr...@freebsd.org"