LINUX.ORG.RU

[Arch]laptop-mode-tools

 


0

0

Всем доброго времени суток!

Вот пытаюсь прикрутить сабж дабы он управлял подсветкой бука (Acer 5720). Установил пакет laptop-mode-tools, поставил laptop-mode на загрузку в rc.conf. Но ни хрена не пашет. Вот кое-какие выхлопы:

[m1rag3@darkstar ~]$ sudo /etc/rc.d/laptop-mode start
:: Starting laptop-mode [DONE]
[m1rag3@darkstar ~]$

[m1rag3@darkstar ~]$ cat /proc/sys/vm/laptop_mode
0
[m1rag3@darkstar ~]$

echo 20 > /proc/acpi/video/VGA/LCD/brightness - прокатывает только если под рутом делать, sudo не дает, пишет нет привилегий.

Даже не знаю что еще... Куда копать подскажите...

ЗЫ вот еще:

[m1rag3@darkstar ~]$ cat /etc/laptop-mode/conf.d/lcd-brightness.conf
#
# Configuration file for Laptop Mode Tools module lcd-brightness.
#
# For more information, consult the laptop-mode.conf(8) manual page.
#


###############################################################################
# LCD brightness settings
# -----------------------
#
# Using these settings, you can make laptop mode tools automatically adjust
# your LCD's brightness settings. The settings are extremely simple -- they
# only allow for the execution of a command, nothing more. The reason for this
# is that LCD brightness settings are very different between laptop vendors.
#
# Suggestions for commands:
#
# * If your system has the file "/proc/acpi/video/VID/LCD/brightness" (VID may
# be VID1 or similar), use this file as BRIGHTNESS_OUTPUT, and use
# the command "echo <value>". The possible values can be listed using the
# command:
#
# cat /proc/acpi/video/VID/LCD/brightness
#
# * If you have a file /sys/class/backlight/.../brightness, then you can use
# that file as BRIGHTNESS_OUTPUT, and the command "echo <value>".
#
# As far as I understand it the values are between 0 and
# the value contained in the file /sys/class/backlight/.../max_brightness.
#
# * For Toshiba laptops, use the command "toshset" with the -lcd or -inten
# command. Read the toshset(1) manual page for more information on the
# parameters for this command. If you use this command, set
# BRIGHTNESS_OUTPUT to "/dev/null".
#
###############################################################################

###############################################################################
#
# IMPORTANT: In versions 1.36 and earlier, these settings were included in the
# main laptop-mode.conf configuration file. If they are still present, they
# overrule the settings in this file. To fix this, simply delete the settings
# from the main config file.
#
###############################################################################


#
# Should laptop mode tools control LCD brightness?
#
CONTROL_BRIGHTNESS=1


#
# Commands to execute to set the brightness on your LCD
#
BATT_BRIGHTNESS_COMMAND="echo 24"
LM_AC_BRIGHTNESS_COMMAND="echo 80"
NOLM_AC_BRIGHTNESS_COMMAND="echo 80"
BRIGHTNESS_OUTPUT="/proc/acpi/video/VGA/LCD/brightness"
[m1rag3@darkstar ~]$

★★

>echo 20 > /proc/acpi/video/VGA/LCD/brightness - прокатывает только если под рутом делать, sudo не дает, пишет нет привилегий.

facepalm.jpg

sudo sh -c "echo 20 > /proc/acpi/video/VGA/LCD/brightness"

len
()
Ответ на: комментарий от len

Ну это так, если вручную просто пробовать..

А по вопросу что? Кстати при старте laptop-mode в файл messages.log сливается следующая строчка

logger: ACPI group/action undefined: video / LCD

m1rag3 ★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.