Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-01-21 15:29:46

papab
Member
Registered: 2018-12-24
Posts: 9

power_manager, display wakes up

xubuntu 18.04 desktop
new install

Using xfce4-power-manager.   Suspend seems to work as expected.   Display blanks out when expected, but wakes up about 23 seconds later.


 
dt2:xfce4-power-manager --dump
---------------------------------------------------
       Xfce power manager version 1.6.1
With policykit support
With network manager support
---------------------------------------------------
Can suspend: True
Can hibernate: False
Authorized to suspend: True
Authorized to hibernate: False
Authorized to shutdown: True
Has battery: False
Has brightness panel: False
Has power button: True
Has hibernate button: True
Has sleep button: True
Has LID: False 

.xsession-errors shows this:

** (xfdesktop:1738): CRITICAL **: 08:15:15.428: xfce_backdrop_loader_closed_cb: assertion 'XFCE_IS_BACKDROP(backdrop)' failed

In Xorg.0.log this shows up about the time it wakes up,  more of this repeated

 [  4010.140] (II) modeset(0): EDID vendor "SAM", prod id 780
[  4010.140] (II) modeset(0): Using hsync ranges from config file
[  4010.140] (II) modeset(0): Using vrefresh ranges from config file
[  4010.140] (II) modeset(0): Printing DDC gathered Modelines:
[  4010.140] (II) modeset(0): Modeline "1680x1050"x0.0  119.00  1680 1728 1760 1840  1050 1053 1059 1080 +hsync -vsync (64.7 kHz eP)
[  4010.140] (II) modeset(0): Modeline "800x600"x0.0   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[  4010.140] (II) modeset(0): Modeline "800x600"x0.0   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz e)
[  4010.140] (II) modeset(0): Modeline "640x480"x0.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz e)
[  4010.140] (II) modeset(0): Modeline "640x480"x0.0   31.50  640 664 704 832  480 489 492 520 -hsync -vsync (37.9 kHz e)
[  4010.140] (II) modeset(0): Modeline "640x480"x0.0   30.24  640 704 768 864  480 483 486 525 -hsync -vsync (35.0 kHz e)
[  4010.140] (II) modeset(0): Modeline "640x480"x0.0   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[  4010.140] (II) modeset(0): Modeline "720x400"x0.0   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz e)
[  4010.140] (II) modeset(0): Modeline "1280x1024"x0.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz e)
 

Offline

#2 2019-01-21 18:18:56

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,491

Re: power_manager, display wakes up

Not sure if this is the right place for this, but from an xfce4-power-manager perspective, try running it in debug mode:

xfce4-power-manager -q && xfce4-power-manager ---no-daemon --debug

...attempt a suspend and when it returns, have a look at (and post back) the output from the above command.

From a systemd perspective, you'l want to look at the journal to see if you can identify the cause. Commands that might help:

systemctl status systemd-suspend
systemd-inhibit
sudo journalctl -u systemd-suspend
cat /proc/acpi/wakeup

Also:

sudo journalctl -b 0 --no-pager

...and look at the entries around the time that the suspend event happened.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2019-01-22 03:37:00

papab
Member
Registered: 2018-12-24
Posts: 9

Re: power_manager, display wakes up

Some warnings from xfce4-power-manager ---no-daemon --debug

** (xfce4-power-manager:23640): WARNING **: 19:38:57.305: 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:23640): WARNING **: 19:38:57.305: Failed to get name owner: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not get owner of name 'org.xfce.PowerManager': no such name
...
(xfce4-power-manager:23640): GLib-GObject-WARNING **: 19:38:57.313: ../../../../gobject/gsignal.c:2523: signal 'Changed' is invalid for instance '0x5584d0b7f9b0' of type 'GDBusProxy'
...

(xfce4-power-manager:23640): xfce4-power-manager-WARNING **: 19:38:57.321: could not map keysym 1008ffa8 to keycode
---------------
TRACE[xfpm-manager.c:645] xfpm_manager_inhibit_sleep_systemd(): Inhibiting systemd sleep: handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch

(xfce4-power-manager:23640): GLib-CRITICAL **: 19:38:57.323: g_error_free: assertion 'error != NULL' failed

** (xfce4-power-manager:23640): WARNING **: 19:38:57.323: No outputs have backlight property

(xfce4-power-manager:23640): xfce4-power-manager-WARNING **: 19:38:57.325: Failed to get keyboard max brightness level : GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface 'org.freedesktop.UPower.KbdBacklight' on object at path /org/freedesktop/UPower/KbdBacklight
TRACE[xfpm-polkit.c:244] xfpm_polkit_free_data(): Destroying Polkit data

Reminder, it isn't suspend that is the issue, it's display sleep or power off.   But I cmded a suspend and there wasn't anything from the debug ouput, but from systemctl I get this:

dt2:systemctl status systemd-suspend
● systemd-suspend.service - Suspend
   Loaded: loaded (/lib/systemd/system/systemd-suspend.service; static; vendor preset: enabled)
   Active: inactive (dead)
     Docs: man:systemd-suspend.service(8)

Jan 21 19:36:58 dt2 systemd-sleep[23318]:  setting Advanced Power Management level to 0xfe (254)
Jan 21 19:36:58 dt2 systemd-sleep[23318]:  APM_level        = 254
Jan 21 19:36:58 dt2 systemd[1]: Started Suspend.
Jan 21 19:59:56 dt2 systemd[1]: Starting Suspend...
Jan 21 19:59:56 dt2 systemd-sleep[23799]: Suspending system...
Jan 21 20:00:06 dt2 systemd-sleep[23799]: System resumed.
Jan 21 20:00:09 dt2 systemd-sleep[23799]: /dev/sdb:
Jan 21 20:00:09 dt2 systemd-sleep[23799]:  setting Advanced Power Management level to 0xfe (254)
Jan 21 20:00:09 dt2 systemd-sleep[23799]:  APM_level        = 254
Jan 21 20:00:09 dt2 systemd[1]: Started Suspend.

Didn't see anything important with the systemd cmds

Offline

#4 2019-01-22 11:46:05

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,491

Re: power_manager, display wakes up

papab wrote:

Reminder, it isn't suspend that is the issue, it's display sleep or power off.

From your original description, it sounds like the system suspends and then something (not you) wakes it up. Is this correct?

Can you post the complete results of those commands? Sometimes the messages that aren't warnings are also useful information.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2019-01-22 15:26:47

papab
Member
Registered: 2018-12-24
Posts: 9

Re: power_manager, display wakes up

Sorry, I wasn't very clear.   Its Display Power Management.    On Power Manager-Display, I can set Display Power Management to Blank after x, Put to sleep after x, or Switch off after x.  I tried setting any of these to 1 and the display goes dark in 1 minute, but then it wakes up about 23 sec later.    System Power Saving-Suspend seems to work as expected.    I think xfce power management is working, but some wakeup signal comes in.    Thanks for the help, let me know what else I can do.

dt2:xfce4-power-manager -q && xfce4-power-manager ---no-daemon --debug

** (xfce4-power-manager:3681): WARNING **: 08:15:09.933: 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:3681): WARNING **: 08:15:09.933: 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:205] xfpm_start(): Starting the power manager
TRACE[xfpm-xfconf.c:642] xfpm_xfconf_init(): lock screen TRUE
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for critical-power-level
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for show-brightness-popup
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for handle-brightness-keys
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for critical-power-action
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for lid-action-on-ac
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for lid-action-on-battery
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for brightness-level-on-ac
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for brightness-level-on-battery
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for brightness-slider-min-level
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for inactivity-on-battery
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for inactivity-sleep-mode-on-ac
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for inactivity-sleep-mode-on-battery
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for brightness-on-ac
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for brightness-on-battery
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for network-manager-sleep
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for logind-handle-power-key
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for logind-handle-suspend-key
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for logind-handle-hibernate-key
TRACE[xfpm-xfconf.c:165] xfpm_xfconf_load(): Using default configuration for heartbeat-command

(xfce4-power-manager:3681): GLib-GObject-WARNING **: 08:15:09.965: ../../../../gobject/gsignal.c:2523: signal 'Changed' is invalid for instance '0x55af953891b0' of type 'GDBusProxy'
TRACE[xfpm-polkit.c:287] xfpm_polkit_init_data(): Using unix session polkit subject
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 3681>, 'start-time': <uint64 42783>}), 'org.freedesktop.login1.power-off', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.power-off is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 3681>, 'start-time': <uint64 42783>}), 'org.freedesktop.login1.reboot', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.reboot is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 3681>, 'start-time': <uint64 42783>}), 'org.freedesktop.login1.suspend', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.suspend is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 3681>, 'start-time': <uint64 42783>}), 'org.freedesktop.login1.hibernate', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.hibernate is authorized=FALSE
TRACE[xfpm-power.c:213] xfpm_power_check_polkit_auth(): using logind suspend backend
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 3681>, 'start-time': <uint64 42783>}), 'org.freedesktop.login1.suspend', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.suspend is authorized=TRUE
TRACE[xfpm-polkit.c:345] xfpm_polkit_check_auth_intern(): polkit request: (('unix-process', {'pid': <uint32 3681>, 'start-time': <uint64 42783>}), 'org.freedesktop.login1.hibernate', @a{ss} {}, uint32 0, '')
TRACE[xfpm-polkit.c:366] xfpm_polkit_check_auth_intern(): Action=org.freedesktop.login1.hibernate is authorized=FALSE
TRACE[xfpm-power.c:1446] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-power.c:1446] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-power.c:1446] xfpm_update_blank_time(): Timeout: 10
TRACE[xfpm-power.c:1446] xfpm_update_blank_time(): Timeout: 0
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 124 : ((XfpmButtonKey) BUTTON_POWER_OFF)

(xfce4-power-manager:3681): xfce4-power-manager-WARNING **: 08:15:09.991: could not map keysym 1008ffa8 to keycode

TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 213 : ((XfpmButtonKey) BUTTON_HIBERNATE)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 150 : ((XfpmButtonKey) BUTTON_SLEEP)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 233 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_UP)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 232 : ((XfpmButtonKey) BUTTON_MON_BRIGHTNESS_DOWN)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 244 : ((XfpmButtonKey) BUTTON_BATTERY)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 238 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_UP)
TRACE[xfpm-button.c:183] xfpm_button_xevent_key(): Grabbed key 237 : ((XfpmButtonKey) BUTTON_KBD_BRIGHTNESS_DOWN)
TRACE[xfpm-manager.c:645] xfpm_manager_inhibit_sleep_systemd(): Inhibiting systemd sleep: handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch

(xfce4-power-manager:3681): GLib-CRITICAL **: 08:15:10.000: g_error_free: assertion 'error != NULL' failed

** (xfce4-power-manager:3681): WARNING **: 08:15:10.001: No outputs have backlight property

(xfce4-power-manager:3681): xfce4-power-manager-WARNING **: 08:15:10.007: Failed to get keyboard max brightness level : GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface 'org.freedesktop.UPower.KbdBacklight' on object at path /org/freedesktop/UPower/KbdBacklight
 

Offline

#6 2019-01-22 19:28:34

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,491

Re: power_manager, display wakes up

Thanks for the clarification. Unfortunately, there is nothing in that log file that indicates a wake signal. Does it include the time when the monitor work up?

I have read of instances where very sensitive mice can register movements that result in wake-up events. What kind of computer do you have? Are you able to unplug and/or disable the mouse for a test?

Something else that might wake the computer might be a notification. If you are using xfce4-notifyd, try killing that process as a second test.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2019-01-22 20:53:39

papab
Member
Registered: 2018-12-24
Posts: 9

Re: power_manager, display wakes up

I unplugged the mouse, the keyboard and the usb drive.    No change, still a wakeup about 23 sec later.

I looked at all the files in /var/log that had been touched since the last wakeup,   Xorg, syslog, auth.log, kern, nothing logged at the time of the sleep or wakeup.
Surely this has to be logged somewhere?

I don't know what all these devices are, but should I disable some?

dt2:find /sys/devices -name wakeup -exec grep -H enabled {} \;
/sys/devices/pnp0/00:02/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:14.0/usb1/1-14/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:14.0/usb1/1-8/power/wakeup:enabled
/sys/devices/pci0000:00/0000:00:14.0/power/wakeup:enabled
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/power/wakeup:enabled
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/power/wakeup:enabled
/sys/devices/LNXSYSTM:00/LNXPWRBN:00/power/wakeup:enabled

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.013 seconds, 7 queries executed - Memory usage: 598.51 KiB (Peak: 615.35 KiB) ]