Page 1 sur 1

[xmodmap] Régler luminosité écran touche FN (résolu)

Publié : mer. 28 oct. 2009, 22:00
par Blink59
Salut!

Lorsque j'ai eu mon laptop (Sony VAIO VGN-FW3) et parès avoir installé ArchLinux, j'ai tenté de faire fonctionner mes touches FN afin de pouvoir régler la luminosité de mon écrna, mais en vain. Le problème venait du fait que je n'arrivais pas à avoir le keycode de la combinaison FN + F5 et FN + F6 (baisser et augmenter la luminosité de l'écran). J'ai cependant retesté ce soir, et il s'avère que j'arrive désormais à trouver le keycode de mes touches (via l'utilitaire showkey et non xev car xev ne me trouve rien de très parlant... Je n'arrive pas à comprendre ce qu'il me renvoit en retour de la pression sur la combinaison de touches citée ci-dessus... =S). Les keycode trouvés sont 224 et 225!
Je suis alors le wiki sur la configuration avancée du clavier et je crée mon fichier .xmodmap.conf comme indiqué qui est le suivant:

Code : Tout sélectionner

[stephan@stephan-laptop ~]$ more .xmodmap.conf 
keycode 224 = XF86MonBrightnessDown
keycode 225 = XF86MonBrightnessUp
Je lance xmodmap sur ce fichier et ce dernier ne me retourne aucun message d'erreur. L'assimilation est réussie, vérifiée grâce à la commande suivante: (voir keycode 224 et 225... ;-) )

Code : Tout sélectionner

[stephan@stephan-laptop ~]$ xmodmap -pke
keycode   8 =
keycode   9 = Escape NoSymbol Escape NoSymbol Escape
keycode  10 = ampersand 1 1 exclam onesuperior exclamdown
keycode  11 = eacute 2 2 quotedbl asciitilde oneeighth
keycode  12 = quotedbl 3 3 numbersign numbersign sterling
keycode  13 = apostrophe 4 4 dollar braceleft dollar
keycode  14 = parenleft 5 5 percent bracketleft threeeighths
keycode  15 = minus 6 6 ampersand bar fiveeighths
keycode  16 = egrave 7 7 apostrophe grave seveneighths
keycode  17 = underscore 8 8 parenleft backslash trademark
keycode  18 = ccedilla 9 9 parenright asciicircum plusminus
keycode  19 = agrave 0 0 asciitilde at degree
keycode  20 = parenright degree minus equal bracketright questiondown
keycode  21 = equal plus asciicircum asciitilde braceright dead_ogonek
keycode  22 = BackSpace NoSymbol BackSpace NoSymbol BackSpace
keycode  23 = Tab ISO_Left_Tab Tab ISO_Left_Tab Tab ISO_Left_Tab
keycode  24 = a A q Q ae AE
keycode  25 = z Z w W guillemotleft less
keycode  26 = e E e E EuroSign cent
keycode  27 = r R r R paragraph registered
keycode  28 = t T t T tslash Tslash
keycode  29 = y Y y Y leftarrow yen
keycode  30 = u U u U downarrow uparrow
keycode  31 = i I i I rightarrow idotless
keycode  32 = o O o O oslash Oslash
keycode  33 = p P p P thorn THORN
keycode  34 = dead_circumflex dead_diaeresis at grave dead_diaeresis dead_abovering
keycode  35 = dollar sterling bracketleft braceleft currency dead_macron
keycode  36 = Return NoSymbol Return NoSymbol Return
keycode  37 = Control_L NoSymbol Control_L NoSymbol Control_L
keycode  38 = q Q a A at Greek_OMEGA
keycode  39 = s S s S ssharp section
keycode  40 = d D d D eth ETH
keycode  41 = f F f F dstroke ordfeminine
keycode  42 = g G g G eng ENG
keycode  43 = h H h H hstroke Hstroke
keycode  44 = j J j J j J
keycode  45 = k K k K kra ampersand
keycode  46 = l L l L lstroke Lstroke
keycode  47 = m M semicolon plus mu masculine
keycode  48 = ugrave percent colon asterisk dead_circumflex dead_caron
keycode  49 = twosuperior asciitilde Zenkaku_Hankaku Kanji notsign notsign
keycode  50 = Shift_L NoSymbol Shift_L NoSymbol Shift_L
keycode  51 = asterisk mu bracketright braceright dead_grave dead_breve
keycode  52 = w W z Z lstroke Lstroke
keycode  53 = x X x X guillemotright greater
keycode  54 = c C c C cent copyright
keycode  55 = v V v V leftdoublequotemark leftsinglequotemark
keycode  56 = b B b B rightdoublequotemark rightsinglequotemark
keycode  57 = n N n N n N
keycode  58 = comma question m M dead_acute dead_doubleacute
keycode  59 = semicolon period comma less horizconnector multiply
keycode  60 = colon slash period greater periodcentered division
keycode  61 = exclam section slash question dead_belowdot dead_abovedot
keycode  62 = Shift_R NoSymbol Shift_R NoSymbol Shift_R
keycode  63 = KP_Multiply XF86_ClearGrab KP_Multiply XF86_ClearGrab KP_Multiply XF86_ClearGrab
keycode  64 = Alt_L ISO_Prev_Group Alt_L ISO_Prev_Group Alt_L ISO_Prev_Group
keycode  65 = space NoSymbol space NoSymbol space
keycode  66 = Caps_Lock NoSymbol Eisu_toggle Caps_Lock
keycode  67 = F1 XF86_Switch_VT_1 F1 XF86_Switch_VT_1 F1 XF86_Switch_VT_1
keycode  68 = F2 XF86_Switch_VT_2 F2 XF86_Switch_VT_2 F2 XF86_Switch_VT_2
keycode  69 = F3 XF86_Switch_VT_3 F3 XF86_Switch_VT_3 F3 XF86_Switch_VT_3
keycode  70 = F4 XF86_Switch_VT_4 F4 XF86_Switch_VT_4 F4 XF86_Switch_VT_4
keycode  71 = F5 XF86_Switch_VT_5 F5 XF86_Switch_VT_5 F5 XF86_Switch_VT_5
keycode  72 = F6 XF86_Switch_VT_6 F6 XF86_Switch_VT_6 F6 XF86_Switch_VT_6
keycode  73 = F7 XF86_Switch_VT_7 F7 XF86_Switch_VT_7 F7 XF86_Switch_VT_7
keycode  74 = F8 XF86_Switch_VT_8 F8 XF86_Switch_VT_8 F8 XF86_Switch_VT_8
keycode  75 = F9 XF86_Switch_VT_9 F9 XF86_Switch_VT_9 F9 XF86_Switch_VT_9
keycode  76 = F10 XF86_Switch_VT_10 F10 XF86_Switch_VT_10 F10 XF86_Switch_VT_10
keycode  77 = Num_Lock Pointer_EnableKeys Num_Lock Pointer_EnableKeys Num_Lock Pointer_EnableKeys
keycode  78 = Scroll_Lock NoSymbol Scroll_Lock NoSymbol Scroll_Lock
keycode  79 = KP_Home KP_7 KP_Home KP_7 KP_Home KP_7
keycode  80 = KP_Up KP_8 KP_Up KP_8 KP_Up KP_8
keycode  81 = KP_Prior KP_9 KP_Prior KP_9 KP_Prior KP_9
keycode  82 = KP_Subtract XF86_Prev_VMode KP_Subtract XF86_Prev_VMode KP_Subtract XF86_Prev_VMode
keycode  83 = KP_Left KP_4 KP_Left KP_4 KP_Left KP_4
keycode  84 = KP_Begin KP_5 KP_Begin KP_5 KP_Begin KP_5
keycode  85 = KP_Right KP_6 KP_Right KP_6 KP_Right KP_6
keycode  86 = KP_Add XF86_Next_VMode KP_Add XF86_Next_VMode KP_Add XF86_Next_VMode
keycode  87 = KP_End KP_1 KP_End KP_1 KP_End KP_1
keycode  88 = KP_Down KP_2 KP_Down KP_2 KP_Down KP_2
keycode  89 = KP_Next KP_3 KP_Next KP_3 KP_Next KP_3
keycode  90 = KP_Insert KP_0 KP_Insert KP_0 KP_Insert KP_0
keycode  91 = KP_Delete KP_Decimal KP_Delete KP_Decimal KP_Delete KP_Decimal
keycode  92 = ISO_Level3_Shift NoSymbol ISO_Level3_Shift NoSymbol ISO_Level3_Shift
keycode  93 =
keycode  94 = less greater less greater bar brokenbar
keycode  95 = F11 XF86_Switch_VT_11 F11 XF86_Switch_VT_11 F11 XF86_Switch_VT_11
keycode  96 = F12 XF86_Switch_VT_12 F12 XF86_Switch_VT_12 F12 XF86_Switch_VT_12
keycode  97 = NoSymbol NoSymbol backslash underscore
keycode  98 = Katakana NoSymbol Katakana NoSymbol Katakana
keycode  99 = Hiragana NoSymbol Hiragana NoSymbol Hiragana
keycode 100 = Henkan_Mode NoSymbol Henkan_Mode NoSymbol Henkan_Mode
keycode 101 = Hiragana_Katakana NoSymbol Hiragana_Katakana Romaji
keycode 102 = Muhenkan NoSymbol Muhenkan NoSymbol Muhenkan
keycode 103 =
keycode 104 = KP_Enter NoSymbol KP_Enter NoSymbol KP_Enter
keycode 105 = Control_R NoSymbol Control_R NoSymbol Control_R
keycode 106 = KP_Divide XF86_Ungrab KP_Divide XF86_Ungrab KP_Divide XF86_Ungrab
keycode 107 = Print Sys_Req Print Execute
keycode 108 = ISO_Level3_Shift ISO_Next_Group ISO_Level3_Shift ISO_Next_Group ISO_Level3_Shift ISO_Next_Group
keycode 109 = Linefeed NoSymbol Linefeed NoSymbol Linefeed
keycode 110 = Home NoSymbol Home NoSymbol Home
keycode 111 = Up NoSymbol Up NoSymbol Up
keycode 112 = Prior NoSymbol Prior NoSymbol Prior
keycode 113 = Left NoSymbol Left NoSymbol Left
keycode 114 = Right NoSymbol Right NoSymbol Right
keycode 115 = End NoSymbol End NoSymbol End
keycode 116 = Down NoSymbol Down NoSymbol Down
keycode 117 = Next NoSymbol Next NoSymbol Next
keycode 118 = Insert NoSymbol Insert NoSymbol Insert
keycode 119 = Delete NoSymbol Delete NoSymbol Delete
keycode 120 =
keycode 121 = XF86AudioMute NoSymbol XF86AudioMute NoSymbol XF86AudioMute
keycode 122 = XF86AudioLowerVolume NoSymbol XF86AudioLowerVolume NoSymbol XF86AudioLowerVolume
keycode 123 = XF86AudioRaiseVolume NoSymbol XF86AudioRaiseVolume NoSymbol XF86AudioRaiseVolume
keycode 124 = XF86PowerOff NoSymbol XF86PowerOff NoSymbol XF86PowerOff
keycode 125 = KP_Equal NoSymbol KP_Equal NoSymbol KP_Equal
keycode 126 = plusminus NoSymbol plusminus NoSymbol plusminus
keycode 127 = Pause Break Pause Break Pause Break
keycode 128 =
keycode 129 = KP_Separator NoSymbol KP_Separator NoSymbol KP_Separator
keycode 130 = Hangul NoSymbol Hangul NoSymbol Hangul
keycode 131 = Hangul_Hanja NoSymbol Hangul_Hanja NoSymbol Hangul_Hanja
keycode 132 = NoSymbol NoSymbol backslash bar
keycode 133 = Super_L NoSymbol Super_L NoSymbol Super_L
keycode 134 = Super_R NoSymbol Super_R NoSymbol Super_R
keycode 135 = Menu NoSymbol Menu NoSymbol Menu
keycode 136 = Cancel NoSymbol Cancel NoSymbol Cancel
keycode 137 = Redo NoSymbol Redo NoSymbol Redo
keycode 138 = SunProps NoSymbol SunProps NoSymbol SunProps
keycode 139 = Undo NoSymbol Undo NoSymbol Undo
keycode 140 = SunFront NoSymbol SunFront NoSymbol SunFront
keycode 141 = XF86Copy NoSymbol XF86Copy NoSymbol XF86Copy
keycode 142 = SunOpen NoSymbol SunOpen NoSymbol SunOpen
keycode 143 = XF86Paste NoSymbol XF86Paste NoSymbol XF86Paste
keycode 144 = Find NoSymbol Find NoSymbol Find
keycode 145 = XF86Cut NoSymbol XF86Cut NoSymbol XF86Cut
keycode 146 = Help NoSymbol Help NoSymbol Help
keycode 147 = XF86MenuKB NoSymbol XF86MenuKB NoSymbol XF86MenuKB
keycode 148 = XF86Calculator NoSymbol XF86Calculator NoSymbol XF86Calculator
keycode 149 =
keycode 150 = XF86Sleep NoSymbol XF86Sleep NoSymbol XF86Sleep
keycode 151 = XF86WakeUp NoSymbol XF86WakeUp NoSymbol XF86WakeUp
keycode 152 = XF86Explorer NoSymbol XF86Explorer NoSymbol XF86Explorer
keycode 153 = XF86Send NoSymbol XF86Send NoSymbol XF86Send
keycode 154 =
keycode 155 = XF86Xfer NoSymbol XF86Xfer NoSymbol XF86Xfer
keycode 156 = XF86Launch1 NoSymbol XF86Launch1 NoSymbol XF86Launch1
keycode 157 = XF86Launch2 NoSymbol XF86Launch2 NoSymbol XF86Launch2
keycode 158 = XF86WWW NoSymbol XF86WWW NoSymbol XF86WWW
keycode 159 = XF86DOS NoSymbol XF86DOS NoSymbol XF86DOS
keycode 160 = XF86ScreenSaver NoSymbol XF86ScreenSaver NoSymbol XF86ScreenSaver
keycode 161 =
keycode 162 = XF86RotateWindows NoSymbol XF86RotateWindows NoSymbol XF86RotateWindows
keycode 163 = XF86Mail NoSymbol XF86Mail NoSymbol XF86Mail
keycode 164 = XF86Favorites NoSymbol XF86Favorites NoSymbol XF86Favorites
keycode 165 = XF86MyComputer NoSymbol XF86MyComputer NoSymbol XF86MyComputer
keycode 166 = XF86Back NoSymbol XF86Back NoSymbol XF86Back
keycode 167 = XF86Forward NoSymbol XF86Forward NoSymbol XF86Forward
keycode 168 =
keycode 169 = XF86Eject NoSymbol XF86Eject NoSymbol XF86Eject
keycode 170 = XF86Eject XF86Eject XF86Eject XF86Eject XF86Eject XF86Eject
keycode 171 = XF86AudioNext NoSymbol XF86AudioNext NoSymbol XF86AudioNext
keycode 172 = XF86AudioPlay XF86AudioPause XF86AudioPlay XF86AudioPause XF86AudioPlay XF86AudioPause
keycode 173 = XF86AudioPrev NoSymbol XF86AudioPrev NoSymbol XF86AudioPrev
keycode 174 = XF86AudioStop XF86Eject XF86AudioStop XF86Eject XF86AudioStop XF86Eject
keycode 175 = XF86AudioRecord NoSymbol XF86AudioRecord NoSymbol XF86AudioRecord
keycode 176 = XF86AudioRewind NoSymbol XF86AudioRewind NoSymbol XF86AudioRewind
keycode 177 = XF86Phone NoSymbol XF86Phone NoSymbol XF86Phone
keycode 178 =
keycode 179 = XF86Tools NoSymbol XF86Tools NoSymbol XF86Tools
keycode 180 = XF86HomePage NoSymbol XF86HomePage NoSymbol XF86HomePage
keycode 181 = XF86Reload NoSymbol XF86Reload NoSymbol XF86Reload
keycode 182 = XF86Close NoSymbol XF86Close NoSymbol XF86Close
keycode 183 =
keycode 184 =
keycode 185 = XF86ScrollUp NoSymbol XF86ScrollUp NoSymbol XF86ScrollUp
keycode 186 = XF86ScrollDown NoSymbol XF86ScrollDown NoSymbol XF86ScrollDown
keycode 187 = parenleft NoSymbol parenleft NoSymbol parenleft
keycode 188 = parenright NoSymbol parenright NoSymbol parenright
keycode 189 = XF86New NoSymbol XF86New NoSymbol XF86New
keycode 190 = Redo NoSymbol Redo NoSymbol Redo
keycode 191 =
keycode 192 =
keycode 193 =
keycode 194 =
keycode 195 =
keycode 196 =
keycode 197 =
keycode 198 =
keycode 199 =
keycode 200 =
keycode 201 =
keycode 202 =
keycode 203 = Mode_switch NoSymbol Mode_switch NoSymbol Mode_switch
keycode 204 = NoSymbol Alt_L NoSymbol Alt_L NoSymbol Alt_L
keycode 205 = NoSymbol Meta_L NoSymbol Meta_L NoSymbol Meta_L
keycode 206 = NoSymbol Super_L NoSymbol Super_L NoSymbol Super_L
keycode 207 = NoSymbol Hyper_L NoSymbol Hyper_L NoSymbol Hyper_L
keycode 208 = XF86AudioPlay NoSymbol XF86AudioPlay NoSymbol XF86AudioPlay
keycode 209 = XF86AudioPause NoSymbol XF86AudioPause NoSymbol XF86AudioPause
keycode 210 = XF86Launch3 NoSymbol XF86Launch3 NoSymbol XF86Launch3
keycode 211 = XF86Launch4 NoSymbol XF86Launch4 NoSymbol XF86Launch4
keycode 212 =
keycode 213 = XF86Suspend NoSymbol XF86Suspend NoSymbol XF86Suspend
keycode 214 = XF86Close NoSymbol XF86Close NoSymbol XF86Close
keycode 215 = XF86AudioPlay NoSymbol XF86AudioPlay NoSymbol XF86AudioPlay
keycode 216 = XF86Forward NoSymbol XF86Forward NoSymbol XF86Forward
keycode 217 =
keycode 218 = Print NoSymbol Print NoSymbol Print
keycode 219 =
keycode 220 = XF86WebCam NoSymbol XF86WebCam NoSymbol XF86WebCam
keycode 221 =
keycode 222 =
keycode 223 = XF86Mail NoSymbol XF86Mail NoSymbol XF86Mail
keycode 224 = XF86MonBrightnessDown
keycode 225 = XF86MonBrightnessUp
keycode 226 =
keycode 227 = XF86Finance NoSymbol XF86Finance NoSymbol XF86Finance
keycode 228 =
keycode 229 = XF86Shop NoSymbol XF86Shop NoSymbol XF86Shop
keycode 230 =
keycode 231 = Cancel NoSymbol Cancel NoSymbol Cancel
keycode 232 = XF86MonBrightnessDown NoSymbol XF86MonBrightnessDown NoSymbol XF86MonBrightnessDown
keycode 233 = XF86MonBrightnessUp NoSymbol XF86MonBrightnessUp NoSymbol XF86MonBrightnessUp
keycode 234 = XF86AudioMedia NoSymbol XF86AudioMedia NoSymbol XF86AudioMedia
keycode 235 = XF86Display NoSymbol XF86Display NoSymbol XF86Display
keycode 236 = XF86KbdLightOnOff NoSymbol XF86KbdLightOnOff NoSymbol XF86KbdLightOnOff
keycode 237 = XF86KbdBrightnessDown NoSymbol XF86KbdBrightnessDown NoSymbol XF86KbdBrightnessDown
keycode 238 = XF86KbdBrightnessUp NoSymbol XF86KbdBrightnessUp NoSymbol XF86KbdBrightnessUp
keycode 239 = XF86Send NoSymbol XF86Send NoSymbol XF86Send
keycode 240 = XF86Reply NoSymbol XF86Reply NoSymbol XF86Reply
keycode 241 = XF86MailForward NoSymbol XF86MailForward NoSymbol XF86MailForward
keycode 242 = XF86Save NoSymbol XF86Save NoSymbol XF86Save
keycode 243 = XF86Documents NoSymbol XF86Documents NoSymbol XF86Documents
keycode 244 = XF86Battery NoSymbol XF86Battery NoSymbol XF86Battery
keycode 245 = XF86Bluetooth NoSymbol XF86Bluetooth NoSymbol XF86Bluetooth
keycode 246 = XF86WLAN NoSymbol XF86WLAN NoSymbol XF86WLAN
keycode 247 =
keycode 248 =
keycode 249 =
keycode 250 =
keycode 251 =
keycode 252 =
keycode 253 =
keycode 254 =
keycode 255 =
Cependant, lorsque j'appuie sur mes combinaisons de touche, la luminosité de mon écran ne change pas d'un poil... =(
Est-ce que quelqu'un saurait d'où peut provenir le problème? Ca serait vraiment génial de pouvoir gérer la luminosité de mon écran, ça bouffe énormément en batterie... =/
Merci d'avance!

Blink59

Re: [xmodmap] Régler luminosité écran touche FN (en cours)

Publié : ven. 30 oct. 2009, 20:52
par Blink59
Up

Re: [xmodmap] Régler luminosité écran touche FN (en cours)

Publié : mar. 03 nov. 2009, 00:13
par Blink59
Un dernier Up.....? =S

Re: [xmodmap] Régler luminosité écran touche FN (en cours)

Publié : mar. 03 nov. 2009, 00:47
par tuxce
showkey te retourne le keycode en mode texte, ce qui diffère par rapport à X, il faut utiliser ceux de xev.

Re: [xmodmap] Régler luminosité écran touche FN (en cours)

Publié : mer. 04 nov. 2009, 18:44
par Blink59
Salut Tuxce!

Ah ok, autant pour moi, je pensais que c'était les mêmes...
Voici les résultats fournis par xev:

Code : Tout sélectionner

KeyPress event, serial 33, synthetic NO, window 0x3c00001,
    root 0x123, subw 0x0, time 214565, (628,-9), root:(636,66),
    state 0x0, keycode 232 (keysym 0x1008ff03, XF86MonBrightnessDown), same_screen YES,
    XKeysymToKeycode returns keycode: 224
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 35, synthetic NO, window 0x3c00001,
    root 0x123, subw 0x0, time 214578, (628,-9), root:(636,66),
    state 0x0, keycode 232 (keysym 0x1008ff03, XF86MonBrightnessDown), same_screen YES,
    XKeysymToKeycode returns keycode: 224
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 35, synthetic NO, window 0x3c00001,
    root 0x123, subw 0x0, time 215488, (628,-9), root:(636,66),
    state 0x0, keycode 233 (keysym 0x1008ff02, XF86MonBrightnessUp), same_screen YES,
    XKeysymToKeycode returns keycode: 225
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 35, synthetic NO, window 0x3c00001,
    root 0x123, subw 0x0, time 215501, (628,-9), root:(636,66),
    state 0x0, keycode 233 (keysym 0x1008ff02, XF86MonBrightnessUp), same_screen YES,
    XKeysymToKeycode returns keycode: 225
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

Donc, j'ai, dans l'order, appuyer puis relâcher sur FN+F5 et sur FN+ F6.
A noter d'ailleurs que je n'avais pas ça DU TOUT comme résultat avant de faire appel à la commande xmodmap, je ne sais pas si ça a quelque chose à voir...?
Quoi qu'il en soit, il me donne de keycode.... 224 - 225, et 232 - 233... J'ai essayé avec les deux, rien n'a changé... =/
Pourtant, je sors bien mon XF86MonBrightnessUp et XF86MonBrightnessDown de:

Code : Tout sélectionner

cat /usr/share/X11/XKeysymDB | grep XF86
Et la commande xev me renvoie bien un (bon, en fait deux lol) keycode à mes combinaisons de touches, cela veut donc bien dire que l'appuie sur ces touches est reconnu par le noyau n'est-ce pas? (ce qui n'était pas le cas avant...Merci la nouvelle version du kernel je pense...)
Si je ne me suis pas trompé dans mon raisonnement, je n'arrive pas à voir où ça flanche... =S Ca pourrait venir de xmodmap peut-être...?

Re: [xmodmap] Régler luminosité écran touche FN (en cours)

Publié : dim. 08 nov. 2009, 20:45
par Blink59
Up

Re: [xmodmap] Régler luminosité écran touche FN (en cours)

Publié : dim. 08 nov. 2009, 21:08
par tuxce
t'as quelle carte graphique?
certaines ne sont pas compatibles avec la gestion de luminosité d'xorg, si c'est une nvidia par exemple, tu peux essayer avec nvclock.

Re: [xmodmap] Régler luminosité écran touche FN (en cours)

Publié : dim. 08 nov. 2009, 21:22
par Blink59
C'est une ATI Radeon HD 3470.
Je continue à parcourir le net à droite et à gauche, mais j'ai un peu de mal à trouver des solutions je dois avouer =S

Re: [xmodmap] Régler luminosité écran touche FN (en cours)

Publié : dim. 08 nov. 2009, 21:38
par Blink59
Aussi, je viens de remarquer qu'en faisant un cat /usr/share/X11/XKeysymDB | grep XF86 , j'ai deux commandes différentes liées à la luminosité de l'écran:
XF86MonBrightnessUp et XF86KbdBrightnessUp (et Down aussi dans les deux cas, bien évidemment). Jusque là, j'ai essayé avec XF86MonBrightnessXXXXX. Je viens d'essayer avec XF86KbdBrightnessXXXXX, mais ça ne change rien .... =/

Re: [xmodmap] Régler luminosité écran touche FN (en cours)

Publié : dim. 08 nov. 2009, 21:59
par tuxce
la commande qui sert pour modifier la luminosité est:

Code : Tout sélectionner

xbacklight
pour mettre au max par exemple:

Code : Tout sélectionner

xbacklight -set 100
si celle ci ne fonctionne pas, il faudrait voir s'il n'y a pas un outil pour ati.

Re: [xmodmap] Régler luminosité écran touche FN (en cours)

Publié : dim. 08 nov. 2009, 23:44
par Blink59
Arf, cette commande ne semble pas fonctionner pour moi... Je peux mettre en argument de xbacklight -set que des nombres supérieurs à 100. Voici le message que je reçois lorsque j'entre un nombre inférieur à 100:

Code : Tout sélectionner

[stephan@stephan-laptop ~]$ xbacklight -set 50
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  148 (RANDR)
  Minor opcode of failed request:  13 (RRChangeOutputProperty)
  Value in failed request:  0x42
  Serial number of failed request:  17
  Current serial number in output stream:  17
Ca ne serait pas un problème de pilote par hasard? Je veux dire, peut-être que le pilote libre pour les cartes ATI ne supportent pas la modification de la luminosité de l'écran, peut-être que seul le pilote propriétaire supporte cette fonction non?
Sinon, j'ai beaucoup entendu parler de personne qui changer la valeur contenu dans le fichier /proc/acpi/video/...<je_ne_sais_plus_quoi>../brightness . Seul souci, c'est que mon répertoire /proc/acpi/video est présent, mais est complétement vide =/
Installer le pilote proprio' semble une solution intéressante, mais bon, ce pilote est carrêment foirreux, j'ai rencontré plein de problèmes lorsque j'ai tenté de l'installer =/

Re: [xmodmap] Régler luminosité écran touche FN (en cours)

Publié : jeu. 12 nov. 2009, 17:04
par Blink59
Personne ne connaitrait un outil pour l'utilisation des cartes graphiques ATI de la série HD 3400 (HD 3470) par hasard? Je suis toujours renvoyé sur le pilote propriétaire catalyst dans mes recherches, qui se trouve être un pilote tout po**ri ! =S

Re: [xmodmap] Régler luminosité écran touche FN (en cours)

Publié : mer. 06 janv. 2010, 00:31
par Blink59
Salut à tous !

J'ai finalement toruvé le moyen de règler la luminosité sur mon laptop ! ! !
Il y a en fait un dossier: /sys/class/backlight/acpi_video0/ où se trouve trois fichiers: backlight, actual_backlight et max_backlight. Les deux derniers fichiers sont les valeurs maximales et actuelles de la luminosité de l'écran, et le fichier backlight sert tout simplement à régler la luminosité de l'écran. Wahouuu ! ! ! ^^ Ca tue, ça va bien économiser mon autonomie de batterie =) =) =)
Par contre, est-ce que quelqu'un sait comment, d'après ce que je sais maintenant, je peux rentrer actives mes touches FN ???
Ca serait vraiment parfait !

Re: [xmodmap] Régler luminosité écran touche FN (en cours)

Publié : mer. 06 janv. 2010, 07:14
par Blink59
Re bonjour à tous!

Bon, deux choses un peu bizarre ont lieu...
Tout d'abord, je suis sous gnome, et il y a donc un service permettant de personnaliser ses propres raccourcis claviers. J'ai alors créer deux petits scripts (un pour augmenter et l'autre pour baisser la luminosité de mon écran) qui fonctionne très bien lorsque je les utilise en console. Seul soucis, c'est que lorsque j'attribue ces scripts à une combinaison de touche (avec les touches FN ou non), ils ne semblent pas s'exécuter... =/ Savez-vous d'où cela pourrait venir?
Autre surprise: en testant l'exécution de ces scripts via raccourcis sans les touches FN, j'ai alors utilisé mes touches FN "pour le fun", et là..... un petit OSD avec un soleil pour la luminosité de l'écran est apparu à l'écran ! Enfin la fin? Presque. En fait, que ce soit pour l'augmentation ou la diminution de mon écran, cet OSD apparaît, mais la petite jauge ne bouge pas, et donc ma luminosité non plus... =S Quelqu'un a-t-il déjà connu ce problème?
(Ah la la, ce post toucherait-il à sa fin en tant que résolu? =D)

Re: [xmodmap] Régler luminosité écran touche FN (en cours)

Publié : mer. 06 janv. 2010, 10:30
par gyo
Tes touches FN sont bien reconnus correctement par X (cf xev) c'est bien ça ?

Re: [xmodmap] Régler luminosité écran touche FN (en cours)

Publié : mer. 06 janv. 2010, 19:35
par Blink59
Salut Gyo !

Oui, mes touches sont belles en bien reconnues par X. Comme je l'ai dit, j'ai même l'OSD qui s'affiche, me présentant la jauge de luminosité de mon écran (ajustée à la bonne valeur), mais je ne peux pas modifier cette dernière; elle ne fait qu'apparaître lorsque je presse FN + F5 ou FN + F6 (qui sont mes touches de diminution et d'augmentation de la luminosité de mon écran). Je ne peux modifier la luminosité de mon écran que via le fichier /sys/class/backlight/acpi_video0/brightness . C'est déjà pas mal, c'est sûr, mais si je peux passer par mes touches FN "proprement", ce n'est pas plus mal ^^

Re: [xmodmap] Régler luminosité écran touche FN (en cours)

Publié : mer. 06 janv. 2010, 21:31
par Blink59
Bon, en fait, on dirait que le fait d'avoir toucher au fichier /sys/class/backlight/acpi_video0/brightness a débloqué pas mal de truc... En l'occurance l'affichage de l'OSD pour la luminosité de l'écran par exemple... Et, en fait, la commande xbacklight qui ne fonctionnait pas avant, fonctionne désormais... Donc, pour ma part, j'ai juste éditer les raccourcis clavier de Gnome avec la commande xbacklight -inc 20 pour augmenter la luminosité, et xbacklight -dec 20 pour la diminuer; étant donnée que mes touches FN + F5 et FN + F6 sont désormais reconnues par X, j'ai donc pu changer ma luminosité d'écran avec ces touches-ci. Donc, certes, je n'ai pas le petit OSD, ce qui est dommage, mais bon, ce n'est pas le plus important, donc ce n'est pas un soucis... Voilà voilà, j'espère que ça va aider certaines personnes....