Newbie: Laptop Lid Question

El_Duderino

New Member
Jun 14, 2019
7
0
1
46
I'm a newbie and not a programmer so please be gentle with me. I've got Proxmox up and running on an old MacBook Air and am trying to figure out how to make it so it stays active when the lid is closed. I've searched but didn't find any solution.

I saw something about editing the /etc/systemd/logind.conf file, but was unable to locate it as the sudo -H gedit /etc/systemd/logind.conf command wasn't recognized.

Thank you!
 

oguz

Proxmox Staff Member
Staff member
Nov 19, 2018
645
67
28
hi,

check out this link[0]. proxmox is actually debian so it shouldn't behave that differently. these are the generic debian ways to achieve it.

ps: to be honest i don't know much about macs so you might have to do some more specific googling to solve your problem

[0]: https://wiki.debian.org/Suspend#Disable_suspend_and_hibernation
 

El_Duderino

New Member
Jun 14, 2019
7
0
1
46
I am logged in as root and I tried the same command as su but don't think it worked. How do I access the /etc/systemd/logind.conf file?
 

BobhWasatch

Member
Mar 16, 2019
56
7
8
57
I am logged in as root and I tried the same command as su but don't think it worked. How do I access the /etc/systemd/logind.conf file?
All sudo does is to let authorized users run a command as root. If you are already root you don't need it. The "su" command allows you to log in as another user. Again, if you are already root you don't need it. Just run the command by itself.

To access the file you would use an editor like vi or nano. Vi is probably already installed but is not very easy to use. I don't remember if Proxmox installs nano by default. If it is not installed:

apt install nano

Then "nano /etc/systemd/logind.conf".

Ctrl-X exits nano. Other commands are in the help at the bottom of the screen.
 

El_Duderino

New Member
Jun 14, 2019
7
0
1
46
Partially solved:

Using the nano command I was able to get the laptop to close without suspending/hibernating. Now, the "apple" light and I suspect the screen are staying on. How can I blank out the screen (and the apple logo light)?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!