← Back to team overview

kernel-packages team mailing list archive

[Bug 1308674] Re: [Lenovo ThinkPad X220] kernel 3.13 i915 brightness settings broken when going from docked -> undocked

 

FWIW: This is what I get when the problem appears:

[110652.405086] ------------[ cut here ]------------
[110652.405143] WARNING: CPU: 2 PID: 1381 at /build/buildd/linux-3.13.0/drivers/gpu/drm/i915/intel_display.c:9237 intel_modeset_check_state+0x62d/0x780 [i915]()
[110652.405146] encoder's hw state doesn't match sw tracking (expected 1, found 0)
[110652.405148] Modules linked in: xt_tcpudp xt_REDIRECT xt_hl iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack ip_tables x_tables usb_storage hid_generic hid_logitech_dj ctr ccm rfcomm bnep binfmt_misc snd_hda_codec_hdmi snd_hda_codec_realtek intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm uvcvideo videobuf2_vmalloc snd_hda_intel videobuf2_memops btusb videobuf2_core arc4 snd_hda_codec joydev thinkpad_acpi serio_raw snd_hwdep videodev wacom bluetooth nvram iwldvm snd_pcm mac80211 snd_page_alloc snd_seq_midi snd_seq_midi_event iwlwifi snd_rawmidi snd_seq lpc_ich nls_iso8859_1 snd_seq_device cfg80211 snd_timer snd soundcore mei_me mac_hid mei parport_pc ppdev lp parport dm_crypt usbhid hid crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd i915 psmouse ahci e1000e libahci i2c_algo_bit ptp sdhci_pci sdhci drm_kms_helper pps_core drm wmi video
[110652.405228] CPU: 2 PID: 1381 Comm: Xorg Tainted: G        W     3.13.0-36-generic #63-Ubuntu
[110652.405230] Hardware name: LENOVO 3437B52/3437B52, BIOS GCET95WW (2.55 ) 08/05/2013
[110652.405233]  0000000000000009 ffff880210f73b68 ffffffff8171e569 ffff880210f73bb0
[110652.405241]  ffff880210f73ba0 ffffffff8106775d ffff880210f73c20 0000000000000001
[110652.405249]  ffff88020c805800 ffff88020c805af8 ffff88020c806800 ffff880210f73c00
[110652.405256] Call Trace:
[110652.405266]  [<ffffffff8171e569>] dump_stack+0x45/0x56
[110652.405273]  [<ffffffff8106775d>] warn_slowpath_common+0x7d/0xa0
[110652.405278]  [<ffffffff810677cc>] warn_slowpath_fmt+0x4c/0x50
[110652.405312]  [<ffffffffa015c4cd>] intel_modeset_check_state+0x62d/0x780 [i915]
[110652.405340]  [<ffffffffa015c6b5>] intel_set_mode+0x25/0x30 [i915]
[110652.405366]  [<ffffffffa015cf5b>] intel_crtc_set_config+0x7ab/0x9a0 [i915]
[110652.405396]  [<ffffffffa0029ebd>] drm_mode_set_config_internal+0x5d/0xe0 [drm]
[110652.405423]  [<ffffffffa002cda7>] drm_mode_setcrtc+0xf7/0x5e0 [drm]
[110652.405432]  [<ffffffff8164dff9>] ? netlink_broadcast_filtered+0x129/0x3b0
[110652.405453]  [<ffffffffa001dc22>] drm_ioctl+0x502/0x630 [drm]
[110652.405466]  [<ffffffff811d3c9c>] ? dput+0x4c/0x180
[110652.405473]  [<ffffffff811d0390>] do_vfs_ioctl+0x2e0/0x4c0
[110652.405480]  [<ffffffff811bef1e>] ? ____fput+0xe/0x10
[110652.405488]  [<ffffffff8108823c>] ? task_work_run+0xac/0xe0
[110652.405495]  [<ffffffff811d05f1>] SyS_ioctl+0x81/0xa0
[110652.405500]  [<ffffffff8172efad>] system_call_fastpath+0x1a/0x1f
[110652.405504] ---[ end trace 0da629c82eacbf79 ]---
[110652.405521] [drm:intel_pipe_config_compare] *ERROR* mismatch in has_dp_encoder (expected 1, found 0)
[110652.405524] ------------[ cut here ]------------
[110652.405551] WARNING: CPU: 2 PID: 1381 at /build/buildd/linux-3.13.0/drivers/gpu/drm/i915/intel_display.c:9310 check_crtc_state+0x255/0x340 [i915]()
[110652.405554] pipe state doesn't match!
[110652.405556] Modules linked in: xt_tcpudp xt_REDIRECT xt_hl iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack ip_tables x_tables usb_storage hid_generic hid_logitech_dj ctr ccm rfcomm bnep binfmt_misc snd_hda_codec_hdmi snd_hda_codec_realtek intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm uvcvideo videobuf2_vmalloc snd_hda_intel videobuf2_memops btusb videobuf2_core arc4 snd_hda_codec joydev thinkpad_acpi serio_raw snd_hwdep videodev wacom bluetooth nvram iwldvm snd_pcm mac80211 snd_page_alloc snd_seq_midi snd_seq_midi_event iwlwifi snd_rawmidi snd_seq lpc_ich nls_iso8859_1 snd_seq_device cfg80211 snd_timer snd soundcore mei_me mac_hid mei parport_pc ppdev lp parport dm_crypt usbhid hid crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd i915 psmouse ahci e1000e libahci i2c_algo_bit ptp sdhci_pci sdhci drm_kms_helper pps_core drm wmi video
[110652.405627] CPU: 2 PID: 1381 Comm: Xorg Tainted: G        W     3.13.0-36-generic #63-Ubuntu
[110652.405630] Hardware name: LENOVO 3437B52/3437B52, BIOS GCET95WW (2.55 ) 08/05/2013
[110652.405632]  0000000000000009 ffff880210f738a8 ffffffff8171e569 ffff880210f738f0
[110652.405639]  ffff880210f738e0 ffffffff8106775d ffff880035f046e0 ffff880210f73970
[110652.405646]  ffff88020c805800 ffff880035f04000 ffff88020c805b28 ffff880210f73940
[110652.405653] Call Trace:
[110652.405660]  [<ffffffff8171e569>] dump_stack+0x45/0x56
[110652.405666]  [<ffffffff8106775d>] warn_slowpath_common+0x7d/0xa0
[110652.405672]  [<ffffffff810677cc>] warn_slowpath_fmt+0x4c/0x50
[110652.405700]  [<ffffffffa014d23b>] ? intel_pipe_config_compare+0x60b/0xae0 [i915]
[110652.405725]  [<ffffffffa014ea55>] check_crtc_state+0x255/0x340 [i915]
[110652.405753]  [<ffffffffa015c15b>] intel_modeset_check_state+0x2bb/0x780 [i915]
[110652.405777]  [<ffffffffa015c6b5>] intel_set_mode+0x25/0x30 [i915]
[110652.405801]  [<ffffffffa015cf5b>] intel_crtc_set_config+0x7ab/0x9a0 [i915]
[110652.405827]  [<ffffffffa0029ebd>] drm_mode_set_config_internal+0x5d/0xe0 [drm]
[110652.405852]  [<ffffffffa002cda7>] drm_mode_setcrtc+0xf7/0x5e0 [drm]
[110652.405861]  [<ffffffff8164dff9>] ? netlink_broadcast_filtered+0x129/0x3b0
[110652.405881]  [<ffffffffa001dc22>] drm_ioctl+0x502/0x630 [drm]
[110652.405893]  [<ffffffff811d3c9c>] ? dput+0x4c/0x180
[110652.405900]  [<ffffffff811d0390>] do_vfs_ioctl+0x2e0/0x4c0
[110652.405907]  [<ffffffff811bef1e>] ? ____fput+0xe/0x10
[110652.405913]  [<ffffffff8108823c>] ? task_work_run+0xac/0xe0
[110652.405920]  [<ffffffff811d05f1>] SyS_ioctl+0x81/0xa0
[110652.405925]  [<ffffffff8172efad>] system_call_fastpath+0x1a/0x1f
[110652.405929] ---[ end trace 0da629c82eacbf7a ]---
[110652.411472] ------------[ cut here ]------------
[110652.411533] WARNING: CPU: 0 PID: 1381 at /build/buildd/linux-3.13.0/drivers/gpu/drm/i915/intel_dp.c:2747 intel_dp_link_down+0x1d2/0x210 [i915]()
[110652.411536] Modules linked in: xt_tcpudp xt_REDIRECT xt_hl iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack ip_tables x_tables usb_storage hid_generic hid_logitech_dj ctr ccm rfcomm bnep binfmt_misc snd_hda_codec_hdmi snd_hda_codec_realtek intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm uvcvideo videobuf2_vmalloc snd_hda_intel videobuf2_memops btusb videobuf2_core arc4 snd_hda_codec joydev thinkpad_acpi serio_raw snd_hwdep videodev wacom bluetooth nvram iwldvm snd_pcm mac80211 snd_page_alloc snd_seq_midi snd_seq_midi_event iwlwifi snd_rawmidi snd_seq lpc_ich nls_iso8859_1 snd_seq_device cfg80211 snd_timer snd soundcore mei_me mac_hid mei parport_pc ppdev lp parport dm_crypt usbhid hid crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd i915 psmouse ahci e1000e libahci i2c_algo_bit ptp sdhci_pci sdhci drm_kms_helper pps_core drm wmi video
[110652.411649] CPU: 0 PID: 1381 Comm: Xorg Tainted: G        W     3.13.0-36-generic #63-Ubuntu
[110652.411653] Hardware name: LENOVO 3437B52/3437B52, BIOS GCET95WW (2.55 ) 08/05/2013
[110652.411657]  0000000000000009 ffff880210f73a80 ffffffff8171e569 0000000000000000
[110652.411663]  ffff880210f73ab8 ffffffff8106775d ffff88020c8068c8 ffff88020c805800
[110652.411670]  ffff880035f04000 0000000084580304 ffff88020c404000 ffff880210f73ac8
[110652.411676] Call Trace:
[110652.411686]  [<ffffffff8171e569>] dump_stack+0x45/0x56
[110652.411694]  [<ffffffff8106775d>] warn_slowpath_common+0x7d/0xa0
[110652.411700]  [<ffffffff8106783a>] warn_slowpath_null+0x1a/0x20
[110652.411734]  [<ffffffffa0169402>] intel_dp_link_down+0x1d2/0x210 [i915]
[110652.411767]  [<ffffffffa016d770>] intel_disable_dp+0x70/0x80 [i915]
[110652.411796]  [<ffffffffa015280e>] ironlake_crtc_disable+0x1ae/0x940 [i915]
[110652.411805]  [<ffffffff81614274>] ? consume_skb+0x34/0x80
[110652.411834]  [<ffffffffa0159459>] __intel_set_mode+0x2c9/0x9d0 [i915]
[110652.411863]  [<ffffffffa015c6a6>] intel_set_mode+0x16/0x30 [i915]
[110652.411890]  [<ffffffffa015cf5b>] intel_crtc_set_config+0x7ab/0x9a0 [i915]
[110652.411921]  [<ffffffffa0029ebd>] drm_mode_set_config_internal+0x5d/0xe0 [drm]
[110652.411948]  [<ffffffffa002cda7>] drm_mode_setcrtc+0xf7/0x5e0 [drm]
[110652.411969]  [<ffffffffa001dc22>] drm_ioctl+0x502/0x630 [drm]
[110652.411982]  [<ffffffff8108ea92>] ? __hrtimer_start_range_ns+0x1a2/0x3a0
[110652.411991]  [<ffffffff811d0390>] do_vfs_ioctl+0x2e0/0x4c0
[110652.411998]  [<ffffffff8160b2b5>] ? __sys_recvmsg+0x65/0x80
[110652.412005]  [<ffffffff811d05f1>] SyS_ioctl+0x81/0xa0
[110652.412012]  [<ffffffff8172efad>] system_call_fastpath+0x1a/0x1f
[110652.412016] ---[ end trace 0da629c82eacbf7b ]---
[110652.793723] thinkpad_acpi: EC reports that Thermal Table has changed
[110652.897172] thinkpad_acpi: undocked from hotplug port replicator
[110652.898134] ACPI: \_SB_.GDCK: undocking

$ sudo dmidecode -s bios-version ; sudo dmidecode -s bios-release-date
GCET95WW (2.55 )
08/05/2013

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1308674

Title:
  [Lenovo ThinkPad X220] kernel 3.13 i915 brightness settings broken
  when going from docked -> undocked

Status in The Linux Kernel:
  New
Status in “linux” package in Ubuntu:
  Incomplete
Status in “linux” package in Fedora:
  Unknown

Bug description:
  This happens on my X220, running trusty, linux 3.13.0-24-generic. It's
  the exact same problem discussed on
  https://bugzilla.redhat.com/show_bug.cgi?id=1067071. Discussed also on
  kernel mailing list: https://lkml.org/lkml/2014/2/19/720. It worked on
  3.12, and upstream acknowledges the regression.

  To reproduce, remove the X220 from the dock. The brightness is set to
  minimum (the screen is nearly unreadable) and the brightness control
  is broken, you can't adjust it by hardware keys.

  My hardware:
  00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller])
   Subsystem: Lenovo Device 21da
   Kernel driver in use: i915
  Docked on a ThinkPad mini dock series 3.

  I have nothing much relevant in /var/log/syslog. Below there are
  excerpts of it when brightness is working:

  Apr 16 14:55:37 galactica kernel: [79261.217384] [drm:asle_set_backlight], bclp = 0x800000ff
  Apr 16 14:55:37 galactica kernel: [79261.217390] [drm:asle_set_backlight], updating opregion backlight 255/255
  Apr 16 14:55:37 galactica kernel: [79261.217394] [drm:intel_panel_get_max_backlight], max backlight PWM = 4648
  Apr 16 14:55:37 galactica kernel: [79261.217396] [drm:intel_panel_actually_set_backlight], set backlight PWM = 4590
  Apr 16 14:55:37 galactica kernel: [79261.217537] [drm:asle_set_pwm_freq], PWM freq is not supported

  And brightness not working:

  Apr 16 15:23:46 galactica kernel: [80948.263160] [drm:asle_set_backlight], bclp = 0x80000058
  Apr 16 15:23:46 galactica kernel: [80948.263168] [drm:asle_set_pwm_freq], PWM freq is not supported
  Apr 16 15:23:46 galactica kernel: [80948.280637] [drm:asle_set_backlight], bclp = 0x80000041
  Apr 16 15:23:46 galactica kernel: [80948.280642] [drm:asle_set_pwm_freq], PWM freq is not supported

  A workaround is to echo values directly to /sys/class/backlight/intel_backlight/brightness. Maximum brightness is 4648 (/sys/class/backlight/intel_backlight/max_brightness).
  e.g.: # echo 500 > /sys/class/backlight/intel_backlight/brightness

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: linux-image-3.13.0-24-generic 3.13.0-24.46
  ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9
  Uname: Linux 3.13.0-24-generic i686
  ApportVersion: 2.14.1-0ubuntu2
  Architecture: i386
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC1:  ursula     3881 F.... pulseaudio
   /dev/snd/controlC0:  ursula     3881 F.... pulseaudio
  CurrentDesktop: Unity
  Date: Wed Apr 16 15:09:23 2014
  HibernationDevice: RESUME=UUID=68890e28-0eee-4184-9456-cc267c4a5f31
  InstallationDate: Installed on 2013-05-27 (323 days ago)
  InstallationMedia: Ubuntu 12.04.2 LTS "Precise Pangolin" - Release i386 (20130213)
  MachineType: LENOVO 4286CTO
  ProcFB: 0 inteldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-24-generic root=UUID=4db5451d-c250-47bc-9c4e-235fb1967ee5 ro quiet splash vt.handoff=7
  RelatedPackageVersions:
   linux-restricted-modules-3.13.0-24-generic N/A
   linux-backports-modules-3.13.0-24-generic  N/A
   linux-firmware                             1.127
  SourcePackage: linux
  UpgradeStatus: Upgraded to trusty on 2013-11-04 (162 days ago)
  dmi.bios.date: 12/01/2011
  dmi.bios.vendor: LENOVO
  dmi.bios.version: 8DET56WW (1.26 )
  dmi.board.asset.tag: Not Available
  dmi.board.name: 4286CTO
  dmi.board.vendor: LENOVO
  dmi.board.version: Not Available
  dmi.chassis.asset.tag: No Asset Information
  dmi.chassis.type: 10
  dmi.chassis.vendor: LENOVO
  dmi.chassis.version: Not Available
  dmi.modalias: dmi:bvnLENOVO:bvr8DET56WW(1.26):bd12/01/2011:svnLENOVO:pn4286CTO:pvrThinkPadX220:rvnLENOVO:rn4286CTO:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
  dmi.product.name: 4286CTO
  dmi.product.version: ThinkPad X220
  dmi.sys.vendor: LENOVO

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/1308674/+subscriptions


References