LinuxForum.Fans
Тема

Настройка яркости экрана и управление питанием

Автор: serg86 27 сообщений 11705 просмотров
#311143

Тут что-нибудь имеется:
cat /sys/module/video/parameters/brightness_switch_enabled

#311149
Vlad60 написал:
Если драйвер nvidia попрообуйте с помощью nvidia-settings
или
xbacklight

У меня nvidia optimus, через nvidia-settings почти нечего настраивать.
Как пользоваться xbacklight ?

aliaksei1818 написал:
Тут что-нибудь имеется:
cat /sys/module/video/parameters/brightness_switch_enabled

Только Y

#311156
"serg86⇓" написал:
Как пользоваться xbacklight ?
text
 xbacklight -h
usage: xbacklight [options]
  where options are:
  -display <display> or -d <display>
  -help
  -set <percentage> or = <percentage>
  -inc <percentage> or + <percentage>
  -dec <percentage> or - <percentage>
  -get
  -time <fade time in milliseconds>
  -steps <number of steps in fade>
#311172
Vlad60 написал:
[quote="serg86⇓"]Как пользоваться xbacklight ?
text
 xbacklight -h
usage: xbacklight [options]
  where options are:
  -display <display> or -d <display>
  -help
  -set <percentage> or = <percentage>
  -inc <percentage> or + <percentage>
  -dec <percentage> or - <percentage>
  -get
  -time <fade time in milliseconds>
  -steps <number of steps in fade>

[/quote]
Не, не работает. Значение также меняется и на ползунке, толку-то все равно нет

#311174

Есть еще xrandr,попробуйте

text
xrandr --output VGA-0  --brightness 0.5

Вместо VGA-0 (этоу меня VGA-0) подставьте монитор свой из вывода команды xrandr
Например мой вывод

text

xrandr 
Screen 0: minimum 8 x 8, current 1280 x 1024, maximum 4096 x 4096
DVI-I-0 disconnected (normal left inverted right x axis y axis)
VGA-0 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 338mm x 270mm
   1280x1024      60.0*+   75.0  
   1024x768       75.0     60.0  
   800x600        75.0     60.3  
   640x480        75.0     59.9  
TV-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
#311179
Vlad60 написал:
Есть еще xrandr,попробуйте
text
xrandr --output VGA-0  --brightness 0.5

Вместо VGA-0 (этоу меня VGA-0) подставьте монитор свой из вывода команды xrandr
Например мой вывод

text

xrandr 
Screen 0: minimum 8 x 8, current 1280 x 1024, maximum 4096 x 4096
DVI-I-0 disconnected (normal left inverted right x axis y axis)
VGA-0 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 338mm x 270mm
   1280x1024      60.0*+   75.0  
   1024x768       75.0     60.0  
   800x600        75.0     60.3  
   640x480        75.0     59.9  
TV-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)

Ухты, спасибо, работает! Максимальное значение как я понял 1 ?? То что выше 1-цы уже ярче чем нужно, так?
Сейчас как бы это все дело прикрутить)
Глупый вопрос, но все же, батареи на дольше будет хватать, если таким способом яркость убавлять?

#379925
verg написал:
serg86,
А таким макаром: (вручную)
Открыть файл /etc/default/grub от рута.
К содержимому следующих строк дописать:
text
GRUB_CMDLINE_LINUX_DEFAULT="acpi_backlight=vendor"
GRUB_CMDLINE_LINUX="acpi_osi=Linux"

Сохранить файл.
Обновить GRUB2:

text
# grub2-mkconfig -o /boot/grub2/grub.cfg

Вдруг кому пригодится!
В 13.1 так работает!

Войдите или зарегистрируйтесь, чтобы ответить.