Comment 170 for bug 95444

Revision history for this message
Shawe Ewahs (shawe-ewahs) wrote :

Bem, I'm watching your changes and I want to know want thing: "nvidia8" detection on your files, works also with "nvidia9" and "quadro" series? It's also important for try to generalise the solution.

Or we need to add also similar to this?

if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "nvidia8" ]; then
    value=$((`smartdimmer -g | awk '{print $3;}'`))
    value=$((($value /5)-1))
    exit ${value}
fi

if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "nvidia9" ]; then
    value=$((`smartdimmer -g | awk '{print $3;}'`))
    value=$((($value /5)-1))
    exit ${value}
fi

if [ "$HAL_PROP_LAPTOP_PANEL_ACCESS_METHOD" = "quadro" ]; then
    value=$((`smartdimmer -g | awk '{print $3;}'`))
    value=$((($value /5)-1))
    exit ${value}
fi

I don't know if it is correct, but also similar to this must be added for a generalised solution.

And for .fdi file, I think that we need change:

<match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" string="MODEL_NAME">

for anything similar to:

    <match key=”pci.vendor_id” int=”0×8086″> <!– Intel Corporation –>
      <match key=”pci.product_id” int=”0×3582″> <!– 82852/855GM Integrated Graphics Device –>
        <match key=”pci.subsys_vendor_id” int=”0×1179″> <!– Toshiba America Info Systems –>
          <match key=”pci.subsys_product_id” int=”0×2″> <!– Unknown (0×0002) –>

I found it on: http://blogs.gnome.org/hughsie/2006/06/

In Device Manager, it must have any key that help to us to detect this information, no?