[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

PMU_IOC_SLEEP: Device or resource busy



Hi all,

I've been trying to get pmud working again for the
last couple of weeks with no luck after it
mysteriously died. 

Basically, I've got a G3 14" running kernel 2.6.6
and...

1) when i shut the lid, my hard disk just churns away,
the snooze light never comes on. (Except for the first
closing after a reboot)

2) snooze will work once, after the machine has been
rebooted, every time after "snooze" appears to do
nothing and "snooze -f" will report: "PMU_IOC_SLEEP:
Device or resource busy"

3) "pmud -d" reports before snoozing:
   pmud[3835]: pmud [treshold = 420, margin = 15]
started
   pmud[3835]: opening /dev/adb
   pmud[3835]: opening /dev/pmu
   pmud[3835]: bind socket
   pmud[3835]: daemon stopped (bind socket)
   pretty much all the time.

4) "pmud -d" reports after snoozing:
   pmud[3441]: pmud [treshold = 420, margin = 15]
started
   pmud[3441]: opening /dev/adb
   pmud[3441]: opening /dev/pmu
   pmud[3441]: pmu_op(0xea, ..., version req)
   PMU version 12: iBook/G3 Pismo/G4 Titanium
   pmud[3441]: PMU version 12: iBook/G3 Pismo/G4
Titanium
   pmud[3441]: starting monitoring loop
   pmud[3441]: pmu_op(0xdc, ..., switch req)
   pmud[3441]: pmu_op(0x6f, ..., smart battery req)
   pmud[3441]: pmu_op(0x6f, ..., smart battery req)
   pmud[3441]: timeleft = -1
   pmud[3441]: running /etc/power/pwrctl maximum ac
   pmud[3441]: PMU interrupt:
   pmud[3441]:  40
   pmud[3441]:  14
   pmud[3441]: pmu_op(0xdc, ..., switch req)
   pmud[3441]: pmu_op(0x6f, ..., smart battery req)
   pmud[3441]: pmu_op(0x6f, ..., smart battery req)
   pmud[3441]: timeleft = -1
   pmud[3441]: PMU interrupt:
   pmud[3441]:  40
   pmud[3441]:  14

5) /etc/init.d/pmud status reports after snoozing:
   pmud dead but pid file exists

6) "strace pmud" reports
   many things then...
   bind(8, {sa_family=AF_INET, sin_port=htons(879),
sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EADDRINUSE
(Address already in use)

7) "netstat -a |grep 879" reports:
tcp        0      0 localhost:879           *:*       
             LISTEN

8) "netstat -p |grep pmud" reports:
unix  2      [ ]         DGRAM                    4287
    2521/pmud

All ideas and hints welcome.

Leandra

=====
It has recently been discovered that research causes cancer in rats.

Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com



Reply to: