You are not logged in.

#1 2015-04-09 15:35:49

jmayniac
Member
Registered: 2009-08-12
Posts: 17

Dim screen

Do I need to install a specific package or edit a config file to enable screen dimming on unplugging AC power?  I've done some searching and can't find a definitive answer.  I'm using a Thinkpad X230 (non-touch) with Gnome 3.14 and have TLP installed along with acpi and acpid.  My brightness keys work fine and I don't really have any other issues.  I can actually hear a beep when I unplug AC power, so it seems that is being recognized.

When unplugging AC, this shows up in my log:

ACPI group/action undefined: ACPI0003:00
thinkpad_acpi: EC reports that Thermal Table has changed
ACPI group/action undefined: ibm/hotkey / LEN0068:00
ACPI group/action undefined: thermal_zone / LNXTHERM:00
ACPI action undefined: PNP0C0A:00
ACPI action undefined: ACPI0003:00

Should I even be using acpi anymore?

Offline

#2 2015-04-09 16:10:09

nixpunk
Member
Registered: 2009-11-23
Posts: 271

Re: Dim screen

https://wiki.archlinux.org/index.php/Ba … -backlight (1)
https://wiki.archlinux.org/index.php/La … brightness (2)
https://wiki.archlinux.org/index.php/Ac … ple_events (3)

I'm not sure if TLP takes care of this, but in the past I've just used Laptop Mode Tools (see 2).  If TLP doesn't, and you don't want to use Laptop Mode Tools, you could just write a simple script to check if not connected to power and adjust backlight accordingly (see 3).

[edit] I'm not sure if Gnome has a method to do this as well.  Perhaps a Gnome user could chime in on that.  Also, keep in mind installing any power management app might create conflicts with DE power settings.

Last edited by nixpunk (2015-04-09 16:13:27)

Offline

#3 2015-04-09 16:47:11

jmayniac
Member
Registered: 2009-08-12
Posts: 17

Re: Dim screen

nixpunk wrote:

https://wiki.archlinux.org/index.php/Ba … -backlight (1)
https://wiki.archlinux.org/index.php/La … brightness (2)
https://wiki.archlinux.org/index.php/Ac … ple_events (3)

I'm not sure if TLP takes care of this, but in the past I've just used Laptop Mode Tools (see 2).  If TLP doesn't, and you don't want to use Laptop Mode Tools, you could just write a simple script to check if not connected to power and adjust backlight accordingly (see 3).

[edit] I'm not sure if Gnome has a method to do this as well.  Perhaps a Gnome user could chime in on that.  Also, keep in mind installing any power management app might create conflicts with DE power settings.


There might be a UDEV rule needed, but I thought that Gnome was supposed to handle this.

BTW, Gnome is also supposed to dim the screen after 5 minutes, but it doesn't do that either.  I've made sure it is all set.  I see nothing in the journal that says it is trying to dim the screen.

Offline

#4 2015-04-10 22:57:38

rix
Member
Registered: 2012-07-25
Posts: 238

Re: Dim screen

For screen dimming on un/plugging ac power I've just made brightness file (in /sys...) changing with udev and tmpfiles.d.

Offline

#5 2015-04-11 06:28:19

ubone
Member
Registered: 2014-08-31
Posts: 47

Re: Dim screen

jmayniac wrote:

Do I need to install a specific package or edit a config file to enable screen dimming on unplugging AC power?

Should I even be using acpi anymore?

Look here: https://wiki.archlinux.org/index.php/Ac … ple_events

echo -n 0 > /sys/class/backlight/acpi_video0/brightness

would lower the brightness level to minimum

echo -n 100 > /sys/class/backlight/acpi_video0/brightness

would raise the brightness to maximum
/sys/class/backlight/acpi_video0/brightness is for ATi GPUs with free radeon driver, for intel it might be /sys/class/intel_backlight/... also check min/max_brightness files for your correct values

edit: I see the link has been given, this method is for a non DE setup which lacks a power manager like the one in Xfce and surely Gnome, I haven't used gnome but Xfce makes use of pkg Upower for power manager to work

Last edited by ubone (2015-04-11 07:00:27)

Offline

Board footer

Powered by FluxBB