Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 474092 - xfce-extra/xfce4-power-manager-1.2.0-r1: does not dim display on ac unplug
Summary: xfce-extra/xfce4-power-manager-1.2.0-r1: does not dim display on ac unplug
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: XFCE Team
URL: http://git.xfce.org/xfce/xfce4-power-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-22 00:09 UTC by Christoph Junghans (RETIRED)
Modified: 2013-07-24 04:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Junghans (RETIRED) gentoo-dev 2013-06-22 00:09:50 UTC
When unplugging the ac adapter on my thinkpad X230(x86_64 Gentoo Linux) the screen doesn't get dimmed, even though the icon is changing. This feature works on my older thinkpad X61(x86 Gentoo Linux), which is why I realized it.

power-manager with --debug shows that the change in power supply is realized.
The thinkpad X230 has a "Intel Corporation 3rd Gen Core processor Graphics Controller" (lspci), which can be controlled via the acpi_video0 in /sys/class/backlight, but it also works via the intel_backlight interface (adding this to backlight_interfaces does not help.) Also the brightness plugin on the panel works and the fn keys work when xfce's volumed is running.
Comment 1 Christoph Junghans (RETIRED) gentoo-dev 2013-07-24 01:42:11 UTC
Upstream merge a solution:
<http://git.xfce.org/xfce/xfce4-power-manager/commit/?id=05d12e12596512f7a31d3cdb4845a69dc2d4c611>

Can we add this patch to the gentoo ebuild, please?
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2013-07-24 04:36:45 UTC
(In reply to Christoph Junghans from comment #1)
> Upstream merge a solution:
> <http://git.xfce.org/xfce/xfce4-power-manager/commit/
> ?id=05d12e12596512f7a31d3cdb4845a69dc2d4c611>
> 
> Can we add this patch to the gentoo ebuild, please?

because this is...

1. simple as adding "${FILESDIR}"/${P}-foo.patch
2. and the commit is in (from) upstream repository

...you could have just merged it yourself to Portage

but okay, I've done it now :)

+*xfce4-power-manager-1.2.0-r2 (24 Jul 2013)
+
+  24 Jul 2013; Samuli Suominen <ssuominen@gentoo.org>
+  +xfce4-power-manager-1.2.0-r2.ebuild,
+  +files/xfce4-power-manager-1.2.0-brightness_level_gint32.patch:
+  Backport upstream patch for brightness level handling wrt #474092 by
+  Christoph Junghans