Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #165314

events for power plug

From Bruno Schneider <boschneider@gmail.com>
Newsgroups linux.debian.user
Subject events for power plug
Date 2016-03-12 21:40 +0100
Message-ID <rbYul-3j1-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


I have a notebook with Debian testing (Stretch) that gets slow
whenever the power cord is plugged in. I can't figure out the exact
reason for that, but it seems that setting the CPU governor to
performance helps a lot.

But calling cpufreq-selector is hard for regular users. I wish to make
a script that is called upon power plug events, with root privileges.

I read documentation from acpi and pm-powersave, and from my
understanding, scripts in /etc/pm/power.d/ should be called every time
the power plug status changes with parameters "true" or "false". So I
created a script there, but it seems to be called only at boot time,
and not every time the power plug status changes.

Can anybody help?
-- 
Bruno Schneider

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

events for power plug Bruno Schneider <boschneider@gmail.com> - 2016-03-12 21:40 +0100
  Re: events for power plug Robert Pommrich <leprovokateur@gmx.de> - 2016-03-12 22:00 +0100
  Re: events for power plug Joel Roth <joelz@pobox.com> - 2016-03-13 01:50 +0100

csiph-web