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.
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 $((`smartdimmer -g | awk '{print $3;}'`)) $((($value /5)-1))
value=
value=
exit ${value}
fi
if [ "$HAL_PROP_ LAPTOP_ PANEL_ACCESS_ METHOD" = "nvidia9" ]; then $((`smartdimmer -g | awk '{print $3;}'`)) $((($value /5)-1))
value=
value=
exit ${value}
fi
if [ "$HAL_PROP_ LAPTOP_ PANEL_ACCESS_ METHOD" = "quadro" ]; then $((`smartdimmer -g | awk '{print $3;}'`)) $((($value /5)-1))
value=
value=
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 –> product_ id” int=”0×3582″> <!– 82852/855GM Integrated Graphics Device –> subsys_ vendor_ id” int=”0×1179″> <!– Toshiba America Info Systems –> subsys_ product_ id” int=”0×2″> <!– Unknown (0×0002) –>
<match key=”pci.
<match key=”pci.
<match key=”pci.
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?