Difference between revisions of "Talk:Acpid"

From ArchWiki
Jump to: navigation, search
m
m (Slimlock configuration)
(14 intermediate revisions by 5 users not shown)
Line 1: Line 1:
= Kacpid =
+
== Slimlock configuration ==
  
Q: Can someone add a section about this? Is it an alternative to ACPID?
+
on a macbook air 4,2 i could not get the suggested configuration for slimlock on lid close to work:
  
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)
+
DISPLAY=:0.0 su -c - username /usr/bin/slimlock
  
==Screen Blanking==
+
i had to use:
Q: How do you keep the screen blanked when an external mouse is plugged in? Screen will blank when lid is closed, but if you move the mouse it will light up again and you'll see the light coming through the cracks. --[[User:VitaminJ|VitaminJ]] 05:32, 18 February 2011 (EST)
+
 
 +
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
 +
        ;;
 +
 
 +
[[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)