Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #165318
| From | Joel Roth <joelz@pobox.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: events for power plug |
| Date | 2016-03-13 01:50 +0100 |
| Message-ID | <rc2oh-6ad-1@gated-at.bofh.it> (permalink) |
| References | <rbYul-3j1-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sat, Mar 12, 2016 at 05:35:17PM -0300, Bruno Schneider wrote: > 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. The cpufreqd package already does this. Install, and look at /etc/cpufreqd.conf Or, you could poll the command on_ac_power to get the status changes. Joel > 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 > -- Joel Roth
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll 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