Wednesday, March 08, 2006

KPowersave 0.5.10-rc4 released

Yesterday I released the next KPowersave version. This new release candidate (yes we are now at RC4 and there follow also some more rc's, because of the changed releaseplan for SUSE 10.1) depends now on powersave >= 0.12.2.

I fixed, based on a report on powersave-devel, the handling of the lidclose event. Now KPowersave call 'xset dpms force off ' on lidclose and reset the dpms and screensaver settings on lidopen to off the LCD backlights. Also included: a fix to display processor infos on multiprocessor/-core machines for all CPUs/cores also on non-CPUFreq/throttling machines, a fix from Daniel Gollub to read throttling informatation also on multiprocessor machines, a fix to display battery infos in the detailed dialog only if at least one batterybay is available. While porting to Mandriva, I made also some autotool releated changes: changed detection of Mandriva and read location/name of the D-BUS system socket from pkgconfig. I added at least a patch from Michael Biebl to use pkgconfig from powersave for checks and linking.

With this version the packagesize increased to ~3.3 MByte because I updated and added missing screenshots for the localized handbook versions and added a icon to avoid problems on non-SUSE distributions. The changes also include language updates.

The last release was really successful! It was, after released, downloaded 1421 times in the first seven days from the project page at sourceforge. This is nearly the same as normaly in one complete month (~1500 downloads). I don't know who are all the people which downloaded the files but I like it and hope they like and use KPowersave. The most downloads was for SUSE and the source tar.bz2 but also many downloads for Fedora Core 4.

Saturday, March 04, 2006

KPowersave/powersave for Mandriva

I released today our first packages of KPowersave and powersave for Mandriva 2006.1. It was a hard work to get both packages running and packaged for Mandriva. They have no matching DBUS, HAL and not the correct version of cpufrequtils in there stable release and unfortunately I also could not find the needed devel rpms on the 2006.1 release CDs. Because of this I used 2006.1 and needed to update several packages to Cooker - the testing/devel three of Mandriva.

There where also some problems with the DBUS configuration for powersave. As it look the desktopuser is not in the group at_console - thus I needed to open the powersave interface for default. Btw. now powersave and KPowersave work on Mandriva. I released packages for ix86 on the project home on sourceforge.net.

There are some point to consider if you install (K)powersave on Mandriva:
  • you need to update HAL (>= 0.5.5.1), DBUS (>=0.61) and install cpufrequtils (>=0.4) via RpmDrake from Cooker
  • if you use a ACPI machine you need acpid
  • you have the choise, uninstall these packages or be sure that the related services are not running parallel to powersave: apmd, cpufreq, cpufreqd, powernowd . If you not stop/remove these services you can get in races with the powersave daemon
  • currenly the user need to add powersaved manually to the boot process wirth chkconfig. At the moment I do this not automatically while install the rpm.
These packages are the initial version and my first Mandriva rpms. If there are any bugs feel free to mail to powersave-devel@forge.novell.com. Any comments and suggestions are welcome.

Thursday, March 02, 2006

KPowersave 0.5.9-rc3 released

Yesterday I released a new KPowersave release candidate (RC3). This new version (v0.5.9) fixes APM support in KPowersave. I found several problems with battery informatiion on APM with the applet tooltip and the information dialog which based on bugs in powersave. Looks as APM was not really tested with powersave since the HAL support was added. I fixed this in powersave and also the battery state if no battery is available. Because of this changes KPowersave depends now on the new powersave version 0.12.1.

With the new powersave version I registered that HAL poll every 2 seconds /proc/apm. The apm interface recalculate with each read the remaining time. Thus HAL change with each poll the battery remaining time properties and send events over D-Bus. If we get every 2 seconds new events in powersave and with it also in KPowersave we use the D-BUS more often than with ACPI if the machine is on battery. Everyone say DBUS doen't need much CPU, but in this case (APM/battery/powersave/kpowersave/2 second poll in HAL) the DBUS daemon produce a CPU usage between 5 and 25 %. This is IMO to much - we need to investigate what the reason is.

In fact the APM handling in HAL is complete broken. HAL should not poll battery information every 2 seconds. This is okay to get AC information, but not for remaining time. I plan to rewrite APM in HAL: poll AC every 2 seconds, poll battery every 30-60 seconds and compute the remainig time over the percentage because the APM remainig time information are not really trustable and APM does not provide remainig time for changing mode. Here a list of the major changes in KPowersave since 0.5.6 (the last version I wrote about here):
  • removed the sound settings from the configure dialog and replaced this functionality with KNotify support (thanks to Michael Biebl), added more KNotify events to KPowersave (now with KNotify support the user can play sound, change the type of notification and/or start e.g. a programm or script for a event)
  • fixed CPU information on machines with throttling support and on machines without CPUfreq or throttling support
  • several GUI fixes in the information dialog
  • some fixes to be more portable (autotool fixes and fixed path to pidof for autosuspend on FC4)
  • string, translation and handbook fixes and updates

Tuesday, February 21, 2006

Packaging - kdbus

Last week I found on kde-apps.org a new interesting package: kdbus. It's a KDE application to discover D-BUS services on the system and session bus and call found methodes. This is the same as kdcop for DCOP. I added the package to the SUSE build system and it was approved for production on the next day - really fast, thanks to Andreas Jäger - and is now available on factory and the next release.


By testing the package I could see that currently only D-BUS itself is full supported for introspection via the bus. I'm not sure if the other services are broken or only not support introspection. In case of HAL and also powersave I could not found any introspection code in the source. So I think we should add at least to powersave the related methodes and the needed xml file with the description of the available services, methodes and signals from the powersave daemon.

Btw. the application is very usefull if all services would implement intospection also If the GUI need some fixes and improvements because currently resize the GUI did not work so well.

Wednesday, February 08, 2006

Packaging

Last week I added a new package to the SUSE STABLE/factory tree. The package is called xournal and is an application for notetaking, sketching, keeping a journal using a stylus. Instead of Journal this is not written in Java, it's written in gtk2 and we could ship this package also on the OSS version. This extend the support for Tablet PCs. I think we get this package also in SLES and NLD 10.


Now Jarnal and Yakuake, the package I added the last time, are aproved and now in state production. This mean they should be on the upcomming 10.1. release (Jarnal not at OSS version). I think releaseforge follows in the next days.

Tuesday, February 07, 2006

KPowersave 0.5.6 released

Monday I released a new version of KPowersave (v0.5.6). This is the last unstable release. With SUSE 10.1 RC1 we ship a release candidate and with SUSE 10.1 the final version 0.6.0. Currently we only work on bugfixes and translation updates. This detailed dialog contains a new summary bar for multi battery machines to display the complete time and percentage with more than one battery in the system. I hope Seife is now happy ;-).

Thanks again to Michael Biebl for the help with porting KPowersave to Gentoo and Debian/Ubuntu. He catched a bug with autosuspend and the path to pidof, which we fixed now. The package includes translations updates (thanks to Dawei Pang and Dawid Wróbel for translation updates), new handbook versions (cs, pt) and several bugfixes as e.g. reduce excessive CPU usage if detailed dialog was displayed and a fix for Slackware 10.2.

I started last week a help request on opensuse@opensuse.org to find community members which would support translation of KPowersave, because we are late in the translation process and we implemented several new features in the Beta's. We already could (as you see above) integrate some new of the translations back from the community. I hope we could translate with help of community and the SUSE/Novell translation team the most of KPowersave.

Wednesday, February 01, 2006

subfs dropped and now?

Since SUSE 10.1 Beta2 subfs is dropped from the kernel and with this also the submount package. Because of this we have no default automatic mount for hotplugable media (as e.g. CD/DVD/USB-Storage) on console/for console users. The user can now only mount this storage devices under KDE/GNOME but not on console or in any other WM (without enter root password/sudo).

I know subfs was really ugly and many people sad: 'Subfs is a piece of shit' but this worked as it was. Yes, there where bugs with subfs (stat and df/du didn't work, and the slow data rates on VFAT -osync mounted volumes wasn't a subfs bug), but they was fixed. But because of changing HAL from netlink-socket to poll /proc/mounts every 2 seconds to detect mount state of volumes there was a race between hal and submountd. With this race submountd was not able to umount the device if it was in use. IMO this was fixable and maybe polling /proc/mount was a bad idea. But the solution was: drop subfs with no replacement for hal-subfs-mount.

As now several bug reports demonstrate: it's a problem for users to have no automount solution on console and IMO the biggest problem: no solution on other WM's. With dropping subfs we lost some features (as e.g. mount CD for a user if he access the mount and umount if not used) we can't replace currently with other working and tested tools. In my opinion we need a well working tool to automount also for non-KDE/GNOME cases ... maybe readd and fix subfs?