You are not logged in.

#1 2019-05-03 13:53:03

mjolk
Member
Registered: 2018-07-22
Posts: 6

configure session idleHint

Hi,

After looking for a long time i can't find any docs about this.
I'm using sddm and plasma-desktop, via loginctl  show-session $XDG_SESSION_ID i get

Id=2
User=1000
Name=mjolk
Timestamp=Thu 2019-05-02 19:23:32 CEST
TimestampMonotonic=3014841853
VTNr=1
Seat=seat0
Display=:0
Remote=no
Service=sddm
Desktop=KDE
Scope=session-2.scope
Leader=758
Audit=2
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
LockedHint=no

how can i set idleHint=yes (permanently)? it seems like a simple config situation but ....
please don't let this be another 'doh' moment ...wasted enough time looking for this

thanks!

Offline

#2 2019-05-03 14:20:27

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,889

Re: configure session idleHint

No clue, but you're not the only one with this issue : https://github.com/sddm/sddm/issues/445


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2019-05-03 14:23:08

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: configure session idleHint

Can't verify the state of that value as I'm not on my system but either way this is pretty much the definition of a XY problem.

What do you *actually* want to do? You don't want to set that value it should be meaningless to you. However you likely want to configure suspension/blanking/whatever behaviour.

FWIW on a normal  KDE setup, powerdevil takes care of this.

Offline

#4 2019-05-03 14:52:51

mjolk
Member
Registered: 2018-07-22
Posts: 6

Re: configure session idleHint

Hehe it's exactly a XY problem.

Of course it has to do with suspension, i had configured systemd-logind idleAction but through journalctl i saw nothing much was happening and then confirmed it through the session setting idleHint=no
In the docs for systemd-logind it expressly states your session needs to report idle state but no further info on how to verify/configure this.
I didn't want to install another package which probably has a ton of useless stuff because this is a desktop and therefore no need for all the battery/lid stuff a laptop would need.
And so i figured just configuring the session to report idle would be the cleanest way.
But apparently something i thought simple is not so simple so i will probably just install powerdevil.
Nonetheless if someone knows how to do this i'd still like to know.

edit: ok the sddm issue seems relevant, too bad, does powerdevil fix this?

edit2: powerdevil has a lot of dependencies... it even needs zeromq! i mean...i just want to set idleHint=yes ffs hehe

thanks !

Last edited by mjolk (2019-05-03 15:18:41)

Offline

#5 2019-05-03 15:16:52

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: configure session idleHint

The tool "xss-lock" can apparently hook things up with systemd-logind. In its man-page, this here seems to be talking about that:

Also, xss-lock manages the idle hint on the login session. The idle state of the session is directly linked to user activity as reported by X (except when the notifier runs before locking the screen). When all sessions are idle, the login manager can take action (such as suspending the system) after a preconfigured delay.

Then again... I'd probably just use the tool built for KDE that you mention.

About why things are like this and why you need an extra tool: systemd doesn't know what's happening at your keyboard and mouse. The input from those devices goes through the Xorg server program for interpretation. The Xorg server then defines what "idle" means. You then need a tool that checks state of the Xorg server and then messages that to systemd-logind.

Last edited by Ropid (2019-05-03 15:22:30)

Offline

#6 2019-05-03 17:40:05

mjolk
Member
Registered: 2018-07-22
Posts: 6

Re: configure session idleHint

irt Ropid : i saw systemd-logind putting watchers on keyboard but i guess it's only system buttons (like it says in the logs), and then there is X server...
nvm i just installed kde power management, thanks for the replies.

Offline

Board footer

Powered by FluxBB