View previous topic :: View next topic |
Author |
Message |
l33tmmx Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/47605891562c0035361747.png)
Joined: 12 Mar 2005 Posts: 112 Location: Pirkkala, Finland
|
Posted: Thu Jul 05, 2007 7:23 pm Post subject: Hald and IDE drives |
|
|
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(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 ![Sad :(](images/smiles/icon_sad.gif) _________________ "Trust me, I know what I'm doing!"
- Sledge Hammer |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
PaulBredbury Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/15669254994381f44a81f83.jpg)
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Thu Jul 05, 2007 9:46 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
l33tmmx Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/47605891562c0035361747.png)
Joined: 12 Mar 2005 Posts: 112 Location: Pirkkala, Finland
|
Posted: Fri Jul 06, 2007 4:22 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
l33tmmx Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/47605891562c0035361747.png)
Joined: 12 Mar 2005 Posts: 112 Location: Pirkkala, Finland
|
Posted: Fri Jul 06, 2007 7:21 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
PaulBredbury Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/15669254994381f44a81f83.jpg)
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Fri Jul 06, 2007 7:29 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|