<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>sujet Vaio + Linux + NVIDIA driver dans Ordinateurs et accessoires</title>
    <link>https://community.sony.no/t5/ordinateurs-et-accessoires/vaio-linux-nvidia-driver/m-p/1268220#M6742</link>
    <description>&lt;P&gt;(duplicate thread #139276 - deleted?!?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sur mon dernier VAIO (vpceh1e1e), j'ai du installer la dernière version de driver NVIDIA (285.05.09).&lt;/P&gt;&lt;P&gt;A ma surprise l'option habituelle:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Option "RegistryDwords" "EnableBrightnessControl=1"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;dans la section Device du /etc/X11/xorg.conf, si elle affiche bien le pop de réglage ne change pas l'éclairage de mon laptop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Après quelques recherches je me suis aperçu que le réglage était possible via le procfs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Afin d'automatiser le tout je me suis intallé un petit script déclenché par les acpi events.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Voici le script:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/etc/acpi/nvidia-procfs-brightness.sh&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;#!/bin/bash

DEVFILE=$(echo /proc/acpi/video/*/LCD/brightness)

if [ -f "${DEVFILE}" ]
  then

    awk -v sense=$1 '
        BEGIN { level=100; }
        {
          if ($1 == "current:")          current = $2;
          if ($1 == "levels:")
          {
            for(i=1; i &amp;lt; NF; i++)
            {
              if (i == NF-1)             up[$(i+1)] = $(i+1);
              else                       up[$(i+1)] = $(i+2);

 

              if (i == 1)              down[$(i+1)] = $(i+1);
              else                     down[$(i+1)] = $(i);
            }
          }
        }

END {
              if (sense == "up")     level = up[current];
              if (sense == "down")   level = down[current];
              printf("%d",level);
            }
            ' &amp;lt; "${DEVFILE}" &amp;gt;&amp;gt; "${DEVFILE}"

fi&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Il suffit maintenant de retrouver le code acpi des touches et de créer les 2 fichiers de configurations dans /etc/acpi/events&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;acpi_listen&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;pour connaitre le code de la touche&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Et de générer les fichiers de configuration correspondant:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/etc/acpi/events/vaio-brightness-down&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;event=sony/hotkey SNC 00000001 00000010&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;action=/etc/acpi/nvidia-procfs-brightness.sh down&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/etc/acpi/events/vaio-brightness-up&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;event=sony/hotkey SNC 00000001 00000011&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;action=/etc/acpi/nvidia-procfs-brightness.sh up&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(d)oekia&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should you have some laptop which after you have installed the official NVIDIA driver does no allow brighness configuration even after the usual xorg.conf tweaking, but can be changed by procfs, here is a script to attach to the acpi events chain that will address the issue ..&lt;/P&gt;</description>
    <pubDate>Sun, 21 Jul 2013 07:58:13 GMT</pubDate>
    <dc:creator>doekia</dc:creator>
    <dc:date>2013-07-21T07:58:13Z</dc:date>
    <item>
      <title>Vaio + Linux + NVIDIA driver</title>
      <link>https://community.sony.no/t5/ordinateurs-et-accessoires/vaio-linux-nvidia-driver/m-p/1268220#M6742</link>
      <description>&lt;P&gt;(duplicate thread #139276 - deleted?!?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bonjour,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sur mon dernier VAIO (vpceh1e1e), j'ai du installer la dernière version de driver NVIDIA (285.05.09).&lt;/P&gt;&lt;P&gt;A ma surprise l'option habituelle:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Option "RegistryDwords" "EnableBrightnessControl=1"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;dans la section Device du /etc/X11/xorg.conf, si elle affiche bien le pop de réglage ne change pas l'éclairage de mon laptop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Après quelques recherches je me suis aperçu que le réglage était possible via le procfs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Afin d'automatiser le tout je me suis intallé un petit script déclenché par les acpi events.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Voici le script:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/etc/acpi/nvidia-procfs-brightness.sh&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;#!/bin/bash

DEVFILE=$(echo /proc/acpi/video/*/LCD/brightness)

if [ -f "${DEVFILE}" ]
  then

    awk -v sense=$1 '
        BEGIN { level=100; }
        {
          if ($1 == "current:")          current = $2;
          if ($1 == "levels:")
          {
            for(i=1; i &amp;lt; NF; i++)
            {
              if (i == NF-1)             up[$(i+1)] = $(i+1);
              else                       up[$(i+1)] = $(i+2);

 

              if (i == 1)              down[$(i+1)] = $(i+1);
              else                     down[$(i+1)] = $(i);
            }
          }
        }

END {
              if (sense == "up")     level = up[current];
              if (sense == "down")   level = down[current];
              printf("%d",level);
            }
            ' &amp;lt; "${DEVFILE}" &amp;gt;&amp;gt; "${DEVFILE}"

fi&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Il suffit maintenant de retrouver le code acpi des touches et de créer les 2 fichiers de configurations dans /etc/acpi/events&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;acpi_listen&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;pour connaitre le code de la touche&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Et de générer les fichiers de configuration correspondant:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/etc/acpi/events/vaio-brightness-down&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;event=sony/hotkey SNC 00000001 00000010&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;action=/etc/acpi/nvidia-procfs-brightness.sh down&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/etc/acpi/events/vaio-brightness-up&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;event=sony/hotkey SNC 00000001 00000011&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;action=/etc/acpi/nvidia-procfs-brightness.sh up&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(d)oekia&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should you have some laptop which after you have installed the official NVIDIA driver does no allow brighness configuration even after the usual xorg.conf tweaking, but can be changed by procfs, here is a script to attach to the acpi events chain that will address the issue ..&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2013 07:58:13 GMT</pubDate>
      <guid>https://community.sony.no/t5/ordinateurs-et-accessoires/vaio-linux-nvidia-driver/m-p/1268220#M6742</guid>
      <dc:creator>doekia</dc:creator>
      <dc:date>2013-07-21T07:58:13Z</dc:date>
    </item>
  </channel>
</rss>

