Automatic logout when resuming from suspend on Xubuntu 18.04
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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.
xubuntu 18.04 logout automatic systemd-logind
add a comment |Â
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.
xubuntu 18.04 logout automatic systemd-logind
I'm seeing a seemingly similar symptom, of my session having ended after resuming from suspend. I see the sameXIO: 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
add a comment |Â
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.
xubuntu 18.04 logout automatic systemd-logind
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.
xubuntu 18.04 logout automatic systemd-logind
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 sameXIO: 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
add a comment |Â
I'm seeing a seemingly similar symptom, of my session having ended after resuming from suspend. I see the sameXIO: 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
add a comment |Â
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
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
add a comment |Â
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:
- Uninstall package
at-spi2-core
- 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.
add a comment |Â
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.
- 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.
- 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.
add a comment |Â
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
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
add a comment |Â
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
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
add a comment |Â
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
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
answered Jun 27 at 18:07
![](https://i.stack.imgur.com/CNmjQ.jpg?s=32&g=1)
![](https://i.stack.imgur.com/CNmjQ.jpg?s=32&g=1)
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
add a comment |Â
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
add a comment |Â
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:
- Uninstall package
at-spi2-core
- 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.
add a comment |Â
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:
- Uninstall package
at-spi2-core
- 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.
add a comment |Â
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:
- Uninstall package
at-spi2-core
- 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.
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:
- Uninstall package
at-spi2-core
- 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.
edited Jun 6 at 12:50
answered May 30 at 9:58
Paulo Marcel Coelho Aragão
393110
393110
add a comment |Â
add a comment |Â
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.
- 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.
- 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.
add a comment |Â
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.
- 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.
- 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.
add a comment |Â
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.
- 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.
- 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.
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.
- 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.
- 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.
answered Jun 13 at 12:13
Paulo Marcel Coelho Aragão
393110
393110
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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