Author Topic: power management  (Read 1014 times)

0 Members and 1 Guest are viewing this topic.

Offline pcosta17

  • Neuling
  • *
  • Posts: 22
  • I'm new. Be nice!
  • Desktop: Openbox
  • GPU Card: Intel 2nd Gen
  • GPU driver: free
  • Kernel: 4.2.8-1
  • Skill: Novice
power management
« on: 27. December 2015, 07:00:27 »
I am running the newest openbox and it's really nice.  My question is about power management.  How do I set my laptop to remain on and not locked when I close the lid? 

Offline gohlip

  • Held Mitglied
  • *****
  • Posts: 1689
  • Desktop: OpenBox
  • GPU Card: nvidia
  • GPU driver: nonfree
  • Kernel: linux46 - x64
  • Skill: Intermediate
Re: power management
« Reply #1 on: 27. December 2015, 07:56:03 »
Put
Code: [Select]
xset -dpms; xset s off & in autostart
I installed openbox using net install, so my autostart is in /etc/xdg/openbox/, but if yours is a standard openbox installation, it may be in your ~/.config/openbox/

Cheers.

ps: Of course, you can make a bash command to use it only when needed.
« Last Edit: 27. December 2015, 08:00:01 by gohlip »
Life is a sexually transmitted disease with a 100% mortality rate.

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: power management
« Reply #2 on: 29. December 2015, 10:12:48 »
Code: [Select]
sudo nano /etc/logind.confMight also be interesting for you, particularly. "HandleLid" section.