LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-26-2005, 04:02 AM   #1
ParticleHunter
Member
 
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129

Rep: Reputation: 15
battery applet not working in GNOME due to ACPI error


Hi,

when I try to load the battery status applet, it shows me the following message:

Can't access ACPI events in /var/run/acpid.socket! Make sure the ACPI subsystem in working and the acpid daemon in running.

I have, of course, ACPI support in the kernel (no APM, only ACPI as I read mixing AMP and ACPI is not a good idea) and I installed acpid-1.0.4, but I still get that error every time I log into GNOME and try to load the applet...

how can I solve this problem?

Thanks in advance,

Julio
 
Old 07-26-2005, 08:47 AM   #2
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
Do you have acpid running?
 
Old 07-26-2005, 02:10 PM   #3
ParticleHunter
Member
 
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129

Original Poster
Rep: Reputation: 15
Oops (forgot to make it run)

but there's not a BLFS bootscript for ACPI daemon (not sure but I think there isn't a rule for 'make install-acpi')...

how do I create the script for it to run?

Julio

Last edited by ParticleHunter; 07-26-2005 at 02:13 PM.
 
Old 07-26-2005, 06:06 PM   #4
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
Here's a bootscript I made with some files it uses.

/etc/rc.d/init.d/acpid
Code:
. /etc/sysconfig/rc
. $rc_functions

case "$1" in
        start)
                echo "Starting acpid..."
                if [ ! -e /proc/acpi ]; then
                        echo -n "ACPI support has not been compiled into the kernel"
                        echo_failure
                else
                        loadproc /usr/sbin/acpid -c /etc/acpi/events
                fi
                ;;
        stop)
                echo "Stopping acpid..."
                killproc /usr/sbin/acpid
                ;;
        restart)
                $0 stop
                sleep 1
                $0 start
                ;;
        status)
                statusproc /usr/bin/acpid
                ;;
        *)
                echo "Usage: $0 {start|stop|restart|status}"
                exit 1
                ;;
esac
/etc/acpi/events/default (from Gentoo)
Code:
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-power/acpid/files/acpid-1.0.4-default,v 1.2 2005/04/24 16:21:45 brix Exp $

# This is the ACPID default configuration, it takes all
# events and passes them to /etc/acpi/default.sh for further
# processing.

# event keeps a regular expression matching the event. To get
# power events only, just use something like "event=button[ /]power.*"
# to catch it.
# action keeps the command to be executed after an event occurs
# In case of the power event above, your entry may look this way:
#event=button[ /]power.*
#action=/sbin/init 0

# Optionally you can specify the placeholder %e. It will pass
# through the whole kernel event message to the program you've
# specified.

event=.*
action=/etc/acpi/default.sh %e
/etc/acpi/default.sh
Code:
#!/bin/sh
# Default acpi script that takes an entry for all actions

set $*

group=${1/\/*/}
action=${1/*\//}

case "$group" in
        button)
                case "$action" in
                        power)  /sbin/init 0
                                ;;
                                esac
                                ;;
                        *)      logger "ACPI action $action is not defined"
                                ;;
                esac
                ;;

        *)
                logger "ACPI group $group / action $action is not defined"
                ;;
esac
 
Old 07-27-2005, 12:52 AM   #5
ParticleHunter
Member
 
Registered: Apr 2004
Location: Malaga, Spain
Distribution: LFS
Posts: 129

Original Poster
Rep: Reputation: 15
Hi kjordan,

thanks for the valuable info

Julio
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Clock Drift with Gnome Battery Applet? Matir Linux - Software 1 09-09-2005 02:56 PM
Gnome battery applet, using by normal user, problem ArchArael Linux - Software 1 05-10-2005 02:48 AM
Little problem with battery applet in Gnome TADsince1995 Linux - Laptop and Netbook 0 04-26-2005 02:38 AM
Gnome Battery Panel ACPI Settings rnmartinez Linux - Software 4 12-18-2004 06:31 AM
is there an x battery status applet for woody with acpi?! tortenteufel Linux - Software 0 02-22-2004 12:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration