[luminosité] marche pas
Publié : mer. 15 juin 2016, 08:45
Bonjour,
Lorsque j'appuie sur Fn+F3 et Fn+F4, la luminosité de mon écran ne change pas.
Lorsque j'appuie sur Fn+F3 et Fn+F4, la luminosité de mon écran ne change pas.
Forum d'entraide ! Posez vos questions ici
https://forums.archlinux.fr/
Merci d'être un peu plus disert (qu'as-tu fait... ou pas... ça marchait avant... ou pas... etc.).AchilleFraisse a écrit :Bonjour,
Lorsque j'appuie sur Fn+F3 et Fn+F4, la luminosité de mon écran ne change pas.
Merci de ne pas jeter d'huile sur le feu.otacon a écrit :Quand je mange trop, j'ai mal au ventre.
---> [ ]
Code : Tout sélectionner
ls /sys/class/backlight/
Code : Tout sélectionner
intel_backlight -> ../../devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight/
-r--r--r-- 1 root root 4096 Jun 15 22:01 actual_brightness
-rw-r--r-- 1 root root 4096 Jun 15 22:01 bl_power
-rw-r--r-- 1 root root 4096 Jun 15 22:01 brightness
lrwxrwxrwx 1 root root 0 Jun 15 22:01 device -> ../../card0-eDP-1/
-r--r--r-- 1 root root 4096 Jun 15 22:01 max_brightness
drwxr-xr-x 2 root root 0 Jun 15 22:01 power/
lrwxrwxrwx 1 root root 0 Jun 15 21:27 subsystem -> ../../../../../../../class/backlight/
-r--r--r-- 1 root root 4096 Jun 15 22:01 type
-rw-r--r-- 1 root root 4096 Jun 15 22:01 uevent
Code : Tout sélectionner
#!/bin/bash
error="Usage: $0 up | $0 down"
xbl=`xbacklight`
limit=10.0
limit2=1.5
limit3=40
if [ "$#" -eq 1 ]
then
if [ $1 = "up" ]
then
echo "xBacklight up"
if [ $(echo "$xbl < $limit"|bc) -eq 1 ]
then
xbacklight +2
else
if [ $(echo "$xbl < $limit3"|bc) -eq 1 ]
then
xbacklight +10
else
xbacklight +20
fi
fi
elif [ $1 = "down" ]
then
echo "xBacklight down"
if [ $(echo "$xbl < $limit"|bc) -eq 1 ]
then
if [ $(echo "$xbl < $limit2"|bc) -eq 1 ]
then
echo "xBacklight minimum !"
xbacklight =1
else
xbacklight -2
fi
else
if [ $(echo "$xbl < $limit3"|bc) -eq 1 ]
then
xbacklight -10
else
xbacklight -20
fi
fi
else
echo $error
fi
else
echo $error
fi
Cela dépend...AchilleFraisse a écrit :Mais cela marche que sous X. Dans les tty ca ne marche évidemment pas.
Je voulais donc savoir si c'est au gestionnaire graphique de gérer la luminosité ou si c'est à l'os
Code : Tout sélectionner
Section "Device"
Identifier "card0"
Driver "intel"
Option "Backlight" "intel_backlight"
BusID "PCI:0:2:0"
EndSection
Code : Tout sélectionner
$ yaourt -Ss zenbook
aur/als-controller 20160117-1 (0) (0,00)
ASUS Zenbook ambient light sensor userspace controller.
aur/als-dkms r27-1 (5) (0,06)
ASUS Zenbook ambient light sensor kernel module (DKMS)
aur/asus-kbd-backlight 1.2-1 (5) (0,76)
Helper for adjusting keyboard backlight brightness in Asus Zenbook UX31A and similar models
Code : Tout sélectionner
static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XF86XK_MonBrightnessUp, spawn, {.v = brightnessupcmd } },
{ MODKEY, XF86XK_MonBrightnessDown, spawn, {.v = brightnessdowncmd } }
};,
Code : Tout sélectionner
static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XF86XK_KbdBrightnessUp, spawn, {.v = brightnessupcmd } },
{ MODKEY, XF86XK_KbdBrightnessDown, spawn, {.v = brightnessdowncmd } },
};
Code : Tout sélectionner
Section "Device"
Identifier "card0"
Driver "intel"
Option "Backlight" "intel_backlight"
BusID "PCI:0:2:0"
EndSection
AchilleFraisse a écrit :D'accord. Donc d'après ce que tu me dis, je garde mon script et l'adaptation à mon gestionnaire de bureau.
Second problème : je m'étais trompé de combinaison de touche. Fn + F5 et F6 et non Fn + F3 et F4 (qui est la luminosité du clavier). Du coup il faut que je le change dans mon gestionnaire de bureau.
J'essaye donc de récupérer le code de mes touches Fn+F5 et Fn+F6. Sauf que lorsque je tape ces deux combinaisons sous xev, il ne les détecte pas.
Mon fichier 20-intel.conf :Mon PC : UX303LN - Notebook - AsusCode : Tout sélectionner
Section "Device" Identifier "card0" Driver "intel" Option "Backlight" "intel_backlight" BusID "PCI:0:2:0" EndSection
Code : Tout sélectionner
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
00:04.0 Signal processing controller: Intel Corporation Device 0a03 (rev 0b)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 1 (rev e4)
00:1c.3 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 4 (rev e4)
00:1c.4 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 5 (rev e4)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
00:1f.6 Signal processing controller: Intel Corporation 8 Series Thermal (rev 04)
02:00.0 Network controller: Intel Corporation Wireless 7260 (rev bb)
03:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 840M] (rev ff)