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

Wrong brightness values on Toshiba Satellite L755 #79

Open squareunix opened 10 years ago

squareunix commented 10 years ago

I had an older version of this driver installed on Xubuntu 12.04 on my Toshiba Satellite L755-1DR, and even though it wasn't on the "official" supported devices list it worked perfectly, I could set it from 0 to 127 and it would change accordingly. I even had set up a quick rudimentary script and bound it to two keys to change the brightness values on the go.

Recently I switched to Crunchbang Waldorf (also Debian-based) and wanted to set up the driver again so I downloaded the latest version and installed it but now I get some really weird brightness values:

root@crunchbang:/# cat /sys/class/backlight/nvidia_backlight/brightness
16758
root@crunchbang:/# cat /sys/class/backlight/nvidia_backlight/actual_brightness
16758
root@crunchbang:/# cat /sys/class/backlight/nvidia_backlight/max_brightness
127

If I set brightness to anything higher than 127 I get an error, but if I set it to 127 I get a really, really dark screen (can barely see anything), so I guess the driver is working but somehow it doesn't consider 127 as the max value anymore.

I saw in a similar thread the dev asked to do sudo modprobe -r nvidiabl && sudo modprobe nvidiabl screen_type=2 I get exactly the same result, same values, changing to 127 makes my screen really dark, etc. If I do sudo modprobe -r nvidiabl && sudo modprobe nvidiabl screen_type=3 I get:

root@crunchbang:/# cat /sys/class/backlight/nvidia_backlight/brightness
0
root@crunchbang:/# cat /sys/class/backlight/nvidia_backlight/actual_brightness
0
root@crunchbang:/# cat /sys/class/backlight/nvidia_backlight/max_brightness
127

BUT changing the brightness value does nothing at all.

EDIT: some extra stuff

root@crunchbang:/# lsmod | grep nvidiabl
nvidiabl               41733  0 
root@crunchbang:/# dmesg | grep -i nvidiabl
[   16.063755] nvidiabl: loading driver version 0.85
[   16.063787] nvidiabl: Supported Nvidia graphics adapter 10de:0dec:1179:fc50 detected
[   16.063840] nvidiabl: smartdimmer register at address 0xc261c084 mapped at address 0xffffc9000066c084
[   16.063845] nvidiabl: backlight type is raw
[   16.063916] nvidiabl: backup register value 0x4001f63b
[   16.063920] nvidiabl: using value 0x400 as maximum
[   16.063924] nvidiabl: using value 0x0 as off
[   16.063928] nvidiabl: using value 0x32 as minimum
root@crunchbang:/# lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation 2nd Generation Core Processor Family DRAM Controller [8086:0104] (rev 09)
00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port [8086:0101] (rev 09)
00:16.0 Communication controller [0780]: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 [8086:1c3a] (rev 04)
00:1a.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 [8086:1c2d] (rev 04)
00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 04)
00:1c.0 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 [8086:1c10] (rev b4)
00:1c.1 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 [8086:1c12] (rev b4)
00:1c.5 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 6 [8086:1c1a] (rev b4)
00:1c.6 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 7 [8086:1c1c] (rev b4)
00:1d.0 USB controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 [8086:1c26] (rev 04)
00:1f.0 ISA bridge [0601]: Intel Corporation HM65 Express Chipset Family LPC Controller [8086:1c49] (rev 04)
00:1f.2 SATA controller [0106]: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller [8086:1c03] (rev 04)
00:1f.3 SMBus [0c05]: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller [8086:1c22] (rev 04)
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:0dec] (rev a1)
01:00.1 Audio device [0403]: NVIDIA Corporation GF108 High Definition Audio Controller [10de:0bea] (rev a1)
08:00.0 USB controller [0c03]: NEC Corporation uPD720200 USB 3.0 Host Controller [1033:0194] (rev 04)
09:00.0 Network controller [0280]: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) [168c:002b] (rev 01)
0a:00.0 Ethernet controller [0200]: Atheros Communications Inc. AR8151 v2.0 Gigabit Ethernet [1969:1083] (rev c0)
root@crunchbang:/# cat /sys/class/dmi/id/sys_vendor
TOSHIBA
root@crunchbang:/# cat /sys/class/dmi/id/product_name
SATELLITE L755
guillaumezin commented 10 years ago

Hello,

It should be fixed in upcoming version 0.86, please let me know

squareunix commented 10 years ago

Works great. Thanks!!

On 18 March 2014 20:31, Guillaume Zin notifications@github.com wrote:

Hello,

It should be fixed in upcoming version 0.86, please let me know

Reply to this email directly or view it on GitHubhttps://github.com/guillaumezin/nvidiabl/issues/79#issuecomment-37983742 .