[Pkg-acpi-devel] Bug#754450: acpi-support: laptop backlight is not dimmed when unplugging power

Fufu Fang fangfufu at fangfufu.co.uk
Sat Oct 4 10:38:17 UTC 2014


Hi,
I experienced the same issue. I temporarily fixed it by replacing
/etc/acpi/power.sh with the following content:
#!/bin/sh

test -f /usr/share/acpi-support/key-constants || exit 0

. /usr/share/acpi-support/power-funcs
. /usr/share/acpi-support/policy-funcs

#if [ -z "$*" ] && { CheckPolicy || CheckUPowerPolicy; }; then
#    exit;
#fi

pm-powersave $(on_ac_power)
Cheers,
Fufu

On Fri, 11 Jul 2014 10:27:27 +0200 Nicolas =?utf-8?Q?=C3=89vrard?=
<nicoe at no-log.org> wrote:
> Package: acpi-support
> Version: 0.142-1
> Severity: normal
>
> Dear Maintainer,
>
> I notice that since I switched to systemd my laptop do not dim the
> backlight when unplugging the power cord.
>
> According to me this is due to two things:
>
> - acpid wrongly calls power.sh without argument (I had to install
> consolekit for power.sh to be called because it uses
> ck-list-sessions, that's maybe another bug).
>
> - the test CheckPolicy checks for HasLogindAndSystemd1Manager but
> if I am not mistaken systemd does not handle battery events.
>
> Thus power.sh exits and pm-powersave is never called.
>
> Thank you for your time!
>
>
> -- System Information:
> Debian Release: jessie/sid
> APT prefers unstable
> APT policy: (500, 'unstable'), (1, 'experimental')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
>
> Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
> Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages acpi-support depends on:
> ii acpi-support-base 0.142-1
> ii acpid 1:2.0.22-2
> ii lsb-base 4.1+Debian13
> ii pm-utils 1.4.1-15
> ii x11-xserver-utils 7.7+2
>
> Versions of packages acpi-support recommends:
> ii acpi-fakekey 0.142-1
> pn rfkill <none>
>
> Versions of packages acpi-support suggests:
> pn radeontool <none>
> ii vbetool 1.1-3
> ii xautolock 1:2.2-4
> pn xinput <none>
> ii xtrlock 2.6
>
> -- Configuration Files:
> /etc/default/acpi-support changed:
> ACPI_SLEEP=true
> ACPI_HIBERNATE=true
> LOCK_SCREEN=true
> LID_SLEEP=true
> DISPLAY_DPMS=xset
> XRANDR_OUTPUT=LVDS



More information about the Pkg-acpi-devel mailing list