Solved Laptop suspends again after wake up

Hi,

I recently purchased a Lenovo Thinkpad X1 Carbon Gen 7 and have spent the
last few days turning it into a FreeBSD (12.2) desktop system. The only issue
I have left to solve is related to suspend/resume on lid close/open.

I configured the suspend-on-lid-close via /etc/sysctl.conf:
hw.acpi.lid_switch_state=S3

The suspend feature works perfectly, but after I open the lid the laptop
resumes properly for about 10s or so, then it automatically suspends
a second time. After I close and then open the lid again it works
properly and doesn't suspend again until its told to do so.

As a FreeBSD newbie it's been quite difficult to debug this issue
and I would appreciate some help. It might be worth pointing out
that I use the iichid driver 0.0.6 and I suspect it might be connected
to the issue.

Please find the dmesg output attached to this post. The output is
based on a few attempts with suspend/resume.
 

Attachments

  • dmesg.txt
    44.3 KB · Views: 77
This smells a bit:
Code:
acpi0: cleared fixed power button status
If I remember correctly, I have read about some lid-related sysctl to avoid this phenomenon.
 
I haven't found any such sysctl settings. I've found the following that might
be of use:
hw.acpi.video.lcd0.levels: 100 100 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 hw.acpi.video.lcd0.economy: 100 hw.acpi.video.lcd0.fullpower: 100 hw.acpi.video.lcd0.brightness: 45 hw.acpi.video.lcd0.active: 1 hw.acpi.video.ext2.active: 1 hw.acpi.video.ext1.active: 1 hw.acpi.video.ext0.active: 0 hw.acpi.battery.info_expire: 5 hw.acpi.battery.units: 1 hw.acpi.battery.state: 1 hw.acpi.battery.rate: 5383 hw.acpi.battery.time: 356 hw.acpi.battery.life: 60 hw.acpi.acline: 0 hw.acpi.thermal.tz0._TSP: -1 hw.acpi.thermal.tz0._TC2: -1 hw.acpi.thermal.tz0._TC1: -1 hw.acpi.thermal.tz0._ACx: -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 hw.acpi.thermal.tz0._CRT: 128,1C hw.acpi.thermal.tz0._HOT: -1 hw.acpi.thermal.tz0._PSV: -1 hw.acpi.thermal.tz0.thermal_flags: 0 hw.acpi.thermal.tz0.passive_cooling: 0 hw.acpi.thermal.tz0.active: -1 hw.acpi.thermal.tz0.temperature: 37,1C hw.acpi.thermal.user_override: 0 hw.acpi.thermal.polling_rate: 10 hw.acpi.thermal.min_runtime: 0 hw.acpi.cpu.cx_lowest: C8 hw.acpi.reset_video: 0 hw.acpi.handle_reboot: 1 hw.acpi.disable_on_reboot: 0 hw.acpi.verbose: 0 hw.acpi.s4bios: 0 hw.acpi.sleep_delay: 1 hw.acpi.suspend_state: S3 hw.acpi.standby_state: NONE hw.acpi.lid_switch_state: S3 hw.acpi.sleep_button_state: S3 hw.acpi.power_button_state: S5 hw.acpi.supported_sleep_state: S3 S4 S5
 
I re-installed my system and for some reason I don't have the same issue anymore. I did
install openbox instead of xfce4, but it the rest is pretty much the same. My best guess
is that I had the USB interface for the iichid driver interface activated and that interfered
with the other system drivers. Cannot say for sure... Happy that it works though.
 
Back
Top