Bug | Unstopping Logging file when sleeping/locking screen
LeeLizuoLiu opened this issue · 13 comments
That is very concerning! I'm not sure how the process could run and writing could happen whilst the laptop is asleep. We will deal with this.
- Are you sure the laptop is actually asleep? Can you ping/ssh into it?
- Do all the repeated logs have the same timestamp?
It would be great if you could post your cfg.yaml as well as the .log up until it starts thrashing.
Please also include .log after waking up.
Hi, Thank you for your quick response. I just did a few test, it seems it is because that I use the command swaymsg "output * dpms off"
before sleeping, I suspect it causes the issue.
As for your second question, the repeated logs have different timestamps.
If you could help me fix it, I will really appreciate it.
Hi, Thank you for your quick response. I just did a few test, it seems it is because that I use the command
swaymsg "output * dpms off"
before sleeping, I suspect it causes the issue.
Ah I see. I think I've seen something like this before: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/2325
Take a look at your sway logs. There may be a constant stream of pageflip/commit fail messages. They indicate that the monitor is in an undefined state.
Try setting wiki: Unusable Displays Following MODE WLR_DRM_NO_MODIFIERS=1
For me to help you further I'm going to need:
- log head and tail as requested #167 (comment)
- is your laptop really asleep?
Hi, Attached is the log detail, I removed the repeated records from 48s-59s
I [09:38:37] way-displays version 1.11.0
I [09:38:37]
I [09:38:37] Found configuration file: /home/leeliu/.config/way-displays/cfg.yaml
I [09:38:37]
I [09:38:37] Active configuration:
I [09:38:37] Arrange in a ROW aligned at the TOP
I [09:38:37] Order:
I [09:38:37] eDP-1
I [09:38:37] HDMI-A-2
I [09:38:37] Scaling: OFF
I [09:38:37] Auto scale: OFF (min: 1.000)
I [09:38:37] Mode:
I [09:38:37] HDMI-A-1: 1920x1080@60Hz
I [09:38:38]
I [09:38:38] Monitoring lid device: /dev/input/event0
I [09:38:38]
I [09:38:38] Lid open
I [09:38:38]
I [09:38:38] HDMI-A-2 Arrived:
I [09:38:38] info:
I [09:38:38] name: 'HDMI-A-2'
I [09:38:38] make: 'Acer Technologies'
I [09:38:38] model: 'XV340CK P'
I [09:38:38] serial: '3338005CE3E00'
I [09:38:38] desc: 'Acer Technologies XV340CK P 3338005CE3E00 (HDMI-A-2)'
I [09:38:38] width: 800mm
I [09:38:38] height: 330mm
I [09:38:38] mode: 3440 x 1440 @ 30 Hz 29,968 mHz
I [09:38:38] mode: 2048 x 1152 @ 60 Hz 60,000 mHz
I [09:38:38] mode: 1920 x 1200 @ 60 Hz 59,950 mHz
I [09:38:38] mode: 1920 x 1080 @ 120 Hz 120,000 mHz 119,880 mHz
I [09:38:38] mode: 1920 x 1080 @ 60 Hz 60,000 mHz 60,000 mHz 59,940 mHz
I [09:38:38] mode: 1920 x 1080 @ 50 Hz 50,000 mHz
I [09:38:38] mode: 1720 x 1440 @ 60 Hz 59,980 mHz
I [09:38:38] mode: 1680 x 1050 @ 60 Hz 59,883 mHz
I [09:38:38] mode: 1600 x 1200 @ 60 Hz 60,000 mHz
I [09:38:38] mode: 1600 x 900 @ 60 Hz 60,000 mHz
I [09:38:38] mode: 1280 x 1024 @ 75 Hz 75,025 mHz
I [09:38:38] mode: 1280 x 1024 @ 60 Hz 60,020 mHz
I [09:38:38] mode: 1280 x 800 @ 60 Hz 59,910 mHz
I [09:38:38] mode: 1280 x 720 @ 60 Hz 60,000 mHz 59,940 mHz
I [09:38:38] mode: 1280 x 720 @ 50 Hz 50,000 mHz
I [09:38:38] mode: 1152 x 864 @ 75 Hz 75,000 mHz
I [09:38:38] mode: 1024 x 768 @ 75 Hz 75,029 mHz
I [09:38:38] mode: 1024 x 768 @ 70 Hz 70,069 mHz
I [09:38:38] mode: 1024 x 768 @ 60 Hz 60,004 mHz
I [09:38:38] mode: 832 x 624 @ 75 Hz 74,551 mHz
I [09:38:38] mode: 800 x 600 @ 75 Hz 75,000 mHz
I [09:38:38] mode: 800 x 600 @ 72 Hz 72,188 mHz
I [09:38:38] mode: 800 x 600 @ 60 Hz 60,317 mHz
I [09:38:38] mode: 800 x 600 @ 56 Hz 56,250 mHz
I [09:38:38] mode: 720 x 576 @ 50 Hz 50,000 mHz 50,000 mHz
I [09:38:38] mode: 720 x 480 @ 60 Hz 60,000 mHz 60,000 mHz 59,940 mHz 59,940 mHz
I [09:38:38] mode: 720 x 400 @ 70 Hz 70,082 mHz
I [09:38:38] mode: 640 x 480 @ 75 Hz 75,000 mHz
I [09:38:38] mode: 640 x 480 @ 73 Hz 72,809 mHz
I [09:38:38] mode: 640 x 480 @ 67 Hz 66,667 mHz
I [09:38:38] mode: 640 x 480 @ 60 Hz 60,000 mHz 59,940 mHz 59,940 mHz
I [09:38:38] current:
I [09:38:38] scale: 1.000 (1.146)
I [09:38:38] size: 3440x1440
I [09:38:38] position: 2160,0
I [09:38:38] mode: 3440x1440@30Hz (29,968mHz)
I [09:38:38] VRR: off
I [09:38:38]
I [09:38:38] eDP-1 Arrived:
I [09:38:38] info:
I [09:38:38] name: 'eDP-1'
I [09:38:38] make: 'Chimei Innolux Corporation'
I [09:38:38] model: 'P140ZKA-BZ1'
I [09:38:38] desc: 'Chimei Innolux Corporation P140ZKA-BZ1 (eDP-1)'
I [09:38:38] width: 300mm
I [09:38:38] height: 200mm
I [09:38:38] dpi: 182.88 @ 2160x1440
I [09:38:38] mode: 2160 x 1440 @ 60 Hz 60,001 mHz (preferred)
I [09:38:38] current:
I [09:38:38] scale: 1.000 (1.905)
I [09:38:38] size: 2160x1440
I [09:38:38] position: 0,0
I [09:38:38] mode: 2160x1440@60Hz (60,001mHz) (preferred)
I [09:38:38] VRR: off
I [09:38:38]
I [09:38:38] HDMI-A-2: No preferred mode, falling back to maximum available
I [09:38:46]
I [09:38:46] HDMI-A-2 Departed:
I [09:38:46] name: 'HDMI-A-2'
I [09:38:46] desc: 'Acer Technologies XV340CK P 3338005CE3E00 (HDMI-A-2)'
I [09:38:47]
I [09:38:47] HDMI-A-2 Arrived:
I [09:38:47] info:
I [09:38:47] name: 'HDMI-A-2'
I [09:38:47] make: 'Acer Technologies'
I [09:38:47] model: 'XV340CK P'
I [09:38:47] serial: '3338005CE3E00'
I [09:38:47] desc: 'Acer Technologies XV340CK P 3338005CE3E00 (HDMI-A-2)'
I [09:38:47] width: 800mm
I [09:38:47] height: 330mm
I [09:38:47] mode: 3440 x 1440 @ 30 Hz 29,968 mHz
I [09:38:47] mode: 2048 x 1152 @ 60 Hz 60,000 mHz
I [09:38:47] mode: 1920 x 1200 @ 60 Hz 59,950 mHz
I [09:38:47] mode: 1920 x 1080 @ 120 Hz 120,000 mHz 119,880 mHz
I [09:38:47] mode: 1920 x 1080 @ 60 Hz 60,000 mHz 60,000 mHz 59,940 mHz
I [09:38:47] mode: 1920 x 1080 @ 50 Hz 50,000 mHz
I [09:38:47] mode: 1720 x 1440 @ 60 Hz 59,980 mHz
I [09:38:47] mode: 1680 x 1050 @ 60 Hz 59,883 mHz
I [09:38:47] mode: 1600 x 1200 @ 60 Hz 60,000 mHz
I [09:38:47] mode: 1600 x 900 @ 60 Hz 60,000 mHz
I [09:38:47] mode: 1280 x 1024 @ 75 Hz 75,025 mHz
I [09:38:47] mode: 1280 x 1024 @ 60 Hz 60,020 mHz
I [09:38:47] mode: 1280 x 800 @ 60 Hz 59,910 mHz
I [09:38:47] mode: 1280 x 720 @ 60 Hz 60,000 mHz 59,940 mHz
I [09:38:47] mode: 1280 x 720 @ 50 Hz 50,000 mHz
I [09:38:47] mode: 1152 x 864 @ 75 Hz 75,000 mHz
I [09:38:47] mode: 1024 x 768 @ 75 Hz 75,029 mHz
I [09:38:47] mode: 1024 x 768 @ 70 Hz 70,069 mHz
I [09:38:47] mode: 1024 x 768 @ 60 Hz 60,004 mHz
I [09:38:47] mode: 832 x 624 @ 75 Hz 74,551 mHz
I [09:38:47] mode: 800 x 600 @ 75 Hz 75,000 mHz
I [09:38:47] mode: 800 x 600 @ 72 Hz 72,188 mHz
I [09:38:47] mode: 800 x 600 @ 60 Hz 60,317 mHz
I [09:38:47] mode: 800 x 600 @ 56 Hz 56,250 mHz
I [09:38:47] mode: 720 x 576 @ 50 Hz 50,000 mHz 50,000 mHz
I [09:38:47] mode: 720 x 480 @ 60 Hz 60,000 mHz 60,000 mHz 59,940 mHz 59,940 mHz
I [09:38:47] mode: 720 x 400 @ 70 Hz 70,082 mHz
I [09:38:47] mode: 640 x 480 @ 75 Hz 75,000 mHz
I [09:38:47] mode: 640 x 480 @ 73 Hz 72,809 mHz
I [09:38:47] mode: 640 x 480 @ 67 Hz 66,667 mHz
I [09:38:47] mode: 640 x 480 @ 60 Hz 60,000 mHz 59,940 mHz 59,940 mHz
I [09:38:47] current:
I [09:38:47] scale: 1.000 (1.146)
I [09:38:47] position: 2160,0
I [09:38:47] mode: 3440x1440@30Hz (29,968mHz)
I [09:38:47] VRR: off
I [09:38:47]
I [09:38:47] HDMI-A-2: No preferred mode, falling back to maximum available
I [09:39:26]
I [09:39:26] HDMI-A-2 Departed:
I [09:39:26] name: 'HDMI-A-2'
I [09:39:26] desc: 'Acer Technologies XV340CK P 3338005CE3E00 (HDMI-A-2)'
I [09:39:26]
I [09:39:26] HDMI-A-2 Arrived:
I [09:39:26] info:
I [09:39:26] name: 'HDMI-A-2'
I [09:39:26] make: 'Acer Technologies'
I [09:39:26] model: 'XV340CK P'
I [09:39:26] serial: '3338005CE3E00'
I [09:39:26] desc: 'Acer Technologies XV340CK P 3338005CE3E00 (HDMI-A-2)'
I [09:39:26] width: 800mm
I [09:39:26] height: 330mm
I [09:39:26] mode: 3440 x 1440 @ 30 Hz 29,968 mHz
I [09:39:26] mode: 2048 x 1152 @ 60 Hz 60,000 mHz
I [09:39:26] mode: 1920 x 1200 @ 60 Hz 59,950 mHz
I [09:39:26] mode: 1920 x 1080 @ 120 Hz 120,000 mHz 119,880 mHz
I [09:39:26] mode: 1920 x 1080 @ 60 Hz 60,000 mHz 60,000 mHz 59,940 mHz
I [09:39:26] mode: 1920 x 1080 @ 50 Hz 50,000 mHz
I [09:39:26] mode: 1720 x 1440 @ 60 Hz 59,980 mHz
I [09:39:26] mode: 1680 x 1050 @ 60 Hz 59,883 mHz
I [09:39:26] mode: 1600 x 1200 @ 60 Hz 60,000 mHz
I [09:39:26] mode: 1600 x 900 @ 60 Hz 60,000 mHz
I [09:39:26] mode: 1280 x 1024 @ 75 Hz 75,025 mHz
I [09:39:26] mode: 1280 x 1024 @ 60 Hz 60,020 mHz
I [09:39:26] mode: 1280 x 800 @ 60 Hz 59,910 mHz
I [09:39:26] mode: 1280 x 720 @ 60 Hz 60,000 mHz 59,940 mHz
I [09:39:26] mode: 1280 x 720 @ 50 Hz 50,000 mHz
I [09:39:26] mode: 1152 x 864 @ 75 Hz 75,000 mHz
I [09:39:26] mode: 1024 x 768 @ 75 Hz 75,029 mHz
I [09:39:26] mode: 1024 x 768 @ 70 Hz 70,069 mHz
I [09:39:26] mode: 1024 x 768 @ 60 Hz 60,004 mHz
I [09:39:26] mode: 832 x 624 @ 75 Hz 74,551 mHz
I [09:39:26] mode: 800 x 600 @ 75 Hz 75,000 mHz
I [09:39:26] mode: 800 x 600 @ 72 Hz 72,188 mHz
I [09:39:26] mode: 800 x 600 @ 60 Hz 60,317 mHz
I [09:39:26] mode: 800 x 600 @ 56 Hz 56,250 mHz
I [09:39:26] mode: 720 x 576 @ 50 Hz 50,000 mHz 50,000 mHz
I [09:39:26] mode: 720 x 480 @ 60 Hz 60,000 mHz 60,000 mHz 59,940 mHz 59,940 mHz
I [09:39:26] mode: 720 x 400 @ 70 Hz 70,082 mHz
I [09:39:26] mode: 640 x 480 @ 75 Hz 75,000 mHz
I [09:39:26] mode: 640 x 480 @ 73 Hz 72,809 mHz
I [09:39:26] mode: 640 x 480 @ 67 Hz 66,667 mHz
I [09:39:26] mode: 640 x 480 @ 60 Hz 60,000 mHz 59,940 mHz 59,940 mHz
I [09:39:26] current:
I [09:39:26] scale: 1.000 (1.146)
I [09:39:26] position: 2160,0
I [09:39:26] mode: 3440x1440@30Hz (29,968mHz)
I [09:39:26] VRR: off
I [09:39:26]
I [09:39:26] HDMI-A-2: No preferred mode, falling back to maximum available
I [09:40:47]
I [09:40:47] HDMI-A-2 Departed:
I [09:40:47] name: 'HDMI-A-2'
I [09:40:47] desc: 'Acer Technologies XV340CK P 3338005CE3E00 (HDMI-A-2)'
I [09:40:48]
I [09:40:48] HDMI-A-2 Arrived:
I [09:40:48] info:
I [09:40:48] name: 'HDMI-A-2'
I [09:40:48] make: 'Acer Technologies'
I [09:40:48] model: 'XV340CK P'
I [09:40:48] serial: '3338005CE3E00'
I [09:40:48] desc: 'Acer Technologies XV340CK P 3338005CE3E00 (HDMI-A-2)'
I [09:40:48] width: 800mm
I [09:40:48] height: 330mm
I [09:40:48] mode: 3440 x 1440 @ 30 Hz 29,968 mHz
I [09:40:48] mode: 2048 x 1152 @ 60 Hz 60,000 mHz
I [09:40:48] mode: 1920 x 1200 @ 60 Hz 59,950 mHz
I [09:40:48] mode: 1920 x 1080 @ 120 Hz 120,000 mHz 119,880 mHz
I [09:40:48] mode: 1920 x 1080 @ 60 Hz 60,000 mHz 60,000 mHz 59,940 mHz
I [09:40:48] mode: 1920 x 1080 @ 50 Hz 50,000 mHz
I [09:40:48] mode: 1720 x 1440 @ 60 Hz 59,980 mHz
I [09:40:48] mode: 1680 x 1050 @ 60 Hz 59,883 mHz
I [09:40:48] mode: 1600 x 1200 @ 60 Hz 60,000 mHz
I [09:40:48] mode: 1600 x 900 @ 60 Hz 60,000 mHz
I [09:40:48] mode: 1280 x 1024 @ 75 Hz 75,025 mHz
I [09:40:48] mode: 1280 x 1024 @ 60 Hz 60,020 mHz
I [09:40:48] mode: 1280 x 800 @ 60 Hz 59,910 mHz
I [09:40:48] mode: 1280 x 720 @ 60 Hz 60,000 mHz 59,940 mHz
I [09:40:48] mode: 1280 x 720 @ 50 Hz 50,000 mHz
I [09:40:48] mode: 1152 x 864 @ 75 Hz 75,000 mHz
I [09:40:48] mode: 1024 x 768 @ 75 Hz 75,029 mHz
I [09:40:48] mode: 1024 x 768 @ 70 Hz 70,069 mHz
I [09:40:48] mode: 1024 x 768 @ 60 Hz 60,004 mHz
I [09:40:48] mode: 832 x 624 @ 75 Hz 74,551 mHz
I [09:40:48] mode: 800 x 600 @ 75 Hz 75,000 mHz
I [09:40:48] mode: 800 x 600 @ 72 Hz 72,188 mHz
I [09:40:48] mode: 800 x 600 @ 60 Hz 60,317 mHz
I [09:40:48] mode: 800 x 600 @ 56 Hz 56,250 mHz
I [09:40:48] mode: 720 x 576 @ 50 Hz 50,000 mHz 50,000 mHz
I [09:40:48] mode: 720 x 480 @ 60 Hz 60,000 mHz 60,000 mHz 59,940 mHz 59,940 mHz
I [09:40:48] mode: 720 x 400 @ 70 Hz 70,082 mHz
I [09:40:48] mode: 640 x 480 @ 75 Hz 75,000 mHz
I [09:40:48] mode: 640 x 480 @ 73 Hz 72,809 mHz
I [09:40:48] mode: 640 x 480 @ 67 Hz 66,667 mHz
I [09:40:48] mode: 640 x 480 @ 60 Hz 60,000 mHz 59,940 mHz 59,940 mHz
I [09:40:48] mode: 0 x 0 @ 0 Hz 0,000 mHz
I [09:40:48] current:
I [09:40:48] (no mode)
I [09:40:48] VRR: off
I [09:40:48] (disabled)
I [09:40:48]
I [09:40:48] HDMI-A-2: No preferred mode, falling back to maximum available
I [09:40:48]
I [09:40:48] HDMI-A-2 Changing:
I [09:40:48] from:
I [09:40:48] (no mode)
I [09:40:48] VRR: off
I [09:40:48] (disabled)
I [09:40:48] to:
I [09:40:48] mode: 3440x1440@30Hz (29,968mHz)
I [09:40:48] (enabled)
I [09:40:48]
I [09:40:48] Changes successful
I [09:40:48]
I [09:40:48] eDP-1 Changing:
I [09:40:48] from:
I [09:40:48] scale: 1.000 (1.905)
I [09:40:48] size: 2160x1440
I [09:40:48] position: 2160,0
I [09:40:48] mode: 2160x1440@60Hz (60,001mHz) (preferred)
I [09:40:48] VRR: off
I [09:40:48] to:
I [09:40:48] position: 0,0
I [09:40:48]
I [09:40:48] HDMI-A-2 Changing:
I [09:40:48] from:
I [09:40:48] mode: 3440x1440@30Hz (29,968mHz)
I [09:40:48] VRR: off
I [09:40:48] (disabled)
I [09:40:48] to:
I [09:40:48] scale: 1.000
I [09:40:48] position: 2160,0
I [09:40:48] transform: none
I [09:40:48] (enabled)
I [09:40:48]
I [09:40:48] Changes successful
------------------- Repeating -----------------------------------------------------------
I [09:40:59] mode: 3440x1440@30Hz (29,968mHz)
I [09:40:59] VRR: off
I [09:40:59] (disabled)
I [09:40:59] to:
I [09:40:59] scale: 1.000
I [09:40:59] position: 2160,0
I [09:40:59] transform: none
I [09:40:59] (enabled)
W [09:40:59]
W [09:40:59] WARNING: Changes cancelled, retrying
I [09:41:02]
I [09:41:02] HDMI-A-2 Departed:
I [09:41:02] name: 'HDMI-A-2'
I [09:41:02] desc: 'Acer Technologies XV340CK P 3338005CE3E00 (HDMI-A-2)'
I [09:41:03]
I [09:41:03] HDMI-A-2 Arrived:
I [09:41:03] info:
I [09:41:03] name: 'HDMI-A-2'
I [09:41:03] make: 'Acer Technologies'
I [09:41:03] model: 'XV340CK P'
I [09:41:03] serial: '3338005CE3E00'
I [09:41:03] desc: 'Acer Technologies XV340CK P 3338005CE3E00 (HDMI-A-2)'
I [09:41:03] width: 800mm
I [09:41:03] height: 330mm
I [09:41:03] mode: 3440 x 1440 @ 30 Hz 29,968 mHz
I [09:41:03] mode: 2048 x 1152 @ 60 Hz 60,000 mHz
I [09:41:03] mode: 1920 x 1200 @ 60 Hz 59,950 mHz
I [09:41:03] mode: 1920 x 1080 @ 120 Hz 120,000 mHz 119,880 mHz
I [09:41:03] mode: 1920 x 1080 @ 60 Hz 60,000 mHz 60,000 mHz 59,940 mHz
I [09:41:03] mode: 1920 x 1080 @ 50 Hz 50,000 mHz
I [09:41:03] mode: 1720 x 1440 @ 60 Hz 59,980 mHz
I [09:41:03] mode: 1680 x 1050 @ 60 Hz 59,883 mHz
I [09:41:03] mode: 1600 x 1200 @ 60 Hz 60,000 mHz
I [09:41:03] mode: 1600 x 900 @ 60 Hz 60,000 mHz
I [09:41:03] mode: 1280 x 1024 @ 75 Hz 75,025 mHz
I [09:41:03] mode: 1280 x 1024 @ 60 Hz 60,020 mHz
I [09:41:03] mode: 1280 x 800 @ 60 Hz 59,910 mHz
I [09:41:03] mode: 1280 x 720 @ 60 Hz 60,000 mHz 59,940 mHz
I [09:41:03] mode: 1280 x 720 @ 50 Hz 50,000 mHz
I [09:41:03] mode: 1152 x 864 @ 75 Hz 75,000 mHz
I [09:41:03] mode: 1024 x 768 @ 75 Hz 75,029 mHz
I [09:41:03] mode: 1024 x 768 @ 70 Hz 70,069 mHz
I [09:41:03] mode: 1024 x 768 @ 60 Hz 60,004 mHz
I [09:41:03] mode: 832 x 624 @ 75 Hz 74,551 mHz
I [09:41:03] mode: 800 x 600 @ 75 Hz 75,000 mHz
I [09:41:03] mode: 800 x 600 @ 72 Hz 72,188 mHz
I [09:41:03] mode: 800 x 600 @ 60 Hz 60,317 mHz
I [09:41:03] mode: 800 x 600 @ 56 Hz 56,250 mHz
I [09:41:03] mode: 720 x 576 @ 50 Hz 50,000 mHz 50,000 mHz
I [09:41:03] mode: 720 x 480 @ 60 Hz 60,000 mHz 60,000 mHz 59,940 mHz 59,940 mHz
I [09:41:03] mode: 720 x 400 @ 70 Hz 70,082 mHz
I [09:41:03] mode: 640 x 480 @ 75 Hz 75,000 mHz
I [09:41:03] mode: 640 x 480 @ 73 Hz 72,809 mHz
I [09:41:03] mode: 640 x 480 @ 67 Hz 66,667 mHz
I [09:41:03] mode: 640 x 480 @ 60 Hz 60,000 mHz 59,940 mHz 59,940 mHz
I [09:41:03] current:
I [09:41:03] scale: 1.000 (1.146)
I [09:41:03] position: 2160,0
I [09:41:03] mode: 3440x1440@30Hz (29,968mHz)
I [09:41:03] VRR: off
I [09:41:03]
I [09:41:03] HDMI-A-2: No preferred mode, falling back to maximum available
As for the second question, I think it is just turn the screen off.
As for the second question, I think it is just turn the screen off.
That's good news - makes our diagnosis easier.
HDMI-A-2: No preferred mode, falling back to maximum available
That's a bad sign. It looks like (cut off) it might be trying all modes and failing them all.
I've seen that on a laptop with an nvidia GPU failing to pass through to intel, with some nonstandard nvidia module options set. Sway/wlroots logs confirmed it with DRM setting failures.
What is your laptop make/model?
Options, easiest first:
In all cases, please observe and collect your sway logs. They'll indicate problems that won't be reported to way-displays.
- Try a conservative mode for the HDMI monitor, say,
MODE:
- NAME_DESC: XV340CK
WIDTH: 1920
HEIGHT: 1080
HZ: 60
- Try WLR_DRM_NO_MODIFIERS=1
- Try WLR_DRM_NO_ATOMIC
- Post
sudo hwinfo > hwinfo.log
- that will show us kernel params as well as detailed hardware info.
Hi, thank you! my make/model is Huawei/Matebook14. I believe I'm in the pure cpu mode, the Nvidia GPU is deactivated. I will try the options you mentioned.
hwinfo
seems to generate 10000+ lines log file, I used lspci
then.
00:00.0 Host bridge: Intel Corporation Coffee Lake HOST and DRAM Controller (rev 0c)
00:02.0 VGA compatible controller: Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620] (rev 02)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 0c)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Cannon Point-LP Thermal Controller (rev 30)
00:14.0 USB controller: Intel Corporation Cannon Point-LP USB 3.1 xHCI Controller (rev 30)
00:14.2 RAM memory: Intel Corporation Cannon Point-LP Shared SRAM (rev 30)
00:14.3 Network controller: Intel Corporation Cannon Point-LP CNVi [Wireless-AC] (rev 30)
00:15.0 Serial bus controller: Intel Corporation Cannon Point-LP Serial IO I2C Controller #0 (rev 30)
00:15.1 Serial bus controller: Intel Corporation Cannon Point-LP Serial IO I2C Controller #1 (rev 30)
00:16.0 Communication controller: Intel Corporation Cannon Point-LP MEI Controller #1 (rev 30)
00:1c.0 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port #5 (rev f0)
00:1d.0 PCI bridge: Intel Corporation Cannon Point-LP PCI Express Root Port #9 (rev f0)
00:1e.0 Communication controller: Intel Corporation Cannon Point-LP Serial IO UART Controller #2 (rev 30)
00:1e.3 Serial bus controller: Intel Corporation Cannon Point-LP Serial IO SPI Controller (rev 30)
00:1f.0 ISA bridge: Intel Corporation Cannon Point-LP LPC Controller (rev 30)
00:1f.3 Audio device: Intel Corporation Cannon Point-LP High Definition Audio Controller (rev 30)
00:1f.5 Serial bus controller: Intel Corporation Cannon Point-LP SPI Controller (rev 30)
01:00.0 3D controller: NVIDIA Corporation GP108M [GeForce MX250] (rev a1)
02:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983
- sway.log with conservative mode
GNOME_KEYRING_CONTROL=/run/user/1000/keyring
[2024-05-04 12:30:03.281] [info] Using configuration file /home/leeliu/.config/waybar/config
[2024-05-04 12:30:03.398] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
[2024-05-04 12:30:03.399] [info] Using CSS file /home/leeliu/.config/waybar/style.css
[2024-05-04 12:30:03.408] [warning] Mapping is not an object
[2024-05-04 12:30:03.613] [info] Bar configured (width: 2160, height: 24) for output: eDP-1
[2024-05-04 12:30:12.572] [warning] Mapping is not an object
[2024-05-04 12:30:12.694] [info] Bar configured (width: 3440, height: 24) for output: HDMI-A-2
[2024-05-04 12:30:12.694] [error] Item '': No icon name or pixmap given.
[2024-05-04 12:30:12.703] [error] Item '': No icon name or pixmap given.
[2024-05-04 12:30:12.704] [error] Item '': No icon name or pixmap given.
[2024-05-04 12:30:15.080] [info] Bar removed from output: HDMI-A-2
[2024-05-04 12:30:15.812] [warning] Mapping is not an object
[2024-05-04 12:30:15.923] [info] Bar configured (width: 3440, height: 24) for output: HDMI-A-2
[2024-05-04 12:37:06.361] [info] Bar configured (width: 1920, height: 24) for output: HDMI-A-2
[
{
"success": true
}
]
[2024-05-04 12:37:53.198] [info] Bar removed from output: HDMI-A-2
[
{
"success": true
}
]
[2024-05-04 12:38:08.554] [warning] Mapping is not an object
[2024-05-04 12:38:08.671] [info] Bar configured (width: 3440, height: 24) for output: HDMI-A-2
[2024-05-04 12:38:11.434] [info] Bar removed from output: HDMI-A-2
[2024-05-04 12:38:12.120] [warning] Mapping is not an object
[2024-05-04 12:38:12.402] [info] Bar configured (width: 1920, height: 24) for output: HDMI-A-2
[
{
"success": true
}
]
[
{
"success": true
}
]
[2024-05-04 12:39:48.082] [info] Bar removed from output: HDMI-A-2
[2024-05-04 12:39:48.782] [warning] Mapping is not an object
[2024-05-04 12:39:48.901] [info] Bar configured (width: 1920, height: 24) for output: HDMI-A-2
~
The results of step 2
GNOME_KEYRING_CONTROL=/run/user/1000/keyring
[2024-05-04 12:44:19.619] [info] Using configuration file /home/leeliu/.config/waybar/config
[2024-05-04 12:44:19.620] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
[2024-05-04 12:44:19.620] [info] Using CSS file /home/leeliu/.config/waybar/style.css
[2024-05-04 12:44:19.626] [warning] Mapping is not an object
[2024-05-04 12:44:19.677] [warning] Mapping is not an object
[2024-05-04 12:44:19.948] [info] Bar configured (width: 2160, height: 24) for output: eDP-1
[2024-05-04 12:44:19.949] [info] Bar configured (width: 3440, height: 24) for output: HDMI-A-2
[2024-05-04 12:44:20.217] [info] Bar configured (width: 1920, height: 24) for output: HDMI-A-2
[
{
"success": true
}
]
[
{
"success": true
}
]
[2024-05-04 12:44:56.186] [info] Bar removed from output: HDMI-A-2
[2024-05-04 12:44:56.870] [warning] Mapping is not an object
[2024-05-04 12:44:56.992] [info] Bar configured (width: 1920, height: 24) for output: HDMI-A-2
[
{
"success": true
}
]
[
{
"success": true
}
]
[2024-05-04 12:45:49.986] [info] Bar removed from output: HDMI-A-2
[2024-05-04 12:45:50.677] [warning] Mapping is not an object
[2024-05-04 12:45:50.796] [info] Bar configured (width: 1920, height: 24) for output: HDMI-A-2
[
{
"success": true
}
]
[2024-05-04 12:46:49.592] [info] Bar removed from output: HDMI-A-2
[
{
"success": true
}
]
[2024-05-04 12:46:55.837] [warning] Mapping is not an object
[2024-05-04 12:46:55.949] [info] Bar configured (width: 3440, height: 24) for output: HDMI-A-2
~
3, sway.log file
GNOME_KEYRING_CONTROL=/run/user/1000/keyring
[2024-05-04 12:54:52.821] [info] Using configuration file /home/leeliu/.config/waybar/config
[2024-05-04 12:54:52.886] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
[2024-05-04 12:54:52.886] [info] Using CSS file /home/leeliu/.config/waybar/style.css
[2024-05-04 12:54:52.892] [warning] Mapping is not an object
[2024-05-04 12:54:52.930] [warning] Mapping is not an object
[2024-05-04 12:54:53.164] [info] Bar configured (width: 2160, height: 24) for output: eDP-1
[2024-05-04 12:54:53.165] [info] Bar configured (width: 3440, height: 24) for output: HDMI-A-2
[2024-05-04 12:54:53.439] [info] Bar configured (width: 1920, height: 24) for output: HDMI-A-2
[
{
"success": true
}
]
[2024-05-04 12:55:28.867] [info] Bar removed from output: HDMI-A-2
[
{
"success": true
}
]
[2024-05-04 12:55:56.414] [warning] Mapping is not an object
[2024-05-04 12:55:56.784] [info] Bar configured (width: 1920, height: 24) for output: HDMI-A-2
[2024-05-04 12:55:59.230] [info] Bar removed from output: HDMI-A-2
[2024-05-04 12:55:59.913] [warning] Mapping is not an object
[2024-05-04 12:56:00.024] [info] Bar configured (width: 1920, height: 24) for output: HDMI-A-2
By the way, just a work around, remove the log file seems eliminate the issue.
exec way-displays
Thanks for all the digging. Unfortunately there's nothing unusual in the sway logs.
What were the results of 1, 2 and 3? Did the display work correctly?
By the way, just a work around, remove the log file seems eliminate the issue.
That is very strange! Do you mean that the display failures are eliminated?
Is it an issue with /tmp
? What happens when you log to another filesystem, say, /home/alex/wd.log
?
Alternatively, for testing, you could run way-displays
from a terminal so that we can see the output. You would need to remove the exec way-displays
line from your sway setup first.
For the option 1,2,3, all of them display correctly, but they still created really large log file (about 1GB).
The display works, but it creates infinite log file which consumes all the /tmp space. I will try to store it into another location and update it later.
I tried to log to /home/leeliu/wd.log, the logging file goes to 1GB too when monitor has been off.
This is very puzzling; I'm not able to replicate anything with sway 1.9 wlroots 0.17.2. Deprecated dpms off
and current power off
behave as expected.
Let's confirm so that we can come up with a full test case:
- Does the issue occur after
dpms off
or before? - Why do you use
dpms off
before sleeping? - Can you use
way-displays -s disabled HDMI-A-1
instead ofdpms off
?
Based on the above, I'm going to ask for a complete single test case. We have a lot of information above however they are for different scenarios and it's not clear what the conditions are.