Difference between revisions of "Talk:Acpid"

From ArchWiki
Jump to: navigation, search
m ((Green note) Note for KDE SC and GNOME users: Close.)
m (Slimlock configuration)
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
== Kacpid ==
 
 
Q: Can someone add a section about this? Is it an alternative to ACPID?
 
 
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)
 
 
==<s> (Green note) Note for KDE SC and GNOME users </s> ==
 
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 10:
  
 
(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)

Revision as of 12:34, 4 July 2013

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)