Automatic logout when resuming from suspend on Xubuntu 18.04

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












When my Xubuntu 18.04 laptop resumes from suspend, systemd-logind automatically logs out of the current session if the laptop has stayed suspended for more than a couple of hours. If the interval between suspend and resume is short, it doesn't log out. I still haven't discovered how long this interval has to be in order to cause the logout.



I enabled debug on the systemd-logind.service, creating file /etc/systemd/system/systemd-logind.service.d/10-debug.conf:



[Service]
Environment=SYSTEMD_LOG_LEVEL=debug


which causes systemd-logind to log all D-Bus messages it handles, but couldn't spot anything that might have caused the logout.



I scanned all systemd journal messages (journalctl) before systemd-logind starts killing the current session, investigated all that looked suspicious but couldn't find anything that might influence an automatic logout. Here are some of the messages that striked me as suspicious (they are not sequential, but pulled from different occasions):



upowerd[1600]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0
polkitd(authority=local)[840]: Unregistered Authentication Agent for unix-session:c2 (system bus name :1.46, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
wpa_supplicant[811]: dbus: fill_dict_with_properties dbus_interface=fi.w1.wpa_supplicant1.Interface dbus_property=Stations getter failed
wpa_supplicant[811]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (none) none
at-spi-bus-launcher[7031]: XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
at-spi-bus-launcher[7031]: after 30333 requests (30333 known processed) with 0 events remaining.
systemd-logind[779]: Inhibitor xfce4-power-manager (xfce4-power-manager handles these events) pid=8611 uid=1000 mode=block stopped
systemd-logind[779]: Electing new display for user paulo
systemd-logind[779]: Ignoring session c8


logind config doesn't have anything that might cause this:



paulo:~$ loginctl show-session
EnableWallMessages=no
NAutoVTs=6
KillUserProcesses=no
RebootToFirmwareSetup=no
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
BlockInhibited=handle-power-key:handle-suspend-key:handle-hibernate-key
DelayInhibited=sleep
InhibitDelayMaxUSec=5s
HandlePowerKey=poweroff
HandleSuspendKey=suspend
HandleHibernateKey=hibernate
HandleLidSwitch=suspend
HandleLidSwitchDocked=ignore
HoldoffTimeoutUSec=30s
IdleAction=ignore
IdleActionUSec=30min
PreparingForShutdown=no
PreparingForSleep=no
Docked=no
RemoveIPC=yes
RuntimeDirectorySize=615313408
InhibitorsMax=8192
NCurrentInhibitors=5
SessionsMax=8192
NCurrentSessions=1
UserTasksMax=10813


I can't find any anything that might cause an automatic logout after a time interval. I'm really stumped.







share|improve this question






















  • I'm seeing a seemingly similar symptom, of my session having ended after resuming from suspend. I see the same XIO: fatal IO error 11 (Resource temporarily unavailable) on X server in the logs on Debian unstable.
    – Phil Miller
    May 21 at 18:58










  • @Novelocrat, I'm in doubt whether we should file a bug against systemd. I still don't know whether this is an expected feature that can be somehow configured, or a downright bug. I'd risk that this may be affecting more people, so hopefully they'll crash here with comments. If no solution pops up, I'll go ahead and file the bug.
    – Paulo Marcel Coelho Aragão
    May 21 at 22:56










  • I filed a bug report on launchpad, let's see if that yields some solution.
    – Paulo Marcel Coelho Aragão
    May 22 at 10:41






  • 2




    I'm starting to suspect systemd might not be the culprit: I found out a core file created at the time I resumed from suspend this morning. I didn't have xerver-xorg dbg symbols installed, so inspecting it with gdb only revealed: Core was generated by `/usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -noliste'. Program terminated with signal SIGBUS, Bus error. So it might be that, for a yet unknown reason, Xorg aborts on resuming from suspend, bringing down lightdm, and hence the logout. I've installed the xserver dbg symbols, and will keep an eye.
    – Paulo Marcel Coelho Aragão
    May 22 at 15:48







  • 1




    Looks like my issue is somewhat different. I can resume from suspend right away, and my session will still be dead
    – Phil Miller
    May 24 at 5:17














up vote
1
down vote

favorite












When my Xubuntu 18.04 laptop resumes from suspend, systemd-logind automatically logs out of the current session if the laptop has stayed suspended for more than a couple of hours. If the interval between suspend and resume is short, it doesn't log out. I still haven't discovered how long this interval has to be in order to cause the logout.



I enabled debug on the systemd-logind.service, creating file /etc/systemd/system/systemd-logind.service.d/10-debug.conf:



[Service]
Environment=SYSTEMD_LOG_LEVEL=debug


which causes systemd-logind to log all D-Bus messages it handles, but couldn't spot anything that might have caused the logout.



I scanned all systemd journal messages (journalctl) before systemd-logind starts killing the current session, investigated all that looked suspicious but couldn't find anything that might influence an automatic logout. Here are some of the messages that striked me as suspicious (they are not sequential, but pulled from different occasions):



upowerd[1600]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0
polkitd(authority=local)[840]: Unregistered Authentication Agent for unix-session:c2 (system bus name :1.46, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
wpa_supplicant[811]: dbus: fill_dict_with_properties dbus_interface=fi.w1.wpa_supplicant1.Interface dbus_property=Stations getter failed
wpa_supplicant[811]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (none) none
at-spi-bus-launcher[7031]: XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
at-spi-bus-launcher[7031]: after 30333 requests (30333 known processed) with 0 events remaining.
systemd-logind[779]: Inhibitor xfce4-power-manager (xfce4-power-manager handles these events) pid=8611 uid=1000 mode=block stopped
systemd-logind[779]: Electing new display for user paulo
systemd-logind[779]: Ignoring session c8


logind config doesn't have anything that might cause this:



paulo:~$ loginctl show-session
EnableWallMessages=no
NAutoVTs=6
KillUserProcesses=no
RebootToFirmwareSetup=no
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
BlockInhibited=handle-power-key:handle-suspend-key:handle-hibernate-key
DelayInhibited=sleep
InhibitDelayMaxUSec=5s
HandlePowerKey=poweroff
HandleSuspendKey=suspend
HandleHibernateKey=hibernate
HandleLidSwitch=suspend
HandleLidSwitchDocked=ignore
HoldoffTimeoutUSec=30s
IdleAction=ignore
IdleActionUSec=30min
PreparingForShutdown=no
PreparingForSleep=no
Docked=no
RemoveIPC=yes
RuntimeDirectorySize=615313408
InhibitorsMax=8192
NCurrentInhibitors=5
SessionsMax=8192
NCurrentSessions=1
UserTasksMax=10813


I can't find any anything that might cause an automatic logout after a time interval. I'm really stumped.







share|improve this question






















  • I'm seeing a seemingly similar symptom, of my session having ended after resuming from suspend. I see the same XIO: fatal IO error 11 (Resource temporarily unavailable) on X server in the logs on Debian unstable.
    – Phil Miller
    May 21 at 18:58










  • @Novelocrat, I'm in doubt whether we should file a bug against systemd. I still don't know whether this is an expected feature that can be somehow configured, or a downright bug. I'd risk that this may be affecting more people, so hopefully they'll crash here with comments. If no solution pops up, I'll go ahead and file the bug.
    – Paulo Marcel Coelho Aragão
    May 21 at 22:56










  • I filed a bug report on launchpad, let's see if that yields some solution.
    – Paulo Marcel Coelho Aragão
    May 22 at 10:41






  • 2




    I'm starting to suspect systemd might not be the culprit: I found out a core file created at the time I resumed from suspend this morning. I didn't have xerver-xorg dbg symbols installed, so inspecting it with gdb only revealed: Core was generated by `/usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -noliste'. Program terminated with signal SIGBUS, Bus error. So it might be that, for a yet unknown reason, Xorg aborts on resuming from suspend, bringing down lightdm, and hence the logout. I've installed the xserver dbg symbols, and will keep an eye.
    – Paulo Marcel Coelho Aragão
    May 22 at 15:48







  • 1




    Looks like my issue is somewhat different. I can resume from suspend right away, and my session will still be dead
    – Phil Miller
    May 24 at 5:17












up vote
1
down vote

favorite









up vote
1
down vote

favorite











When my Xubuntu 18.04 laptop resumes from suspend, systemd-logind automatically logs out of the current session if the laptop has stayed suspended for more than a couple of hours. If the interval between suspend and resume is short, it doesn't log out. I still haven't discovered how long this interval has to be in order to cause the logout.



I enabled debug on the systemd-logind.service, creating file /etc/systemd/system/systemd-logind.service.d/10-debug.conf:



[Service]
Environment=SYSTEMD_LOG_LEVEL=debug


which causes systemd-logind to log all D-Bus messages it handles, but couldn't spot anything that might have caused the logout.



I scanned all systemd journal messages (journalctl) before systemd-logind starts killing the current session, investigated all that looked suspicious but couldn't find anything that might influence an automatic logout. Here are some of the messages that striked me as suspicious (they are not sequential, but pulled from different occasions):



upowerd[1600]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0
polkitd(authority=local)[840]: Unregistered Authentication Agent for unix-session:c2 (system bus name :1.46, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
wpa_supplicant[811]: dbus: fill_dict_with_properties dbus_interface=fi.w1.wpa_supplicant1.Interface dbus_property=Stations getter failed
wpa_supplicant[811]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (none) none
at-spi-bus-launcher[7031]: XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
at-spi-bus-launcher[7031]: after 30333 requests (30333 known processed) with 0 events remaining.
systemd-logind[779]: Inhibitor xfce4-power-manager (xfce4-power-manager handles these events) pid=8611 uid=1000 mode=block stopped
systemd-logind[779]: Electing new display for user paulo
systemd-logind[779]: Ignoring session c8


logind config doesn't have anything that might cause this:



paulo:~$ loginctl show-session
EnableWallMessages=no
NAutoVTs=6
KillUserProcesses=no
RebootToFirmwareSetup=no
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
BlockInhibited=handle-power-key:handle-suspend-key:handle-hibernate-key
DelayInhibited=sleep
InhibitDelayMaxUSec=5s
HandlePowerKey=poweroff
HandleSuspendKey=suspend
HandleHibernateKey=hibernate
HandleLidSwitch=suspend
HandleLidSwitchDocked=ignore
HoldoffTimeoutUSec=30s
IdleAction=ignore
IdleActionUSec=30min
PreparingForShutdown=no
PreparingForSleep=no
Docked=no
RemoveIPC=yes
RuntimeDirectorySize=615313408
InhibitorsMax=8192
NCurrentInhibitors=5
SessionsMax=8192
NCurrentSessions=1
UserTasksMax=10813


I can't find any anything that might cause an automatic logout after a time interval. I'm really stumped.







share|improve this question














When my Xubuntu 18.04 laptop resumes from suspend, systemd-logind automatically logs out of the current session if the laptop has stayed suspended for more than a couple of hours. If the interval between suspend and resume is short, it doesn't log out. I still haven't discovered how long this interval has to be in order to cause the logout.



I enabled debug on the systemd-logind.service, creating file /etc/systemd/system/systemd-logind.service.d/10-debug.conf:



[Service]
Environment=SYSTEMD_LOG_LEVEL=debug


which causes systemd-logind to log all D-Bus messages it handles, but couldn't spot anything that might have caused the logout.



I scanned all systemd journal messages (journalctl) before systemd-logind starts killing the current session, investigated all that looked suspicious but couldn't find anything that might influence an automatic logout. Here are some of the messages that striked me as suspicious (they are not sequential, but pulled from different occasions):



upowerd[1600]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0
polkitd(authority=local)[840]: Unregistered Authentication Agent for unix-session:c2 (system bus name :1.46, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
wpa_supplicant[811]: dbus: fill_dict_with_properties dbus_interface=fi.w1.wpa_supplicant1.Interface dbus_property=Stations getter failed
wpa_supplicant[811]: dbus: wpa_dbus_get_object_properties: failed to get object properties: (none) none
at-spi-bus-launcher[7031]: XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
at-spi-bus-launcher[7031]: after 30333 requests (30333 known processed) with 0 events remaining.
systemd-logind[779]: Inhibitor xfce4-power-manager (xfce4-power-manager handles these events) pid=8611 uid=1000 mode=block stopped
systemd-logind[779]: Electing new display for user paulo
systemd-logind[779]: Ignoring session c8


logind config doesn't have anything that might cause this:



paulo:~$ loginctl show-session
EnableWallMessages=no
NAutoVTs=6
KillUserProcesses=no
RebootToFirmwareSetup=no
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
BlockInhibited=handle-power-key:handle-suspend-key:handle-hibernate-key
DelayInhibited=sleep
InhibitDelayMaxUSec=5s
HandlePowerKey=poweroff
HandleSuspendKey=suspend
HandleHibernateKey=hibernate
HandleLidSwitch=suspend
HandleLidSwitchDocked=ignore
HoldoffTimeoutUSec=30s
IdleAction=ignore
IdleActionUSec=30min
PreparingForShutdown=no
PreparingForSleep=no
Docked=no
RemoveIPC=yes
RuntimeDirectorySize=615313408
InhibitorsMax=8192
NCurrentInhibitors=5
SessionsMax=8192
NCurrentSessions=1
UserTasksMax=10813


I can't find any anything that might cause an automatic logout after a time interval. I'm really stumped.









share|improve this question













share|improve this question




share|improve this question








edited May 21 at 12:08

























asked May 21 at 10:34









Paulo Marcel Coelho Aragão

393110




393110











  • I'm seeing a seemingly similar symptom, of my session having ended after resuming from suspend. I see the same XIO: fatal IO error 11 (Resource temporarily unavailable) on X server in the logs on Debian unstable.
    – Phil Miller
    May 21 at 18:58










  • @Novelocrat, I'm in doubt whether we should file a bug against systemd. I still don't know whether this is an expected feature that can be somehow configured, or a downright bug. I'd risk that this may be affecting more people, so hopefully they'll crash here with comments. If no solution pops up, I'll go ahead and file the bug.
    – Paulo Marcel Coelho Aragão
    May 21 at 22:56










  • I filed a bug report on launchpad, let's see if that yields some solution.
    – Paulo Marcel Coelho Aragão
    May 22 at 10:41






  • 2




    I'm starting to suspect systemd might not be the culprit: I found out a core file created at the time I resumed from suspend this morning. I didn't have xerver-xorg dbg symbols installed, so inspecting it with gdb only revealed: Core was generated by `/usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -noliste'. Program terminated with signal SIGBUS, Bus error. So it might be that, for a yet unknown reason, Xorg aborts on resuming from suspend, bringing down lightdm, and hence the logout. I've installed the xserver dbg symbols, and will keep an eye.
    – Paulo Marcel Coelho Aragão
    May 22 at 15:48







  • 1




    Looks like my issue is somewhat different. I can resume from suspend right away, and my session will still be dead
    – Phil Miller
    May 24 at 5:17
















  • I'm seeing a seemingly similar symptom, of my session having ended after resuming from suspend. I see the same XIO: fatal IO error 11 (Resource temporarily unavailable) on X server in the logs on Debian unstable.
    – Phil Miller
    May 21 at 18:58










  • @Novelocrat, I'm in doubt whether we should file a bug against systemd. I still don't know whether this is an expected feature that can be somehow configured, or a downright bug. I'd risk that this may be affecting more people, so hopefully they'll crash here with comments. If no solution pops up, I'll go ahead and file the bug.
    – Paulo Marcel Coelho Aragão
    May 21 at 22:56










  • I filed a bug report on launchpad, let's see if that yields some solution.
    – Paulo Marcel Coelho Aragão
    May 22 at 10:41






  • 2




    I'm starting to suspect systemd might not be the culprit: I found out a core file created at the time I resumed from suspend this morning. I didn't have xerver-xorg dbg symbols installed, so inspecting it with gdb only revealed: Core was generated by `/usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -noliste'. Program terminated with signal SIGBUS, Bus error. So it might be that, for a yet unknown reason, Xorg aborts on resuming from suspend, bringing down lightdm, and hence the logout. I've installed the xserver dbg symbols, and will keep an eye.
    – Paulo Marcel Coelho Aragão
    May 22 at 15:48







  • 1




    Looks like my issue is somewhat different. I can resume from suspend right away, and my session will still be dead
    – Phil Miller
    May 24 at 5:17















I'm seeing a seemingly similar symptom, of my session having ended after resuming from suspend. I see the same XIO: fatal IO error 11 (Resource temporarily unavailable) on X server in the logs on Debian unstable.
– Phil Miller
May 21 at 18:58




I'm seeing a seemingly similar symptom, of my session having ended after resuming from suspend. I see the same XIO: fatal IO error 11 (Resource temporarily unavailable) on X server in the logs on Debian unstable.
– Phil Miller
May 21 at 18:58












@Novelocrat, I'm in doubt whether we should file a bug against systemd. I still don't know whether this is an expected feature that can be somehow configured, or a downright bug. I'd risk that this may be affecting more people, so hopefully they'll crash here with comments. If no solution pops up, I'll go ahead and file the bug.
– Paulo Marcel Coelho Aragão
May 21 at 22:56




@Novelocrat, I'm in doubt whether we should file a bug against systemd. I still don't know whether this is an expected feature that can be somehow configured, or a downright bug. I'd risk that this may be affecting more people, so hopefully they'll crash here with comments. If no solution pops up, I'll go ahead and file the bug.
– Paulo Marcel Coelho Aragão
May 21 at 22:56












I filed a bug report on launchpad, let's see if that yields some solution.
– Paulo Marcel Coelho Aragão
May 22 at 10:41




I filed a bug report on launchpad, let's see if that yields some solution.
– Paulo Marcel Coelho Aragão
May 22 at 10:41




2




2




I'm starting to suspect systemd might not be the culprit: I found out a core file created at the time I resumed from suspend this morning. I didn't have xerver-xorg dbg symbols installed, so inspecting it with gdb only revealed: Core was generated by `/usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -noliste'. Program terminated with signal SIGBUS, Bus error. So it might be that, for a yet unknown reason, Xorg aborts on resuming from suspend, bringing down lightdm, and hence the logout. I've installed the xserver dbg symbols, and will keep an eye.
– Paulo Marcel Coelho Aragão
May 22 at 15:48





I'm starting to suspect systemd might not be the culprit: I found out a core file created at the time I resumed from suspend this morning. I didn't have xerver-xorg dbg symbols installed, so inspecting it with gdb only revealed: Core was generated by `/usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -noliste'. Program terminated with signal SIGBUS, Bus error. So it might be that, for a yet unknown reason, Xorg aborts on resuming from suspend, bringing down lightdm, and hence the logout. I've installed the xserver dbg symbols, and will keep an eye.
– Paulo Marcel Coelho Aragão
May 22 at 15:48





1




1




Looks like my issue is somewhat different. I can resume from suspend right away, and my session will still be dead
– Phil Miller
May 24 at 5:17




Looks like my issue is somewhat different. I can resume from suspend right away, and my session will still be dead
– Phil Miller
May 24 at 5:17










3 Answers
3






active

oldest

votes

















up vote
1
down vote



accepted










For intermittent X crash with SIGBUS on 18.04, please check this answer:



Ubuntu 18.04 error on waking up from sleep : Read-error on swap device






share|improve this answer




















  • This is great ! So the X server was the symptom and not the cause. I've put the workaround in place and will monitor it. Then I'll test the patched kernel. Thank you so much for the pointer !
    – Paulo Marcel Coelho Aragão
    Jun 27 at 22:56

















up vote
1
down vote













I have confirmed that this issue is caused by the Xorg server crashing with SIGBUS. Xorg server crashes and systemd-logind creates a new login session.



The Xorg server crashes because of an excessive number of requests from at-spi-bus-launcher. Right before each crash, messages such as these were logged on the systemd journal:



at-spi-bus-launcher[31720]: XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
at-spi-bus-launcher[31720]: after 8065 requests (8065 known processed) with 0 events remaining.


It seems to be a documented issue, that Xorg crashes when it receives an excessive number of requests without interval.



To work around this bug, 2 steps are necessary:



  1. Uninstall package at-spi2-core

  2. Add export NO_AT_BRIDGE=1 to .profile, so that GTK applications don't complain about the absence of the accessibility bus

Xorg never crashed anymore after this workaround, and consequently there was no automatic logout anymore after resuming from suspend.



I filed a bug report against at-spi on the Gnome BugZilla.






share|improve this answer





























    up vote
    1
    down vote













    When I think I nailed this issue, it bites me again :-(. The issue itself is indeed caused by the Xorg server crashing with SIGBUS, but the root cause of the crash is not at-spi-bus-launcher misbehaving. It shouldn't loop making those repeated requests, so the previous procedure is still valid, although it's not a workaround to the Xorg crash.



    I discovered that Xorg was using kernel driver i915:



    paulo:~$ sudo lshw -C video
    *-display
    description: VGA compatible controller
    product: 2nd Generation Core Processor Family Integrated Graphics Controller
    vendor: Intel Corporation
    physical id: 2
    bus info: pci@0000:00:02.0
    version: 09
    width: 64 bits
    clock: 33MHz
    capabilities: msi pm vga_controller bus_master cap_list rom
    configuration: driver=i915 latency=0
    resources: irq:36 memory:f6800000-f6bfffff memory:e0000000-efffffff ioport:f000(size=64) memory:c0000-dffff


    So I tried another workaround, to force Xorg to use xserver-xorg-video-intel with acceleration method uxa, which is more stable than the default sna.



    1. Create directory /etc/X11/xorg.conf.d. We can place xorg.conf snippets in this directory, and the Xorg server picks them up when it starts.

    2. Create file /etc/X11/xorg.conf.d/10-intel.conf, directing Xorg to use its Intel video driver with acceleration method uxa.

    Here's /etc/X11/xorg.conf.d/10-intel.conf:



    Section "Device"
    Identifier "Intel Graphics"
    Driver "intel"
    Option "AccelMethod" "uxa"
    EndSection


    I have been using this workaround for 1 week and the Xorg server hasn't crashed, so I get the impression that it's the definitive workaround while Xorg isn't fixed.



    I've opened a bug report against Xorg, which apparently seems to be affecting more users, since it was flagged as a duplicate of another bug, which I didn't detect at first since its title mentions another type of crash.






    share|improve this answer




















      Your Answer







      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "89"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      convertImagesToLinks: true,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );








       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1038649%2fautomatic-logout-when-resuming-from-suspend-on-xubuntu-18-04%23new-answer', 'question_page');

      );

      Post as a guest






























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      1
      down vote



      accepted










      For intermittent X crash with SIGBUS on 18.04, please check this answer:



      Ubuntu 18.04 error on waking up from sleep : Read-error on swap device






      share|improve this answer




















      • This is great ! So the X server was the symptom and not the cause. I've put the workaround in place and will monitor it. Then I'll test the patched kernel. Thank you so much for the pointer !
        – Paulo Marcel Coelho Aragão
        Jun 27 at 22:56














      up vote
      1
      down vote



      accepted










      For intermittent X crash with SIGBUS on 18.04, please check this answer:



      Ubuntu 18.04 error on waking up from sleep : Read-error on swap device






      share|improve this answer




















      • This is great ! So the X server was the symptom and not the cause. I've put the workaround in place and will monitor it. Then I'll test the patched kernel. Thank you so much for the pointer !
        – Paulo Marcel Coelho Aragão
        Jun 27 at 22:56












      up vote
      1
      down vote



      accepted







      up vote
      1
      down vote



      accepted






      For intermittent X crash with SIGBUS on 18.04, please check this answer:



      Ubuntu 18.04 error on waking up from sleep : Read-error on swap device






      share|improve this answer












      For intermittent X crash with SIGBUS on 18.04, please check this answer:



      Ubuntu 18.04 error on waking up from sleep : Read-error on swap device







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Jun 27 at 18:07









      sourcejedi

      283110




      283110











      • This is great ! So the X server was the symptom and not the cause. I've put the workaround in place and will monitor it. Then I'll test the patched kernel. Thank you so much for the pointer !
        – Paulo Marcel Coelho Aragão
        Jun 27 at 22:56
















      • This is great ! So the X server was the symptom and not the cause. I've put the workaround in place and will monitor it. Then I'll test the patched kernel. Thank you so much for the pointer !
        – Paulo Marcel Coelho Aragão
        Jun 27 at 22:56















      This is great ! So the X server was the symptom and not the cause. I've put the workaround in place and will monitor it. Then I'll test the patched kernel. Thank you so much for the pointer !
      – Paulo Marcel Coelho Aragão
      Jun 27 at 22:56




      This is great ! So the X server was the symptom and not the cause. I've put the workaround in place and will monitor it. Then I'll test the patched kernel. Thank you so much for the pointer !
      – Paulo Marcel Coelho Aragão
      Jun 27 at 22:56












      up vote
      1
      down vote













      I have confirmed that this issue is caused by the Xorg server crashing with SIGBUS. Xorg server crashes and systemd-logind creates a new login session.



      The Xorg server crashes because of an excessive number of requests from at-spi-bus-launcher. Right before each crash, messages such as these were logged on the systemd journal:



      at-spi-bus-launcher[31720]: XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
      at-spi-bus-launcher[31720]: after 8065 requests (8065 known processed) with 0 events remaining.


      It seems to be a documented issue, that Xorg crashes when it receives an excessive number of requests without interval.



      To work around this bug, 2 steps are necessary:



      1. Uninstall package at-spi2-core

      2. Add export NO_AT_BRIDGE=1 to .profile, so that GTK applications don't complain about the absence of the accessibility bus

      Xorg never crashed anymore after this workaround, and consequently there was no automatic logout anymore after resuming from suspend.



      I filed a bug report against at-spi on the Gnome BugZilla.






      share|improve this answer


























        up vote
        1
        down vote













        I have confirmed that this issue is caused by the Xorg server crashing with SIGBUS. Xorg server crashes and systemd-logind creates a new login session.



        The Xorg server crashes because of an excessive number of requests from at-spi-bus-launcher. Right before each crash, messages such as these were logged on the systemd journal:



        at-spi-bus-launcher[31720]: XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
        at-spi-bus-launcher[31720]: after 8065 requests (8065 known processed) with 0 events remaining.


        It seems to be a documented issue, that Xorg crashes when it receives an excessive number of requests without interval.



        To work around this bug, 2 steps are necessary:



        1. Uninstall package at-spi2-core

        2. Add export NO_AT_BRIDGE=1 to .profile, so that GTK applications don't complain about the absence of the accessibility bus

        Xorg never crashed anymore after this workaround, and consequently there was no automatic logout anymore after resuming from suspend.



        I filed a bug report against at-spi on the Gnome BugZilla.






        share|improve this answer
























          up vote
          1
          down vote










          up vote
          1
          down vote









          I have confirmed that this issue is caused by the Xorg server crashing with SIGBUS. Xorg server crashes and systemd-logind creates a new login session.



          The Xorg server crashes because of an excessive number of requests from at-spi-bus-launcher. Right before each crash, messages such as these were logged on the systemd journal:



          at-spi-bus-launcher[31720]: XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
          at-spi-bus-launcher[31720]: after 8065 requests (8065 known processed) with 0 events remaining.


          It seems to be a documented issue, that Xorg crashes when it receives an excessive number of requests without interval.



          To work around this bug, 2 steps are necessary:



          1. Uninstall package at-spi2-core

          2. Add export NO_AT_BRIDGE=1 to .profile, so that GTK applications don't complain about the absence of the accessibility bus

          Xorg never crashed anymore after this workaround, and consequently there was no automatic logout anymore after resuming from suspend.



          I filed a bug report against at-spi on the Gnome BugZilla.






          share|improve this answer














          I have confirmed that this issue is caused by the Xorg server crashing with SIGBUS. Xorg server crashes and systemd-logind creates a new login session.



          The Xorg server crashes because of an excessive number of requests from at-spi-bus-launcher. Right before each crash, messages such as these were logged on the systemd journal:



          at-spi-bus-launcher[31720]: XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
          at-spi-bus-launcher[31720]: after 8065 requests (8065 known processed) with 0 events remaining.


          It seems to be a documented issue, that Xorg crashes when it receives an excessive number of requests without interval.



          To work around this bug, 2 steps are necessary:



          1. Uninstall package at-spi2-core

          2. Add export NO_AT_BRIDGE=1 to .profile, so that GTK applications don't complain about the absence of the accessibility bus

          Xorg never crashed anymore after this workaround, and consequently there was no automatic logout anymore after resuming from suspend.



          I filed a bug report against at-spi on the Gnome BugZilla.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jun 6 at 12:50

























          answered May 30 at 9:58









          Paulo Marcel Coelho Aragão

          393110




          393110




















              up vote
              1
              down vote













              When I think I nailed this issue, it bites me again :-(. The issue itself is indeed caused by the Xorg server crashing with SIGBUS, but the root cause of the crash is not at-spi-bus-launcher misbehaving. It shouldn't loop making those repeated requests, so the previous procedure is still valid, although it's not a workaround to the Xorg crash.



              I discovered that Xorg was using kernel driver i915:



              paulo:~$ sudo lshw -C video
              *-display
              description: VGA compatible controller
              product: 2nd Generation Core Processor Family Integrated Graphics Controller
              vendor: Intel Corporation
              physical id: 2
              bus info: pci@0000:00:02.0
              version: 09
              width: 64 bits
              clock: 33MHz
              capabilities: msi pm vga_controller bus_master cap_list rom
              configuration: driver=i915 latency=0
              resources: irq:36 memory:f6800000-f6bfffff memory:e0000000-efffffff ioport:f000(size=64) memory:c0000-dffff


              So I tried another workaround, to force Xorg to use xserver-xorg-video-intel with acceleration method uxa, which is more stable than the default sna.



              1. Create directory /etc/X11/xorg.conf.d. We can place xorg.conf snippets in this directory, and the Xorg server picks them up when it starts.

              2. Create file /etc/X11/xorg.conf.d/10-intel.conf, directing Xorg to use its Intel video driver with acceleration method uxa.

              Here's /etc/X11/xorg.conf.d/10-intel.conf:



              Section "Device"
              Identifier "Intel Graphics"
              Driver "intel"
              Option "AccelMethod" "uxa"
              EndSection


              I have been using this workaround for 1 week and the Xorg server hasn't crashed, so I get the impression that it's the definitive workaround while Xorg isn't fixed.



              I've opened a bug report against Xorg, which apparently seems to be affecting more users, since it was flagged as a duplicate of another bug, which I didn't detect at first since its title mentions another type of crash.






              share|improve this answer
























                up vote
                1
                down vote













                When I think I nailed this issue, it bites me again :-(. The issue itself is indeed caused by the Xorg server crashing with SIGBUS, but the root cause of the crash is not at-spi-bus-launcher misbehaving. It shouldn't loop making those repeated requests, so the previous procedure is still valid, although it's not a workaround to the Xorg crash.



                I discovered that Xorg was using kernel driver i915:



                paulo:~$ sudo lshw -C video
                *-display
                description: VGA compatible controller
                product: 2nd Generation Core Processor Family Integrated Graphics Controller
                vendor: Intel Corporation
                physical id: 2
                bus info: pci@0000:00:02.0
                version: 09
                width: 64 bits
                clock: 33MHz
                capabilities: msi pm vga_controller bus_master cap_list rom
                configuration: driver=i915 latency=0
                resources: irq:36 memory:f6800000-f6bfffff memory:e0000000-efffffff ioport:f000(size=64) memory:c0000-dffff


                So I tried another workaround, to force Xorg to use xserver-xorg-video-intel with acceleration method uxa, which is more stable than the default sna.



                1. Create directory /etc/X11/xorg.conf.d. We can place xorg.conf snippets in this directory, and the Xorg server picks them up when it starts.

                2. Create file /etc/X11/xorg.conf.d/10-intel.conf, directing Xorg to use its Intel video driver with acceleration method uxa.

                Here's /etc/X11/xorg.conf.d/10-intel.conf:



                Section "Device"
                Identifier "Intel Graphics"
                Driver "intel"
                Option "AccelMethod" "uxa"
                EndSection


                I have been using this workaround for 1 week and the Xorg server hasn't crashed, so I get the impression that it's the definitive workaround while Xorg isn't fixed.



                I've opened a bug report against Xorg, which apparently seems to be affecting more users, since it was flagged as a duplicate of another bug, which I didn't detect at first since its title mentions another type of crash.






                share|improve this answer






















                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  When I think I nailed this issue, it bites me again :-(. The issue itself is indeed caused by the Xorg server crashing with SIGBUS, but the root cause of the crash is not at-spi-bus-launcher misbehaving. It shouldn't loop making those repeated requests, so the previous procedure is still valid, although it's not a workaround to the Xorg crash.



                  I discovered that Xorg was using kernel driver i915:



                  paulo:~$ sudo lshw -C video
                  *-display
                  description: VGA compatible controller
                  product: 2nd Generation Core Processor Family Integrated Graphics Controller
                  vendor: Intel Corporation
                  physical id: 2
                  bus info: pci@0000:00:02.0
                  version: 09
                  width: 64 bits
                  clock: 33MHz
                  capabilities: msi pm vga_controller bus_master cap_list rom
                  configuration: driver=i915 latency=0
                  resources: irq:36 memory:f6800000-f6bfffff memory:e0000000-efffffff ioport:f000(size=64) memory:c0000-dffff


                  So I tried another workaround, to force Xorg to use xserver-xorg-video-intel with acceleration method uxa, which is more stable than the default sna.



                  1. Create directory /etc/X11/xorg.conf.d. We can place xorg.conf snippets in this directory, and the Xorg server picks them up when it starts.

                  2. Create file /etc/X11/xorg.conf.d/10-intel.conf, directing Xorg to use its Intel video driver with acceleration method uxa.

                  Here's /etc/X11/xorg.conf.d/10-intel.conf:



                  Section "Device"
                  Identifier "Intel Graphics"
                  Driver "intel"
                  Option "AccelMethod" "uxa"
                  EndSection


                  I have been using this workaround for 1 week and the Xorg server hasn't crashed, so I get the impression that it's the definitive workaround while Xorg isn't fixed.



                  I've opened a bug report against Xorg, which apparently seems to be affecting more users, since it was flagged as a duplicate of another bug, which I didn't detect at first since its title mentions another type of crash.






                  share|improve this answer












                  When I think I nailed this issue, it bites me again :-(. The issue itself is indeed caused by the Xorg server crashing with SIGBUS, but the root cause of the crash is not at-spi-bus-launcher misbehaving. It shouldn't loop making those repeated requests, so the previous procedure is still valid, although it's not a workaround to the Xorg crash.



                  I discovered that Xorg was using kernel driver i915:



                  paulo:~$ sudo lshw -C video
                  *-display
                  description: VGA compatible controller
                  product: 2nd Generation Core Processor Family Integrated Graphics Controller
                  vendor: Intel Corporation
                  physical id: 2
                  bus info: pci@0000:00:02.0
                  version: 09
                  width: 64 bits
                  clock: 33MHz
                  capabilities: msi pm vga_controller bus_master cap_list rom
                  configuration: driver=i915 latency=0
                  resources: irq:36 memory:f6800000-f6bfffff memory:e0000000-efffffff ioport:f000(size=64) memory:c0000-dffff


                  So I tried another workaround, to force Xorg to use xserver-xorg-video-intel with acceleration method uxa, which is more stable than the default sna.



                  1. Create directory /etc/X11/xorg.conf.d. We can place xorg.conf snippets in this directory, and the Xorg server picks them up when it starts.

                  2. Create file /etc/X11/xorg.conf.d/10-intel.conf, directing Xorg to use its Intel video driver with acceleration method uxa.

                  Here's /etc/X11/xorg.conf.d/10-intel.conf:



                  Section "Device"
                  Identifier "Intel Graphics"
                  Driver "intel"
                  Option "AccelMethod" "uxa"
                  EndSection


                  I have been using this workaround for 1 week and the Xorg server hasn't crashed, so I get the impression that it's the definitive workaround while Xorg isn't fixed.



                  I've opened a bug report against Xorg, which apparently seems to be affecting more users, since it was flagged as a duplicate of another bug, which I didn't detect at first since its title mentions another type of crash.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jun 13 at 12:13









                  Paulo Marcel Coelho Aragão

                  393110




                  393110






















                       

                      draft saved


                      draft discarded


























                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1038649%2fautomatic-logout-when-resuming-from-suspend-on-xubuntu-18-04%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Popular posts from this blog

                      pylint3 and pip3 broken

                      Missing snmpget and snmpwalk

                      How to enroll fingerprints to Ubuntu 17.10 with VFS491