You are not logged in.

#1 2020-03-20 14:14:41

aamayreh
Member
Registered: 2018-08-11
Posts: 16

My Xorg freezes completely

Hello All,

I have a dell precision 5530 2 in 1

I have budgie installed on archlinux. But I'm quite sure this is not related to budgie at all. While working normally, the screen would freeze, only mouse moves, no input/output on the screen. I can still switch ttys. I checked journal and nothing looks out of the ordinary. I checked Xorg.log and found the following

[  4914.323] (II) event3  - Power Button: device removed
[  4914.341] (II) event11 - Video Bus: device removed
[  4914.405] (II) event1  - Power Button: device removed
[  4914.434] (II) event2  - Sleep Button: device removed
[  4914.455] (II) event8  - Integrated_Webcam_HD: Integrate: device removed
[  4914.540] (II) event9  - Integrated_Webcam_HD: Integrate: device removed
[  4914.611] (II) event21 - DLL08AC:01 06CB:7A13 Mouse: device removed
[  4914.678] (II) event22 - DLL08AC:01 06CB:7A13 Touchpad: device removed
[  4914.745] (II) event7  - Intel Virtual Button driver: device removed
[  4914.771] (II) event5  - Intel HID events: device removed
[  4914.798] (II) event6  - Intel HID 5 button array: device removed
[  4914.831] (II) event12 - Dell WMI hotkeys: device removed
[  4914.892] (II) event4  - AT Translated Set 2 keyboard: device removed
[  4914.911] (II) AIGLX: Suspending AIGLX clients for VT switch

My only option at that point is to force shutdown or reboot and lose hours and hours of data.

I've setup my laptop to hibernate and it works pretty much most of the time. Someone told me this is the usual suspend/hibernate sequence I see in the logs?

Great. Except I'm not initiating it in any way!!!

Please, if there's someone who can help out I'd really appreciate it. Prepared to provide any needed logs/files/etc

Thanks

Offline

#2 2020-03-21 22:16:27

xerxes_
Member
Registered: 2018-04-29
Posts: 353

Re: My Xorg freezes completely

So Xorg freeze only after suspend/hibernate? How do you setup Xorg server (how do you start it?) and GPUs (drivers)?

Offline

#3 2020-03-21 22:44:35

aamayreh
Member
Registered: 2018-08-11
Posts: 16

Re: My Xorg freezes completely

No. I don't suspend or hibernate. When Xorg freezes, I find what I pasted inside the Xorg.log file.

It seems something is triggering sleep/hibernate. Not lid close, not power button, not low battery, I don't know what is triggering it.

Offline

#4 2020-03-22 18:36:37

xerxes_
Member
Registered: 2018-04-29
Posts: 353

Offline

#5 2020-04-08 19:45:29

aamayreh
Member
Registered: 2018-08-11
Posts: 16

Re: My Xorg freezes completely

I'm sorry but how is this helping? I have no problem with hibernation on my system, it works fine.

What's not fine is my system hibernating randomly on its own in the midst of work... no, it's not idle when it decides it wants to hibernate.

GUI freezes completely (budgie desktop), I'm only able to switch to another terminal (ctrl-alt-f2), nothing in dmesg and the only thing in Xorg.0.log is what I pasted above (here it is again)

[  4914.323] (II) event3  - Power Button: device removed
[  4914.341] (II) event11 - Video Bus: device removed
[  4914.405] (II) event1  - Power Button: device removed
[  4914.434] (II) event2  - Sleep Button: device removed
[  4914.455] (II) event8  - Integrated_Webcam_HD: Integrate: device removed
[  4914.540] (II) event9  - Integrated_Webcam_HD: Integrate: device removed
[  4914.611] (II) event21 - DLL08AC:01 06CB:7A13 Mouse: device removed
[  4914.678] (II) event22 - DLL08AC:01 06CB:7A13 Touchpad: device removed
[  4914.745] (II) event7  - Intel Virtual Button driver: device removed
[  4914.771] (II) event5  - Intel HID events: device removed
[  4914.798] (II) event6  - Intel HID 5 button array: device removed
[  4914.831] (II) event12 - Dell WMI hotkeys: device removed
[  4914.892] (II) event4  - AT Translated Set 2 keyboard: device removed
[  4914.911] (II) AIGLX: Suspending AIGLX clients for VT switch

Naturally. I want to know what's making my laptop hibernate on its own so I can stop this frustrating behavior.

Last edited by aamayreh (2020-04-12 12:27:56)

Offline

#6 2020-04-08 20:24:52

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 29,258
Website

Re: My Xorg freezes completely

1. Please edit your posts and use code tags.

2. Read your journal.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2020-04-12 12:29:37

aamayreh
Member
Registered: 2018-08-11
Posts: 16

Re: My Xorg freezes completely

I've checked the journal. Nothing.

Is there a specific command you recommend I try immediately after this problem happens?

Offline

#8 2021-02-28 23:23:50

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 789
Website

Re: My Xorg freezes completely

I have the same problem! I'm on an X1 Carbon Nano, so setting up this with arch.

There is nothing in the journal either. Looking into this more today, and will post if I figure anything more out.

Offline

#9 2021-02-28 23:32:49

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 789
Website

Re: My Xorg freezes completely

Feb 28 13:02:40 nina systemd-logind[332]: Lid closed.
Feb 28 13:02:40 nina systemd-logind[332]: Suspending...
Feb 28 13:02:40 nina dbus-daemon[327]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.1' (uid=0 pid=328 comm="/usr/bin/NetworkManager --no-d>
Feb 28 13:02:40 nina NetworkManager[328]: <info>  [1614546160.9431] manager: sleep: sleep requested (sleeping: no  enabled: yes)
Feb 28 13:02:40 nina NetworkManager[328]: <info>  [1614546160.9432] device (p2p-dev-wlp0s20f3): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Feb 28 13:02:40 nina NetworkManager[328]: <info>  [1614546160.9438] manager: NetworkManager state is now ASLEEP
Feb 28 13:02:40 nina NetworkManager[328]: <info>  [1614546160.9440] device (wlp0s20f3): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed')
Feb 28 13:02:40 nina systemd[1]: Starting Network Manager Script Dispatcher Service...
Feb 28 13:02:40 nina dbus-daemon[327]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Feb 28 13:02:40 nina systemd[1]: Started Network Manager Script Dispatcher Service.
Feb 28 13:02:40 nina audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 28 13:02:40 nina kernel: audit: type=1130 audit(1614546160.953:186): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 28 13:02:40 nina kernel: wlp0s20f3: deauthenticating from 12:f6:20:64:3a:36 by local choice (Reason: 3=DEAUTH_LEAVING)
Feb 28 13:02:40 nina wpa_supplicant[449]: wlp0s20f3: CTRL-EVENT-DISCONNECTED bssid=12:f6:20:64:3a:36 reason=3 locally_generated=1
Feb 28 13:02:40 nina NetworkManager[328]: <info>  [1614546160.9676] device (wlp0s20f3): supplicant interface state: completed -> disconnected
Feb 28 13:02:40 nina NetworkManager[328]: <info>  [1614546160.9678] device (wlp0s20f3): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'managed')
Feb 28 13:02:41 nina NetworkManager[328]: <info>  [1614546161.0078] dhcp4 (wlp0s20f3): canceled DHCP transaction
Feb 28 13:02:41 nina NetworkManager[328]: <info>  [1614546161.0079] dhcp4 (wlp0s20f3): state changed bound -> done
Feb 28 13:02:41 nina NetworkManager[328]: <info>  [1614546161.0083] dhcp6 (wlp0s20f3): canceled DHCP transaction
Feb 28 13:02:41 nina NetworkManager[328]: <info>  [1614546161.0084] dhcp6 (wlp0s20f3): state changed bound -> done
Feb 28 13:02:41 nina NetworkManager[328]: <info>  [1614546161.0265] device (wlp0s20f3): set-hw-addr: set MAC address to 5A:E5:92:4F:C1:F0 (scanning)
Feb 28 13:02:41 nina nscd[331]: 331 monitored file `/etc/resolv.conf` was moved into place, adding watch
Feb 28 13:02:41 nina nscd[331]: 331 monitored file `/etc/resolv.conf` was moved into place, adding watch
Feb 28 13:02:41 nina NetworkManager[328]: <info>  [1614546161.2433] device (wlp0s20f3): supplicant interface state: disconnected -> interface_disabled
Feb 28 13:02:41 nina NetworkManager[328]: <info>  [1614546161.2434] device (wlp0s20f3): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Feb 28 13:02:41 nina wpa_supplicant[449]: wlp0s20f3: CTRL-EVENT-SCAN-FAILED ret=-100
Feb 28 13:02:41 nina NetworkManager[328]: <info>  [1614546161.2595] device (wlp0s20f3): set-hw-addr: reset MAC address to E8:84:A5:FF:18:33 (unmanage)
Feb 28 13:02:41 nina systemd[1]: Reached target Sleep.
Feb 28 13:02:41 nina systemd[1]: Starting Suspend...
Feb 28 13:02:41 nina systemd-sleep[10158]: Suspending system...
Feb 28 14:34:20 nina kernel: PM: suspend entry (s2idle)
Feb 28 14:34:20 nina kernel: Filesystems sync: 0.001 seconds
Feb 28 14:34:20 nina kernel: Freezing user space processes ... (elapsed 0.006 seconds) done.
Feb 28 14:34:20 nina kernel: OOM killer disabled.
Feb 28 14:34:20 nina kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Feb 28 14:34:20 nina kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Feb 28 14:34:20 nina kernel: ACPI: EC: interrupt blocked
Feb 28 14:34:20 nina kernel: ACPI: EC: interrupt unblocked
Feb 28 14:34:20 nina kernel: nvme nvme0: 8/0/0 default/read/poll queues
Feb 28 14:34:20 nina kernel: OOM killer enabled.
Feb 28 14:34:20 nina kernel: Restarting tasks ... 
Feb 28 14:34:20 nina kernel: mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])
Feb 28 14:34:20 nina systemd-logind[332]: Lid opened.
Feb 28 14:34:20 nina kernel: done.
Feb 28 14:34:20 nina wpa_supplicant[449]: nl80211: deinit ifname=wlp0s20f3 disabled_11b_rates=0
Feb 28 14:34:20 nina systemd-sleep[10158]: System resumed.
Feb 28 14:34:20 nina systemd[1]: systemd-suspend.service: Succeeded.
Feb 28 14:34:20 nina kernel: PM: suspend exit
Feb 28 14:34:20 nina systemd[1]: Finished Suspend.
Feb 28 14:34:20 nina audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 28 14:34:20 nina audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 28 14:34:20 nina systemd[1]: Stopped target Sleep.
Feb 28 14:34:20 nina systemd[1]: Reached target Suspend.
Feb 28 14:34:20 nina systemd[1]: Stopped target Suspend.
Feb 28 14:34:20 nina systemd-logind[332]: Operation 'sleep' finished.
Feb 28 14:34:20 nina NetworkManager[328]: <info>  [1614551660.1328] manager: sleep: wake requested (sleeping: yes  enabled: yes)
Feb 28 14:34:20 nina NetworkManager[328]: <info>  [1614551660.1328] device (wlp0s20f3): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Feb 28 14:34:20 nina kernel: audit: type=1130 audit(1614551660.130:187): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 28 14:34:20 nina kernel: audit: type=1131 audit(1614551660.130:188): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Feb 28 14:34:20 nina NetworkManager[328]: <info>  [1614551660.1486] device (wlp0s20f3): set-hw-addr: set MAC address to 06:AC:83:7E:94:A1 (scanning)
Feb 28 14:34:20 nina NetworkManager[328]: <info>  [1614551660.3518] device (p2p-dev-wlp0s20f3): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Feb 28 14:34:20 nina NetworkManager[328]: <info>  [1614551660.3529] manager: NetworkManager state is now CONNECTED_LOCAL
Feb 28 14:34:20 nina wpa_supplicant[449]: nl80211: kernel reports: Attribute failed policy validation
Feb 28 14:34:20 nina wpa_supplicant[449]: Failed to create interface p2p-dev-wlp0s20f3: -22 (Invalid argument)
Feb 28 14:34:20 nina wpa_supplicant[449]: nl80211: Failed to create a P2P Device interface p2p-dev-wlp0s20f3
Feb 28 14:34:20 nina wpa_supplicant[449]: P2P: Failed to enable P2P Device interface

It seems like my system is attempting to suspend *after* I open the lid. So something is not waiting long enough? Investigating my systemd configuration files. Because this is a new machine I haven't really changed anything yet.

Offline

#10 2021-03-15 00:02:57

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 789
Website

Re: My Xorg freezes completely

Ok I figured out my problem for future visitors:

I forgot that archlinux launches it's own dbus session for each user already with systemd-login!

I had all the same symptoms as https://chrisdown.name/2016/10/18/x-fre … pause.html, basically got the following message in my .local/share/xorg/Xorg.0.log:

(II) systemd-logind: got pause for 13:64

This was printed many different ways with resume as well. I was still launching my window manager with:

exec dbus-launch --exit-with-session notion

Do not do this on any recent arch setup with dbus! Archlinux runs dbus for you with logind, so now you'll have two dbus sessions which is not what you want. You can confirm this by looking at:

pgrep -ax dbus-daemon -U <username> | grep -- --session

This should only print one entry. If you have the same bug that I have, then it will print two! Fix this by just putting:

exec notion # or whatever your window manager is

and you'll be good!

Offline

Board footer

Powered by FluxBB