Your message dated Mon, 14 Apr 2008 21:18:00 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#474330: fixed in xfce4-cpufreq-plugin 0.2-2
has caused the Debian Bug report #474330,
regarding xfce4-cpufreq-plugin: should be able to display frequencies <1GHz as
0.x GHz
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
474330: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=474330
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: xfce4-cpufreq-plugin
Version: 0.2-1
Severity: wishlist
Tags: patch
*** Please type your report below this line ***
Hi,
my CPUs frequency is scaled between 800MHz and 1,6GHz. This causes the
cpufreq plugin to change width on the panel (it uses smaller font to
show MHz values so "800 MHz" is smaller than "1,6 GHz"), moving
everything next to it.. this is quite annoying, so I'd like it to show
800 MHz as 0.8 GHz.
I wrote a small patch which enforces this behaviour and allows me to
change it in the plugins properties.
I'm sending it to you because the author doesn't mention the plugin on
his homepage anymore, which makes debian the primary source to get it.
Cheers,
- Daniel
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages xfce4-cpufreq-plugin depends on:
ii libatk1.0-0 1.20.0-1 The ATK accessibility toolkit
ii libc6 2.7-6 GNU C Library: Shared libraries
ii libcairo2 1.4.14-1 The Cairo 2D vector graphics libra
ii libcpufreq0 002-7.2 shared library to deal with the cp
ii libglib2.0-0 2.16.1-2 The GLib library of C routines
ii libgtk2.0-0 2.12.9-2 The GTK+ graphical user interface
ii libpango1.0-0 1.20.0-1 Layout and rendering of internatio
ii libxfce4util4 4.4.2-2 Utility functions library for Xfce
ii libxfcegui4-4 4.4.2-2 Basic GUI C functions for Xfce4
ii libxml2 2.6.31.dfsg-2 GNOME XML library
ii xfce4-panel 4.4.2-3 The Xfce4 desktop environment pane
xfce4-cpufreq-plugin recommends no packages.
-- no debconf information
--- xfce4-cpufreq-plugin-0.2/cpufreq.c 2006-06-16 02:21:54.000000000 +0200
+++ xfce4-cpufreq-plugin-0.2.patched/cpufreq.c 2008-04-05 01:24:44.914728734 +0200
@@ -64,6 +64,7 @@
gboolean invert_colors;
gboolean showed_warning;
+ gboolean always_GHz;
GdkColor colorLow;
GdkColor colorHi;
@@ -178,9 +179,9 @@
}
}
- if (cur < 1000000)
+ if ((cur < 1000000) && !c->always_GHz)
snprintf(buf, 256, "<span size=\"x-small\">%d</span><span size=\"small\"> </span><span size=\"x-small\">MHz</span>", cur / 1000);
- else
+ else
snprintf(buf, 256, "<span size=\"small\">%.1f GHz</span>", (gdouble)cur / 1000000);
if ((cur < c->max && !c->invert_colors) ||
@@ -291,6 +292,7 @@
{
c->cpu = 0;
c->invert_colors = FALSE;
+ c->always_GHz = FALSE;
return;
}
@@ -302,11 +304,13 @@
{
c->cpu = 0;
c->invert_colors = FALSE;
+ c->always_GHz = FALSE;
return;
}
c->cpu = atoi(str);
c->invert_colors = xfce_rc_read_bool_entry(rc, "InvColors", FALSE);
+ c->always_GHz = xfce_rc_read_bool_entry(rc, "AlwaysGHz", FALSE);
xfce_rc_close (rc);
}
@@ -329,6 +333,7 @@
snprintf(buf, 32, "%d", c->cpu);
xfce_rc_write_entry(rc, "NumCPUs", buf);
xfce_rc_write_bool_entry(rc, "InvColors", c->invert_colors);
+ xfce_rc_write_bool_entry(rc, "AlwaysGHz", c->always_GHz);
xfce_rc_close (rc);
}
@@ -351,6 +356,15 @@
}
static void
+always_GHz_toggled (GtkToggleButton *button, gpointer data)
+{
+ struct cpufreq_monitor *c = (struct cpufreq_monitor *)data;
+ c->always_GHz = gtk_toggle_button_get_active (button);
+
+ update_cpufreq_status (c);
+}
+
+static void
combo_changed_cb (GtkComboBox *cb, gpointer data)
{
struct cpufreq_monitor *c = (struct cpufreq_monitor *)data;
@@ -410,16 +424,30 @@
GtkWidget *options_label = gtk_label_new (_("Options"));
gtk_widget_show (options_label);
gtk_frame_set_label_widget (GTK_FRAME (options), options_label);
-
+
+ GtkWidget *options_list = gtk_vbox_new(TRUE, 0);
+ gtk_widget_show(options_list);
+
GtkWidget *invert = gtk_check_button_new_with_mnemonic
(_("Invert colors"));
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(invert), c->invert_colors);
gtk_widget_show(invert);
- gtk_container_add (GTK_CONTAINER (options), invert);
+ gtk_container_add (GTK_CONTAINER (options_list), invert);
g_signal_connect(invert, "toggled",
G_CALLBACK (invert_colors_toggled), c);
+ GtkWidget *alwaysGHz = gtk_check_button_new_with_mnemonic
+ (_("Always show Frequency as GHz"));
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(alwaysGHz), c->always_GHz);
+ gtk_widget_show(alwaysGHz);
+ gtk_container_add (GTK_CONTAINER (options_list), alwaysGHz);
+
+ g_signal_connect(alwaysGHz, "toggled",
+ G_CALLBACK (always_GHz_toggled), c);
+
+ gtk_container_add(GTK_CONTAINER (options), options_list);
+
gtk_box_pack_start(GTK_BOX(vbox), header, FALSE, TRUE, 0);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 5);
gtk_box_pack_start(GTK_BOX(vbox), cpucombo, FALSE, FALSE, 0);
@@ -445,6 +473,7 @@
c->nr_cpus = get_nr_cpus();
c->showed_warning = FALSE;
c->invert_colors = FALSE;
+ c->always_GHz = FALSE;
/* determine min/max */
cpufreq_get_hardware_limits(c->cpu, &c->min, &c->max);
--- End Message ---
--- Begin Message ---
Source: xfce4-cpufreq-plugin
Source-Version: 0.2-2
We believe that the bug you reported is fixed in the latest version of
xfce4-cpufreq-plugin, which is due to be installed in the Debian FTP archive:
xfce4-cpufreq-plugin_0.2-2.diff.gz
to pool/main/x/xfce4-cpufreq-plugin/xfce4-cpufreq-plugin_0.2-2.diff.gz
xfce4-cpufreq-plugin_0.2-2.dsc
to pool/main/x/xfce4-cpufreq-plugin/xfce4-cpufreq-plugin_0.2-2.dsc
xfce4-cpufreq-plugin_0.2-2_amd64.deb
to pool/main/x/xfce4-cpufreq-plugin/xfce4-cpufreq-plugin_0.2-2_amd64.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Yves-Alexis Perez <[EMAIL PROTECTED]> (supplier of updated xfce4-cpufreq-plugin
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Mon, 14 Apr 2008 22:13:14 +0200
Source: xfce4-cpufreq-plugin
Binary: xfce4-cpufreq-plugin
Architecture: source amd64
Version: 0.2-2
Distribution: unstable
Urgency: low
Maintainer: Debian Xfce Maintainers <[EMAIL PROTECTED]>
Changed-By: Yves-Alexis Perez <[EMAIL PROTECTED]>
Description:
xfce4-cpufreq-plugin - cpufreq information plugin for the Xfce4 panel
Closes: 474330 475914
Changes:
xfce4-cpufreq-plugin (0.2-2) unstable; urgency=low
.
[ Yves-Alexis Perez ]
* debian/control:
- updated standards version to 3.7.3.
- updated my email address.
- drop dpatch build-dep, useless.
- add needed build-dep on intltool.
* debian/patches:
- 02_ja.po added, add japanese translation. closes: #475914
* debian/copyright: updated dates and copyright holders.
.
[ Simon Huggins ]
* Add Vcs-* headers to debian/control
.
[ Stefan Ott]
* Add patch to always show frequency in GHz closes:#474330
Files:
a1cb4a0215c23f37e900a32803fe8ef1 1096 x11 optional
xfce4-cpufreq-plugin_0.2-2.dsc
c8acb0ab90e6574f3d9d8159b8006034 4020 x11 optional
xfce4-cpufreq-plugin_0.2-2.diff.gz
efcffc08780d42d24dc81aa659d413fb 12250 x11 optional
xfce4-cpufreq-plugin_0.2-2_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFIA7tqTUTAIMXAW64RAo5fAJ9T8QVzWmFZISlpzsq1XW9fGRqWNACfaU0U
koxi8asWP9wQgUZyjaFWJW4=
=QvqK
-----END PGP SIGNATURE-----
--- End Message ---