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

Clevo P170HM not workin #67

Closed mirek967 closed 10 years ago

mirek967 commented 11 years ago

I reported this 2 years ago on your Email, but I think its lost somewere on the way. I have an laptop with Nvidia Geforce 580M. On the card there are 2 outputs for Laptop displays they are called: LVDS, and EDP. Monitor is connected into eDP output. On the memory layout, there is area for LVDS (just as used in your driver), and another area for eDP output. I found that if I do following change -#define NV5X_PDISPLAY_SOR0_BRIGHTNESS 0x0000c084 +#define NV5X_PDISPLAY_SOR0_BRIGHTNESS 0x0000d084 in the file dkms_source_tree/nvidiabl-models.c Than it works well. I suppose, that this is problem of most of new laptops with recent graphic cards.

guillaumezin commented 11 years ago

This is very interesting, I would like to be able to autodetect, could you give me the output of dmesg|grep nvidiabl with the c084 value? Maybe that if I detect all registers at 0 I can revert to EDP registers...

guillaumezin commented 11 years ago

Could you try version 0.81 and tell me if it works on your system?

guillaumezin commented 11 years ago

If 0.81 doesn't work, please retry with the following commands (still on version 0.81):

sudo modprobe -r nvidiabl sudo modprobe nvidiabl screen_type=3

Then tell me if it works and give me the output of dmesg|grep nvidiabl

Thank you !

mirek967 commented 11 years ago

I just installed version 0.81, and it works when screen_type is forced. When not forced, it is still detected as LVDS. But anyway, great work. Thank you.

And the dmesg logs for nvidiabl: For setting C084: [ 2286.004561] nvidiabl: loading driver version 0.80 [ 2286.004601] nvidiabl: Supported Nvidia graphics adapter 10de:1211:1558:7101 detected [ 2286.004716] nvidiabl: smartdimmer register at address 0xf461c084 mapped at address 0xffffc90006a6c084 [ 2286.004722] nvidiabl: backlight type is raw [ 2286.004801] nvidiabl: backup register value 0x4001df67 [ 2286.004805] nvidiabl: autodetecting maximum [ 2286.004809] nvidiabl: using value 0x1df67 as maximum [ 2286.004812] nvidiabl: autodetecting off [ 2286.004816] nvidiabl: using value 0x0 as off [ 2286.004819] nvidiabl: autodetecting minimum [ 2286.004824] nvidiabl: minimum is 5% of maximum [ 2286.004828] nvidiabl: using value 0x17f8 as minimum

and for setting d084: [ 9.925075] nvidiabl: loading driver version 0.79 [ 9.925107] nvidiabl: Supported Nvidia graphics adapter 10de:1211:1558:7101 detected [ 9.925226] nvidiabl: smartdimmer register at address 0xf461d084 mapped at address 0xffffc9000bb5e084 [ 9.925257] Modules linked in: nvidiabl(O+) acpi_cpufreq mperf siemens_mpi usbserial vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) tun udf reiserfs xfs exportfs nf_conntrack_sane nf_conntrack_netbios_ns nf_conntrack_broadcast nf_conntrack_h323 pktcdvd coretemp kvm_intel kvm iwldvm jmb38x_ms iTCO_wdt iTCO_vendor_support jme sdhci_pci sdhci mmc_core i2c_i801 firewire_ohci memstick lpc_ich crc32c_intel ghash_clmulni_intel iwlwifi aesni_intel ablk_helper aes_x86_64 [ 9.925370] [] init_module+0x1e8/0x43f [nvidiabl] [ 9.925487] nvidiabl: backup register value 0x40000a8c [ 9.925490] nvidiabl: autodetecting maximum [ 9.925493] nvidiabl: using value 0xa8c as maximum [ 9.925496] nvidiabl: autodetecting off [ 9.925498] nvidiabl: using value 0x0 as off [ 9.925500] nvidiabl: autodetecting minimum [ 9.925503] nvidiabl: minimum is 5% of maximum [ 9.925506] nvidiabl: using value 0x87 as minimum