postcd
18 October 2020 16:09
1
I am having the same problem as user here .
Ho can i close laptop lid and continue working on the external monitor? I already set my ext. monitor as default and set lid close action to lock screen. Other options are unacceptable (computer suspend, turn off screen).
1 Like
pobrn
18 October 2020 16:17
2
gnome-tweaks
has an option that prevents suspending the machine when the lid is closed. Which desktop environment do you use?
postcd
18 October 2020 17:19
3
i forgot, default XFCE… suspension is not problem, just that it turn off the external monitor screen (connected via HDMI)
pobrn
18 October 2020 17:21
4
That option in gnome is exactly what you want, I think. It doesn’t turn off the external monitors, only the internal display.
I think this may be relevant. Isn’t there an option like “do nothing”?
postcd
18 October 2020 17:22
5
no, it is not (they forgot to add it maybe).
btw gnome-tweaks does not seem to be working on XFCE .
pobrn
18 October 2020 17:24
6
Yes, it probably won’t work. What are the options, then?
postcd
18 October 2020 17:26
7
Switch off display
Suspend
Hibernate
Lock screen
first and last = screen turns black
Have you tried the last two suggestions there ?
I need to make the laptop not suspend when the lid is closed, instead i just need it to keep being on.
I know this can be done using GNOME tweaks, but I dont think Manjaro has GNOME Tweaks.
(By the way, I have not installed manjaro yet. If this is possible I will)
(I am going to use XFCE)
Thanks for any help
pobrn
18 October 2020 17:39
9
Another option to try: edit /etc/systemd/logind.conf
, and change
#HandleLidSwitch=suspend
to
HandleLidSwitch=ignore
then
sudo systemctl restart systemd-logind
postcd
18 October 2020 19:17
10
no, that does not affect it, it continue to shut off the external screen when lid closed. reboot done.
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=ignore
##HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RuntimeDirectoryInodes=400k
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
1 Like
postcd,
Uncomment line in file
/etc/UPower/UPower.conf
IgnoreLid=true
And you could disable built-in laptop display in Display settings near selectbox with display name.
Or make external default one. That’s need in case when some prompt window appears, like prompt for entering password in Firefox etc.
2 Likes
postcd
19 October 2020 11:28
12
That UPower.conf modification seems to be the one that works. Thank you for sharing that.
Note that you have to then restart this service: sudo systemctl restart upower.service
system
Closed
3 November 2020 11:28
13
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.