Bug 388311 - Hal should allow logged-in user to suspend polling
Hal should allow logged-in user to suspend polling
Product: Fedora
Classification: Fedora
Component: hal (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: David Zeuthen
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2007-11-17 08:08 EST by David Anderson
Modified: 2013-03-05 22:53 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-11-17 09:51:44 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Anderson 2007-11-17 08:08:46 EST
I want my computer to automatically disable polling of the CD drive when I 
switch to battery power; and re-enable it when I come back.

To achieve this, I think I have to use the "Configuration Notifications" 
feature of kpowersave (I use KDE) and add a shell script to be run when AC 
power comes and goes, which calls hal-disable-polling.

However, hal-disable-polling doesn't allow non-root users, whether logged in 
or not, to access it:

$ hal-disable-polling --device /dev/scd0
This program requires super user (root) privileges.

I think that that access check is too restrictive - the logged in user should 
be allowed to control polling of the drive.
Comment 1 David Zeuthen 2007-11-17 09:51:44 EST
This works already, see hal-lock(1). Besides, feature requests should not be
filed in a downstream bugzilla.

Note You need to log in before you can comment on or make changes to this bug.