On AC state changes udisks-daemon wakes disks from standby

Bug #660250 reported by AmenophisIII
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
udisks (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: udisks

udisks 1.0.1-1ubuntu1 on ubuntu 10.04.

Similar to bug #659620, udisks seems to be called on AC state changes, which tries to call /sbin/hdparm -S 12 /dev/sdX on all block devices.

this was revealed by changing /sbin/hdparm to a script, which echos the output of ps aux:
root 2165 0.0 0.0 57332 2092 ? Sl Oct06 0:04 /usr/lib/udisks/udisks-daemon
root 2167 0.0 0.0 46696 516 ? S Oct06 0:55 \_ udisks-daemon: polling /dev/sdc
root 8006 0.0 0.0 17648 1460 ? S 03:15 0:00 \_ /bin/bash /sbin/hdparm -S 12 /dev/sdb
root 8010 0.0 0.0 15260 1368 ? R 03:15 0:00 | \_ ps auxf
root 8009 0.0 0.0 17648 1460 ? S 03:15 0:00 \_ /bin/bash /sbin/hdparm -S 12 /dev/sda

as workaround i created a small script instead of /sbin/hdparm, that checks if it is called by udisks. if so, it does nothing else it calls the real hdparm executable:
#!/bin/bash
ps -p $PPID -o pid= -o comm= | grep udisks
ret=$?
if [[ $ret -ne 0 ]];then
# found udisks
/sbin/hdparm.orig $@
# else
# not found
fi

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in udisks (Ubuntu):
status: New → Confirmed
Revision history for this message
Stefan Tauner (stefanct) wrote :

apparently this issue remains in 12.04.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.