Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-08-31 04:52:00

Cranberry
Member
From: Argentina
Registered: 2024-08-30
Posts: 2

[Solved] Suspend-Resume loop (Clocksource related!)

Hi,

edit: https://gitlab.xfce.org/xfce/xfce4-powe … issues/243 decided to report it

Some background:
I have a thinkpad with a faulty BIOS implementation ("wontfix"/theydon'tcarebecauselinux).  So, long story short, recently I've been forcing "tsc" as clocksource (usually marked as unstable/unreliable therefore discarded and replaced with hpet by the kernel [poor performance as result])

What I've noticed after forcing tsc,  is that aside from a drastic performance improvement, something bad happens to Xfce ON both ArchLinux and Debian (stable and unstable).  The power management has two nasty issues:   the brightness/backlight will constantly dim by itself.  And the worst issue,  the system will suspend randomly and constantly;  causing the system to suspend for no apparent reason, and to make things worse, once you resume the machine the system will suspend right away after a few seconds, going quickly to a tty is the only way to gain control of the system and get out of that suspend-resume loop.  If you go back to the current xfce's VT it will suspend again though.

Some key details:

  • It happens with xfce on debian (tested on stable and unstable) and archlinux, both of them tested with the defaults.

  • xfce on xubuntu 24.04 is doing excellent with tsc, works correctly and as expected  (there is hope for a fix maybe).

  • worth mentioning tsc works as expected on the following distros/DEs I tried: Plasma (debian stable), Gnome (fedora/ubuntu), and Cinnamon (mint).

  • disabling dpms on xfce (debian/arch) solves the issue, but i'd like to have it enabled.

  • s2idle [deep]

I'd like to know how to approach this, I'm not sure if it is a bug or a problematic configuration from debian/arch.  If there is anything I can share or test to help, I'll be more than glad. 
Here it is "xfconf-query -c xfce4-power-manager -lv" and "xfce4-power-manager --dump" from both xubuntu 24.04.1 and debian 12.6, both of them have similar configurations on the xfce4-power-manager-settings gui.

xubuntu 24.04.1

---------------------------------------------------
       Xfce power manager version 4.18.3
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: True
Has brightness panel: True
Has power button: True
Has hibernate button: True
Has sleep button: True
Has battery button: True
Has LID: True
_____the end

/xfce4-power-manager/blank-on-ac                        0
/xfce4-power-manager/blank-on-battery                   0
/xfce4-power-manager/brightness-on-ac                   110
/xfce4-power-manager/brightness-on-battery              110
/xfce4-power-manager/brightness-switch                  0
/xfce4-power-manager/brightness-switch-restore-on-exit  1
/xfce4-power-manager/critical-power-action              1
/xfce4-power-manager/dpms-enabled                       true
/xfce4-power-manager/dpms-on-ac-off                     2
/xfce4-power-manager/dpms-on-ac-sleep                   0
/xfce4-power-manager/dpms-on-battery-off                2
/xfce4-power-manager/dpms-on-battery-sleep              0
/xfce4-power-manager/general-notification               true
/xfce4-power-manager/handle-brightness-keys             true
/xfce4-power-manager/inactivity-on-ac                   14
/xfce4-power-manager/inactivity-on-battery              45
/xfce4-power-manager/inactivity-sleep-mode-on-ac        1
/xfce4-power-manager/inactivity-sleep-mode-on-battery   1
/xfce4-power-manager/lid-action-on-ac                   0
/xfce4-power-manager/lid-action-on-battery              1
/xfce4-power-manager/lock-screen-suspend-hibernate      true
/xfce4-power-manager/logind-handle-lid-switch           false
/xfce4-power-manager/power-button-action                0
/xfce4-power-manager/presentation-mode                  false
/xfce4-power-manager/show-panel-label                   3
/xfce4-power-manager/show-presentation-indicator        true
/xfce4-power-manager/show-tray-icon                     false
/xfce4-power-manager/sleep-button-action                1

debian 12.6

---------------------------------------------------
       Xfce power manager version 4.18.1
With policykit support
With network manager support
---------------------------------------------------
Can suspend: True
Can hibernate: True
Authorized to suspend: True
Authorized to hibernate: True
Authorized to shutdown: True
Has battery: True
Has brightness panel: True
Has power button: True
Has hibernate button: True
Has sleep button: True
Has battery button: True
Has LID: True
_____the end

/xfce4-power-manager/blank-on-ac                        0
/xfce4-power-manager/blank-on-battery                   0
/xfce4-power-manager/brightness-exponential             false
/xfce4-power-manager/brightness-level-on-ac             1
/xfce4-power-manager/brightness-level-on-battery        1
/xfce4-power-manager/brightness-on-ac                   9
/xfce4-power-manager/brightness-on-battery              110
/xfce4-power-manager/brightness-step-count              20
/xfce4-power-manager/brightness-switch                  0
/xfce4-power-manager/brightness-switch-restore-on-exit  1
/xfce4-power-manager/critical-power-action              1
/xfce4-power-manager/critical-power-level               10
/xfce4-power-manager/dpms-enabled                       true
/xfce4-power-manager/dpms-on-ac-off                     5
/xfce4-power-manager/dpms-on-ac-sleep                   0
/xfce4-power-manager/dpms-on-battery-off                2
/xfce4-power-manager/dpms-on-battery-sleep              0
/xfce4-power-manager/general-notification               true
/xfce4-power-manager/handle-brightness-keys             true
/xfce4-power-manager/inactivity-on-ac                   14
/xfce4-power-manager/inactivity-on-battery              60
/xfce4-power-manager/inactivity-sleep-mode-on-ac        1
/xfce4-power-manager/inactivity-sleep-mode-on-battery   1
/xfce4-power-manager/lid-action-on-ac                   0
/xfce4-power-manager/lid-action-on-battery              1
/xfce4-power-manager/lock-screen-suspend-hibernate      true
/xfce4-power-manager/logind-handle-lid-switch           false
/xfce4-power-manager/power-button-action                0
/xfce4-power-manager/presentation-mode                  false
/xfce4-power-manager/show-panel-label                   1
/xfce4-power-manager/show-presentation-indicator        true
/xfce4-power-manager/show-tray-icon                     false
/xfce4-power-manager/sleep-button-action                1

Last edited by Cranberry (2024-09-29 06:10:37)

Offline

#2 2024-09-10 00:25:28

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 862

Re: [Solved] Suspend-Resume loop (Clocksource related!)

i'm on Xubuntu 20.04 LTS and do not see this happening.  i don't do any suspends and the system does not do any for me.

Offline

#3 2024-09-29 06:09:49

Cranberry
Member
From: Argentina
Registered: 2024-08-30
Posts: 2
LinuxFirefox 115.0

Re: [Solved] Suspend-Resume loop (Clocksource related!)

just for the record in case it helps a time traveler
the workaround i discovered came from outside xfce (gladly, since it means xfce not the buggy piece),  I had to recompile my kernel with CONFIG_HZ=1000.   Not sure why, but, since i am on a buggy bios, well...

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.014 seconds, 9 queries executed - Memory usage: 542.08 KiB (Peak: 544.73 KiB) ]