8086:2a42 [Asus UL80VT] Backlight control does not work with Intel integrated card, but there are entries in /sys/class/backlight

Bug #1178796 reported by Guillaume Millet
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Linux
Incomplete
Medium
linux (Ubuntu)
Triaged
Low
Unassigned

Bug Description

It used to work with the workaround suggested at http://wiki.daviddarts.com/Ubuntu_Maverick_on_the_Asus_UL30VT#Screen_Brightness which modifies asus-brn-down.sh to use the "setpci" method.

But I had forgotten that workaround and I suspect that upgrading to Raring removed my modified scripts. So, in the original description of the bug, I thought it was a regression. But it's probably not a regression as the brightness control has apparently never worked off-the-shelf.

Not working neither with linux-image-3.9.1-030901-generic_3.9.1-030901.201305080210 from http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.9.1-saucy/

Hotkeys are detected, showkey -s:
Fn+F5:
0xe0 0x4c 0xe0 0xcc
Fn+F6:
0xe0 0x54 0xe0 0xd4

I also attach the results from tests described on https://wiki.ubuntu.com/Kernel/Debugging/Backlight.

Test with acpi_backlight=vendor:
- on 3.8.0-20.31-generic, no change. But echo 8 > /sys/class/backlight/intel_backlight/brightness makes the screen dark, moreover /sys/class/backlight/intel_backlight/max_brightness = 2583660
- on 3.9.1, no brightness change but the KDE notification pops up with only 3 levels (0, 53, 100%)

Test with video.use_bios_initial_backlight=0:
- on 3.8.0-20.31-generic, no change.

WORKAROUND: specify the backlight option in xorg.conf.

Section "Device"
    Identifier "Default Device"
    Option "Backlight" "intel_backlight"
    Driver "intel"
    BusID "PCI:0:2:0"
EndSection

WORKAROUND: On KDE Raring Ubuntu 3.8.0-30.44-generic, bumblebee removed, BIOS SATA mode set to Compatible (this disables the Intel graphics card which does not appear anymore in lspci, http://wiki.daviddarts.com/Ubuntu_Maverick_on_the_Asus_UL30VT#Nvidia_Accelerated_Graphics_Driver), only default kernel parameters, and using either nouveau or nvidia drivers:
The plasma widget for screen brightness (inside battery monitor widget) is able to change the brightness. And automatic brightness change from KDE system (when the power adaptor is unplugged) works also. In Raring, the hotkeys do not trigger any change (see bug #1225067) but this is fixed in Saucy.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: linux-image-3.8.0-20-generic 3.8.0-20.31
ProcVersionSignature: Ubuntu 3.8.0-20.31-generic 3.8.11
Uname: Linux 3.8.0-20-generic x86_64
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: guillaume 2490 F.... pulseaudio
 /dev/snd/controlC0: guillaume 2490 F.... pulseaudio
Date: Fri May 10 12:14:58 2013
HibernationDevice: RESUME=/dev/sda6
InstallationDate: Installed on 2010-01-19 (1207 days ago)
InstallationMedia: Kubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
MachineType: ASUSTeK Computer Inc. UL80VT
MarkForUpload: True
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.8.0-20-generic root=UUID=d92f3a31-9e9c-4c19-98be-6fbc82629a36 ro video.use_bios_initial_backlight=0 quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-3.8.0-20-generic N/A
 linux-backports-modules-3.8.0-20-generic N/A
 linux-firmware 1.106
SourcePackage: linux
UpgradeStatus: Upgraded to raring on 2013-04-27 (12 days ago)
dmi.bios.date: 01/17/2011
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 214
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: UL80VT
dmi.board.vendor: ASUSTeK Computer Inc.
dmi.board.version: 1.0
dmi.chassis.asset.tag: ATN12345678901234567
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK Computer Inc.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr214:bd01/17/2011:svnASUSTeKComputerInc.:pnUL80VT:pvr1.0:rvnASUSTeKComputerInc.:rnUL80VT:rvr1.0:cvnASUSTeKComputerInc.:ct10:cvr1.0:
dmi.product.name: UL80VT
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK Computer Inc.
---
ApportVersion: 2.12-0ubuntu3
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: ubuntu 2788 F.... pulseaudio
 /dev/snd/controlC0: ubuntu 2788 F.... pulseaudio
CasperVersion: 1.336
DistroRelease: Ubuntu 13.10
LiveMediaBuild: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130813)
MachineType: ASUSTeK Computer Inc. UL80VT
MarkForUpload: True
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: noprompt cdrom-detect/try-usb=true file=/cdrom/preseed/username.seed boot=casper initrd=/casper/initrd.lz quiet splash acpi_backlight=vendor --
ProcVersionSignature: Ubuntu 3.11.0-1.4-generic 3.11.0-rc4
RelatedPackageVersions:
 linux-restricted-modules-3.11.0-1-generic N/A
 linux-backports-modules-3.11.0-1-generic N/A
 linux-firmware 1.113
Tags: saucy
Uname: Linux 3.11.0-1-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
dmi.bios.date: 01/17/2011
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 214
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: UL80VT
dmi.board.vendor: ASUSTeK Computer Inc.
dmi.board.version: 1.0
dmi.chassis.asset.tag: ATN12345678901234567
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK Computer Inc.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr214:bd01/17/2011:svnASUSTeKComputerInc.:pnUL80VT:pvr1.0:rvnASUSTeKComputerInc.:rnUL80VT:rvr1.0:cvnASUSTeKComputerInc.:ct10:cvr1.0:
dmi.product.name: UL80VT
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK Computer Inc.

Revision history for this message
Guillaume Millet (guimillet) wrote :
Revision history for this message
Guillaume Millet (guimillet) wrote :
Revision history for this message
Guillaume Millet (guimillet) wrote :
Revision history for this message
Guillaume Millet (guimillet) wrote :
Revision history for this message
Guillaume Millet (guimillet) wrote :
Revision history for this message
Guillaume Millet (guimillet) wrote :
Revision history for this message
Guillaume Millet (guimillet) wrote :

sudo fwts
Running 42 tests, results appended to results.log

sudo fwts method
Running 1 tests, results appended to results.log

Revision history for this message
Guillaume Millet (guimillet) wrote :

dmesg | grep 'ACPI: Video'
[ 2.367054] ACPI: Video Device [VGA] (multi-head: yes rom: no post: no)
[ 2.373679] ACPI: Video Device [VGA1] (multi-head: yes rom: yes post: no)

Revision history for this message
Guillaume Millet (guimillet) wrote :

sudo dmidecode > dmidecode.log

Revision history for this message
Guillaume Millet (guimillet) wrote :

with kernel parameter acpi_backlight=vendor

ls /sys/class/backlight > vendorbacklight

Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote : Re: On Asus laptop UL80VT, backlight control does not work, but there are entries in /sys/class/backlight

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v3.10 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10-rc1-saucy/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
tags: added: regression-release
Revision history for this message
mb1248 (mb1248) wrote :

I tried the the latest upstream kernel. The but is not fixed. Someone should add the tag: 'kernel-bug-exists-upstream'.

Revision history for this message
Guillaume Millet (guimillet) wrote :

v3.10-rc2 tested, still not fixed.

tags: added: kernel-bug-exists-upstream
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Guillaume Millet (guimillet) wrote :

v3.10-rc5 tested, no change.

Revision history for this message
Martin Tamashiro (martintama) wrote :

I'm using Linux Mint 15, which is based on ubuntu raring so it may work for you too. My brightness keys are working, but I had to update my BIOS to latest ver. 214. I was using ver. 206 before with no luck.

I also had to change /etc/acpi/events/asus-keyboard-backlight-up and /etc/acpi/events/asus-keyboard-backlight-down to listen to the correct event on keypress, acording to acpi_listen.

Let me know if you need more info.

Revision history for this message
Guillaume Millet (guimillet) wrote :

v3.11-rc1 tested, no change.

my BIOS is already ver. 214. On v3.11-rc1, key events are detected (KDE popup) but the brightness does not change.

penalvch (penalvch)
summary: - On Asus laptop UL80VT, backlight control does not work, but there are
- entries in /sys/class/backlight
+ [Asus UL80VT] Backlight control does not work, but there are entries in
+ /sys/class/backlight
tags: added: latest-bios-214
tags: added: kernel-bug-exists-upstream-v3.11-rc1 needs-upstream-testing
removed: kernel-bug-exists-upstream
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
1 comments hidden view all 104 comments
Revision history for this message
Guillaume Millet (guimillet) wrote :

v3.11-rc2 tested, no change.
dmesg files without (dmesg.0) and with acpi_backlight=vendor (dmesg_acpi_backlight_vendor.1) are attached.

1 comments hidden view all 104 comments
Revision history for this message
Guillaume Millet (guimillet) wrote :

v3.11-rc3 tested, no change.

penalvch (penalvch)
tags: added: kernel-bug-exists-upstream-v3.11-rc3
removed: kernel-bug-exists-upstream-v3.11-rc1 needs-upstream-testing
tags: added: needs-bisect
1 comments hidden view all 104 comments
Revision history for this message
Guillaume Millet (guimillet) wrote :

Well, I'm lost. It seems not related to linux-image, as the kernel image 3.5.0-17.28 (quantal release) does not work either. So it may come from another package update, acpi-support?

other notes:
- sudo setpci -s 00:02.0 F4.B=HH with HH between 0 and ff works.
- echo 258366 > /sys/class/backlight/intel_backlight/brightness works (values between 0 and 2583660)
- /etc/acpi/asus-keyboard-backlight.sh looks for /sys/class/leds/asus\:\:kbd_backlight. I have no such entry (acpi-support_0.141).

Revision history for this message
penalvch (penalvch) wrote :

Guillaume Millet, this would not come from from the package acpi-support, it's either a userspace or kernel issue. Hence, could you please confirm this issue exists with the latest development release of Ubuntu? ISO images are available from http://cdimage.ubuntu.com/daily-live/current/ . If the issue remains, could you please run the following command in the development release from a Terminal (Applications->Accessories->Terminal), as it will automatically gather and attach updated debug information to this report:

apport-collect -p linux <replace-with-bug-number>

tags: added: needs-upstream-testing
Revision history for this message
Guillaume Millet (guimillet) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected saucy
description: updated
Revision history for this message
Guillaume Millet (guimillet) wrote : BootDmesg.txt

apport information

Revision history for this message
Guillaume Millet (guimillet) wrote : CRDA.txt

apport information

Revision history for this message
Guillaume Millet (guimillet) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Guillaume Millet (guimillet) wrote : IwConfig.txt

apport information

Revision history for this message
Guillaume Millet (guimillet) wrote : Lspci.txt

apport information

Revision history for this message
Guillaume Millet (guimillet) wrote : Lsusb.txt

apport information

Revision history for this message
Guillaume Millet (guimillet) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Guillaume Millet (guimillet) wrote : ProcEnviron.txt

apport information

Revision history for this message
Guillaume Millet (guimillet) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Guillaume Millet (guimillet) wrote : ProcModules.txt

apport information

Revision history for this message
Guillaume Millet (guimillet) wrote : PulseList.txt

apport information

Revision history for this message
Guillaume Millet (guimillet) wrote : RfKill.txt

apport information

Revision history for this message
Guillaume Millet (guimillet) wrote : UdevDb.txt

apport information

Revision history for this message
Guillaume Millet (guimillet) wrote : UdevLog.txt

apport information

Revision history for this message
Guillaume Millet (guimillet) wrote : WifiSyslog.txt

apport information

penalvch (penalvch)
tags: added: kernel-bug-exists-upstream-v3.11
removed: kernel-bug-exists-upstream-v3.11-rc3 needs-upstream-testing
description: updated
penalvch (penalvch)
description: updated
tags: added: precise
removed: needs-bisect regression-release
tags: removed: precise
penalvch (penalvch)
description: updated
penalvch (penalvch)
summary: - [Asus UL80VT] Backlight control does not work, but there are entries in
- /sys/class/backlight
+ 8086:2a42 [Asus UL80VT] Backlight control does not work with Intel
+ integrated card, but there are entries in /sys/class/backlight
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
penalvch (penalvch)
description: updated
description: updated
penalvch (penalvch)
tags: added: needs-upstream-testing
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
penalvch (penalvch)
tags: added: precise
penalvch (penalvch)
tags: added: lucid
Changed in linux (Ubuntu):
status: Incomplete → Expired
24 comments hidden view all 104 comments
Revision history for this message
Guillaume Millet (guimillet) wrote :

Tested with 3.12-saucy, same as in my last message.

penalvch (penalvch)
tags: added: kernel-bug-exists-upstream-v3.12
removed: kernel-bug-exists-upstream-v3.11
Changed in linux (Ubuntu):
status: Expired → Incomplete
1 comments hidden view all 104 comments
Revision history for this message
Guillaume Millet (guimillet) wrote :

v3.12.1 tested, as well as v3.13-rc2; bug still present.

penalvch (penalvch)
tags: added: kernel-bug-exists-upstream-v3.13-rc2
removed: kernel-bug-exists-upstream-v3.12 needs-upstream-testing
Revision history for this message
penalvch (penalvch) wrote :

Guillaume Millet, the issue you are reporting is an upstream one. Could you please report this problem through the appropriate channel (I would start with linux-acpi) by following the instructions _verbatim_ at https://wiki.ubuntu.com/Bugs/Upstream/kernel#KernelTeam.2BAC8-KernelTeamBugPolicies.Overview_on_Reporting_Bugs_Upstream ?

Please provide a direct URL to your post once you have made it so that it may be tracked.

Thank you for your understanding.

Changed in linux (Ubuntu):
importance: Medium → Low
status: Incomplete → Triaged
Revision history for this message
Guillaume Millet (guimillet) wrote :

issue reported upstream on linux-acpi mailing list: http://marc.info/?t=138600362800003&r=1&w=2

Revision history for this message
Guillaume Millet (guimillet) wrote :

Here is a workaround from Aaron Lu on linux-acpi: specify the backlight option in xorg.conf.

Section "Device"
    Identifier "Default Device"
    Option "Backlight" "intel_backlight"
    Driver "intel"
    BusID "PCI:0:2:0"
EndSection

1 comments hidden view all 104 comments
Revision history for this message
In , gmillet3 (gmillet3-linux-kernel-bugs) wrote :

Created attachment 117421
dmesg

The screen brightness control has apparently never worked off-the-shelf on this laptop released in 2009, Asus UL80VT-A1, which is an NVIDIA Optimus laptop (2 graphic cards). The use of the discrete Nvidia card is managed by Bumblebee (https://wiki.ubuntu.com/Bumblebee). It used to work with the workaround suggested at http://wiki.daviddarts.com/Ubuntu_Maverick_on_the_Asus_UL30VT#Screen_Brightness which modifies asus-brn-down.sh to use the "setpci" method. When the hotkeys are triggered, there is no brightness change but the KDE popup notification appears.

$ ls /sys/class/backlight/
acpi_video0 acpi_video1 intel_backlight

$ cat /sys/class/backlight/intel_backlight/max_brightness
2583660
$ cat /sys/class/backlight/intel_backlight/brightness
121584

The intel_backlight interface works, by echoing a value between 0 and 2583660.

$ cat /sys/class/backlight/acpi_video0/brightness
6
$ cat /sys/class/backlight/acpi_video0/max_brightness
15
$ cat /sys/class/backlight/acpi_video0/device/device
0x2a42

$ cat /sys/class/backlight/acpi_video1/brightness
15
$ cat /sys/class/backlight/acpi_video1/max_brightness
15
$ cat /sys/class/backlight/acpi_video1/device/device
0x0a74

By echoing a value between 0 and 15, the two acpi_video interfaces do not change the screen brightness.

Revision history for this message
In , gmillet3 (gmillet3-linux-kernel-bugs) wrote :

Created attachment 117431
acpidump

Revision history for this message
In , gmillet3 (gmillet3-linux-kernel-bugs) wrote :

Created attachment 117441
dmidecode

Revision history for this message
In , gmillet3 (gmillet3-linux-kernel-bugs) wrote :

Created attachment 117451
Xorg.0.log

$ cat /etc/X11/xorg.conf

Section "Screen"
        Identifier "Default Screen"
        DefaultDepth 24
EndSection

Section "Device"
        Identifier "Default Device"
EndSection

Revision history for this message
In , gmillet3 (gmillet3-linux-kernel-bugs) wrote :
Revision history for this message
In , aaron.lu (aaron.lu-linux-kernel-bugs) wrote :

I saw the kernel you used is a distro kernel v3.11, is it the same case with v3.12?

Revision history for this message
In , gmillet3 (gmillet3-linux-kernel-bugs) wrote :

Same problem with 3.12.0-031200-generic from http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12-saucy/. I can attach dmesg and Xorg.0.log, they seem similar.

Revision history for this message
In , aaron.lu (aaron.lu-linux-kernel-bugs) wrote :

Does adding acpi_osi="Linux" to kernel cmdline make any difference?

Revision history for this message
In , gmillet3 (gmillet3-linux-kernel-bugs) wrote :

No difference. The hotkeys change the value in /sys/class/backlight/acpi_video0/brightness but the brightness doesn't change.
I attach dmesg and Xorg.0.log with 3.12.0-031200-generic and acpi_osi="Linux" in case it would be useful.

Revision history for this message
In , gmillet3 (gmillet3-linux-kernel-bugs) wrote :

Created attachment 118291
dmesg with acpi_osi=Linux and kernel 3.12

Revision history for this message
In , gmillet3 (gmillet3-linux-kernel-bugs) wrote :

Created attachment 118301
Xorg.0.log with acpi_osi=Linux and kernel 3.12

Revision history for this message
In , aaron.lu (aaron.lu-linux-kernel-bugs) wrote :

I've no idea why ACPI brightness control method doesn't work.
Please add acpi_backlight=vendor to kernel cmdline, see if there is only one interface(intel_backlight) left under /sys/class/backlight. If so, I can add your system into a blacklist table.

BTW, is there a firmware update for your laptop from ASUS?

Revision history for this message
In , gmillet3 (gmillet3-linux-kernel-bugs) wrote :

With acpi_backlight=vendor, there are two interfaces: asus_laptop and intel_backlight. asus_laptop reacts like acpi_video0 did when a brightness hotkey is pressed: the value of /sys/class/backlight/asus_laptop/brightness chnages but the brightness doesn't.

The BIOS is already at the last version released by ASUS on https://www.asus.com/Notebooks_Ultrabooks/UL80Vt/#support, version 214.

12 comments hidden view all 104 comments
Revision history for this message
Guillaume Millet (guimillet) wrote :
penalvch (penalvch)
description: updated
13 comments hidden view all 104 comments
Revision history for this message
In , aaron.lu (aaron.lu-linux-kernel-bugs) wrote :

Created attachment 120561
Debug patch to use native backlight for a Win7 system

Sorry for replying late.
Can you please test this patch on top of a v3.13 kernel? Thanks.

Revision history for this message
In , gmillet3 (gmillet3-linux-kernel-bugs) wrote :

Thanks. Patch tested on kernel 3.13.0-rc8 for Saucy:

$ modinfo video
filename: /lib/modules/3.13.0-031300rc8-generic/kernel/drivers/acpi/video.ko
license: GPL
description: ACPI Video Driver
author: Bruno Ducrot
srcversion: 7F3F9A0CC7554649507A11E
alias: acpi*:LNXVIDEO:*
depends:
vermagic: 3.13.0-031300rc8-generic SMP mod_unload modversions
parm: brightness_switch_enabled:bool
parm: allow_duplicates:bool
parm: use_native_backlight:bool

It doesn't seem to work and there is still a ACPI_video0 interface.

$ dmesg | grep video
[ 0.253443] pci 0000:00:02.0: Boot video device
[ 1.380146] Modules linked in: ahci(+) libahci atl1c i915(+) i2c_algo_bit drm_kms_helper video drm
[ 16.952911] asus_laptop: Backlight controlled by ACPI video driver

What other debug information can I provide?

Revision history for this message
In , aaron.lu (aaron.lu-linux-kernel-bugs) wrote :

Oh, that probably because I didn't fill in the DMI entry correctly. Can you please check the value of use_native_backlight? It's located at:
/sys/module/video/parameters/use_native_backlight
And if it is N, please add video.use_native_backlight=1 to the patched kernel's cmdline and test again. Thanks.

Revision history for this message
In , gmillet3 (gmillet3-linux-kernel-bugs) wrote :

It was N.

With the additional parameter, the acpi interface is still created:

$ dmesg | grep -i backlight
[ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.13.0-031300rc8-generic root=UUID=d92f3a31-9e9c-4c19-98be-6fbc82629a36 ro quiet splash video.use_native_backlight=1 vt.handoff=7
[ 18.806833] asus_laptop: Backlight controlled by ACPI video driver

$ cat /sys/module/video/parameters/use_native_backlight
Y

Revision history for this message
In , aaron.lu (aaron.lu-linux-kernel-bugs) wrote :

Created attachment 122671
Debug patch to use native backlight for a Win7 system, v2

Please test this patch on top of a v3.13 kernel, attach the dmesg after boot up, thanks.

Revision history for this message
In , gmillet3 (gmillet3-linux-kernel-bugs) wrote :

Created attachment 123271
dmesg with patch v2

Revision history for this message
In , gmillet3 (gmillet3-linux-kernel-bugs) wrote :

With the kernel option, dmesg is similar and it doesn't work.

Revision history for this message
In , aaron.lu (aaron.lu-linux-kernel-bugs) wrote :

Did you apply the patch? I saw your kernel cmdline has: BOOT_IMAGE=/boot/vmlinuz-3.13.0-031300-generic, is the image the patched one? I've added a print in the video module's init function and it has to be printed but I didn't see it in the attached dmesg, so I'm confused.

Revision history for this message
In , gmillet3 (gmillet3-linux-kernel-bugs) wrote :

Sorry for the late reply, I was trying to understand why the modifications did not change anything whereas I changed video.ko. Could it be about the built-in property of the module, that is, can't I compile only video.ko as described in http://www.cyberciti.biz/tips/build-linux-kernel-module-against-installed-kernel-source-tree.html ?

Revision history for this message
In , aaron.lu (aaron.lu-linux-kernel-bugs) wrote :

If video.ko is built in, then I don't think you can rmmod video and then modprobe it...

Revision history for this message
In , gmillet3 (gmillet3-linux-kernel-bugs) wrote :

Well, I'm lost. After adding some printk without any change, I deleted the module video.ko just to check if it is used... no change, the system works the same. On the other end, the kernel package installed video.ko and CONFIG_ACPI_VIDEO=m is present in /boot/config-3.13.0-031300-generic, doesn't it mean that video is a loadable module?

Moreover, lsmod displays an entry video:
video 19859 1 i915
whereas $ modprobe video
FATAL: Module video not found.

Where does that video module listed by lsmod comes from?

Could the problem be related to the bug in drm module which logs a trace in dmesg, starting with [drm:intel_pipe_config_compare] *ERROR* mismatch in gmch_pfit.lvds_border_bits (expected 32768, found 0)?

Revision history for this message
In , aaron.lu (aaron.lu-linux-kernel-bugs) wrote :

(In reply to Guillaume Millet from comment #23)
> Well, I'm lost. After adding some printk without any change, I deleted the
> module video.ko just to check if it is used... no change, the system works
> the same. On the other end, the kernel package installed video.ko and
> CONFIG_ACPI_VIDEO=m is present in /boot/config-3.13.0-031300-generic,
> doesn't it mean that video is a loadable module?
>
> Moreover, lsmod displays an entry video:
> video 19859 1 i915
> whereas $ modprobe video
> FATAL: Module video not found.
>
> Where does that video module listed by lsmod comes from?

Maybe from initrd.

>
> Could the problem be related to the bug in drm module which logs a trace in
> dmesg, starting with [drm:intel_pipe_config_compare] *ERROR* mismatch in
> gmch_pfit.lvds_border_bits (expected 32768, found 0)?

Not sure about the drm driver.

Could you just build the entire kernel tree instead of only the video module?

Revision history for this message
In , gmillet3 (gmillet3-linux-kernel-bugs) wrote :

Created attachment 126321
dmesg with patch v2

Revision history for this message
In , gmillet3 (gmillet3-linux-kernel-bugs) wrote :

It took me some time as I didn't have 11 GB free to build the entire kernel tree... Anyway, the patch works and the dmesg is attached.

Revision history for this message
In , aaron.lu (aaron.lu-linux-kernel-bugs) wrote :

OK, thanks.

Revision history for this message
In , aaron.lu (aaron.lu-linux-kernel-bugs) wrote :

I think this should be solved the same way we did for Win8 systems though this laptop's firmware doesn't claim Win8 support but Matthew doesn't agree. The ACPI video control interface is broken and the reason is beyond me, so I'll re-assign this bug to Drivers/Platform-x86 for more analysis.

Guillaume,
You can continue to use the xorg.conf to select intel_backlight for your laptop.

Revision history for this message
In , gmillet3 (gmillet3-linux-kernel-bugs) wrote :

Hi Aaron, I continue to use the xorg.conf as suggested. I wondered whether the issue could have been solved without update of this thread, so I have tried kernel 4.10.10-041010-generic from http://kernel.ubuntu.com/~kernel-ppa/mainline without the xorg.conf, but the issue is still present as initially described. I suppose that this thread or the bug status will change is something happened.

Revision history for this message
In , aaron.lu (aaron.lu-linux-kernel-bugs) wrote :

There is a new quick mechanism in kernel now.

Can you try adding acpi_backlight=native to kernel cmdline? With this cmdline option, you should have only one interface under /sys/class/backlight that is intel_backlight and xorg.conf modification isn't necessary. If everything works, I can add your machine to a quirk table for this to happen automatically so that you do not need to add that cmdline option.

Revision history for this message
In , gmillet3 (gmillet3-linux-kernel-bugs) wrote :

Hi Aaron,
I have just tried the native module option on 4.4.0-92 generic Ubuntu kernel (10-Aug-2017), after removing the xorg.conf modification, and it works. Thanks.

Revision history for this message
In , gmillet3 (gmillet3-linux-kernel-bugs) wrote :

Hi Aaron, I have just installed Debian Buster, kernel 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5+deb10u1. Without the cmdline option, the backlight control does not work. Has UL80VT been added to the quirk table you mentioned?

Changed in linux:
importance: Unknown → Medium
status: Unknown → Incomplete
Displaying first 40 and last 40 comments. View all 104 comments or add a comment.