Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Power management under TTY

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
PeGa!
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 104
Joined: Fri May 13, 2005 3:25 pm
Location: Capital Federal, Buenos Aires, Argentina
Contact:
Contact PeGa!
Website

Power management under TTY

  • Quote

Post by PeGa! » Thu Jun 06, 2019 2:37 am

Hello,

I'm doing a long waited system upgrade in my laptop, and as it only has 4GB of RAM, I decided to stop X entirely and work only in TTY.

Now, the problem is, when I close the lid, my system (i5 5200u based generic laptop) goes to sleep.

How could I control that behavior? In X (I use Plasma Desktop) it's just a couple of clicks, but what about TTY? I tried vbetool to no avail, and a couple of searches around the forums pointed me to look into /etc/acpi (there's no such directory in my system, and after a quick eix I noticed I don't have any acpi packages installed either) and to look into /proc. However, in /proc I only found the lid state and /sys wasn't helpful either.

Any hints will be appreciated.

Thanks in advance.
If it moves, it needs an ebuild.

Adopt an unanswered post.
Top
fturco
Veteran
Veteran
Posts: 1181
Joined: Wed Dec 08, 2010 8:38 pm

  • Quote

Post by fturco » Thu Jun 06, 2019 9:46 am

If you use systemd you can set HandleLidSwitch=ignore in /etc/systemd/logind.conf and restart systemd-logind.service (be warned that this will terminate all login sessions that might still be open). Unfortunately I don't know how to accomplish the same thing with OpenRC or other init systems...
Top
PeGa!
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 104
Joined: Fri May 13, 2005 3:25 pm
Location: Capital Federal, Buenos Aires, Argentina
Contact:
Contact PeGa!
Website

  • Quote

Post by PeGa! » Thu Jun 06, 2019 1:22 pm

Hi fturco,

I forgot to specify; I'm using OpenRC.

Thanks anyway.
If it moves, it needs an ebuild.

Adopt an unanswered post.
Top
cboldt
Veteran
Veteran
User avatar
Posts: 1046
Joined: Wed Aug 24, 2005 2:54 pm

  • Quote

Post by cboldt » Thu Jun 06, 2019 2:34 pm

Likely the kernel is doing this all on its own, that is, no need for any userspace ACPI package.

There is a file in the kernel source code tree, Documentation/acpi/acpi-lid.txt that advises of a few kernel boot parameters that affect how the lid switch is handled. I suppose there are some kernel build settings that could accomplish a similar "ignore" effect.
Top
eccerr0r
Watchman
Watchman
Posts: 10239
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Thu Jun 06, 2019 2:41 pm

It's doing some firmware based suspend. Acpid should intercept all the acpi events, of which lid switch is one of them. You can try emerging acpid and see if it will intercept the suspend like what GUI normally does to handle the suspend event.

(vbetool only handles your display, not cpu)

BTW, you probably can get away with running the GUI on 2GB 32-bit and ~3GB 64-bit machines, less than that is dicey, but you need swap space. I set up swap on all my machines including SSD based machines for the overflow.
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
cboldt
Veteran
Veteran
User avatar
Posts: 1046
Joined: Wed Aug 24, 2005 2:54 pm

  • Quote

Post by cboldt » Thu Jun 06, 2019 3:16 pm

Tried this, worked for me ...

"To toggle their state you have to echo the device name to the file as root."

Code: Select all

# echo LID > /proc/acpi/wakeup
I did a `cat proc/acpi/wakeup` and the contents include an entry called "LID"
Top
Post Reply

6 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic