On 11/15/06, Kevin Williams <[EMAIL PROTECTED]> wrote:

About the kpowersave problem, an hour's search on the internet over how to 
configure powersave with dbus returned nothing appropriate. I revisited BLFS 
Book and read thru' the DBUS and HAL notes. Thats when I noticed the link to 
hints which you have pointed out in your email. Acting on the instructions I 
installed pam_console and created the scripts to get KDM launch a user dbus 
session. When, I had it all ready, upon entering the password on the login 
screen it kept dropping me back to the login screen. Obviously because, the 
script that would launch the user's dbus session was calling sudo to achieve it 
and sudo wasn't working for me ! I tried launching dbus session from within kde 
and that didn't make it work for some strange reason. Maybe, because kde does 
some sort of initialization and dbus must be launched prior to that !   When I 
log  into kde as root, kpowersave works without a glitch.

I'm confused. Why are you launching dbus with sudo? There should be no
need to do that. The whole point of the hal configuration that I
pointed out is that there is configuration in the hal.conf file that
allows certain users to gain privileges without needing root rights.
This can be done by using pam_console, but it's not trivial. Make sure
you follow all the wiki pages so you get it enabled in your session
properly. Or, just add another user group and give them prvileges like
it explains in the book.

As far as kde initializing dbus, it's really easy to find out whether
a session bus has been started already. Is DBUS_SESSION_BUS_ADDRESS
set?

I decided to strace kpowersave and did just that. Output of 'strace kpowersave' 
showed the various libs it was accessing and then the /etc/sudoers followed by 
the error message. That made me think that, kpowersave is using sudo to achieve 
its job done. Now that I've sudo working kpowersave is working just perfect !!

That sounds really strange. I have no idea why sudo would be needed.

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to