Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-05-20 11:12:57

gusgorman
Member
Registered: 2020-05-20
Posts: 4

Stop Power Manager switching off extra display when lid is closed

Hello!

I've just installed Manjaro Linux with XFCE on my laptop. If I'm at home I tend to plug a monitor, keyboard and mouse in and shut the laptop lid. When I've used XFCE before this hasn't been a problem, but Power Manager doesn't seem to provide an option to make this possible.

I haven't had this problem before (on Slackware 14.1 and current) - but I'm guessing Power Manager wasn't installed then.

Am I missing something? Or do I just need to uninstall the Power Manager?

Thanks!

Offline

#2 2020-05-24 20:14:48

alcornoqui
Member
Registered: 2014-07-28
Posts: 761

Re: Stop Power Manager switching off extra display when lid is closed

Hello and welcome to the forum, sorry for the late response!

There's a profiles feature in the Display Settings app:

https://docs.xfce.org/xfce/xfce4-settin … y#advanced

I think you can get what you want with it.

Offline

#3 2020-05-26 08:43:10

gusgorman
Member
Registered: 2020-05-20
Posts: 4

Re: Stop Power Manager switching off extra display when lid is closed

alcornoqui wrote:

Hello and welcome to the forum, sorry for the late response!

There's a profiles feature in the Display Settings app:

https://docs.xfce.org/xfce/xfce4-settin … y#advanced

I think you can get what you want with it.

Hello! Thankyou.

I've tried that and unfortunately I've still got a problem. Tbh I'm seeing slightly inconsistent behaviour. Closing the laptop either:

1) Disables the external monitor meaning that I have to leave the laptop lid up even if I am not using it....... or
2) Locks the session meaning that I have to log in again - which isn't so bad, but not really what I want.

I spent some time this morning trying to recreate both scenarios so I could report on them accurately, but unfortunately could only create the first scenario.

I have another laptop packed away with an older version of XFCE on it that didn't have this problem.

Offline

#4 2020-05-26 11:01:22

alcornoqui
Member
Registered: 2014-07-28
Posts: 761

Re: Stop Power Manager switching off extra display when lid is closed

I see. I don't have a external monitor to test right now (and I myself struggle with this stuff), but given some references, it may be related to the /etc/systemd/logind.conf file and the setting logind-handle-lid-switch, so, you might post the relevant content of logind.conf, and the Power Manager lid settings with these commands:

xfconf-query -c xfce4-power-manager -l -v | grep -i lid

cat /etc/systemd/logind.conf | grep -i lid

Plus the version of Xfce Power Manager:

xfce4-power-manager -V

And see if you make sense of it (or more experienced fellows can help).

Good luck!

Offline

#5 2020-05-26 14:59:14

gusgorman
Member
Registered: 2020-05-20
Posts: 4

Re: Stop Power Manager switching off extra display when lid is closed

[jordan@worrell ~]$ xfconf-query -c xfce4-power-manager -l -v | grep -i lid
/xfce4-power-manager/lid-action-on-ac                   4
/xfce4-power-manager/lid-action-on-battery              0
/xfce4-power-manager/logind-handle-lid-switch           false

[jordan@worrell ~]$ cat /etc/systemd/logind.conf | grep -i lid
#HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#LidSwitchIgnoreInhibited=yes

[jordan@worrell ~]$ xfce4-power-manager -V

Xfce Power Manager 1.6.6

Offline

#6 2020-05-26 16:56:39

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 7,116

Re: Stop Power Manager switching off extra display when lid is closed

Is your laptop plugged in or on battery when plug in the external monitor? For your output above, you have a different setting for when on ac than when on battery (0 means do nothing or blank screen and not sure what 4 is for - my options only go to 3, but I'm using a newer version).

What options are available to you when setting a lid action?

You could try changing logind-handle-lid-switch to true and then in logind.conf, change (and uncomment) "#HandleLidSwitch=suspend" to "HandleLidSwitch=ignore", and restart to test.

Offline

#7 2020-05-26 19:12:30

gusgorman
Member
Registered: 2020-05-20
Posts: 4

Re: Stop Power Manager switching off extra display when lid is closed

ToZ wrote:

Is your laptop plugged in or on battery when plug in the external monitor? For your output above, you have a different setting for when on ac than when on battery (0 means do nothing or blank screen and not sure what 4 is for - my options only go to 3, but I'm using a newer version).

What options are available to you when setting a lid action?

You could try changing logind-handle-lid-switch to true and then in logind.conf, change (and uncomment) "#HandleLidSwitch=suspend" to "HandleLidSwitch=ignore", and restart to test.

This is confusing. In the Power Manager GUI I have the same options selected for both "On battery" and "Plugged In".. and tbh I think 0 means "Switch off Display" because I don't have an option to "Do nothing". I guess thats the problem! smile I want an option to "do nothing" and it doesn't exist.  I have "Switch off Display" selected for both.

The options available to me are:

- Switch off display
- Suspend
- Hibernate
- Lock Screen

FWIW when I use the laptop with an external monitor I almost always plug it in to the mains.

I'll try your suggestions later when I've got a moment..

Thanks!

Offline

#8 2020-05-26 19:59:46

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 253

Re: Stop Power Manager switching off extra display when lid is closed

Two ideas: You could try to use "presentation mode" or under power manager>>diplay turn off display power management. I don't know if this will affect a second display or not.


Siduction
Debian Sid
Xfce 4.14

Offline

#9 2020-09-18 09:33:52

spudger
Member
Registered: 2020-09-18
Posts: 2

Re: Stop Power Manager switching off extra display when lid is closed

I have the same experience. Manjaro with XFCE and I want to connect an external monitor and close the laptop(lenovo x1 carbon 8th gen) lid and work purely on the external monitor so I want the laptop screen to switch of but external to stay on. I can't see an option anywhere to achieve this.

I've tried changing settings in /etc/systemd/logind.conf and /etc/UPower/UPower.conf without success...In fact I don't want to fully ignore the lid close but rather turn off the laptop screen and make the external monitor my primary screen but can't identify where or how this is possible.

Thanks

Offline

#10 2020-09-18 12:07:29

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 7,116

Re: Stop Power Manager switching off extra display when lid is closed

Exactly what version of xfce4-power-manager do you have?

xfce4-power-manager -V

What is the current contents of /etc/systemd/logind.conf?

Before you close the lid, how are your displays configured (mirrored, extended, etc)?
Are you expecting the laptop screen to blank or be disabled?

And what does the following return?

xfconf-query -c xfce4-power-manager -lv

I'm running arch and it works fine here.

Offline

#11 2020-09-18 14:30:08

spudger
Member
Registered: 2020-09-18
Posts: 2

Re: Stop Power Manager switching off extra display when lid is closed

Version:

Xfce Power Manager 1.6.6

Part of the Xfce Goodies Project
http://goodies.xfce.org

Licensed under the GNU GPL

contents of /etc/systemd/logind.conf:

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
LidSwitchIgnoreInhibited=no
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RuntimeDirectoryInodes=400k
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192

Ideal behaviour would be that I connect external monitor with laptop open I have screens side by side and when lid closed (and on charger) external monitor becomes primary and laptop doesn't suspend or stop.

I have achieved more or less what I want using display profiles by disabling the laptop monitor, changing primary monitor when external monitor is connected but only if laptop lid is left open.

I still want laptop to suspend when not connected to external monitor/charger (USB-C means both) so completely ignoring laptop lid is not very desirable.

Thanks

Offline

#12 2020-09-18 23:12:38

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 7,116

Re: Stop Power Manager switching off extra display when lid is closed

I don't think xfce4-power-manager is able to give you this fine control. It can manage display profiles but if you want conditional suspend behaviour based on the existence of external monitor, you may need to do something with udev. Thinking out loud, some thing like when an external monitor is connected, then presentation mode is enabled, and when disconnected, presentation mode is disabled.

Offline

Board footer

Powered by FluxBB