Bug 388311

Summary: Hal should allow logged-in user to suspend polling
Product: [Fedora] Fedora Reporter: David Anderson <david>
Component: halAssignee: David Zeuthen <davidz>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 7CC: mclasen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-17 14:51:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.