Difference between revisions of "Talk:Acpid"

From ArchWiki
Jump to: navigation, search
m ((Green note) Note for KDE SC and GNOME users: Close.)
(/var/log/messages.log doesn't exist anymore)
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
== Kacpid ==
+
== <s> /var/log/messages.log doesn't exist anymore </s> ==
 +
The following information is outdated:
  
Q: Can someone add a section about this? Is it an alternative to ACPID?
+
To determine how your buttons or Fn shortcuts are recognized, run the following command from a terminal as root:
  
A: No it's actually a kernel thread that is running due to an acpi module that is loaded into the kernel, like "thermal" or "battery". You can use the kernel argument noacpi in grub to disable acpi in the kernel. --[[User:VitaminJ|VitaminJ]] 05:33, 18 February 2011 (EST)
+
# tail -f /var/log/messages.log
 
+
[[User:Axper|axper]] ([[User talk:Axper|talk]]) 16:59, 1 December 2013 (UTC)
==<s> (Green note) Note for KDE SC and GNOME users </s> ==
+
: Update to journalctl. Close. --[[User:Fengchao|Fengchao]] ([[User talk:Fengchao|talk]]) 03:39, 14 December 2013 (UTC)
I would like to somebody review my note; I'm confident it's okay but since I'm not proficient in english - and also because this is my very first wiki edit here, I would like to double check it, thanks! --[[User:Msx|msx]] ([[User talk:Msx|talk]]) 07:23, 2 September 2012 (UTC)
+
: It is fine. Close. -- [[User:Fengchao|Fengchao]] ([[User talk:Fengchao|talk]]) 05:43, 31 March 2013 (UTC)
+
  
 
== Slimlock configuration ==
 
== Slimlock configuration ==
Line 20: Line 19:
  
 
(suggested complimentary configuration)
 
(suggested complimentary configuration)
 +
 +
== Screen Brightness ==
 +
 +
I had no luck with a screen brightness step of 1, in acpi handler.  Adding these clauses to handler.sh works better.
 +
 +
    video/brightnessdown)
 +
        bl_dev=/sys/class/backlight/acpi_video0
 +
        actual_bl=`cat $bl_dev/actual_brightness`
 +
        # Lower brightness has no effect until it is lowered enough to change actual_brightness.
 +
        # Brightness less than 10 causes problems when increasing!
 +
        while [ $actual_bl -gt 10 -a $actual_bl == `cat $bl_dev/actual_brightness` ]
 +
        do
 +
            echo $((`cat $bl_dev/brightness` - 1)) > $bl_dev/brightness
 +
        done
 +
        ;;
 +
    video/brightnessup)
 +
        bl_dev=/sys/class/backlight/acpi_video0
 +
        actual_bl=`cat $bl_dev/actual_brightness`
 +
        # Change in brightness has no effect until it is changed enough to change actual_brightness.
 +
        while [ $actual_bl -lt 100 -a $actual_bl == `cat $bl_dev/actual_brightness` ]
 +
        do
 +
            echo $((`cat $bl_dev/brightness` + 1)) > $bl_dev/brightness
 +
        done
 +
        ;;
 +
 +
[[User:Dave Cohen|Dave Cohen]] ([[User talk:Dave Cohen|talk]]) 12:34, 4 July 2013 (UTC)
 +
 +
== Banner to warn users that logind already implements some of these tips? ==
 +
 +
Hi! I think it can be useful if we put a banner on top of this page to warn users that logind already implements some acpid features. Eventually we can highlight which of these features are already implemented, and a link to the systemd wiki page. [[User:Nierro|Nierro]] ([[User talk:Nierro|talk]]) 17:40, 3 August 2013 (UTC)
 +
 +
:The [[Power Management]] page (a section from [[systemd]] was recently moved there) links to this page correctly, but you are right - some note to read [[Power Management#Power management with systemd]] first would be useful. But I'd still keep the old examples using ''pm-suspend'' etc. until [[pm-utils]] is finally deprecated. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 17:51, 3 August 2013 (UTC)
 +
 +
::The fact is that pm-utils, being no more a dep of upower, is really unlikely to be installed. While every user should have systemd and "systemctl suspend". So I find it better to use systemctl instead of pm. For the banner, i think it should be added. [[User:Nierro|Nierro]] ([[User talk:Nierro|talk]]) 18:29, 3 August 2013 (UTC)
 +
 +
:::It seems i'm jumping forward when upower 0.9.21 hit extra...i'm using testing so i didn't notice. By the way systemctl suspend is equivalent to pm-suspend, and i guess upower 0.9.21 will hit extra in a few days. [[User:Nierro|Nierro]] ([[User talk:Nierro|talk]]) 18:31, 3 August 2013 (UTC)
 +
 +
::::Alright, but [https://wiki.archlinux.org/index.php?title=Acpid&diff=269629&oldid=269628 this] doesn't make much sense - why not use the logind mechanism you talked about? I'd delete that example too, there's already one example on button/lid close. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 18:51, 3 August 2013 (UTC)
 +
 +
:::::Damn sorry, you're right obviously. I must be really tired. Thank you for pointing that out! [[User:Nierro|Nierro]] ([[User talk:Nierro|talk]]) 18:54, 3 August 2013 (UTC)

Revision as of 03:39, 14 December 2013

/var/log/messages.log doesn't exist anymore

The following information is outdated:

To determine how your buttons or Fn shortcuts are recognized, run the following command from a terminal as root:

# tail -f /var/log/messages.log

axper (talk) 16:59, 1 December 2013 (UTC)

Update to journalctl. Close. --Fengchao (talk) 03:39, 14 December 2013 (UTC)

Slimlock configuration

on a macbook air 4,2 i could not get the suggested configuration for slimlock on lid close to work:

DISPLAY=:0.0 su -c - username /usr/bin/slimlock

i had to use:

su -s $USERNAME /bin/sh -c "/usr/bin/slimlock"

(suggested complimentary configuration)

Screen Brightness

I had no luck with a screen brightness step of 1, in acpi handler. Adding these clauses to handler.sh works better.

   video/brightnessdown)
       bl_dev=/sys/class/backlight/acpi_video0
       actual_bl=`cat $bl_dev/actual_brightness`
       # Lower brightness has no effect until it is lowered enough to change actual_brightness.
       # Brightness less than 10 causes problems when increasing!
       while [ $actual_bl -gt 10 -a $actual_bl == `cat $bl_dev/actual_brightness` ]
       do
           echo $((`cat $bl_dev/brightness` - 1)) > $bl_dev/brightness
       done
       ;;
   video/brightnessup)
       bl_dev=/sys/class/backlight/acpi_video0
       actual_bl=`cat $bl_dev/actual_brightness`
       # Change in brightness has no effect until it is changed enough to change actual_brightness.
       while [ $actual_bl -lt 100 -a $actual_bl == `cat $bl_dev/actual_brightness` ]
       do
           echo $((`cat $bl_dev/brightness` + 1)) > $bl_dev/brightness
       done
       ;;

Dave Cohen (talk) 12:34, 4 July 2013 (UTC)

Hi! I think it can be useful if we put a banner on top of this page to warn users that logind already implements some acpid features. Eventually we can highlight which of these features are already implemented, and a link to the systemd wiki page. Nierro (talk) 17:40, 3 August 2013 (UTC)

The Power Management page (a section from systemd was recently moved there) links to this page correctly, but you are right - some note to read Power Management#Power management with systemd first would be useful. But I'd still keep the old examples using pm-suspend etc. until pm-utils is finally deprecated. -- Lahwaacz (talk) 17:51, 3 August 2013 (UTC)
The fact is that pm-utils, being no more a dep of upower, is really unlikely to be installed. While every user should have systemd and "systemctl suspend". So I find it better to use systemctl instead of pm. For the banner, i think it should be added. Nierro (talk) 18:29, 3 August 2013 (UTC)
It seems i'm jumping forward when upower 0.9.21 hit extra...i'm using testing so i didn't notice. By the way systemctl suspend is equivalent to pm-suspend, and i guess upower 0.9.21 will hit extra in a few days. Nierro (talk) 18:31, 3 August 2013 (UTC)
Alright, but this doesn't make much sense - why not use the logind mechanism you talked about? I'd delete that example too, there's already one example on button/lid close. -- Lahwaacz (talk) 18:51, 3 August 2013 (UTC)
Damn sorry, you're right obviously. I must be really tired. Thank you for pointing that out! Nierro (talk) 18:54, 3 August 2013 (UTC)