Open mspacek opened 10 years ago
Hi,
What happens if you type in these commands :
echo 50 | sudo tee /sys/class/backlight/nvidia_backlight/brightness echo 127 | sudo tee /sys/class/backlight/nvidia_backlight/brightness
On Xubuntu 13.10 with nvidiabl installed from source, my model added to nvidia-laptops.h
, nvidia 331.20 installed and no xorg.conf, I get this:
$ echo 50 | sudo tee /sys/class/backlight/nvidia_backlight/brightness
50
$ echo 127 | sudo tee /sys/class/backlight/nvidia_backlight/brightness
127
When set to 50, it dims quite a bit. At 127, it looks like it's around half brightness. I can tell because if I switch to a TTY (say Ctrl+Alt+1) and manipulate brightness from there with the keyboard controls, the halfway point (level 8 out of 16) is about the same as the 127 setting. However, the level usually jumps by an uneven amount the first time I adjust it after going to the TTY.
nvidia_backlight/brightness doesn't seem to allow more than 127. If I go any higher, I get this:
$ echo 128 | sudo tee /sys/class/backlight/nvidia_backlight/brightness
128
tee: /sys/class/backlight/nvidia_backlight/brightness: Invalid argument
Also, here are some possibly relevant bits from /var/log/syslog
in Xubuntu 13.10, slightly different from 12.10:
Apr 5 16:18:02 ssd kernel: [ 21.426466] nvidia: module license 'NVIDIA' taints kernel.
Apr 5 16:18:02 ssd kernel: [ 21.426472] Disabling lock debugging due to kernel taint
Apr 5 16:18:02 ssd kernel: [ 21.427541] tpm_tis 00:09: 1.2 TPM (device-id 0x0, rev-id 78)
Apr 5 16:18:02 ssd kernel: [ 21.428921] Non-volatile memory driver v1.3
Apr 5 16:18:02 ssd kernel: [ 21.434213] nvidia: module verification failed: signature and/or required key missing - tainting kernel
Apr 5 16:18:02 ssd kernel: [ 21.436236] thinkpad_acpi: ThinkPad ACPI Extras v0.25
Apr 5 16:18:02 ssd kernel: [ 21.436240] thinkpad_acpi: http://ibm-acpi.sf.net/
Apr 5 16:18:02 ssd kernel: [ 21.436243] thinkpad_acpi: ThinkPad BIOS 6NET84WW (1.45 ), EC 6MHT46WW-1.21
Apr 5 16:18:02 ssd kernel: [ 21.436245] thinkpad_acpi: Lenovo ThinkPad W510, model 4318CTO
Apr 5 16:18:02 ssd kernel: [ 21.438915] thinkpad_acpi: detected a 8-level brightness capable ThinkPad
Apr 5 16:18:02 ssd kernel: [ 21.441577] thinkpad_acpi: radio switch found; radios are enabled
Apr 5 16:18:02 ssd kernel: [ 21.441614] thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver
Apr 5 16:18:02 ssd kernel: [ 21.441617] thinkpad_acpi: Disabling thinkpad-acpi brightness events by default...
Apr 5 16:18:02 ssd kernel: [ 21.443777] cfg80211: Calling CRDA to update world regulatory domain
Apr 5 16:18:02 ssd kernel: [ 21.444996] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=io+mem
Apr 5 16:18:02 ssd kernel: [ 21.445257] [drm] Initialized nvidia-drm 0.0.0 20130102 for 0000:01:00.0 on minor 0
Apr 5 16:18:02 ssd kernel: [ 21.445273] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 331.20 Wed Oct 30 17:43:35 PDT 2013
Apr 5 16:18:02 ssd kernel: [ 21.449646] thinkpad_acpi: Console audio control enabled, mode: monitor (read only)
Apr 5 16:18:02 ssd kernel: [ 21.451626] input: ThinkPad Extra Buttons as /devices/platform/thinkpad_acpi/input/input6
Apr 5 16:18:02 ssd kernel: [ 21.452112] ACPI Warning: 0x0000000000001028-0x000000000000102f SystemIO conflicts with Region \_SB_.PCI0.LPC_.PMIO 1 (20130517/utaddress-251)
Apr 5 16:18:02 ssd kernel: [ 21.452121] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
Apr 5 16:18:02 ssd kernel: [ 21.452131] ACPI Warning: 0x00000000000011c0-0x00000000000011cf SystemIO conflicts with Region \_SB_.PCI0.LPC_.LPIO 1 (20130517/utaddress-251)
Apr 5 16:18:02 ssd kernel: [ 21.452137] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
Apr 5 16:18:02 ssd kernel: [ 21.452140] ACPI Warning: 0x00000000000011b0-0x00000000000011bf SystemIO conflicts with Region \_SB_.PCI0.LPC_.LPIO 1 (20130517/utaddress-251)
Apr 5 16:18:02 ssd kernel: [ 21.452146] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
Apr 5 16:18:02 ssd kernel: [ 21.452149] ACPI Warning: 0x0000000000001180-0x00000000000011af SystemIO conflicts with Region \_SB_.PCI0.LPC_.LPIO 1 (20130517/utaddress-251)
Apr 5 16:18:02 ssd kernel: [ 21.452155] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
...
Apr 5 16:18:02 ssd kernel: [ 21.543606] nvidiabl: loading driver version 0.87
Apr 5 16:18:02 ssd kernel: [ 21.543614] nvidiabl: LENOVO - 4318CTO model detected in DMI tables
Apr 5 16:18:02 ssd kernel: [ 21.543626] nvidiabl: Supported Nvidia graphics adapter 10de:0a3c:17aa:2145 detected
Apr 5 16:18:02 ssd kernel: [ 21.543660] nvidiabl: smartdimmer register at address 0xcc61c084 mapped at address 0xffffc90003060084
Apr 5 16:18:02 ssd kernel: [ 21.543662] nvidiabl: backlight type is raw
Apr 5 16:18:02 ssd kernel: [ 21.543726] nvidiabl: backup register value 0x4001145d
Apr 5 16:18:02 ssd kernel: [ 21.543729] nvidiabl: autodetecting maximum
Apr 5 16:18:02 ssd kernel: [ 21.543731] nvidiabl: using value 0x1145d as maximum
Apr 5 16:18:02 ssd kernel: [ 21.543733] nvidiabl: autodetecting off
Apr 5 16:18:02 ssd kernel: [ 21.543735] nvidiabl: using value 0x0 as off
Apr 5 16:18:02 ssd kernel: [ 21.543737] nvidiabl: autodetecting minimum
Apr 5 16:18:02 ssd kernel: [ 21.543739] nvidiabl: minimum is 5% of maximum
Apr 5 16:18:02 ssd kernel: [ 21.543740] nvidiabl: using value 0xdd1 as minimum
...
Apr 5 16:18:02 ssd nvidia-persistenced: Started (1138)
Apr 5 16:18:02 ssd acpid: client connected from 1202[0:0]
Apr 5 16:18:02 ssd acpid: 1 client rule loaded
Apr 5 16:18:02 ssd nvidia-persistenced: Failed to query NVIDIA devices. Please ensure that the NVIDIA device files (/dev/nvidia*) exist, and that user 999 has read and write permissions for those files.
Apr 5 16:18:02 ssd nvidia-persistenced: The daemon no longer has permission to remove its runtime data directory /var/run/nvidia-persistenced
Apr 5 16:18:02 ssd nvidia-persistenced: Shutdown (1138)
Hello! I have a Lenovo Thinkpad W510 with a Quadro FX 880M (GT216) GPU, and I suffer from this longstanding bug in Xubuntu 12.10 (but also previously in Ubuntu 10.10, 11.04, plus Xubuntu 13.10 and 14.04):
"Backlight controls of laptops with NVIDIA NVS and Quadro FX 880M GPUs no longer function while using proprietary drivers" https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/562005
I've had this problem on every nvidia blob I've tried in the last 4 years. I'm currently running 331.20. I've used the "RegistryDwords" "EnableBrightnessControl=1" option in xorg.conf as a fix, but that results in uneven brightness increments. So, I thought I'd try removing that option and try nvidiabl instead. Here are some details:
I added my model number to
nvidia-laptops.h
, like this:NVIDIABL_DECLARE_LAPTOP_MODEL("LENOVO", "4318CTO", PCI_ANY_ID, NVIDIABL_SC_AUTO, NVIDIABL_AUTO, NVIDIABL_AUTO, NVIDIABL_AUTO),
make dkms-install
worked fine. I also addedoptions thinkpad_acpi brightness_enable=0
to/etc/modprobe.d/thinkpad.conf
as suggested in the README to get keyboard controls working. After a reboot, I get these relevant lines in/var/log/syslog
:(Note that this machine is capable of 16 brightness levels in Windows 7. In the syslog, thinkpad_acpi says only 8 brightness levels are detected. I think I only get 8 levels whenever I try nouveau.)
It all looks good, and nvidiabl is listed in lsmod, yet nothing happens when I try to change brightness using the keyboard controls or the XFCE panel brightness applet. Any tips? Do I need to manually guess the backlight register and/or birghtness levels?