Richard Hughes | 3 Dec 2011 14:11
Picon

Re: [PATCH] upower: Handle Linux power supplies not exporting a present property

On 27 November 2011 19:39, Heiko Stübner <heiko <at> sntech.de> wrote:
> According to Anton Vorontsov (Linux power supply maintainer) power
> supplies should not export a present property when they are not
> hotpluggable and users of the properties should handle supplies
> without present-property as always present.

Applied with cosmetic changes. Thanks!

Richard.
_______________________________________________
devkit-devel mailing list
devkit-devel <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/devkit-devel
Serghei Amelian | 3 Dec 2011 23:18
Picon

UPower - display backlight

Hello,

I'm one of Trinity Desktop Environment developers and currently my task is to 
implement a new power management infrastructure.

So far I developed a battery monitor, based on UPower. The current problem is 
controlling backlight for displays. Using XRandR externsion is not feasible, 
because is too slow ( 
http://lists.x.org/archives/xorg/2008-May/035007.html ), I tried it already.

The question is: will be possible to include into upower support for 
controlling brigtness via ACPI (similar to 
org.freedesktop.UPower.KbdBacklight) ?

Thanks

--

-- 
Serghei
Michael Biebl | 4 Dec 2011 06:13
Picon

Re: UPower - display backlight

2011/12/3 Serghei Amelian <serghei <at> thel.ro>:

> So far I developed a battery monitor, based on UPower. The current problem is
> controlling backlight for displays. Using XRandR externsion is not feasible,
> because is too slow (
> http://lists.x.org/archives/xorg/2008-May/035007.html ), I tried it already.
>
> The question is: will be possible to include into upower support for
> controlling brigtness via ACPI (similar to
> org.freedesktop.UPower.KbdBacklight) ?

http://lists.freedesktop.org/archives/devkit-devel/2009-July/000300.html

I hope this answers your question

Cheers,
Michael

--

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
Michael Biebl | 4 Dec 2011 06:14
Picon

Re: UPower - display backlight

2011/12/4 Michael Biebl <mbiebl <at> gmail.com>:

Might make sense to point to the start of the thread...

http://lists.freedesktop.org/archives/devkit-devel/2009-July/000268.html

--

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
Serghei Amelian | 4 Dec 2011 15:52
Picon

Re: UPower - display backlight

On Sunday 04 December 2011 07:13:47 you wrote:
[...]

> > The question is: will be possible to include into upower support for
> > controlling brigtness via ACPI (similar to
> > org.freedesktop.UPower.KbdBacklight) ?
>
> http://lists.freedesktop.org/archives/devkit-devel/2009-July/000300.html
>
> I hope this answers your question

Yes, thank you. But the problem remains. Any hint from gnome/xfce developers 
who made brightness control?

> Cheers,
> Michael

Regards.

--

-- 
Serghei
Alex Fiestas | 4 Dec 2011 16:33
Picon
Favicon

Re: UPower - display backlight

In Desktop Summit Richard Hughes Dario Freddi and I talked about 
Backlight, the current situation as far as I know goes as follow:

There are 2 ways of managing display backlight, both GNOME and KDE have 
almost equivalent implementations:

-XRandR: If the Driver supports backlight we use it, the code in both 
projects is almost duplicated or even copypasted, in the case of KDE can 
be found here:

http://goo.gl/fq9Jb

-Via /sys/class/backlight interfaces: Again both GNOME and KDE are using 
an almost equally code, one written in G* and the other in Qt*

KDE code can be found here:
http://goo.gl/d4OLa

So, we proposed to unify both efforts into a single shared library, but 
so far nothing happened.

I'd like to see this library happen, one of the benefits will be to 
unify both implementations are working for the 99% of cases but the 
remaining 1% is different mainly because of the interface order we use.
Gary Ching-Pang Lin | 5 Dec 2011 03:01

Re: UPower - display backlight

2011/12/4 Serghei Amelian <serghei <at> thel.ro>:
> On Sunday 04 December 2011 07:13:47 you wrote:
> [...]
>
>> > The question is: will be possible to include into upower support for
>> > controlling brigtness via ACPI (similar to
>> > org.freedesktop.UPower.KbdBacklight) ?
>>
>> http://lists.freedesktop.org/archives/devkit-devel/2009-July/000300.html
>>
>> I hope this answers your question
>
>
> Yes, thank you. But the problem remains. Any hint from gnome/xfce developers
> who made brightness control?
>
The backlight control in gnome-settings-daemon:

http://git.gnome.org/browse/gnome-settings-daemon/tree/plugins/power/gsd-power-manager.c#n2446

It uses gnome-rr which is based on XRANDR or a fallback helper:

http://git.gnome.org/browse/gnome-settings-daemon/tree/plugins/power/gsd-backlight-helper.c

Cheers,

Gary Lin
Richard Hughes | 5 Dec 2011 10:52
Picon

UPower 0.9.15 Released

Version 0.9.15
~~~~~~~~~~~~~~
Released: 2011-12-05

New Features:
 - Add --with-historydir to specify where we want the history files to
be stored (Landry Breuil)
 - Use linear regression to get better predicted battery times (Leonardo Robol)

Bugfixes:
 - Don't assert when the power_supply device type is usb (Richard Hughes)
 - Don't spam the log when we're saving history when on low power
(Richard Hughes)
 - Fail the tests gracefully if GI is not available (Martin Pitt)
 - Fix crash in up_device_csr_finalize() (Martin Pitt)
 - Fix invocation of src/linux/integration-test (Martin Pitt)
 - Handle Linux power supplies not exporting a present property (Heiko Stübner)
 - If a power-supply device doesn't report charge or energy, try to
read the percentage (Richard Hughes)
 - Move the wacom hack to allow us to support other types of USB
device (Richard Hughes)
 - Port the tests to Python 3 (Martin Pitt)

Richard.
_______________________________________________
devkit-devel mailing list
devkit-devel <at> lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/devkit-devel
Richard Hughes | 5 Dec 2011 12:23
Picon

GUsb 0.1.3 released!

GUsb is a GObject wrapper for libusb1 that makes it easy to do
asynchronous control, bulk and interrupt transfers with proper
cancellation and integration into a mainloop.

Version 0.1.3
~~~~~~~~~~~~~
Released: 2011-12-05

Bugfixes:
 - Do not build with -Werror by default (Richard Hughes)
 - Add a missing error enum value (Richard Hughes)

Tarballs available here: http://people.freedesktop.org/~hughsient/releases/

Richard
Serghei Amelian | 6 Dec 2011 20:16
Picon

libudev - enumerate CPUs

Hello,

It is possible to enumerate CPUs using libudev? If yes, how?

Thanks.

--

-- 
Serghei

Gmane