LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-29-2009, 10:29 AM   #1
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Blog Entries: 1

Rep: Reputation: 37
Powerdevil: No Frequency scaling + no suspend (4.2 packages from current)


I've switched to 4.2 and now we have Powerdevil and it's controls related to cpu frequency scaling and others. The problem is: My pc is listed as having no cpu frequency scaling capability but in fact I do! I can change the frequency using changing the scaling governor with a simple:
Code:
echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
What powerdevil is checking to see if I have frequency scaling capability?

Apart from that I have suspend working currently with "s2ram -f" command.
Closing the lid and clicking "suspend" worked fine in KDE3 but now I just can't seem to get it work and I just don't know what else to check anymore.
 
Old 01-29-2009, 07:20 PM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
Some things to check.
1. Are you a member of the 'power' group?
2. With suspend on my laptop, I am using pm-utils to handle the lid switch. Within KDE4, I have the suspend settings set to take no action, so that pm-utils is used instead. This allows suspend to work from within other window managers. I have found that suspend will not resume correctly with this setup unless I disable the lock screen on suspend option in KDE4.

I cannot help on the frequency scaling as my processor does not support this.
 
Old 01-29-2009, 09:02 PM   #3
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
IMHO, scaling governor is one thing, cpu frequency is an other. Could you please run
Code:
$cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
and post the output?
 
Old 01-29-2009, 09:34 PM   #4
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348

Original Poster
Blog Entries: 1

Rep: Reputation: 37
grissiom: Here's the ouput:
Code:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
1600000 800000
They might be different things but as far as I dealt with this, the only way to change the frequency is by checking the scaling governor. Any ideas?


Allend: No I was not part of it! gonna check if it works right now and I'll reply back!
EDIT: It worked! Suspending now works fine. My last problem is Cpu frequency scaling.

Last edited by frandalla; 01-29-2009 at 10:00 PM.
 
Old 01-30-2009, 12:14 AM   #5
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
As far as I know, the governor scale the frequency after some algorithm. Your post noticed my that I have the same problem on my box... ;( What kernel are you using? I'm using a self-compiled git version, so my case may not be so general. If you are using the kernel shipped with slackware, we may find a bug here
 
Old 02-01-2009, 05:01 PM   #6
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348

Original Poster
Blog Entries: 1

Rep: Reputation: 37
I think I'm gonna test that then. I'm using 2.6.28.2 (self-compiled) here but I still have the old ones here. Keep you posted about any results
 
Old 02-06-2009, 05:43 PM   #7
Aivurn
LQ Newbie
 
Registered: Mar 2006
Location: Lithuania
Distribution: Slackware 13.0
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by frandalla View Post
I think I'm gonna test that then. I'm using 2.6.28.2 (self-compiled) here but I still have the old ones here. Keep you posted about any results
I have the same problem with self compiled kernel. It worked earlier, when I was Using KDE 3.5.x. The governors are compiled into the kernel, not as modules, maybe that's the problem, but why then "ondemand" governor works with Powertop? It's a Core Duo based system.
 
Old 02-06-2009, 11:04 PM   #8
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
I'm not sure about *all* of this, as testing is still ongoing, but I think some of the governor settings might be related to hal's dbus config file settings. If you want to find out, put the contents below into /etc/dbus-1/system.d/hal.conf (back up the original first):

http://slackware.com/~rworkman/hal.conf.txt

Code:
edit: removed in favor of the link above
Feedback on this is welcome, of course. I'm mostly sure that these are sane/secure defaults, but as always, I'm not perfect and thus may be wrong.

Last edited by rworkman; 02-09-2009 at 09:56 AM.
 
Old 02-08-2009, 07:19 PM   #9
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
The hal.conf doesn't work either... The governors is complied as modules now. Maybe there is something else I should to configure...
 
Old 02-08-2009, 07:41 PM   #10
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
You might consider updating your dbus package to 1.2.12 -- that version logs any dbus errors to /var/log/messages, so it should help with troubleshooting (assuming the problem is dbus related). (url redacted) has a build script if you're interested.

EDIT: I removed the url, as it's no longer valid. If you need to build it on 12.2, use the build script from -current.

Last edited by rworkman; 03-13-2009 at 12:39 PM.
 
Old 02-08-2009, 07:50 PM   #11
nuxrl
Member
 
Registered: Jun 2006
Location: NY, USA
Distribution: Slackware, Arch
Posts: 176

Rep: Reputation: 35
Is acpi-cpufreq module loaded or included in the kernel? If pm-utils is used, acpi-cpufreq is needed for cpu scaling to work.
 
Old 02-09-2009, 12:04 AM   #12
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
Quote:
Originally Posted by rworkman View Post
You might consider updating your dbus package to 1.2.12 -- that version logs any dbus errors to /var/log/messages, so it should help with troubleshooting (assuming the problem is dbus related). http://slackware.com/~rworkman/dbus/ has a build script if you're interested.
After upgrading dbus to 1.2.12, I got nearly 200 error messages in /var/log/messages:
Code:
Feb  9 13:53:34 localhost dbus-daemon: Rejected send message, 1 matched rules; type="method_call", sender=":1.9" (uid=       500 pid=1673 comm="/usr/bin/plasma ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="       (unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=1403 comm="/usr/sbin/hald --daemon=yes "))
After upgradepkg, I have run "slackpkg --new-config" to over write all the configs. I don't know whether the error is related to this topic...
 
Old 02-09-2009, 12:05 AM   #13
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
Quote:
Originally Posted by nuxrl View Post
Is acpi-cpufreq module loaded or included in the kernel? If pm-utils is used, acpi-cpufreq is needed for cpu scaling to work.
Yes, acpi-cpufreq is compiled into the kernel.
 
Old 02-09-2009, 12:40 AM   #14
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by grissiom View Post
After upgrading dbus to 1.2.12, I got nearly 200 error messages in /var/log/messages:
Code:
Feb  9 13:53:34 localhost dbus-daemon: Rejected send message, 1 matched rules; type="method_call", sender=":1.9" (uid=       500 pid=1673 comm="/usr/bin/plasma ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="       (unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=1403 comm="/usr/sbin/hald --daemon=yes "))
After upgradepkg, I have run "slackpkg --new-config" to over write all the configs. I don't know whether the error is related to this topic...

Add this to hal.conf:
Code:
edit: removed in favor of the linked hal.conf

Last edited by rworkman; 02-09-2009 at 09:56 AM.
 
Old 02-09-2009, 06:15 AM   #15
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
Thanks rworkman, I think we may get a step closer to the problem:
Code:
Feb  9 20:09:08 localhost dbus-daemon: Rejected send message, 1 matched rules; type="method_call", sender=":1.8" (uid=500 pid=1824 comm="kded4 ") interface="org.freedesktop.Hal.Device.LaptopPanel" member="SetBrightness" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=1443 comm="/usr/sbin/hald --daemon=yes "))
Feb  9 20:09:08 localhost dbus-daemon: Rejected send message, 1 matched rules; type="method_call", sender=":1.8" (uid=500 pid=1824 comm="kded4 ") interface="org.freedesktop.Hal.Device.SystemPowerManagement" member="SetPowerSave" error name="(unset)"requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=1443 comm="/usr/sbin/hald --daemon=yes "))
Feb  9 20:09:31 localhost dbus-daemon: Rejected send message, 1 matched rules; type="method_call", sender=":1.8" (uid=500 pid=1824 comm="kded4 ") interface="org.freedesktop.Hal.Device.CPUFreq" member="GetCPUFreqAvailableGovernors" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=1443 comm="/usr/sbin/hald --daemon=yes "))
Feb  9 20:09:33 localhost dbus-daemon: Rejected send message, 1 matched rules; type="method_call", sender=":1.8" (uid=500 pid=1824 comm="kded4 ") interface="org.freedesktop.Hal.Device.CPUFreq" member="GetCPUFreqAvailableGovernors" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=1443 comm="/usr/sbin/hald --daemon=yes "))
Feb  9 20:09:33 localhost dbus-daemon: Rejected send message, 1 matched rules; type="method_call", sender=":1.8" (uid=500 pid=1824 comm="kded4 ") interface="org.freedesktop.Hal.Device.CPUFreq" member="GetCPUFreqAvailableGovernors" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=1443 comm="/usr/sbin/hald --daemon=yes "))
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CPU Frequency Scaling runa Linux - Hardware 5 04-24-2011 11:23 AM
cpu frequency scaling tramni1980 Slackware 5 12-27-2008 11:51 AM
nforce frequency scaling manwichmakesameal Slackware 1 08-21-2006 04:08 PM
P4 and CPU Frequency scaling tkalfaoglu Linux - Kernel 3 05-31-2006 09:56 AM
cpu frequency scaling....anyone? alaios Linux - General 3 06-07-2005 10:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration