Dear Ingo,
On Tue, Nov 28, 2017 at 08:28:02PM +0100, Ingo Schwarze wrote:
> Job Snijders wrote on Mon, Nov 27, 2017 at 03:12:10PM +0000:
> > I'm tweaking how my laptop behaves depending on whether it is
> > pluggde into AC or not. Any hints or alternative suggestions are
> > welcome. This is my config: /etc/sensorsd.conf:
> >
> > acpiac0.indicator0:command=/etc/sensorsd/ac_power %2
>
> I am using:
>
> hw.sensors.acpiac0.indicator0:low=1:command=/etc/sensorsd/acpiac %2 %3 %4
>
> The "%3 %4" is just useful for debugging, you don't need it.
> But are you sure you can omit "hw.sensors."?
> The sensorsd.conf(5) manual only says:
>
> Sensors may be specified by their full hw.sensors sysctl(8)
> variable name or by type, with the full name taking precedence.
>
> The string "acpiac0.indicator0" seems to be neither.
I tried both fully qualified and shortened, and based on your email also
with "low=1". Still the event doesn't fire reliably.
> > echo $1 >> /root/test
>
> Using logger(1) might feel more professional ;-) For example, i'm
> using:
>
> logger -p daemon.info -t acpiac status=$1 low=$2 high=$3
Thank you, that is indeed a better approach :)
Kind regards,
Job
No comments:
Post a Comment