2012-03-07 19:39:47 |
Maxim Mikityanskiy |
bug |
|
|
added bug |
2012-03-07 19:39:47 |
Maxim Mikityanskiy |
attachment added |
|
This patch fixes the bug https://bugs.launchpad.net/bugs/949311/+attachment/2830686/+files/brightness_autoswitch_on_power_events_option.patch |
|
2012-03-07 19:43:14 |
Maxim Mikityanskiy |
linux (Ubuntu): status |
New |
Fix Released |
|
2012-03-07 19:43:14 |
Maxim Mikityanskiy |
linux (Ubuntu): assignee |
|
Maxim Mikityanskiy (maxtram95) |
|
2012-03-17 18:58:52 |
Maxim Mikityanskiy |
linux (Ubuntu): status |
Fix Released |
New |
|
2012-03-17 19:00:08 |
Brad Figg |
linux (Ubuntu): status |
New |
Incomplete |
|
2012-03-17 19:09:31 |
Maxim Mikityanskiy |
tags |
acpi bug code kernel key keycode msi scan scancode u100 wind |
acpi apport-collected bug code kernel key keycode msi precise scan scancode staging u100 wind |
|
2012-03-17 19:09:32 |
Maxim Mikityanskiy |
description |
After upgrading to Ubuntu 10.04 LTS two years ago some special keys on my laptop stopped working. They don't send any scan codes or ACPI events ("showkey -s" and "acpi_listen" don't show anything), but they did it on Ubuntu 9.10 and they still do it on Gentoo with vanilla kernel. I expect that these keys have to work (to send scan codes and ACPI events) in newer Ubuntu than 9.10.
It was obvious that problem is in Ubuntu kernel patchset, because the thing works on vanilla kernel and doesn't work on Ubuntu-patched kernel. So, I decided to debug patched kernel, found the problem and have written the patch to fix it. The bug is in the file "drivers/acpi/video.c" in function acpi_video_bus_start_devices().
There is a line in the function in vanilla kernel:
return acpi_video_bus_DOS(video, 0, 0);
But in Ubuntu-patched kernel it is:
return acpi_video_bus_DOS(video, 0, 1);
The difference is the last argument: there is 0 in vanilla kernel and 1 in Ubuntu kernel.
If I change the last argument to 0 (like in vanilla kernel), my laptop's problem disappears.
But there should be 1 on other laptops, because setting the last argument to 1 on other laptops disables automatic display backlight brightness changing by BIOS when AC power appears/disappears: this behavior is provided by power manager in userspace and BIOS shouldn't interfere gnome-power-manager. It is correct on some other laptops, but my BIOS doesn't touch brightness on AC/DC power switch. However, it disables Fn+F* keys instead of disabling brightness autoswitch.
So, I think, there should be some settings to set the last parameter to 1 on the most laptops and to 0 on MSI Wind laptops. I'm attaching the patch. It doesn't change the current behavior by default, but it does if special kernel command line parameter is used. I hope you will accept this patch. It doesn't affect anything unless you add kernel command line parameter "video.brightness_autoswitch_on_power_events=1", but it fixes the bug on MSI Wind laptop if you add this parameter.
The problem exists in all Ubuntu versions from 10.04 to 12.04 with all kernels from 2.6.32 to current 3.2.0.
Excuse my poor English. |
After upgrading to Ubuntu 10.04 LTS two years ago some special keys on my laptop stopped working. They don't send any scan codes or ACPI events ("showkey -s" and "acpi_listen" don't show anything), but they did it on Ubuntu 9.10 and they still do it on Gentoo with vanilla kernel. I expect that these keys have to work (to send scan codes and ACPI events) in newer Ubuntu than 9.10.
It was obvious that problem is in Ubuntu kernel patchset, because the thing works on vanilla kernel and doesn't work on Ubuntu-patched kernel. So, I decided to debug patched kernel, found the problem and have written the patch to fix it. The bug is in the file "drivers/acpi/video.c" in function acpi_video_bus_start_devices().
There is a line in the function in vanilla kernel:
return acpi_video_bus_DOS(video, 0, 0);
But in Ubuntu-patched kernel it is:
return acpi_video_bus_DOS(video, 0, 1);
The difference is the last argument: there is 0 in vanilla kernel and 1 in Ubuntu kernel.
If I change the last argument to 0 (like in vanilla kernel), my laptop's problem disappears.
But there should be 1 on other laptops, because setting the last argument to 1 on other laptops disables automatic display backlight brightness changing by BIOS when AC power appears/disappears: this behavior is provided by power manager in userspace and BIOS shouldn't interfere gnome-power-manager. It is correct on some other laptops, but my BIOS doesn't touch brightness on AC/DC power switch. However, it disables Fn+F* keys instead of disabling brightness autoswitch.
So, I think, there should be some settings to set the last parameter to 1 on the most laptops and to 0 on MSI Wind laptops. I'm attaching the patch. It doesn't change the current behavior by default, but it does if special kernel command line parameter is used. I hope you will accept this patch. It doesn't affect anything unless you add kernel command line parameter "video.brightness_autoswitch_on_power_events=1", but it fixes the bug on MSI Wind laptop if you add this parameter.
The problem exists in all Ubuntu versions from 10.04 to 12.04 with all kernels from 2.6.32 to current 3.2.0.
Excuse my poor English.
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
AplayDevices:
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC1200 Analog [ALC1200 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
ApportVersion: 1.94.1-0ubuntu2
Architecture: i386
ArecordDevices:
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC1200 Analog [ALC1200 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/controlC0: max 1607 F.... pulseaudio
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
Card0.Amixer.info:
Card hw:0 'Intel'/'HDA Intel at 0xffe00000 irq 44'
Mixer name : 'Realtek ALC1200'
Components : 'HDA:10ec0888,14620110,00100101'
Controls : 20
Simple ctrls : 11
DistroRelease: Ubuntu 12.04
HibernationDevice: RESUME=UUID=7edd3c04-5781-45b6-b168-6c620e252b57
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha i386 (20120218)
MachineType: MICRO-STAR INTERNATIONAL CO., LTD U90/U100
Package: linux (not installed)
ProcEnviron:
LANGUAGE=ru_UA:ru
TERM=xterm
LANG=ru_UA.UTF-8
SHELL=/bin/zsh
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-18-generic-pae root=UUID=c7f10cf8-847a-4663-86ac-98f65904ce91 ro clocksource=hpet usbcore.autosuspend=1 i8042.reset=1 video.brightness_switch_enabled=0 quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.2.0-18.29-generic-pae 3.2.9
RelatedPackageVersions:
linux-restricted-modules-3.2.0-18-generic-pae N/A
linux-backports-modules-3.2.0-18-generic-pae N/A
linux-firmware 1.71
RfKill:
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
StagingDrivers: r8187se
Tags: precise staging
Uname: Linux 3.2.0-18-generic-pae i686
UpgradeStatus: Upgraded to precise on 2012-03-12 (4 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
dmi.bios.date: 12/01/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 4.6.3
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: U90/U100
dmi.board.vendor: MICRO-STAR INTERNATIONAL CO., LTD
dmi.board.version: Ver.001
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 10
dmi.chassis.vendor: MICRO-STAR INTERNATIONAL CO., LTD
dmi.chassis.version: Ver.001
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr4.6.3:bd12/01/2009:svnMICRO-STARINTERNATIONALCO.,LTD:pnU90/U100:pvrVer.001:rvnMICRO-STARINTERNATIONALCO.,LTD:rnU90/U100:rvrVer.001:cvnMICRO-STARINTERNATIONALCO.,LTD:ct10:cvrVer.001:
dmi.product.name: U90/U100
dmi.product.version: Ver.001
dmi.sys.vendor: MICRO-STAR INTERNATIONAL CO., LTD |
|
2012-03-17 19:09:34 |
Maxim Mikityanskiy |
attachment added |
|
AcpiTables.txt https://bugs.launchpad.net/bugs/949311/+attachment/2887885/+files/AcpiTables.txt |
|
2012-03-17 19:09:35 |
Maxim Mikityanskiy |
attachment added |
|
AlsaDevices.txt https://bugs.launchpad.net/bugs/949311/+attachment/2887886/+files/AlsaDevices.txt |
|
2012-03-17 19:09:37 |
Maxim Mikityanskiy |
attachment added |
|
BootDmesg.txt https://bugs.launchpad.net/bugs/949311/+attachment/2887887/+files/BootDmesg.txt |
|
2012-03-17 19:09:38 |
Maxim Mikityanskiy |
attachment added |
|
Card0.Amixer.values.txt https://bugs.launchpad.net/bugs/949311/+attachment/2887888/+files/Card0.Amixer.values.txt |
|
2012-03-17 19:09:40 |
Maxim Mikityanskiy |
attachment added |
|
Card0.Codecs.codec.0.txt https://bugs.launchpad.net/bugs/949311/+attachment/2887889/+files/Card0.Codecs.codec.0.txt |
|
2012-03-17 19:09:41 |
Maxim Mikityanskiy |
attachment added |
|
CurrentDmesg.txt https://bugs.launchpad.net/bugs/949311/+attachment/2887890/+files/CurrentDmesg.txt |
|
2012-03-17 19:09:43 |
Maxim Mikityanskiy |
attachment added |
|
IwConfig.txt https://bugs.launchpad.net/bugs/949311/+attachment/2887891/+files/IwConfig.txt |
|
2012-03-17 19:09:45 |
Maxim Mikityanskiy |
attachment added |
|
Lspci.txt https://bugs.launchpad.net/bugs/949311/+attachment/2887892/+files/Lspci.txt |
|
2012-03-17 19:09:46 |
Maxim Mikityanskiy |
attachment added |
|
Lsusb.txt https://bugs.launchpad.net/bugs/949311/+attachment/2887893/+files/Lsusb.txt |
|
2012-03-17 19:09:48 |
Maxim Mikityanskiy |
attachment added |
|
PciMultimedia.txt https://bugs.launchpad.net/bugs/949311/+attachment/2887894/+files/PciMultimedia.txt |
|
2012-03-17 19:09:49 |
Maxim Mikityanskiy |
attachment added |
|
ProcCpuinfo.txt https://bugs.launchpad.net/bugs/949311/+attachment/2887895/+files/ProcCpuinfo.txt |
|
2012-03-17 19:09:51 |
Maxim Mikityanskiy |
attachment added |
|
ProcInterrupts.txt https://bugs.launchpad.net/bugs/949311/+attachment/2887896/+files/ProcInterrupts.txt |
|
2012-03-17 19:09:52 |
Maxim Mikityanskiy |
attachment added |
|
ProcModules.txt https://bugs.launchpad.net/bugs/949311/+attachment/2887897/+files/ProcModules.txt |
|
2012-03-17 19:09:54 |
Maxim Mikityanskiy |
attachment added |
|
PulseList.txt https://bugs.launchpad.net/bugs/949311/+attachment/2887898/+files/PulseList.txt |
|
2012-03-17 19:09:55 |
Maxim Mikityanskiy |
attachment added |
|
UdevDb.txt https://bugs.launchpad.net/bugs/949311/+attachment/2887899/+files/UdevDb.txt |
|
2012-03-17 19:09:57 |
Maxim Mikityanskiy |
attachment added |
|
UdevLog.txt https://bugs.launchpad.net/bugs/949311/+attachment/2887900/+files/UdevLog.txt |
|
2012-03-17 19:10:00 |
Maxim Mikityanskiy |
attachment added |
|
WifiSyslog.txt https://bugs.launchpad.net/bugs/949311/+attachment/2887901/+files/WifiSyslog.txt |
|
2012-03-17 19:10:48 |
Maxim Mikityanskiy |
linux (Ubuntu): status |
Incomplete |
Confirmed |
|
2012-03-17 20:13:38 |
Ubuntu Foundations Team Bug Bot |
tags |
acpi apport-collected bug code kernel key keycode msi precise scan scancode staging u100 wind |
acpi apport-collected bug code kernel key keycode msi patch precise scan scancode staging u100 wind |
|
2012-03-17 20:13:40 |
Ubuntu Foundations Team Bug Bot |
bug |
|
|
added subscriber Joseph Salisbury |
2012-03-19 16:40:45 |
Joseph Salisbury |
linux (Ubuntu): importance |
Undecided |
Medium |
|
2012-03-28 18:29:22 |
Brad Figg |
linux (Ubuntu): assignee |
Maxim Mikityanskiy (maxtram95) |
Brad Figg (brad-figg) |
|
2012-03-28 18:29:27 |
Brad Figg |
linux (Ubuntu): status |
Confirmed |
In Progress |
|
2012-03-28 19:25:11 |
Brad Figg |
attachment added |
|
0001-UBUNTU-SAUCE-no-up-Provide-a-param-for-allowing-the-.patch https://bugs.launchpad.net/ubuntu/+source/linux/+bug/949311/+attachment/2956576/+files/0001-UBUNTU-SAUCE-no-up-Provide-a-param-for-allowing-the-.patch |
|
2012-03-29 17:35:22 |
Tim Gardner |
nominated for series |
|
Ubuntu Natty |
|
2012-03-29 17:35:22 |
Tim Gardner |
bug task added |
|
linux (Ubuntu Natty) |
|
2012-03-29 17:35:22 |
Tim Gardner |
nominated for series |
|
Ubuntu Oneiric |
|
2012-03-29 17:35:22 |
Tim Gardner |
bug task added |
|
linux (Ubuntu Oneiric) |
|
2012-03-29 17:35:22 |
Tim Gardner |
nominated for series |
|
Ubuntu Precise |
|
2012-03-29 17:35:22 |
Tim Gardner |
bug task added |
|
linux (Ubuntu Precise) |
|
2012-03-29 17:35:57 |
Tim Gardner |
linux (Ubuntu Natty): status |
New |
Fix Committed |
|
2012-03-29 17:36:04 |
Tim Gardner |
linux (Ubuntu Oneiric): status |
New |
Fix Committed |
|
2012-03-29 17:36:11 |
Tim Gardner |
linux (Ubuntu Precise): status |
In Progress |
Fix Committed |
|
2012-03-29 20:16:49 |
Ubuntu Foundations Team Bug Bot |
bug |
|
|
added subscriber Ubuntu Review Team |
2012-04-03 18:25:32 |
Launchpad Janitor |
linux (Ubuntu Precise): status |
Fix Committed |
Fix Released |
|
2012-04-05 13:52:29 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/linux-armadaxp |
|
2012-04-07 15:47:33 |
Brad Figg |
tags |
acpi apport-collected bug code kernel key keycode msi patch precise scan scancode staging u100 wind |
acpi apport-collected bug code kernel key keycode msi patch precise scan scancode staging u100 verification-needed-oneiric wind |
|
2012-04-10 15:17:22 |
Maxim Mikityanskiy |
tags |
acpi apport-collected bug code kernel key keycode msi patch precise scan scancode staging u100 verification-needed-oneiric wind |
acpi apport-collected bug code kernel key keycode msi patch precise scan scancode staging u100 verification-done-oneiric wind |
|
2012-04-11 07:45:22 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/lucid-proposed/linux-lts-backport-oneiric |
|
2012-04-11 23:40:23 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/precise-proposed/linux-ti-omap4 |
|
2012-04-13 06:26:21 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/oneiric-proposed/linux-ti-omap4 |
|
2012-04-30 15:50:14 |
Launchpad Janitor |
linux (Ubuntu Oneiric): status |
Fix Committed |
Fix Released |
|
2012-04-30 15:50:14 |
Launchpad Janitor |
cve linked |
|
2011-4347 |
|
2012-04-30 15:50:14 |
Launchpad Janitor |
cve linked |
|
2012-0045 |
|
2012-04-30 15:50:14 |
Launchpad Janitor |
cve linked |
|
2012-1097 |
|
2012-04-30 15:50:14 |
Launchpad Janitor |
cve linked |
|
2012-1146 |
|
2012-05-02 18:36:03 |
Herton R. Krzesinski |
tags |
acpi apport-collected bug code kernel key keycode msi patch precise scan scancode staging u100 verification-done-oneiric wind |
acpi apport-collected bug code kernel key keycode msi patch precise scan scancode staging u100 verification-done-oneiric verification-needed-natty wind |
|
2012-05-03 18:29:59 |
Maxim Mikityanskiy |
tags |
acpi apport-collected bug code kernel key keycode msi patch precise scan scancode staging u100 verification-done-oneiric verification-needed-natty wind |
acpi apport-collected bug code kernel key keycode msi patch precise scan scancode staging u100 verification-done-natty verification-done-oneiric wind |
|
2012-05-04 05:59:18 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/lucid-proposed/linux-lts-backport-natty |
|
2012-05-08 00:32:14 |
Launchpad Janitor |
linux (Ubuntu Natty): status |
Fix Committed |
Fix Released |
|
2012-05-08 00:32:14 |
Launchpad Janitor |
cve linked |
|
2011-4086 |
|
2012-05-08 00:32:14 |
Launchpad Janitor |
cve linked |
|
2012-1090 |
|
2012-05-08 00:32:14 |
Launchpad Janitor |
cve linked |
|
2012-2100 |
|
2012-06-08 18:38:21 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/precise-proposed/linux-armadaxp |
|