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

Add Support for Latitude E6530 Nvidia NVS5200M #61

Open bahro opened 11 years ago

bahro commented 11 years ago
cat /sys/class/dmi/id/sys_vendor : "Dell Inc."
cat /sys/class/dmi/id/product_name: "Latitude E6530"

[31344.775244] nvidiabl: loading driver version 0.79
[31344.775261] nvidiabl: No supported Nvidia graphics adapter found

01:00.0 "VGA compatible controller" "NVIDIA Corporation" "Device 0dfc" -ra1 "Dell" "Device 0535"
code: 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:0dfc] (rev a1)

The following setup works for me, however the default max brightness is actually a lot less then should be. Using - the randomly selected value - max=128000 seems to give better results

/* NVS 5200M */
NVIDIABL_DECLARE_GPU_MODEL(0x0dfc, nv5x_driver_data),    

NVIDIABL_DECLARE_LAPTOP_MODEL("Dell Inc.", "Latitude E6530", PCI_ANY_ID, NVIDIABL_AUTO, NVIDIABL_AUTO, NVIDIABL_AUTO),

/*ACPI Events Dell Latitude E6530 (And many other Dell-Laptops) */
/*Brightness down*/
event=video LCD 00000087 00000000
action=/etc/acpi/actions/nvidia_backlight_down.sh //default

/*Brightness up */
event=video LCD 00000086 00000000
action=/etc/acpi/actions/nvidia_backlight_up.sh //default

/*To set brightness on battery*/
event=ac_adapter AC 00000080 00000000
action=/etc/acpi/actions/nvidia_backlight_battery.sh //simply define a value between 0-127 e.g. 40
guillaumezin commented 11 years ago

Done in version 0.81. Please tell me if it works.

bahro commented 11 years ago

The insert in nvidiabl-gpu.h is missing, but except for that it works. /* NVS 5200M (313.18) */ NVIDIABL_DECLARE_GPU_MODEL(0x0dfc, nv5x_driver_data),

jpalus commented 11 years ago

@guillaumezin Could you please add the missing bit in nvidiabl-gpu.h?