Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Flashing HDD LED and hal
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
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 726
Location: USA

PostPosted: Tue Oct 14, 2008 12:27 am    Post subject: [SOLVED] Flashing HDD LED and hal Reply with quote

I built a new box and, much to my dismay, the hard disk drive LED, normally blue, flashes red about once a second. Google suggested that the flashing LED didn't represent hard drive activity but rather SATA activity. (I have a SATA hard drive and two SATA cdroms.) Sure enough, that was the case.
Code:
# ps aux | grep hal
...
root     11118  0.0  0.0  17632  1080 ?        S    19:19   0:00 hald-addon-storage: polling /dev/sr0 (every 2 sec)
root     11121  0.0  0.0  17632  1068 ?        S    19:19   0:00 hald-addon-storage: polling /dev/sr1 (every 2 sec)
Evidently hal is polling the cdroms for inserted media. When I
Code:
gauss:~# /etc/init.d/hald stop
 * Stopping Hardware Abstraction Layer daemon ...
the LED is a constant blue. So, I have two questions.

Even though the LED activity is "harmless", do I lose anything if I remove hald from the default runlevel? If I remove hald from world?

When hald is not running, will LED activity reflect hard drive or "all SATA devices" activity?

Thanks.

[SOLVED] See my second post, below. [/SOLVED]


Last edited by cfgauss on Thu Oct 16, 2008 4:25 am; edited 1 time in total
Back to top
View user's profile Send private message
Lucractius
n00b
n00b


Joined: 04 Jul 2005
Posts: 43
Location: Australia

PostPosted: Tue Oct 14, 2008 5:05 am    Post subject: Reply with quote

I'm curious to know if the polling period can be throttled back since the behavior is useful.
But obviously side effects such as this need a solution.
_________________
The Tech Dragon's Hax : My blog, from the IT & Web Trenches.
NanoSyntax Project : Nano Syntax Highlighting for all! - Status: Alpha / Beta transition stage
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Tue Oct 14, 2008 6:39 am    Post subject: Reply with quote

Yes, you lose the ability to automount using most popular (and some not-so-popular) desktop and window managers, such as XFCE and KDE. You also lose X functionality, as the mouse and keyboard are being switched from using modules to using the hal/dbus system. You also set yourself back technologically speaking.

To give up full functionality for an LED seems a complete waste of your system. Why sacrifice for a cosmetic doo-dad you will hardly ever notice if you're doing anything with your system that requires you to take your attention off the hard drive light, and focus it on the screen? That just seems a bit silly to me.

But hey, if that's what you want to do, knock yourself out. The command would be:
Code:
emerge -C hal


Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
IvanMajhen
Guru
Guru


Joined: 10 Jun 2006
Posts: 392
Location: Croatia

PostPosted: Tue Oct 14, 2008 9:50 am    Post subject: Reply with quote

You can disable polling
Code:
hal-disable-polling -- device /dev/sr0

and add cdrom mount options to fstab, and then add desktop shortcut to device.
Back to top
View user's profile Send private message
cfgauss
l33t
l33t


Joined: 18 May 2005
Posts: 726
Location: USA

PostPosted: Thu Oct 16, 2008 4:24 am    Post subject: Reply with quote

IvanMajhen wrote:
You can disable polling
Code:
hal-disable-polling -- device /dev/sr0

and add cdrom mount options to fstab, and then add desktop shortcut to device.

Thanks. This works.

The man page for hal-disable-polling states, "It is the position of the HAL team that polling should be avoided at all costs as long as it doesn't heavily impact the user experience in a negative way." So far I've not noticed any negative effects, at least not with this kernel.
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