Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Debian 11 Server don't suspend but turn off screen on lid close

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
delyakov
Posts: 1
Joined: 2022-08-01 20:55

Debian 11 Server don't suspend but turn off screen on lid close

#1 Post by delyakov »

I have a local web server on Dell Latitude 5480 laptop with Debian 11.
I want to close the screen to save more power, but with the screen closed server stop working.
I turn off totally suspend mode and it works okay even on closed screen, but the screen was keeping live even when closed, which is unuseful for me.

I tried this: https://www.dell.com/community/Linux-Ge ... -p/6086201
And I tried all answers here too: https://askubuntu.com/questions/141866/ ... lid-closed

Nothing works as expected for my case - on closed screen the screen to turn off but not going to "suspend" so the server keep working.

Thanks for ideas in advance!

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2042
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 149 times
Been thanked: 212 times

Re: Debian 11 Server don't suspend but turn off screen on lid close

#2 Post by Hallvor »

If you want to turn off the screen:

xrandr --listmonitors will show your screen:

Code: Select all

xrandr --listmonitors
Monitors: 1
 0: +*eDP-1 1920/309x1080/173+0+0  eDP-1
Then (in this case)

Code: Select all

xrandr --output eDP-1 --off
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

Post Reply