Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 203300 - sys-power/pm-utils-0.99.4 woes
Summary: sys-power/pm-utils-0.99.4 woes
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-25 14:23 UTC by Priit Laes (IRC: plaes)
Modified: 2009-01-18 20:24 UTC (History)
2 users (show)

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


Attachments
ebuild update: do not install the Fedora setfont script/check for a correct kernel config for cpufreq (pm-utils-0.99.4-r1.ebuild,1.13 KB, text/plain)
2008-10-09 09:46 UTC, Paul Healy
Details
patch pm-utils-0.99.4.ebuild to pm-utils-0.99.4-r1.ebuild (pm-utils-0.99.4-r1.ebuild.diff,886 bytes, patch)
2008-10-09 10:08 UTC, Paul Healy
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Priit Laes (IRC: plaes) 2007-12-25 14:23:18 UTC
Noticed following stuff in the /var/log/pm-suspend.log:

[snip]
...
===== Tue Dec 25 14:56:19 EET 2007: running hook: /usr/lib/pm-utils/sleep.d/94cpufreq =====
sh: line 0: echo: write error: Invalid argument
sh: line 0: echo: write error: Invalid argument
===== Tue Dec 25 14:56:19 EET 2007: running hook: /usr/lib/pm-utils/sleep.d/95led =====
...
===== Tue Dec 25 15:36:01 EET 2007: running hook: /usr/lib/pm-utils/sleep.d/60sysfont =====
/usr/lib/pm-utils/sleep.d/60sysfont: line 7: setsysfont: command not found
===== Tue Dec 25 15:36:01 EET 2007: running hook: /usr/lib/pm-utils/sleep.d/55battery =====
...
[/snip]

Also returning from suspend is b0rked.
Comment 1 Priit Laes (IRC: plaes) 2008-01-05 23:22:06 UTC
===== Sun Jan  6 01:16:37 EET 2008: running hook: /usr/lib/pm-utils/sleep.d/94cpufreq =====
sh: line 0: echo: write error: Invalid argument
sh: line 0: echo: write error: Invalid argument
===== Sun Jan  6 01:16:37 EET 2008: running hook: /usr/lib/pm-utils/sleep.d/95led =====
===== Sun Jan  6 01:16:37 EET 2008: running hook: /usr/lib/pm-utils/sleep.d/99video =====
Sun Jan  6 01:16:37 EET 2008: done running suspend hooks.
Sun Jan  6 01:16:50 EET 2008: running resume hooks.
===== Sun Jan  6 01:16:50 EET 2008: running hook: /usr/lib/pm-utils/sleep.d/99video =====
===== Sun Jan  6 01:16:50 EET 2008: running hook: /usr/lib/pm-utils/sleep.d/95led =====
===== Sun Jan  6 01:16:50 EET 2008: running hook: /usr/lib/pm-utils/sleep.d/94cpufreq =====
===== Sun Jan  6 01:16:50 EET 2008: running hook: /usr/lib/pm-utils/sleep.d/90clock =====
===== Sun Jan  6 01:16:51 EET 2008: running hook: /usr/lib/pm-utils/sleep.d/65alsa =====
===== Sun Jan  6 01:16:51 EET 2008: running hook: /usr/lib/pm-utils/sleep.d/60sysfont =====
/usr/lib/pm-utils/sleep.d/60sysfont: line 7: setsysfont: command not found
===== Sun Jan  6 01:16:51 EET 2008: running hook: /usr/lib/pm-utils/sleep.d/55battery =====
method return sender=:1.1 -> dest=:1.384
   boolean false
===== Sun Jan  6 01:16:51 EET 2008: running hook: /usr/lib/pm-utils/sleep.d/50modules =====
===== Sun Jan  6 01:16:51 EET 2008: running hook: /usr/lib/pm-utils/sleep.d/49bluetooth =====
===== Sun Jan  6 01:16:51 EET 2008: running hook: /usr/lib/pm-utils/sleep.d/20video =====
Comment 2 Paul Healy 2008-10-08 21:06:56 UTC
From http://lists.freedesktop.org/archives/pm-utils/2008-January/000770.html

  "...That's because setsysfont is a Fedora specific wrapper script around
  setfont in their initscripts package. ..."

That thread goes onto talk about removing these scripts from the pm-utils/ disto package:

  01grub 20video 49bluetooth 60sysfont 65alsa 90clock 99video

The cpufreq error is likely saying that the special file(s) /sys/devices/system/cpu/cpu0/cpufreq (for example) are missing which in turn is probably a kernel config missing CONFIG_CPU_FREQ and one or more governors (e.g. CONFIG_CPU_FREQ_GOV_PERFORMANCE, CONFIG_CPU_FREQ_GOV_POWERSAVE... etc)


Comment 3 Paul Healy 2008-10-09 09:46:18 UTC
Created attachment 167712 [details]
ebuild update: do not install the Fedora setfont script/check for a correct kernel config for cpufreq

--- pm-utils-0.99.4.ebuild      2008-07-28 15:37:06.000000000 +0100
+++ pm-utils-0.99.4-r1.ebuild   2008-10-09 10:28:54.000000000 +0100
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /var/cvsroot/gentoo-x86/sys-power/pm-utils/pm-utils-0.99.4.ebuild,v 1.4 2008/07/28 14:09:30 armin76 Exp $
 
-inherit eutils
+inherit eutils linux-info
 
 DESCRIPTION="Suspend and hibernation utilties for HAL"
 HOMEPAGE="http://pm-utils.freedesktop.org/ http://people.freedesktop.org/~hughsient/quirk/index.html"
@@ -16,6 +16,7 @@
 
 RDEPEND=""
 DEPEND="${RDEPEND}"
+CONFIG_CHECK="~CPU_FREQ ~CPU_FREQ_GOV_USERSPACE"
 
 src_unpack() {
        unpack ${A}
@@ -31,4 +32,7 @@
 
 src_install() {
        emake DESTDIR="${D}" install || die "emake install failed"
+
+       einfo "Not installing Fedora specific sysfont restore script"
+       rm "${D}/usr/lib/pm-utils/sleep.d/60sysfont"
Comment 4 Paul Healy 2008-10-09 10:08:46 UTC
Created attachment 167716 [details, diff]
patch pm-utils-0.99.4.ebuild to pm-utils-0.99.4-r1.ebuild
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-12-10 16:16:20 UTC
Thanks for this, however. 0.99.4 is too old to even bother. Version bump pending, hopefully we can get a newer version stabled soon.
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-01-18 20:24:01 UTC
please try with 1.1.1 or more recent and reopen if it's still a problem for you. Thanks.