You are not logged in.
Pages: 1
Hello again,
I am almost sorted but the lid is not suspending, or in fact doing anything.
I have tried using the logind method and xfce4 but neither one is working, so I come asking for help.
I just ran xfce4-power-manager --no-daemon --debug
and got this output
xfce4-power-manager --no-daemon --debug
** (xfce4-power-manager:2036): WARNING **: 11:20:02.284: Failed to get name owner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.freedesktop.PowerManagement': no such name
** (xfce4-power-manager:2036): WARNING **: 11:20:02.284: Failed to get name owner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.xfce.PowerManager': no such name
TRACE[xfpm-main.c:210] xfpm_start(): Starting the power manager
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for lock-screen-suspend-hibernate
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for critical-power-level
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for show-brightness-popup
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for brightness-step-count
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for brightness-exponential
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for battery-button-action
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for brightness-level-on-ac
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for brightness-level-on-battery
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for brightness-slider-min-level
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for dpms-enabled
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for dpms-on-ac-sleep
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for dpms-on-ac-off
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for dpms-on-battery-sleep
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for dpms-on-battery-off
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for dpms-sleep-mode
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for inactivity-on-ac
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for inactivity-on-battery
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for brightness-on-ac
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for brightness-on-battery
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for logind-handle-power-key
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for logind-handle-suspend-key
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for logind-handle-hibernate-key
TRACE[xfpm-xfconf.c:166] xfpm_xfconf_load(): Using default configuration for heartbeat-command
(xfce4-power-manager:2036): GLib-GObject-WARNING **: 11:20:02.291: ../glib/gobject/gsignal.c:2620: signal 'Changed' is invalid for instance '0x5559926a22b0' of type 'GDBusProxy'
TRACE[xfpm-polkit.c:284] xfpm_polkit_init_data(): Using unix session polkit subject
TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 2036>, 'start-time': <uint64 6975>}), 'org.freedesktop.login1.power-off', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.power-off is authorized=TRUE
TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 2036>, 'start-time': <uint64 6975>}), 'org.freedesktop.login1.reboot', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.reboot is authorized=TRUE
TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 2036>, 'start-time': <uint64 6975>}), 'org.freedesktop.login1.suspend', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.suspend is authorized=TRUE
TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 2036>, 'start-time': <uint64 6975>}), 'org.freedesktop.login1.hibernate', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.hibernate is authorized=TRUE
TRACE[xfpm-power.c:930] xfpm_power_get_power_devices(): Power device detected at : /org/freedesktop/UPower/devices/line_power_AC
TRACE[xfpm-power.c:889] xfpm_power_add_device(): 'line-power' device added
TRACE[xfpm-power.c:930] xfpm_power_get_power_devices(): Power device detected at : /org/freedesktop/UPower/devices/battery_BAT0
TRACE[xfpm-power.c:889] xfpm_power_add_device(): 'battery' device added
TRACE[xfpm-power.c:898] xfpm_power_add_device(): Battery device type 'battery' detected at: /org/freedesktop/UPower/devices/battery_BAT0
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 124 : ((XfpmButtonKey) BUTTON_POWER_OFF)
(xfce4-power-manager:2036): xfce4-power-manager-WARNING **: 11:20:02.296: could not map keysym 1008ffa8 to keycode
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 213 : ((XfpmButtonKey) BUTTON_HIBERNATE)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 150 : ((XfpmButtonKey) BUTTON_SLEEP)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 233 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_UP)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 232 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_DOWN)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 244 : ((XfpmButtonKey) BUTTON_BATTERY)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 238 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_UP)
TRACE[xfpm-button.c:180] xfpm_button_xevent_key(): Grabbed key 237 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_DOWN)
TRACE[xfpm-power.c:210] xfpm_power_check_polkit_auth(): using logind suspend backend
TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 2036>, 'start-time': <uint64 6975>}), 'org.freedesktop.login1.suspend', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.suspend is authorized=TRUE
TRACE[xfpm-polkit.c:342] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 2036>, 'start-time': <uint64 6975>}), 'org.freedesktop.login1.hibernate', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:363] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.hibernate is authorized=TRUE
TRACE[xfpm-power.c:1446] xfpm_update_blank_time(): Prev Timeout: 1200 / New Timeout: 600
TRACE[xfpm-manager.c:645] xfpm_manager_inhibit_sleep_systemd(): Inhibiting systemd sleep: handle-power-key:handle-suspend-key:handle-hibernate-key
** (xfce4-power-manager:2036): WARNING **: 11:20:02.302: No outputs have backlight property
xfce4-power-manager-Message: 11:20:02.315: Set kernel brightness switch to 0
TRACE[xfpm-backlight.c:262] xfpm_backlight_brightness_on_ac_settings_changed(): Alarm on ac timeout changed 9
TRACE[xfpm-backlight.c:283] xfpm_backlight_brightness_on_battery_settings_changed(): Alarm on battery timeout changed 120
(xfce4-power-manager:2036): xfce4-power-manager-WARNING **: 11:20:02.318: Failed to get keyboard max brightness level : GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/org/freedesktop/UPower/KbdBacklight”
(xfce4-power-manager:2036): xfconf-WARNING **: 11:20:02.318: Failed to set property "xfce4-power-manager::/xfce4-power-manager/brightness-switch": Operation was cancelled
xfce4-power-manager-Message: 11:20:02.327: Set kernel brightness switch to 0
and this is the journal for the same period http://0x0.st/oJ1P.txt
I am no expert but this stands out to me
ACPI: button: The lid device is not compliant to SW_LID.
Is this something fixable or is it just something I live with?
If I click suspend it works, and the screensaver works and locks within the time settings, it is just the lid not working.
Last edited by SimonJ (2022-10-23 08:16:02)
Offline
What does your /etc/systemd/logind.conf look like?
Offline
It is all off at the moment.
cat /etc/systemd/logind.conf
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (at your option)
# any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the logind.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# Use 'systemd-analyze cat-config systemd/logind.conf' to display the full config.
#
# See logind.conf(5) for details.
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#UserStopDelaySec=10
#HandlePowerKey=poweroff
#HandlePowerKeyLongPress=ignore
#HandleRebootKey=reboot
#HandleRebootKeyLongPress=poweroff
#HandleSuspendKey=suspend
#HandleSuspendKeyLongPress=hibernate
#HandleHibernateKey=hibernate
#HandleHibernateKeyLongPress=ignore
#HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=suspend
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#RebootKeyIgnoreInhibited=no
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RuntimeDirectoryInodesMax=
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
I also ran this
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch -n -t bool -s false
to set it within xfce4 power manager
Last edited by SimonJ (2022-10-04 14:38:20)
Offline
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch -n -t bool -s false
I'm not sure that's what you want?
Oct 04 11:18:58 silex kernel: input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input2
Oct 04 11:18:58 silex kernel: ACPI: button: Lid Switch [LID0]
…
Oct 04 11:18:59 silex systemd-logind[852]: Watching system buttons on /dev/input/event2 (Lid Switch)
If you boot the multi-user.target (to keep the DM and DE out of the equation) does the lid suspend the system?
#HandleLidSwitch=suspend
is supposed to be the default behavior.
Offline
I changed the logind.conf and disabled lightdm and rebooted, before and after login, no suspend. I hope this is the correct test.
I have left the logind.conf enabled but still in xfce4 nothing on lid close.
I thank you for your help.
Offline
If you set it to "ignore", restart logind (or reboot) and run "acpi_listen" from acpid (as root), is the LID event logged after closing/re-opening the device?
If logind doesn't want to play ball, you could maybe use acpid to handle the LID, https://wiki.archlinux.org/title/Acpid
Offline
If you set it to "ignore", restart logind (or reboot) and run "acpi_listen" from acpid (as root), is the LID event logged after closing/re-opening the device?
If logind doesn't want to play ball, you could maybe use acpid to handle the LID, https://wiki.archlinux.org/title/Acpid
I tried this and acpi_listen and journalctl -f register no input from the lid closing.
In addition I have updated to 5.19.13-arch1-1 today and this has solved the screen flashing but suspend now kills the keyboard, I have to login with a USB keyboard and then reboot.
Given all of this I am going to ignore the suspend option completely and just lock the screen and shut down.
Many thanks for your assistance.
Offline
suspend now kills the keyboard
Do you have a journal covering that?
Offline
suspend now kills the keyboard
Do you have a journal covering that?
Yes, boot, suspend. keyboard dies. http://0x0.st/oJwr.txt
Offline
…
Oct 05 16:08:44 silex kernel: ACPI: PM: Waking up from system sleep state S3
Oct 05 16:08:44 silex kernel: ACPI: EC: interrupt unblocked
Oct 05 16:08:44 silex kernel: ACPI: EC: event unblocked
Oct 05 16:08:44 silex kernel: iwlwifi 0000:00:14.3: RF_KILL bit toggled to enable radio.
Oct 05 16:08:44 silex kernel: sd 4:0:0:0: [sda] Starting disk
Oct 05 16:08:44 silex kernel: i8042: failed to resume active multiplexor, mouse won't work
…
Try "i8042.reset", https://wiki.archlinux.org/title/Kernel_parameters
https://lkml.iu.edu/hypermail/linux/ker … 01340.html - arguebly not the freshest reference
Offline
… Oct 05 16:08:44 silex kernel: ACPI: PM: Waking up from system sleep state S3 Oct 05 16:08:44 silex kernel: ACPI: EC: interrupt unblocked Oct 05 16:08:44 silex kernel: ACPI: EC: event unblocked Oct 05 16:08:44 silex kernel: iwlwifi 0000:00:14.3: RF_KILL bit toggled to enable radio. Oct 05 16:08:44 silex kernel: sd 4:0:0:0: [sda] Starting disk Oct 05 16:08:44 silex kernel: i8042: failed to resume active multiplexor, mouse won't work …
Try "i8042.reset", https://wiki.archlinux.org/title/Kernel_parameters
https://lkml.iu.edu/hypermail/linux/ker … 01340.html - arguebly not the freshest reference
I have got the keyboard working after a suspend by adding atkbd.reset i8042.nomux i8042.reset
I am not sure if all are needed but the combination has reliably worked for several tests. The lid still doesn't work but at least the keyboard is usable while testing it :-)
Offline
What kind of notebook is this?
Have you googled for lid related issues w/ the particular model?
(Or checked the arch wiki?)
Offline
What kind of notebook is this?
Have you googled for lid related issues w/ the particular model?
(Or checked the arch wiki?)
It appears the lid is not listed, so it not going to work, yet. Maybe later
Kernel version : 5.19.13-arch1-1 - ACPI version : 20220331
-----------------------------------------------------------
Battery is not present, bailing out.
Battery #1 : slot empty
AC adapter : <info not available>
Fan : <not available>
CPU type : 11th Gen Intel(R) Core(TM) i7-11700 @ 2.50GHz
Min/Max frequency : 800/4800 MHz
Current frequency : 955 MHz
Frequency governor : powersave
Freq. scaling driver : intel_pstate
Cache size : 955.206 KB
Bogomips : 4993.00
Bogomips : 4993.00
Bogomips : 4993.00
Bogomips : 4993.00
Bogomips : 4993.00
Bogomips : 4993.00
Bogomips : 4993.00
Bogomips : 4993.00
Bogomips : 4993.00
Bogomips : 4993.00
Bogomips : 4993.00
Bogomips : 4993.00
Bogomips : 4993.00
Bogomips : 4993.00
Bogomips : 4993.00
Bogomips : 4993.00
Function Show_CPU_Info : could not read directory /proc/acpi/processor/
Make sure your kernel has ACPI processor support enabled.
Thermal info : <not available>
Device S-state Status Sysfs node
---------------------------------------
1. PEG0 S4 *disabled
2. PEGP S4 *disabled
3. PEG1 S4 *enabled pci:0000:00:01.0
4. PEGP S4 *disabled pci:0000:01:00.0
5. PEG2 S4 *disabled
6. PEGP S4 *disabled
7. PEG3 S4 *disabled
8. PEGP S4 *disabled
9. XHCI S3 *enabled pci:0000:00:14.0
10. XDCI S4 *disabled
11. HDAS S4 *disabled pci:0000:00:1f.3
12. CNVW S4 *disabled pci:0000:00:14.3
13. RP01 S4 *disabled
14. PXSX S4 *disabled
15. RP02 S4 *disabled
16. PXSX S4 *disabled
17. RP03 S4 *disabled
18. PXSX S4 *disabled
19. RP04 S4 *disabled
20. PXSX S4 *disabled
21. RP05 S4 *enabled pci:0000:00:1c.0
22. PXSX S4 *disabled pci:0000:02:00.0
23. RP06 S4 *disabled
24. PXSX S4 *disabled
25. RP07 S4 *enabled pci:0000:00:1c.6
26. PXSX S4 *disabled pci:0000:03:00.0
27. RP08 S4 *disabled
28. PXSX S4 *disabled
29. RP09 S4 *enabled pci:0000:00:1d.0
30. PXSX S4 *disabled pci:0000:04:00.0
31. RP10 S4 *disabled
32. PXSX S4 *disabled
33. RP11 S4 *disabled
34. PXSX S4 *disabled
35. RP12 S4 *disabled
36. PXSX S4 *disabled
37. RP13 S4 *disabled
38. PXSX S4 *disabled
39. RP14 S4 *disabled
40. PXSX S4 *disabled
41. RP15 S4 *disabled
42. PXSX S4 *disabled
43. RP16 S4 *disabled
44. PXSX S4 *disabled
45. RP17 S4 *disabled
46. PXSX S4 *disabled
47. RP18 S4 *disabled
48. PXSX S4 *disabled
49. RP19 S4 *disabled
50. PXSX S4 *disabled
51. RP20 S4 *disabled
52. PXSX S4 *disabled
53. RP21 S4 *disabled
54. PXSX S4 *disabled
55. RP22 S4 *disabled
56. PXSX S4 *disabled
57. RP23 S4 *disabled
58. PXSX S4 *disabled
59. RP24 S4 *disabled
60. PXSX S4 *disabled
61. AWAC S4 *disabled
62. PWRB S3 *enabled platform:PNP0C0C:0
There should be a LID0 in that list.
I will do some research, the wiki gave no results for a Clevo laptop and lid issues
Thanks for your help.
Offline
I am still poking about with this and just found an old thread about Redhat in 2009 Which lead to running this
while :; do echo -n "$(date) -- "; cat /proc/acpi/button/lid/LID0/state ; sleep 1 ; done
and getting this
Fri Oct 21 12:43:56 CEST 2022 -- state: open
Fri Oct 21 12:43:57 CEST 2022 -- state: open
Fri Oct 21 12:43:58 CEST 2022 -- state: open
Fri Oct 21 12:43:59 CEST 2022 -- state: open
Fri Oct 21 12:44:00 CEST 2022 -- state: open
Fri Oct 21 12:44:01 CEST 2022 -- state: open
Fri Oct 21 12:44:02 CEST 2022 -- state: closed
Fri Oct 21 12:44:03 CEST 2022 -- state: closed
Fri Oct 21 12:44:04 CEST 2022 -- state: closed
Fri Oct 21 12:44:05 CEST 2022 -- state: closed
Fri Oct 21 12:44:06 CEST 2022 -- state: closed
Fri Oct 21 12:44:07 CEST 2022 -- state: open
Fri Oct 21 12:44:08 CEST 2022 -- state: open
Fri Oct 21 12:44:09 CEST 2022 -- state: open
Which clearly shows the lid closing is seen by the system, but I am guessing in the wrong place.
Is this usable in any way?
Offline
You could poll the lid and trigger an action based on that, even w/ a simple bash scripted daemon.
Did you restart logind after ignoring the lid there?
Did acpi_listen post any acpi events?
Offline
You could poll the lid and trigger an action based on that, even w/ a simple bash scripted daemon.
Did you restart logind after ignoring the lid there?
Did acpi_listen post any acpi events?
Yes I rebooted and tried again. Still nothing in acpi_listen.
I will have a go at the script and leave it alone.
Thanks again for your help.
Offline
So this is now working, thank you.
lidcheck.sh
#!/bin/bash
while :; do
grep -q closed /proc/acpi/button/lid/LID0/state
if [ $? = 0 ]
then
xfce4-session-logout --suspend
fi
sleep 5;
done
Offline
Pages: 1