No battery identified in /proc/acpi/

After the last couple of kernel updates, I no longer have a BATx folder inside /proc/acpi.
I used it to pipe the results to a little script I use on my statusbar, which keeps track of my memory usage, battery left, etc.
The strangest thing is that dmesg acknowledges the battery is there, and acpi returns the correct percentage and everything. It's just gone from /proc/acpi.
Anyone else had this one happen?
My laptop is an Acer TimeLine 1410.
dmesg | grep battery
[ 5.630145] ACPI: Battery Slot [BAT1] (battery present)
acpi -i
Battery 0: Full, 100%
Battery 0: design capacity 4400 mAh, last full capacity 4264 mAh = 96%
Last edited by Onyros (2011-10-10 13:34:01)

Using /proc to store ACPI information has been discouraged and deprecated since 2.6.24. The same data is available in /sys now and interested parties can (should) subscribe to ACPI events from the kernel via netlink.
https://bugs.archlinux.org/task/25845
acpitool upstream needs to fix this.

Similar Messages

  • Missing battery files in /proc/acpi/battery

    I'm trying to employ this script:
    http://mindspill.net/computing/linux-no … y-warning/
    to get low battery warnings. It draws info from files like
    BAT_STATE="/proc/acpi/battery/BAT1/state"
    BAT_INFO="/proc/acpi/battery/BAT1/info"
    but folder /proc/acpi/battery/ does not exist in my system. I do have /sys/class/power_supply/BAT0/ folder, but it does not containt 'state' or 'info' files.
    What should I do to make this work?
    Last edited by Lockheed (2012-06-06 10:49:13)

    Maybe I am being a bit thick, but am not well versed in scripts.
    I already modified the script to use notify-send rather than zenity
    #!/bin/bash
    # Location of acpi files.
    BAT_STATE="/proc/acpi/battery/BAT1/state"
    BAT_INFO="/proc/acpi/battery/BAT1/info"
    # Minutes from the in-built warning level that measures should be taken to prevent loosing data.
    BAT_ALERT_TIME=15
    # Log to syslog & /var/log/acpid
    LOGGER="/usr/bin/logger -t ACPID"
    if grep -q discharging $BAT_STATE
    then
    BAT_REMAIN=`awk '/remaining/ { print $3 }' $BAT_STATE` # Remaining mAh.
    BAT_DISCHARGE=`awk '/rate/ { print $3 }' $BAT_STATE` # Discharge rate in mA.
    BAT_WARN=`awk '/warning/ { print $4 }' $BAT_INFO` # Warning level in mAh.
    BAT_LOW=`awk '/low/ { print $4 }' $BAT_INFO` # Low level in mAh.
    BAT_ALERT=$(( ( ( $BAT_DISCHARGE / 60 ) * $BAT_ALERT_TIME ) )) #+ $BAT_WARN )) # Work out the charge that will have been used in $BAT_ALERT_TIME minues (and add the warning level charge as a buffer zone).
    #echo "BAT_REMAIN = $BAT_REMAIN"
    #echo "BAT_ALERT = $BAT_ALERT"
    # These environment variables are needed so that the script can post to the current display (using the zenity command). Change mention of steph to whatever your username is.
    export XAUTHORITY=/home/steph/.Xauthority
    export DISPLAY=:0
    if
    then
    # Log the fact that the (critically) low level has been reached.
    $LOGGER -p daemon.warn "Battery capacity is critically low, shutting down the system."
    # Pop up critical warning.
    /usr/bin/notify-send "Battery critically low." "HIBERNATING ($BAT_REMAIN)" &
    # zenity --warning --title "Battery Critically Low" --text "Battery capacity is critically low, shutting down the system. (remain = $BAT_REMAIN)" &
    # This is probably a good place to shut down the computer to make sure all data is written to disk. It may even be too late by now, in which case shut down the computer when it reaches the in-built warning level.
    dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Hibernate
    elif
    then
    # Log the fact that the warning level has been reached.
    $LOGGER -p daemon.warn "Battery capacity is low."
    # Pop up warning.
    /usr/bin/notify-send "Battery low." "(remain = $BAT_REMAIN)" &
    # zenity --warning --title "Battery Low" --text "Battery capacity is low. (remain = $BAT_REMAIN)" &
    elif
    then
    # Log this to let the system know that there's only a few minutes left of battery before it hit the warning level of the battery pack
    $LOGGER -p daemon.info "Battery capacity alert."
    # Pop up info.
    /usr/bin/notify-send "Battery depleting." "(remain = $BAT_REMAIN)" &
    # zenity --info --title "Battery Alert" --text "Battery capacity alert. (remain = $BAT_REMAIN)" &
    fi
    fi
    However, I suppose changing it to use acpi -V would involve more in-depth modifications which I am not sure of.

  • 2.6.24 and /proc/acpi/battery

    Hi,
    Since the update to 2.6.24 (I now run it, pulled it in from testing) the procfs for acpi was deprecated. I think we should keep the two next options in the arch kernel.
    # CONFIG_ACPI_PROCFS is not set
    # CONFIG_ACPI_PROCFS_POWER is not set
    I think the above should be set since quite some few applications depend on /proc/acpi/battery and /proc/acpi/ac
    And even on 2.6.24 there still is a /proc/acpi directory filled with some things, so it's not so very "deprecated" if despite the fact CONFIG_ACPI_PROCFS is not set, there still exists such a directory.
    Cheers!
    ps. the app that is broken for me is kde's klaptopdaemon from kdeutils, 3.x.

    cool, sorry, I completely forgot about the bugtracker. It's fixed now in -2 by tpowa. waiting for x86_64 testing to get bumped. can be closed! thanks
    Last edited by imachine (2008-01-26 19:30:21)

  • Button/lid (no /proc/acpi/events?)

    I must be missing something obvious but it seem that when I close my laptop's lid, the button/lid section of handler.sh is not triggered. I have acpi running fine, it even seems that other events are successfully triggered (like ac_adapter), but not button/lid. Essentially I'm trying to run 'powersave -u' when I close the lid.
    Help please?

    Thanks for the reply. It seems like this might be part of a bigger problem though, because I don't seem to have a /proc/acpi/event. What I have in /proc/acpi are ac_adapter, battery, button, embedded_controller, fan, power_resource, processor, thermal_zone, and video.
    Also, when I start my computer, Arch says that the acpi daemon started successfully. But if I stop it (also successfully) and then try to start it again, it always fails with "acpid: can't open /proc/acpi/event: Device or resource busy".
    Here's some sample output from /var/log/acpid which doesn't seem to be very useful. The exiting lines are probably me manually stopping acpid, although it never starts up again unless I reboot..
    [Fri Feb 17 10:59:02 2006] starting up
    [Fri Feb 17 10:59:02 2006] 2 rules loaded
    [Fri Feb 17 10:59:07 2006] client connected from 2788[82:82]
    [Fri Feb 17 10:59:07 2006] 1 client rule loaded
    [Fri Feb 17 10:59:39 2006] exiting
    [Fri Feb 17 11:01:34 2006] starting up
    [Fri Feb 17 11:01:34 2006] 2 rules loaded
    [Fri Feb 17 11:01:39 2006] client connected from 2729[82:82]
    [Fri Feb 17 11:01:39 2006] 1 client rule loaded
    [Fri Feb 17 11:02:12 2006] received event "thermal_zone C176 00000081 00000000"
    [Fri Feb 17 11:02:12 2006] notifying client 2729[82:82]
    [Fri Feb 17 11:02:12 2006] executing action "/etc/acpi/handler.sh thermal_zone C176 00000081 00000000"
    [Fri Feb 17 11:02:12 2006] BEGIN HANDLER MESSAGES
    cat: /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq: No such file or directory
    cat: /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq: No such file or directory
    [Fri Feb 17 11:02:12 2006] END HANDLER MESSAGES
    [Fri Feb 17 11:02:12 2006] action exited with status 0
    [Fri Feb 17 11:02:12 2006] executing action "/etc/acpi/handler.sh thermal_zone C176 00000081 00000000"
    [Fri Feb 17 11:02:12 2006] BEGIN HANDLER MESSAGES
    cat: /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq: No such file or directory
    cat: /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq: No such file or directory
    [Fri Feb 17 11:02:12 2006] END HANDLER MESSAGES
    [Fri Feb 17 11:02:12 2006] action exited with status 0
    [Fri Feb 17 11:02:12 2006] completed event "thermal_zone C176 00000081 00000000"
    [Fri Feb 17 11:08:30 2006] exiting
    Now I'm really confused.

  • /proc/acpi/video/* is gone [SOLVED]

    Hello!
    I noticed my precious directory was missing, when i tried manually set the LCD brightness with echo value > /proc/acpi/video/my/videoadapter. I have installed laptop-mode tools for managing the brightness when plugged in AC and when on battery.
    Thanks.
    Last edited by nybegynner (2011-02-13 20:56:50)

    Thanks, buddy!
    I'm now controlling the brightness with these settings:
    BATT_BRIGHTNESS_COMMAND="echo 3"
    LM_AC_BRIGHTNESS_COMMAND="echo 24"
    NOLM_AC_BRIGHTNESS_COMMAND="echo 24"
    BRIGHTNESS_OUTPUT="/sys/class/backlight/acpi_video0/brightness"
    (Note: The levels of brightness goes from 0 (least bright) through 24 (most bright)

  • [solved] /proc/acpi/thermal_zone/: No such file or directory

    i want to monitor my laptop temperature with conky but i get 
    Conky: scandir for /proc/acpi/thermal_zone/: No such file or directory
    does anyone know what i must install in order for it to work?
    Last edited by red-guy (2011-03-21 17:05:00)

    red-guy wrote:also, why do you even bother posting if it's not to help?
    Because :
    stlarch wrote:You are just expected to try to help yourself first. Then, when you've exhausted every effort ask. It's the Arch way. The wiki is your best friend.
    And also because as forum moderator, we have to keep the boards as clean as possible. For you the problem might be new, but for many users here, they have seen these types of threads many times which have also been answered over and over again and also documented in the wiki. The wiki is a resource that has been created by the collective efforts of the Arch users - present and past. Make use of it.
    As a general rule, if you have an issue, search the wiki, then the internet, then the forums for similar threads and if you still have problems then post a thread detailing what attempts you have made in order to fix the problem. That way, people don't give you options that you have already tried and know that they don't work.
    In addition, please go through the forum rules to familiarize yourself with the basic rules and policies of the Arch forums.

  • Where is my /proc/acpi/video interface? Can't find it!

    Hello!
    I'm using a custom kernel. (2.6.23.8) For my xorg config I need a /proc/acpi/video interface (the nvidia driver need this interface).
    I searched in the kernel config, but in Power Management / ACPI there isn't a "Video" Option.
    How can I active this interface?
    Thanks for your help!
    Best regards,
    Flasher

    Hello,
    I had the same problem a while back.  You have to go into Device Drivers / Graphics Support, and turn on the first option, "Backlight & LCD device support".  Under that option, choose "Lowlevel backlight controls".  At this point, the video option should magically appear in the ACPI section.
    Works for me.  There may other dependencies I don't know about.
    HTH,
    peart.
    Last edited by peart (2007-11-29 17:07:51)

  • /proc/acpi/event: Device or resource busy

    Hi
    ACPI has been working fine on my Acer Travelmate for a long time - but suddenly it broke. I can't start acpid deamon - I get the following error:
    acpid: can't open /proc/acpi/event: Device or resource busy
    Does anybody know how to fix it?

    Hello, I have the same problem, but I think (not confirmed yet) that the solution of putting acpid before hald might work... (i can't restart this notebook right now...)
    Just posting this because i used "lsof" to find what process uses the /proc/acpi/event file... so it would help you to find why you can't access it even when acpid starts before hald....
    21:32:58°nanex@root:/home/noice$ /etc/rc.d/acpid restart
    :: Stopping acpid [FAIL]
    :: Starting acpid [BUSY]
    acpid: can't open /proc/acpi/event: Device or resource busy
    [FAIL]
    21:33:00°nanex@root:/home/noice$ /etc/rc.d/acpid stop
    :: Stopping acpid [FAIL]
    21:37:27°nanex@root:/home/noice$ cat /proc/acpi/event
    cat: /proc/acpi/event: Device or resource busy
    21:37:34°nanex@root:/home/noice$ lsof /proc/acpi/event
    lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/noice/.gvfs
    Output information may be incomplete.
    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
    hald-addo 4193 hal 4r REG 0,3 0 4026531932 /proc/acpi/event
    21:32:58°nanex@root:/home/noice$ /etc/rc.d/acpid restart
    :: Stopping acpid [FAIL]
    :: Starting acpid [BUSY] acpid: can't open /proc/acpi/event: Device or resource busy
    [FAIL]
    21:33:00°nanex@root:/home/noice$ /etc/rc.d/acpid stop
    :: Stopping acpid [FAIL]
    21:37:27°nanex@root:/home/noice$ cat /proc/acpi/event
    cat: /proc/acpi/event: Device or resource busy
    21:37:34°nanex@root:/home/noice$ lsof /proc/acpi/event
    lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/noice/.gvfs
    Output information may be incomplete.
    COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
    hald-addo 4193 hal 4r REG 0,3 0 4026531932 /proc/acpi/event

  • /proc/acpi/fan empty

    Hey there...
    I have been trying to get at least some of the Power Management working under Linux, but haven't been too successful. Most important for me:
    Spin my fan down. The temperature seems to be at 22°C, so no cooling should be needed?
    Unfortunately I don't have any entries in /proc/acpi/fan, does this mean, it can't spin down? Or do I need to load any specific modules for this?
    Maybe related: There is only one "trip_point" defined in thermal zone:
    [root@frank /]# cat /proc/acpi/thermal_zone/THRM/temperature
    temperature: 22 C
    [root@frank /]# cat /proc/acpi/thermal_zone/THRM/state
    state: ok
    [root@frank /]# cat /proc/acpi/thermal_zone/THRM/trip_points
    critical (S5): 110 C
    [root@frank /]# cat /proc/acpi/thermal_zone/THRM/cooling_mode
    <setting not supported>
    cooling mode: critical
    Btw... the CPU is an AMD Turion64, and its frequency is scaled down by cpudyn.

    yes - I have 3 machines that don't detect fan settings... the i2c+lm_sensors stuff should handle that, but I never bothered...

  • Klaptop using /proc/acpi/sleep instead of /sys/power/state

    This is a problem in kde since it disables most of the features of klaptop. In other words for me at-least kde cpu frequency scaling, standby, suspend do not work through klaptop since it seems to use /proc/acpi/sleep instead of /sys/power/state which is the only thing available in the new kernel. I am not sure if this is a kde problem, my kernel problem, or just simply my particular problem.
    Is there a way to fix this.
    Thanks for the help,
    Matt

    It also seems kde is not reading the current cpu frequency correctly. It seems to use/proc/cpuinfo instead of /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq to get the current frequency. In addition when clicking setup helper applications under ACPI Config in klaptop I get:
    The /opt/kde/bin/klaptop_acpi_helper application does not seem to have the same size or checksum as when it was compiled we do NOT recommend you proceed with making it setuid-root without further investigation
    Are other people having these problems as well or is this unique to me.

  • Deprecated /proc/acpi/

    Hello,
    Sorry, my english sucks.
    Do you recommend to keep these options enabled in the kernel?
    Deprecated /proc/acpi files
    Deprecated power /proc/acpi directories
    Deprecated /proc/acpi/event support
    or the related acpi pkgs in Arch are updated for use /sys/ ?

    Most acpi modules should have switched to sysfs by now but you'd have to read the documentation for the acpi-module you want to use.
    I'd still keep it around. It doesn't hurt and it's shorter than /sys/devices/platform .

  • /proc/acpi/button does not exist.

    /proc/acpi/button does not exist. Any ideas?
    or, anyone knows which module is the owner of /proc/acpi/button?
    Thanks!

    I am having the same problem, even with a stock kernel. There is no power button
    device and therefore acpi_listen does not detect putton press events. I am on a
    Thinkpad T420s, which used to work until a recent reinstall. Here are the
    outputs that were originally requested (most of them look quite similar to
    enicham's):
    % lsmod | grep evdev
    evdev 11784 27
    % ls /dev/input
    by-id event10 event14 event2 event6 mice
    by-path event11 event15 event3 event7 mouse0
    event0 event12 event16 event4 event8 mouse1
    event1 event13 event17 event5 event9 mouse2
    % cat /proc/bus/input/devices
    I: Bus=0011 Vendor=0001 Product=0001 Version=ab54
    N: Name="AT Translated Set 2 keyboard"
    P: Phys=isa0060/serio0/input0
    S: Sysfs=/devices/platform/i8042/serio0/input/input0
    U: Uniq=
    H: Handlers=sysrq kbd event0
    B: PROP=0
    B: EV=120013
    B: KEY=402000000 3803078f800d001 feffffdfffefffff fffffffffffffffe
    B: MSC=10
    B: LED=7
    I: Bus=0003 Vendor=046d Product=c52b Version=0111
    N: Name="Logitech Unifying Device. Wireless PID:101b"
    P: Phys=usb-0000:00:1a.0-1.2:1
    S: Sysfs=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.2/0003:046D:C52B.0003/0003:046D:C52B.0004/input/input2
    U: Uniq=
    H: Handlers=mouse0 event1
    B: PROP=0
    B: EV=17
    B: KEY=ffff0000 0 0 0 0
    B: REL=143
    B: MSC=10
    I: Bus=0003 Vendor=046d Product=c52b Version=0111
    N: Name="Logitech Unifying Device. Wireless PID:4002"
    P: Phys=usb-0000:00:1a.0-1.2:2
    S: Sysfs=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.2/0003:046D:C52B.0003/0003:046D:C52B.0005/input/input3
    U: Uniq=
    H: Handlers=sysrq kbd event2
    B: PROP=0
    B: EV=12001f
    B: KEY=837fff072ff32d bf54444600000000 1 30f948b17c007 ffff73fad941dfff febeffdfffefffff fffffffffffffffe
    B: REL=40
    B: ABS=100000000
    B: MSC=10
    B: LED=1f
    I: Bus=0019 Vendor=0000 Product=0005 Version=0000
    N: Name="Lid Switch"
    P: Phys=PNP0C0D/button/input0
    S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input4
    U: Uniq=
    H: Handlers=event3
    B: PROP=0
    B: EV=21
    B: SW=1
    I: Bus=0019 Vendor=0000 Product=0003 Version=0000
    N: Name="Sleep Button"
    P: Phys=PNP0C0E/button/input0
    S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input5
    U: Uniq=
    H: Handlers=kbd event4
    B: PROP=0
    B: EV=3
    B: KEY=4000 0 0
    I: Bus=0019 Vendor=0000 Product=0001 Version=0000
    N: Name="Power Button"
    P: Phys=LNXPWRBN/button/input0
    S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input6
    U: Uniq=
    H: Handlers=kbd event5
    B: PROP=0
    B: EV=3
    B: KEY=10000000000000 0
    I: Bus=0019 Vendor=0000 Product=0006 Version=0000
    N: Name="Video Bus"
    P: Phys=LNXVIDEO/video/input0
    S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:0a/LNXVIDEO:01/input/input7
    U: Uniq=
    H: Handlers=kbd event6
    B: PROP=0
    B: EV=3
    B: KEY=3e000b00000000 0 0 0
    I: Bus=0019 Vendor=17aa Product=5054 Version=4101
    N: Name="ThinkPad Extra Buttons"
    P: Phys=thinkpad_acpi/input0
    S: Sysfs=/devices/platform/thinkpad_acpi/input/input8
    U: Uniq=
    H: Handlers=kbd rfkill event7
    B: PROP=0
    B: EV=33
    B: KEY=18040000 0 10000000000000 0 1501b00102004 c000000001104000 e000000000000 0
    B: MSC=10
    B: SW=8
    I: Bus=0003 Vendor=04f2 Product=b221 Version=0752
    N: Name="Integrated Camera"
    P: Phys=usb-0000:00:1a.0-1.6/button
    S: Sysfs=/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6:1.0/input/input9
    U: Uniq=
    H: Handlers=kbd event8
    B: PROP=0
    B: EV=3
    B: KEY=100000 0 0 0
    I: Bus=0010 Vendor=001f Product=0001 Version=0100
    N: Name="PC Speaker"
    P: Phys=isa0061/input0
    S: Sysfs=/devices/platform/pcspkr/input/input10
    U: Uniq=
    H: Handlers=kbd event9
    B: PROP=0
    B: EV=40001
    B: SND=6
    I: Bus=0001 Vendor=14f1 Product=506e Version=0001
    N: Name="HDA Digital PCBeep"
    P: Phys=card0/codec#0/beep0
    S: Sysfs=/devices/pci0000:00/0000:00:1b.0/input/input12
    U: Uniq=
    H: Handlers=kbd event10
    B: PROP=0
    B: EV=40001
    B: SND=6
    I: Bus=0000 Vendor=0000 Product=0000 Version=0000
    N: Name="HDA Intel PCH Headphone"
    P: Phys=ALSA
    S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input14
    U: Uniq=
    H: Handlers=event11
    B: PROP=0
    B: EV=21
    B: SW=4
    I: Bus=0000 Vendor=0000 Product=0000 Version=0000
    N: Name="HDA Intel PCH Mic"
    P: Phys=ALSA
    S: Sysfs=/devices/pci0000:00/0000:00:1b.0/sound/card0/input13
    U: Uniq=
    H: Handlers=event12
    B: PROP=0
    B: EV=21
    B: SW=10
    I: Bus=0000 Vendor=0000 Product=0000 Version=0000
    N: Name="HDA NVidia HDMI/DP,pcm=8"
    P: Phys=ALSA
    S: Sysfs=/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input17
    U: Uniq=
    H: Handlers=event13
    B: PROP=0
    B: EV=21
    B: SW=140
    I: Bus=0000 Vendor=0000 Product=0000 Version=0000
    N: Name="HDA NVidia HDMI/DP,pcm=7"
    P: Phys=ALSA
    S: Sysfs=/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input16
    U: Uniq=
    H: Handlers=event14
    B: PROP=0
    B: EV=21
    B: SW=140
    I: Bus=0000 Vendor=0000 Product=0000 Version=0000
    N: Name="HDA NVidia HDMI/DP,pcm=3"
    P: Phys=ALSA
    S: Sysfs=/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input15
    U: Uniq=
    H: Handlers=event15
    B: PROP=0
    B: EV=21
    B: SW=140
    I: Bus=0011 Vendor=0002 Product=0007 Version=01b1
    N: Name="SynPS/2 Synaptics TouchPad"
    P: Phys=isa0060/serio1/input0
    S: Sysfs=/devices/platform/i8042/serio1/input/input11
    U: Uniq=
    H: Handlers=mouse1 event16
    B: PROP=9
    B: EV=b
    B: KEY=6420 30000 0 0 0 0
    B: ABS=260800011000003
    I: Bus=0011 Vendor=0002 Product=000a Version=0000
    N: Name="TPPS/2 IBM TrackPoint"
    P: Phys=synaptics-pt/serio0/input0
    S: Sysfs=/devices/platform/i8042/serio1/serio2/input/input18
    U: Uniq=
    H: Handlers=mouse2 event17
    B: PROP=0
    B: EV=7
    B: KEY=70000 0 0 0 0
    B: REL=3
    % pacman -Qi linux
    Name : linux
    Version : 3.14.5-1
    Description : The Linux kernel and modules
    Architecture : x86_64
    URL : http://www.kernel.org/
    Licenses : GPL2
    Groups : base
    Provides : kernel26=3.14.5
    Depends On : coreutils linux-firmware kmod
    mkinitcpio>=0.7
    Optional Deps : crda: to set the correct wireless channels
    of your country
    Required By : nvidia
    Optional For : None
    Conflicts With : kernel26
    Replaces : kernel26
    Installed Size : 71950.00 KiB
    Packager : Tobias Powalowski <[email protected]>
    Build Date : Sun 01 Jun 2014 01:40:01 AM EDT
    Install Date : Sat 07 Jun 2014 02:21:14 PM EDT
    Install Reason : Explicitly installed
    Install Script : Yes
    Validated By : Signature
    % journalctl | grep dev/input
    Jun 07 19:14:16 unmensch systemd-logind[286]: Watching system buttons on /dev/input/event6 (Power Button)
    Jun 07 19:14:16 unmensch systemd-logind[286]: Watching system buttons on /dev/input/event3 (Video Bus)
    Jun 07 19:14:16 unmensch systemd-logind[286]: Watching system buttons on /dev/input/event4 (Lid Switch)
    Jun 07 19:14:16 unmensch systemd-logind[286]: Watching system buttons on /dev/input/event5 (Sleep Button)
    Jun 07 19:14:16 unmensch systemd-logind[286]: Watching system buttons on /dev/input/event7 (ThinkPad Extra Buttons)

  • [SOLVED] Battery not detected by acpi

    Hello everyone.  I am new to Arch Linux (loving it so far) and fairly new with Linux in general (tried a few distributions, Gentoo being the one I last tried).  I just recently got an Acer Aspire 3004WLCI Laptop. and decided to put arch on it.  I managed to get everything else to work (wireless, ect.) but I can't get it to recognise my battery.
    In KDE it always says I have no battery inserted (-1% charge).
    In dmesg I keep getting this message:
    ACPI-0339: *** Error: Looking up [Z007] in namespace, AE_NOT_FOUND
    search_node dbbca260 start_node dbbca260 return_node 00000000
        ACPI-0508: *** Error: Method execution failed [_SB_.BAT1._BST] (Node dbbcaf80), AE_NOT_FOUND
    I have searched around a bit on these forums and other places, but the things I have tried so far have not worked.  Anyone know anything I can try?
    Thanks in advance!

    OK I had to recompile my DSDT file, which I have done succesfully.  But now I am having a problem patching them into my kernel.  I was trying to follow the directions here http://acpi.sourceforge.net/wiki/index. … rideTables
    When I get to the part where it says
    patch -p1 -i /PATH/TO/osl.diff
    I replace the path with the file that is shown later on that page.  When I run the command I get this message:
    can't find file to patch at input line 5
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    |--- linux/drivers/acpi/osl.c.orig
    |
    |+++ linux/drivers/acpi/osl.c
    |
    File to patch:
    And from there I don't know what to do.
    I have never patched a kernel before, so I probably am just missing something simple, can anyone help?
    As before, thanks in advance.

  • [SOLVED] proc/acpi/button/power missing

    I have been unable to trigger an event when the power button is pressed on my laptop.
    # uname -a
    Linux julia 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 08:53:25 CEST 2011 x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-50 AuthenticAMD GNU/Linux
    acpid version 2.0.10-2, started through rc.conf as daemon.
    dbus is active, HAL is not installed.
    # tail -f /var/log/messages.log
    Sep 6 14:48:03 localhost -- MARK --
    Sep 6 15:08:03 localhost -- MARK --
    Sep 6 15:28:03 localhost -- MARK --
    Sep 6 15:36:02 localhost acpid: client 1328[0:100] has disconnected
    Sep 6 15:36:02 localhost acpid: client connected from 2084[0:100]
    Sep 6 15:36:02 localhost acpid: 1 client rule loaded
    Sep 6 15:48:03 localhost -- MARK --
    Sep 6 16:08:03 localhost -- MARK --
    Sep 6 16:28:03 localhost -- MARK --
    Sep 6 16:48:03 localhost -- MARK --
    Sep 6 16:59:43 localhost logger: PowerButton pressed: PWRF
    # acpi_listen
    button/power PWRF 00000080 00000002
    That output indicates the power button is recognized by the kernel, but it have no idea what i should put in /etc/acpi/handler.sh to shutdown the laptop when the powerbutton is pressed.
    Last edited by Lone_Wolf (2011-09-07 12:02:23)

    button/power PWRF 00000080 00000002
    These are the arguments passed to the handler script ($1 to $4).
    handler.sh from acpid package:
    case "$1" in
    button/power)
    #echo "PowerButton pressed!">/dev/tty5
    case "$2" in
    PBTN|PWRF) logger "PowerButton pressed: $2" ;;
    *) logger "ACPI action undefined: $2" ;;
    esac
    Replace the logger "PowerButton [...]" command (which is responsible for the message.log line you quote) with a shutdown invocation.

  • Battery Identifier in Itunes 10

    I just noticed that on my Iphone 3g it is showing I have a full charge. which is true since I always charge over night, yet in Itunes 10 next to my phone under devices it shows the lighting bolt. Could this be a bug in itune 10 or just that my phone is displaying the wrong charge state. I rebooted the phone several times and this did not correct the displaying problem. all answer or suggestion is welcome thanks in advance.

    to update i noticed that i now have a plug indicator in itunes 10 it might have been a glitch with the phone displaying the full charge state sooner then it was suppose to.

Maybe you are looking for