Bug 105273 - Powertweak failed configuration file may be missing or broken
Summary: Powertweak failed configuration file may be missing or broken
Status: RESOLVED FIXED
: 116319 (view as bug list)
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Beta 2
Hardware: Other All
: P5 - None : Critical
Target Milestone: ---
Assignee: Stanislav Brabec
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-17 17:12 UTC by Ladislav Michnovic
Modified: 2005-09-12 11:15 UTC (History)
3 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ladislav Michnovic 2005-08-17 17:12:39 UTC
In YAST I choose powertweak. It asks: "Pwertweak configuration file does not
exist. Create it and use powertweak?" I choose "yes" but after that shows an
error mesage: "Powertweak failed: configuration file may be missing or broken".
Powertweak is not enabled in system.
Comment 1 Stanislav Brabec 2005-08-18 10:27:24 UTC
I got the same report by e-mail:

From: 	Dirk O. Siebnich <...>
To: 	Stanislav Brabec <...>
Subject: 	powertweak: Yast cannot setup it up on fresh installation
Date: 	Wed, 17 Aug 2005 01:34:21 +0200

Hi Stanislav!
I cannot try the current 10.0 beta package, so I'm not using Bugzilla,
but the spec file changelog at least doesn't indicate any fixes in this
area:

Since SUSE 9.3, the powertweak module in Yast fails to setup the
powertweak config file, if it doesn't already exist, like on a newly
installed system.

If powertweak isn't going to be dropped for SUSE 10.0 yet, can you
please verify this bug and fix it if necessary?

Thanks!
Comment 2 Ladislav Slezák 2005-08-18 12:50:28 UTC
I just have made a test in Beta2 9 (i386 arch) and it works for me without any
problem (config file is successfuly created and yast module works properly).

Does /etc/powertweak/tweaks exist?

Could you attach output and exit status of '/usr/sbin/powertweakd --no-daemon
--only-save' command? (This command is used by yast to create
/etc/powertweak/tweaks configuration file if it doesn't exist.)
Comment 3 Ladislav Michnovic 2005-08-18 13:46:37 UTC
At the begin the powertweak wasn't instaled. I've cliked on powertweak in YAST
and it asked something like Would you instal package
powertweak-something_I_dont_remeber ? I clicked yes, and so on.

> Does /etc/powertweak/tweaks exist?
No, it doesn't. 
#ls /etc/powertweak/
.  ..


 
> Could you attach output and exit status of '/usr/sbin/powertweakd --no-daemon
> --only-save' command? 

#/usr/sbin/powertweakd --no-daemon --only-save
MSR driver not loaded.
Segmentation fault

Comment 4 Ladislav Slezák 2005-08-18 14:05:06 UTC
OK, the bug is in powertweak itself. Do you have powertweak-extra package
installed? Could you try that without the extra package (if it's installed)?
Which architecture do you have? I had no problems on i386.
Comment 5 Kirk Coombs 2005-08-18 14:27:36 UTC
I am able to confirm this in 10.0 beta2 in i386.  I have the following packages
installed:

powertweak
powertweak-extra
yast2-powertweak

The file /etc/powertweak/tweaks does NOT exist, and the command output is
identical to that of comment #3:

#/usr/sbin/powertweakd --no-daemon --only-save
MSR driver not loaded.
Segmentation fault
Comment 6 Ladislav Michnovic 2005-08-18 14:29:00 UTC
(In reply to comment #4)
> OK, the bug is in powertweak itself. Do you have powertweak-extra package
> installed? Could you try that without the extra package (if it's installed)?
> Which architecture do you have? I had no problems on i386.
It's instaled.
 # rpm -iq powertweak-extra
powertweak-extra-0.99.5-40
After uninstalling powertwaek-extra it looks functionable.
My arch is i386 also.
Comment 7 Alexey Eremenko 2005-08-31 19:10:53 UTC
Unfortunately this same bug exists also in BETA3. 
Comment 8 Joe Crollard 2005-09-02 15:57:36 UTC
(In reply to comment #7)
> Unfortunately this same bug exists also in BETA3. 

And for BETA4 now, it seems.
Comment 9 Ladislav Slezák 2005-09-05 08:12:49 UTC
I can create a small workaround for 10.0 (hide the bug as much as possible),
there are two possibilities:

1) change the default value - don't install powertweak-extra by default
2) remove the powertweak-extra option completely

Stanislav, which solution would you prefer? I don't know if the segfault is
HW/arch dependent or it fails always. If it segfaults always I would use 2)
solution otherwise 1).
Comment 10 Stanislav Brabec 2005-09-05 14:32:07 UTC
1) is a good choice.

Or maybe:

3) Add Conflicts: powertweak-extra to yast2-powertweak. It implies 1.
Comment 11 Ladislav Slezák 2005-09-05 15:01:46 UTC
I just have applied 1) in yast2-powertweak-2.12.3, so powertweak-extra won't be
installed by default
Comment 12 Vladimir Nadvornik 2005-09-06 16:21:49 UTC
I just submitted a fix for a crash in hdparm backend. It fixed this bug for me.
Please test. 
Comment 13 Stanislav Brabec 2005-09-09 09:03:12 UTC
It seems to work on both ix86 and x86_64. Closing.
Comment 14 Stanislav Brabec 2005-09-12 11:15:07 UTC
*** Bug 116319 has been marked as a duplicate of this bug. ***