[Bug 273474] New: powersaved problems with dbus and/or HAL??
https://bugzilla.novell.com/show_bug.cgi?id=273474 Summary: powersaved problems with dbus and/or HAL?? Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jnelson-suse@jamponi.net QAContact: qa@suse.de powersaved is reporting problems when I try to set frequency scaling. https://bugzilla.novell.com/show_bug.cgi?id=227360 seems to suggest that powersave is really running this: dbus-send --system --print-reply --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.CPUFreq.SetCPUFreqGovernor string:powersave Which responds: Error org.freedesktop.Hal.Device.CPUFreq.GeneralError: Cannot lookup privilege: 1 (same error as powersaved). A (partial) strace follows: 14837 connect(3, {sa_family=AF_FILE, path="/var/run/dbus/system_bus_socket"}, 33) = 0 14837 fcntl(3, F_GETFL) = 0x2 (flags O_RDWR) 14837 fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0 14837 fcntl(3, F_GETFD) = 0 14837 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 14837 getuid() = 0 14837 rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0 14837 poll([{fd=3, events=POLLOUT, revents=POLLOUT}], 1, 0) = 1 14837 write(3, "\0", 1) = 1 14837 write(3, "AUTH EXTERNAL 30\r\n", 18) = 18 14837 poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, -1) = 1 14837 read(3, "OK d15b43460348beafa666edf1e6a61300\r\n", 2048) = 37 14837 poll([{fd=3, events=POLLOUT, revents=POLLOUT}], 1, -1) = 1 14837 write(3, "BEGIN\r\n", 7) = 7 14837 poll([{fd=3, events=POLLIN|POLLOUT, revents=POLLOUT}], 1, -1) = 1 14837 writev(3, [{"l\1\0\1\0\0\0\0\1\0\0\0n\0\0\0\1\1o\0\25\0\0\0/org/freedesktop/DBus\0\0\0\6\1s\0\24\0\0\0org.freedesktop.DBus\0\0\0\0\2\1s\0\24\0\0\0org.freedesktop.DBus\0\0\0\0\3\1s\0\5\0\0\0Hello\0\0\0", 128}, {"", 0}], 2) = 128 14837 gettimeofday({1178829605, 688123}, NULL) = 0 14837 poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 25000) = 1 14837 read(3, "l\2\1\1\n\0\0\0\1\0\0\0=\0\0\0\6\1s\0\5\0\0\0:1.49\0\0\0\5\1u\0\1\0\0\0\10\1g\0\1s\0\0\7\1s\0\24\0\0\0org.freedesktop.DBus\0\0\0\0\5\0\0\0:1.49\0l\4\1\1\n\0\0\0\2\0\0\0\215\0\0\0\1\1o\0\25\0\0\0/org/freedesktop/DBus\0\0\0\2\1s\0\24\0\0\0org.freedesktop.DBus\0\0\0\0\3\1s\0\f\0\0\0NameAcquired\0\0\0\0\6\1s\0\5\0\0\0:1.49\0\0\0\10\1g\0\1s\0\0\7\1s\0\24\0\0\0org.freedesktop.DBus\0\0\0\0\5\0\0\0:1.49\0", 2048) = 260 14837 read(3, 0x606bc0, 2048) = -1 EAGAIN (Resource temporarily unavailable) 14837 writev(3, [{"l\1\0\1\16\0\0\0\2\0\0\0\247\0\0\0\1\1o\0%\0\0\0/org/freedesktop/Hal/devices/computer\0\0\0\2\1s\0\"\0\0\0org.freedesktop.Hal.Device.CPUFreq\0\0\0\0\0\0\3\1s\0\22\0\0\0SetCPUFreqGovernor\0\0\0\0\0\0\6\1s\0\23\0\0\0org.freedesktop.Hal\0\0\0\0\0\10\1g\0\1s\0\0", 184}, {"\t\0\0\0powersave\0", 14}], 2) = 198 14837 gettimeofday({1178829605, 689027}, NULL) = 0 14837 poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 25000) = 1 14837 read(3, "l\3\1\1\37\0\0\0H\0\0\0f\0\0\0\6\1s\0\5\0\0\0:1.49\0\0\0\4\1s\0/\0\0\0org.freedesktop.Hal.Device.CPUFreq.GeneralError\0\5\1u\0\2\0\0\0\10\1g\0\1s\0\0\7\1s\0\5\0\0\0:1.26\0\0\0\32\0\0\0Cannot lookup privilege: 1\0", 2048) = 151 14837 read(3, 0x606bc0, 2048) = -1 EAGAIN (Resource temporarily unavailable) 14837 write(2, "Error org.freedesktop.Hal.Device.CPUFreq.GeneralError: Cannot lookup privilege: 1\n", 82) = 82 14837 exit_group(1) = ? Attaching the strace to /usr/lib64/hal/hald-addon-cpufreq yields: [{fd=4, events=POLLIN}, {fd=3, events=POLLIN, revents=POLLIN}], 2, -1) = 1 read(3, "l\1\0\1\16\0\0\0\23\0\0\0\266\0\0\0\1\1o\0%\0\0\0/org/freedesktop/Hal/devices/computer\0\0\0\2\1s\0\"\0\0\0org.freedesktop.Hal.Device.CPUFreq\0\0\0\0\0\0\3\1s\0\22\0\0\0SetCPUFreqGovernor\0\0\0\0\0\0\6\1s\0\23\0\0\0org.freedesktop.Hal\0\0\0\0\0\10\1g\0\1s\0\0\7\1s\0\5\0\0\0:1.53\0\0\0\t\0\0\0powersave\0", 2048) = 214 read(3, 0x60af00, 2048) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}], 2, 0) = 0 gettimeofday({1178829901, 535634}, {300, 140734055710520}) = 0 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1279, ...}) = 0 write(2, "15:45:01.535 [D] addon-cpufreq.c:987: Received DBus message with member SetCPUFreqGovernor\n", 91) = 91 gettimeofday({1178829901, 536037}, {300, 140734055710520}) = 0 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1279, ...}) = 0 write(2, "15:45:01.536 [D] addon-cpufreq.c:988: Received DBus message with path /org/freedesktop/Hal/devices/computer\n", 108) = 108 gettimeofday({1178829901, 536402}, NULL) = 0 writev(4, [{"l\1\0\1\n\0\0\0 \0\0\0\207\0\0\0\1\1o\0\25\0\0\0/org/freedesktop/DBus\0\0\0\6\1s\0\24\0\0\0org.freedesktop.DBus\0\0\0\0\2\1s\0\24\0\0\0org.freedesktop.DBus\0\0\0\0\3\1s\0\25\0\0\0GetConnectionUnixUser\0\0\0\10\1g\0\1s\0\0", 152}, {"\5\0\0\0:1.53\0", 10}], 2) = 162 gettimeofday({1178829901, 536632}, NULL) = 0 poll([{fd=4, events=POLLIN, revents=POLLIN}], 1, 25000) = 1 read(4, "l\2\1\1\4\0\0\0!\0\0\0=\0\0\0\6\1s\0\5\0\0\0:1.24\0\0\0\5\1u\0 \0\0\0\10\1g\0\1u\0\0\7\1s\0\24\0\0\0org.freedesktop.DBus\0\0\0\0\0\0\0\0", 2048) = 84 read(4, 0x60ee80, 2048) = -1 EAGAIN (Resource temporarily unavailable) gettimeofday({1178829901, 537203}, {300, 6352596}) = 0 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1279, ...}) = 0 write(2, "15:45:01.537 [D] addon-cpufreq.c:848: Connection name of caller: :1.53\n", 71) = 71 gettimeofday({1178829901, 537505}, {300, 6352596}) = 0 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1279, ...}) = 0 write(2, "15:45:01.537 [D] addon-cpufreq.c:849: Unix user id of caller: 0\n", 64) = 64 gettimeofday({1178829901, 537916}, NULL) = 0 writev(4, [{"l\1\0\1V\0\0\0!\0\0\0\262\0\0\0\1\1o\0\"\0\0\0/org/freedesktop/PolicyKit/Manager\0\0\0\0\0\0\6\1s\0\31\0\0\0org.freedesktop.PolicyKit\0\0\0\0\0\0\0\2\1s\0!\0\0\0org.freedesktop.PolicyKit.Manager\0\0\0\0\0\0\0\3\1s\0\20\0\0\0IsUserPrivileged\0\0\0\0\0\0\0\0\10\1g\0\4ssss\0\0\0\0\0\0\0", 200}, {"\5\0\0\0:1.53\0\0\0\1\0\0\0000\0\0\0\21\0\0\0hal-power-cpufreq\0\0\0%\0\0\0/org/freedesktop/Hal/devices/computer\0", 86}], 2) = 286 gettimeofday({1178829901, 538182}, NULL) = 0 poll([{fd=4, events=POLLIN, revents=POLLIN}], 1, 25000) = 1 read(4, "l\3\1\1N\0\0\0\"\0\0\0u\0\0\0\6\1s\0\5\0\0\0:1.24\0\0\0\4\1s\0)\0\0\0org.freedesktop.DBus.Error.ServiceUnknown\0\0\0\0\0\0\0\5\1u\0!\0\0\0\10\1g\0\1s\0\0\7\1s\0\24\0\0\0org.freedesktop.DBus\0\0\0\0I\0\0\0The name org.freedesktop.PolicyKit was not provided by any .service files\0", 2048) = 214 read(4, 0x60ee80, 2048) = -1 EAGAIN (Resource temporarily unavailable) writev(3, [{"l\3\1\1\37\0\0\0\23\0\0\0W\0\0\0\6\1s\0\5\0\0\0:1.53\0\0\0\4\1s\0/\0\0\0org.freedesktop.Hal.Device.CPUFreq.GeneralError\0\5\1u\0\23\0\0\0\10\1g\0\1s\0\0", 104}, {"\32\0\0\0Cannot lookup privilege: 1\0", 31}], 2) = 135 No change if I shut down policykit. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=273474 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |dkukawka@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=273474 dkukawka@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dkukawka@novell.com AssignedTo|dkukawka@novell.com |hmacht@novell.com ------- Comment #1 from dkukawka@novell.com 2007-05-11 09:08 MST ------- 1) Looks as policyKit was not installed or running. 2) reassing to hmacht, he is responsible for the CPUFreq addon -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=273474 ------- Comment #2 from jnelson-suse@jamponi.net 2007-05-11 10:38 MST ------- Regarding your first comment, the *last line* in my comment was: "No change if I shut down policykit." the implication is that policykit was running (and therefore installed). In any case, although I didn't comment on it, I restarted policykit, hal, and powersaved several times. Eventually I forcibly removed powersave, rm -rf /etc/sysconfig/powersave, and reinstalled it. After restarting hal (again) and starting powersave everything seemed to work much better. The machine has been restarted several times since then and it continues to work. I should note that I had never used nor configured powersave on THIS machine before, and that only after I got new hardware which supported it did I make a single change (to ask it to use dynamic or powersave on A/C power). NOTE: this makes a huge difference. An AMD Athlon 64 x2 3600+ (Brisbane), 3x SATA drives, a bunch of fans, and so on and so forth consumes (at the WALL) 130 Watts in powersaving/dynamic mode. That's 20 Watts *less* than the same exact system with a different motherboard+CPU (Duron 750). Wooo! If this resurfaces, I'll re-comment and/or re-open. In the meantime, all I can ask is that perhaps the appropriate code output a more useful error message and/or be a bit more resilient? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=273474 hmacht@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Comment #3 from hmacht@novell.com 2007-05-18 07:59 MST ------- As Danny already mentioned, this definitely looks like a privilege problem. Another important application in the the chain currently is resource manager (rcresmgr restart). This would most likely have solved the problem. 'Cannot lookup privilege' seems to be a detailed enough error message to me. Playing around with services and complaining about things not working afterwards is not supported currently ;-). Nevermind, thanks for the report. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com