guillaumezin / nvidiabl

/!\ Please note that I don't maintain this repository anymore, please have a look at forked projects. /!\
82 stars 82 forks source link

Autoload support for Lenovo Y400 #64

Closed fizzy-logic closed 10 years ago

fizzy-logic commented 11 years ago

I added the following line to nvidiabl-laptop.sh: NVIDIABL_DECLARE_LAPTOP_MODEL("LENOVO", "9523", PCI_ANY_ID, NVIDIABL_AUTO, NVIDIABL_AUTO, NVIDIABL_AUTO),

I'm so glad to now be able to adjust the screen brightness. Thanks!

fizzy-logic commented 11 years ago

One other thing, the fn keys and brightness plugin for xfce will adjust the backlight but will only go set it from 0 to 15 when the max is 127. Am I right in thinking that it's the xfce4-power-manager that is incorrectly determining or using the max brightness and not the fault of this driver?

As a side note, I had to temporarily change the interface in the nvidiabl source to nv_backlight since that one is recognized by xfce. I have a bug report in to xfce so hopefully they will add nvidia_backlight to their interface list soon.

bahro commented 11 years ago

You could try the workaround by adding a few scripts for the acpi events from the brightness keys. Similar to those already in https://github.com/guillaumezin/nvidiabl/tree/master/scripts/etc/acpi.

You might want to disable the xfce4 backlight controls afterwards by adding the two flags "change-brightness-on-key-events" and show-brightness-popup" to xfce4-power-manager via the Settings Editor. Assign both of those the value "false". This way you won't have an brightness indicator, but get the controls to work as intended.

fizzy-logic commented 11 years ago

Thanks bahro! Got the scripts going and disabled those xfce4 settings disabled with xfconf-config. Things are working well now.

guillaumezin commented 11 years ago

Thank you, I added your laptop in version 0.81. I agree: xfce4 implementation if buggy...