Add udev rules to auto-dim panel when on battery power

Bug #250355 reported by TJ on 2008-07-21
Affects Status Importance Assigned to Milestone
smartdimmer (Ubuntu)

Bug Description

Binary package hint: smartdimmer

I've added a udev script to auto-dim the back-light to 50% when the charger is removed, and return it to 100% when the charger is attached.

The file is /etc/udev/rules.d/80-smartdimmer.rules

# NVidia backlight control using smartdimmer
# Copyright July 2008, TJ <email address hidden>
# Licensed under the GNU General Public License, v2

ACTION=="change", SUBSYSTEM=="power_supply", ATTR{type}=="Battery", ATTR{status}=="Discharging", RUN+="/usr/bin/smartdimmer -s 12"
ACTION=="change", SUBSYSTEM=="power_supply", ATTR{type}=="Battery", ATTR{status}=="Charging", RUN+="/usr/bin/smartdimmer -s 21"

TJ (tj) on 2008-07-21
Changed in smartdimmer:
importance: Undecided → Wishlist
Steve Langasek (vorlon) wrote :

This should be addressed in userspace policy via gnome-power-manager or equivalent, not via a hard-coded udev rule.

Changed in smartdimmer:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers