Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Hald and IDE drives
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
l33tmmx
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2005
Posts: 112
Location: Pirkkala, Finland

PostPosted: Thu Jul 05, 2007 7:23 pm    Post subject: Hald and IDE drives Reply with quote

I have three drives on my machine, /dev/hda, /dev/hdb and /dev/sda. Because the ventilation of the case is not the best possible (consequently the drives tend to run a bit too warm for my liking), and I don't normally need to access anything on /dev/hdb, I decided to put the hdb drive to standby mode
Code:
hdparm -y /dev/hdb
(via /etc/conf.d/hdparm). That works fine, if I don't have hald running, but when hald is started, it wakes hdb up after a few seconds... :?

'hal-disable-polling' doesn't work, it just says:
Code:
hal-disable-polling --device /dev/hdb
The given drive don't use removable media so it's not polled anyway.


How can/should I configure hald to ignore /dev/hdb, so it stays on standby mode? My current solution is not to run hald, but that is not ideal, of course :(
_________________
"Trust me, I know what I'm doing!"
- Sledge Hammer
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Jul 05, 2007 9:46 pm    Post subject: Reply with quote

I stop a drive in /etc/conf.d/local.start with "hdparm -y", and that works. So move the hdparm command to there, which is of course after hald has started.
Back to top
View user's profile Send private message
l33tmmx
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2005
Posts: 112
Location: Pirkkala, Finland

PostPosted: Fri Jul 06, 2007 4:22 am    Post subject: Reply with quote

Thanks, that is an usable solution :) ...should have thought of that myself.

But... actually, I was hoping for an easy way to control hald. Yes, I know there are the policy.fdi files, but they are not really user-friendly.

Hal/hald is basically an extremely good idea, but I somewhat dislike daemons which uncontrollably-does-all-the-wrong-things-automatically (Reminds me of gnome-settings-daemon)
_________________
"Trust me, I know what I'm doing!"
- Sledge Hammer
Back to top
View user's profile Send private message
l33tmmx
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2005
Posts: 112
Location: Pirkkala, Finland

PostPosted: Fri Jul 06, 2007 7:21 am    Post subject: Reply with quote

Well, it doesn't seem to be working :( . I have to run 'hdparm -y /dev/hdb' manually after the system has started. Maybe local.start is run too soon after hald is started? I have to experiment with delays inserted in local.start.
_________________
"Trust me, I know what I'm doing!"
- Sledge Hammer
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Fri Jul 06, 2007 7:29 am    Post subject: Reply with quote

Try, from hal doc:
Code:
cat > /etc/hal/fdi/policy/no-fixed-drives.fdi << "EOF"
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->

<!-- Don't allow HAL methods on disks that are not
     removable or hotpluggable -->

<deviceinfo version="0.2">
<device>
  <match key="@block.storage_device:storage.hotpluggable" bool="false">
    <match key="@block.storage_device:storage.removable" bool="false">
      <merge key="volume.ignore" type="bool">true</merge>
    </match>
  </match>
</device>
</deviceinfo>
EOF
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum