Bug 13477
Summary: | No laptop_panel and backlight information in /sys or lshal | ||
---|---|---|---|
Product: | Drivers | Reporter: | schmirrwurst |
Component: | Video(Other) | Assignee: | drivers_video-other |
Status: | CLOSED OBSOLETE | ||
Severity: | normal | CC: | akpm, alan, bistory, malattia, rui.zhang, yakui.zhao |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://bugs.launchpad.net/ubuntu/+source/linux/+bug/377353 | ||
Kernel Version: | 2.6 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Bug Depends on: | |||
Bug Blocks: | 56331 | ||
Attachments: |
acpidump (v20071116)
lspci -vxxx dmesg with initcall_debug config file I'm compiling with ls /sys/bus/acpi/devices ls /sys/bus/acpi/drivers/* /sys/bus/acpi/devices/*/path debug patch dmesg after scan.c patch |
Description
schmirrwurst
2009-06-07 14:27:28 UTC
umm, I guess this is sony-laptop.c. I'll cc Mattia and will attempt to recategorise it to something more appropriate. (In reply to comment #0) > I've a sony vaio vgn-fz21E, and opened a couple of bug on launchpad because > backlight management doesn't work... > It seems that the issue is coming from the kernel, that does not provide any > information about my backlight.... > /sys/class/backlight is empty > > and I've no laptop_panel in lshal... Schmirrwurst, we will need to see the DSDT dump from that laptop but usually the FZ series laptops have the display backlight controlled by the acpi_video driver. I'll also Cc Zhang. Thanks, Mattia right, schmirrwurst please get the latest pmtools from http://www.lesswatts.org/projects/acpi/utilities.php build and run "acpidump > acpidump.out" then attach the acpidump.out file here. Created attachment 21856 [details]
acpidump (v20071116)
From the acpidump it seems that there exists the _BCL/_BCM object. In such case video driver will register the generic ACPI backlight I/F. Will you please try the latest kernel and see whether the ACPI backlight I/F is registered after loading the i915 driver? It will be great if you can attach the output of dmesg with the boot option of "initcall_debug". Thanks. Will you please also attach the output of lspic -vxxx? Thanks. Created attachment 21882 [details]
lspci -vxxx
Created attachment 21914 [details]
dmesg with initcall_debug
Could you explain me how to do that ? : " Will you please try the latest kernel and see whether the ACPI backlight I/F is registered after loading the i915 driver?" I'm now using 2.6.30-9-generic please set CONFIG_DRM=y CONFIG_DRM_I915=y CONFIG_DRM_I915_KMS=y CONFIG_ACPI_VIDEO=m and rebuild your kernel kernel, can you see the backlight sysfs I/F after loading the ACPI video driver this time? Created attachment 21993 [details]
config file I'm compiling with
I've modified the 2.6.30-9-generic config file from ubuntu, and I'm currently compiling... and going to test it again...
Is that correct ?
I've recompiled the kernel, and rebooted on it : at start nothing in /sys/class/backlight if search for an acpi video module, and there is one : /lib/modules/2.6.30sonyfix/kernel/drivers/acpi/video.ko tried to rmmod video, and modprobe it, the output from dmesg : [ 718.266226] calling acpi_video_init+0x0/0x77 [video] @ 4440 [ 718.266749] initcall acpi_video_init+0x0/0x77 [video] returned 0 after 494 usecs forgot... still nothing in /class/backlight after modprobe what's new in the dmesg output after you re-probing the ACPI video driver? after loading the video driver, please run "tree /proc/acpi/video" and "grep . /proc/acpi/video/GFX0/*/*" and attach the output. plus, you'd better do these test with a vanilla kernel. Reply-To: sebastien.brennion@googlemail.com I've just realised there where some issue at kernel installing in the postinst file at : if (-d "/etc/kernel/postinst.d") { print STDERR "Examining /etc/kernel/postinst.d.\n"; system ("run-parts --verbose --exit-on-error --arg=$version " . "--arg=$realimageloc$kimage-$version " . "/etc/kernel/postinst.d") && die "Failed to process /etc/kernel/postinst.d"; } and dkms has not worked properly also... I'm going to search how to do that... Le Friday 19 June 2009 03:42:51, vous avez écrit : > http://bugzilla.kernel.org/show_bug.cgi?id=13477 > > > > > > --- Comment #15 from Zhang Rui <rui.zhang@intel.com> 2009-06-19 01:42:50 > --- after loading the video driver, please run "tree /proc/acpi/video" and > "grep . /proc/acpi/video/GFX0/*/*" and attach the output. Ok so I've recompiled 2.6.30 with : CONFIG_DRM=y CONFIG_DRM_I915=m CONFIG_DRM_I915_KMS=y CONFIG_ACPI_VIDEO=m You wanted CONFIG_DRM_I915=y , but it seems to be available only as module... /sys/class/backlight/ is still empty /sys/class/graphics/ also... tree /proc/acpi/video /proc/acpi/video 0 directories, 0 files /proc/acpi/video/ is also empty... launching video module manually give : [ 473.566757] calling acpi_video_init+0x0/0x77 [video] @ 4336 [ 473.567288] initcall acpi_video_init+0x0/0x77 [video] returned 0 after 503 usecs in dmesg... the rest is unchanged after it.. please attach your kernel config file. (In reply to comment #20) > please attach your kernel config file. Please ignore this comment. please attach the output of "ls /sys/bus/acpi/devices/" and "ls /sys/bus/acpi/drivers/*" Created attachment 22068 [details]
ls /sys/bus/acpi/devices
Created attachment 22069 [details]
ls /sys/bus/acpi/drivers/*
No LNXVIDEO device? that's really weird. please attach the output of " grep . /sys/bus/acpi/devices/*/path" Created attachment 22085 [details]
/sys/bus/acpi/devices/*/path
Created attachment 22086 [details]
debug patch
please apply this patch and attach the dmesg output after system boot.
Created attachment 22095 [details]
dmesg after scan.c patch
Hi, Schmirrwurst From the dmesg it seems that this laptop is not based on intel integreated graphics. So it is not meaningful whether the CONFIG_I915 is enabled or not in kernel configuration. There exists the _BCL/_BCM object under the scope of GFX. But as there is no corresponding PCI device for the GFX ACPI object, OS can't register the generic ACPI backlight I/F. Then it will have to fall back to the platform driver. If the platform driver can't register the backlight I/F, there is no backlight I/F under the /sys/class/backlight/. So IMO this is a BIOS bug or platform driver bug. Thanks. Hi ykzhao, What did you mean with platform driver bug ? You mean than the propriatary nvidia driver could provide that backlight I/F ? In fact, the utility smartdimmer from the main repository of ubuntu, is already able to SET and GET backlight level... isn't it possible to use the same code in the kernel ?? I've searched on the web, and found out that sony and some other (msi, samsung) are controlling the backlight through the nvidia chipset, what is not the usual way (?)... But I though if a utility from the main repository is able set and get from the command line, it should also be possible to implement it in the kernel, so there would be a common interface also for sony-nvidia laptops ?? (In reply to comment #29) > In fact, the utility smartdimmer from the main repository of ubuntu, is > already > able to SET and GET backlight level... good news is that the native nvidia driver works for you. > isn't it possible to use the same code > in the kernel ?? bad news is that we don't know how they works. IMO, this is rather a nvidia video driver problem than an ACPI one, i.e. nvidia video driver can register a backlight sysfs class device and provide its own way to change the backlight. Anyway, we (ACPI) can not help in this bug, re-assign it to DRIVER-VIDEO category. I've tried to search a way to have it fixed outside the kernel but : * nvidia won't provide any support for backlight in his proprietary driver, because they say every manufacturer is managing it differently, so the manufacturer have to support it themeself ! * Sony is not supporting linux at all, so they won't do anything ! I though I could ask for a fix in hal or devicekit/udev * but hal is deprieciated and doesn't add anything new * devicekit won't add so device specific rules, because that's why the hal project is stopping, they need a common interface... So I think the last chance for all those people like me, wainting for years for backlight support, would be that the backlight management made by nvclock/smartdimmer, would be integrated in the kernel to provide a common interface for powermanagement/ fnkeys ?? Is that possible (please say yes ;) Is there some work in progress ? Is there someone in the video team ? I found a bug from 2008, with similar problem and still new... ?? I've tried out the opensource driver nouveau for nvidia cards, it have backlight/acpi support that is working pretty well, but the driver itself is so instable that it is unusable at the moment, would it be possible to implement the backlight support code in the kernel, to have people there card supported ?! Is there any news ? I think some patches can be made for sony_laptop, it's not the best solution (owners of some other brands experience the same lack of backlight support) but it can solve some annoyance for sony owers. Still no support for many owner from laptop with nvidia cards... None from the concerned projects hal,devicekit, udev won't make anything, just like nvidia... The only hope is that the kernel implement backlight support somehow... A patch would be great ! Otherwise waiting a stable 3D support from nouveau could be long ! The work seems already to have be done here http://www.nvnews.net/vbulletin/showthread.php?t=143025 There is only need to integrate it to the kernel... |