Xfce power manager manjaro. how to disable action when closing laptop lid?

how to disable action when closing laptop lid?
I use an external monitor, you need to disable any action when closing the lid.
I tried to solve it in the following ways 1. edited the /etc/systemd/logind.conf file,
2. Disconnected and autoload power manager
None of the options gave results.
Please tell me how to overcome this problem?

How did you edit logind.conf?
Did you restart the computer?

The following works for me in xfce:

Power Settings for laptop with external monitor (as root)

etc/systemd/logind.conf

Uncomment the following:

LidSwitchIgnoreInhibited=yes
HandleLidSwitch=ignore

Then restart computer

IgnoreLid=true in etc/UPower/UPower.conf

my config

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

yes restarted

etc/UPower/UPower.conf I don 't have such a file , do I need to create one ?

It should be here:
/etc/UPower/

[UPower]

# Enable the Watts Up Pro device.
#
# The Watts Up Pro contains a generic FTDI USB device without a specific
# vendor and product ID. When we probe for WUP devices, we can cause
# the user to get a perplexing "Device or resource busy" error when
# attempting to use their non-WUP device.
#
# The generic FTDI device is known to also be used on:
#
# - Sparkfun FT232 breakout board
# - Parallax Propeller
#
# default=false
EnableWattsUpPro=false
IgnoreLid=true
# Don't poll the kernel for battery level changes.
#
# Some hardware will send us battery level changes through
# events, rather than us having to poll for it. This option
# allows disabling polling for hardware that sends out events.
#
# default=false
NoPollBatteries=false

added, rebooted the computer. No result yet