Systemd Suspend Issues

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
tyb16

Systemd Suspend Issues

Post by tyb16 »

So my issue seems to be with systemd. It seems to think that an external monitor is attached, even when one is not. I never had this issue until I attached one last night. After that, my laptop doesn't want to suspend at all. It seems to hang in the state it hung while a monitor is attached. The output of systemd-inhibit seems to confirm my thoughts.

systemd-inhibit w/o monitor attached:

Code: Select all

     Who: tyler (UID 1000/tyler, PID 1607/csd-media-keys)
    What: handle-power-key:handle-suspend-key:handle-hibernate-key
     Why: Cinnamon handling keypresses
    Mode: block

     Who: ModemManager (UID 0/root, PID 922/ModemManager)
    What: sleep
     Why: ModemManager needs to reset devices
    Mode: delay

     Who: tyler (UID 1000/tyler, PID 1604/csd-power)
    What: sleep
     Why: Cinnamon needs to lock the screen
    Mode: delay

     Who: tyler (UID 1000/tyler, PID 1604/csd-power)
    What: handle-lid-switch
     Why: Multiple displays attached
    Mode: block

     Who: NetworkManager (UID 0/root, PID 932/NetworkManager)
    What: sleep
     Why: NetworkManager needs to turn off networks
    Mode: delay

5 inhibitors listed.
I have edited /etc/systemd/logind.conf to make it suspend on any docked state and to ignore inhibitors. But it seems to do nothing at all. Last night at some point it randomly decided to work, but I don't have any outputs because I didn't think to check that last night. A weird thing is that running xrand --query only lists the current screen as a monitor:

Code: Select all

Screen 0: minimum 8 x 8, current 2560 x 1440, maximum 32767 x 32767
eDP1 connected primary 2560x1440+0+0 (normal left inverted right x axis y axis) 277mm x 155mm
   2560x1440     59.95*+  39.97  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     60.00  
   1920x1200     59.95  
   1920x1080     60.00    59.93  
   1600x1200     60.00  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1600x900      60.00  
   1280x1024     60.02  
   1440x900      59.89  
   1280x960      60.00  
   1368x768      60.00  
   1360x768      59.80    59.96  
   1152x864      60.00  
   1280x720      60.00  
   1024x768      60.00  
   1024x576      60.00  
   960x540       60.00  
   800x600       60.32    56.25  
   864x486       60.00  
   640x480       59.94  
   720x405       60.00  
   640x360       60.00  
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
So I'm really not sure what is making this go wrong at which level. I've had issues with suspending in the past but I've been able to figure them out but I'm really not sure on this one.

TL;DR:
After attaching an external monitor my laptop still seems to think one is attached even when it is not. This causes it not to suspend properly.

OS and DE info from screenfetch:

OS: Mint 18.2 sonya
Kernel: x86_64 Linux 4.10.0-041000-generic
Uptime: 22m
Packages: 2961
Shell: zsh 5.1.1
Resolution: 2560x1440
DE: Cinnamon 3.4.6
WM: Muffin
WM Theme: Vivaldi (Numix Daily)
Theme: Mint-Y-Dark [GTK2/3]
Icon Theme: Numix-Circle
Font: Noto Sans 9
CPU: Intel Core i5-7200U CPU @ 3.1GHz
GPU: Mesa DRI Intel(R) HD Graphics 620 (Kaby Lake GT2)
RAM: 1479MiB / 7620MiB
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Locked

Return to “Other topics”