Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
01-29-2009, 10:29 AM
|
#1
|
Member
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Rep:
|
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.
|
|
|
01-29-2009, 07:20 PM
|
#2
|
LQ 5k Club
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,575
|
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.
|
|
|
01-29-2009, 09:02 PM
|
#3
|
Member
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423
Rep:
|
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?
|
|
|
01-29-2009, 09:34 PM
|
#4
|
Member
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Original Poster
Rep:
|
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.
|
|
|
01-30-2009, 12:14 AM
|
#5
|
Member
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423
Rep:
|
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 
|
|
|
02-01-2009, 05:01 PM
|
#6
|
Member
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Original Poster
Rep:
|
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 
|
|
|
02-06-2009, 05:43 PM
|
#7
|
LQ Newbie
Registered: Mar 2006
Location: Lithuania
Distribution: Slackware 13.0
Posts: 5
Rep:
|
Quote:
Originally Posted by frandalla
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.
|
|
|
02-06-2009, 11:04 PM
|
#8
|
Slackware Contributor
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,560
|
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.
|
|
|
02-08-2009, 07:19 PM
|
#9
|
Member
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423
Rep:
|
The hal.conf doesn't work either... The governors is complied as modules now. Maybe there is something else I should to configure...
|
|
|
02-08-2009, 07:41 PM
|
#10
|
Slackware Contributor
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,560
|
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.
|
|
|
02-08-2009, 07:50 PM
|
#11
|
Member
Registered: Jun 2006
Location: NY, USA
Distribution: Slackware, Arch
Posts: 176
Rep:
|
Is acpi-cpufreq module loaded or included in the kernel? If pm-utils is used, acpi-cpufreq is needed for cpu scaling to work.
|
|
|
02-09-2009, 12:04 AM
|
#12
|
Member
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423
Rep:
|
Quote:
Originally Posted by rworkman
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...
|
|
|
02-09-2009, 12:05 AM
|
#13
|
Member
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423
Rep:
|
Quote:
Originally Posted by nuxrl
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.
|
|
|
02-09-2009, 12:40 AM
|
#14
|
Slackware Contributor
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,560
|
Quote:
Originally Posted by grissiom
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.
|
|
|
02-09-2009, 06:15 AM
|
#15
|
Member
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423
Rep:
|
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 "))
|
|
|
All times are GMT -5. The time now is 09:42 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|