Bug 388311 - Hal should allow logged-in user to suspend polling
Summary: Hal should allow logged-in user to suspend polling
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: hal
Version: 7
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: David Zeuthen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-11-17 13:08 UTC by David Anderson
Modified: 2013-03-06 03:53 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-11-17 14:51:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description David Anderson 2007-11-17 13:08:46 UTC
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 14:51:44 UTC
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.