You are not logged in.

#26 2012-11-03 01:10:29

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: LXDE, LXDM problems after upgrade

If lxde-logout is hard-coded to use consolekit then it has to either be fixed upstream or patched in someway. With the current systemd + polkit, you can simply use these commands:

https://wiki.archlinux.org/index.php/Sy … management

Offline

#27 2012-12-19 18:23:31

adonay
Member
From: Pineda de Mar
Registered: 2012-02-19
Posts: 1
Website

Re: LXDE, LXDM problems after upgrade

In my case, i found two things

In my case, if I killed polkitd and started again with:
  /usr/lib/polkit-1/polkitd   said me that was a permission problem on rules.d folder

When I fixed sill didn't work, on the next login
I put on autostart an script to kill autostarted polkit and open it again. Then works perfectly

sudo kill `ps aux | grep -i polkitd | grep -v grep | awk ' { print $2 } '`; sudo /usr/lib/polkit-1/polkitd --no-debug &

Teorically there's a  lxpolkit  daemon to do it, but it's still on AUR and finish with a Segfault on open. So it doesn't work...

Hope it helps

Offline

#28 2013-08-03 07:07:49

krakenfury
Member
Registered: 2013-04-18
Posts: 15

Re: LXDE, LXDM problems after upgrade

I just added @lxpanel to '~/.config/lxsession/LXDE/autostart'. Yeah I had to reconfigure everything, but most of the previous configuration was in tact and it only required a few tweaks, which yielded a fresh feel due to some different asthetic choices.

The logout problem I tried to solve by adding "systemctl reboot" and "systemctl poweroff" to the Openbox menu, but I only get child process errors when I try to use them. Can someone tell me the right way do this?

*Edit- I guess it's wrong to say I reconfigured everything, because I go on to explain that I don't.

Last edited by krakenfury (2013-08-03 07:10:22)

Offline

#29 2013-08-03 07:45:59

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: LXDE, LXDM problems after upgrade

There are already bug reports about this and a few very recent threads, why post here?
https://bbs.archlinux.org/viewtopic.php?id=167503
https://bugs.archlinux.org/task/36389

Offline

#30 2013-08-19 22:14:26

ctorchia87
Member
Registered: 2013-08-19
Posts: 5

Re: LXDE, LXDM problems after upgrade

Hi, I'm wondering if anybody has run into this problem: lxde-logout (and lxsession-logout, because that's what it runs) takes 5 minutes to load, and slows down any X11 activity (e.g. focusing windows). It started happening right after I ran pacman -Syu on 2013-08-16. I tried following the fix for bug 36389 listed above involving enabling those lines in /etc/pam.d/lxdm, and that did not solve the problem.

I copied the source code from lxsession-logout.c into a new test file, debugged that with gdb, and found that the it is hung on the following statement (in lxsession-logout.c in get_background_pixbuf()):

    GdkPixbuf * pixbuf = gdk_pixbuf_get_from_drawable(
        NULL,                    /* Allocate a new pixbuf */
        gdk_get_default_root_window(),        /* The drawable */
        NULL,                    /* Its colormap */
        0, 0, 0, 0,                /* Coordinates */
        gdk_screen_get_width(screen),        /* Width */
        gdk_screen_get_height(screen));        /* Height */

Here is the backtrace:

(gdb) bt
#0  0x00007ffff5179f40 in __poll_nocancel () from /usr/lib/libc.so.6
#1  0x00007ffff25cb6e2 in ?? () from /usr/lib/libxcb.so.1
#2  0x00007ffff25ccb1f in ?? () from /usr/lib/libxcb.so.1
#3  0x00007ffff25ccc32 in xcb_wait_for_reply () from /usr/lib/libxcb.so.1
#4  0x00007ffff56a7117 in _XReply () from /usr/lib/libX11.so.6
#5  0x00007ffff56a2d3d in XSync () from /usr/lib/libX11.so.6
#6  0x00007ffff7557646 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#7  0x00007ffff751db91 in gdk_drawable_copy_to_image ()
   from /usr/lib/libgdk-x11-2.0.so.0
#8  0x00007ffff751db91 in gdk_drawable_copy_to_image ()
   from /usr/lib/libgdk-x11-2.0.so.0
#9  0x00007ffff7528538 in gdk_pixbuf_get_from_drawable ()
   from /usr/lib/libgdk-x11-2.0.so.0
#10 0x00000000004018e0 in get_background_pixbuf () at test.c:70
#11 0x0000000000401b07 in main (argc=1, argv=0x7fffffffe968) at test.c:153

The new test program does not depend on lxsession, and I ran it without any window manager or display manager running (using startx) and it hangs on the exact same statement, always with __poll_nocancel() at the top.

Also I ran lxsession-logout under strace -Ct and when it was hung it kept doing this over and over:

12:33:45 writev(3, [{"<\5\2\0\5\0\300\0017\1\5\0\6\0\300\1P\1\0\0\0\200\0\0\1\0\0\0>s\7\0"..., 60}, {NULL, 0}, {"", 0}], 3) = 60
12:33:45 poll([{fd=3, events=POLLIN}], 1, 4294967295) = 1 ([{fd=3, revents=POLLIN}])
12:33:46 recvfrom(3, "\16\0\200\0\4\0\300\1\0\0>\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096, 0, NULL, NULL) = 64
12:33:46 recvfrom(3, 0x15118f4, 4096, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)

That line of code is responsible for getting the image of the root window in order to re-display it darker before the logout options window appears. I thought then maybe this same behaviour would occur with "import -window root screenshot.jpg", but no, that functions without delay.

This is on my work computer. I upgraded on the same day my netbook, and after it did not have this problem. So I thought this might be related to merged config files, but there are not many new ones:

[carlos@nbcarlos ~]$ find / -name *.pacnew 2> /dev/null
/boot/grub/grub.cfg.pacnew
/etc/pacman.d/mirrorlist.pacnew
/etc/ppp/ip-down.d/00-dns.sh.pacnew
/etc/ppp/ip-up.d/00-dns.sh.pacnew

I am not using "testing".

Thanks for any help you can provide, and sorry in advance for missing anything or bothering anyone

Offline

#31 2013-08-19 22:20:09

ctorchia87
Member
Registered: 2013-08-19
Posts: 5

Re: LXDE, LXDM problems after upgrade

Oh, and my lxsession version is 0.4.6.1. Sorry.

Offline

#32 2013-08-19 22:20:40

ctorchia87
Member
Registered: 2013-08-19
Posts: 5

Re: LXDE, LXDM problems after upgrade

Offline

#33 2013-08-19 22:46:29

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: LXDE, LXDM problems after upgrade

@ctorchia87
Please read our forum policy, in particular the sections about bumping and necrobumping. In particular, do not post new issues in threads that are years old, and use the edit button to append information to previous posts if yours is the last.

And use code tags for code, output and file contents,

like this

.

closed


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB