Error initialising accelerometer DUAL250E

Bug #1588035 reported by Phill
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

I'm fairly certain that the DUAL250E is the accelerometer on the Lenovo Yoga 300-11/BY.

I suspect there are two, one in the lid and one in the base, and they are needed to trigger auto rotate and disable the keyboard and touchpad in tablet mode. Without them these functions may be impossible.

Note that some people reported the lid giving off key codes for similar Lenovo tablets but that does not appear to be the case with this one running my current software. Not sure if this is relevant to the bug but I didn't want to dismiss the idea out of hand.

The expected functionality would of course be to perform auto-rotate and disable the keyboard/touchpad, but at this stage I'd settle for the accelerometer being usable as I understand this is not yet unplemented.

I trust ubuntu-bug attached the appropriate information, but here is the kern.log output just in case...

Jun 1 01:12:47 yoga kernel: [ 15.706616] WARNING: CPU: 0 PID: 431 at /build/linux-FvcHlK/linux-4.4.0/fs/sysfs/dir.c:31 sysfs_warn_dup+0x62/0x80()
Jun 1 01:12:47 yoga kernel: [ 15.706618] sysfs: cannot create duplicate filename '/bus/i2c/devices/i2c-DUAL250E:00'
Jun 1 01:12:47 yoga kernel: [ 15.706621] Modules linked in: soundcore snd_soc_sst_acpi rfkill_gpio intel_smartconnect i2c_designware_platform(+) i2c_designware_core 8250_dw spi_pxa2xx_platform pwm_lpss_platform pwm_lpss mac_hid parport_pc ppdev lp parport autofs4 drbg ansi_cprng xts gf128mul algif_skcipher af_alg dm_crypt rtsx_usb_sdmmc rtsx_usb mmc_block crct10dif_pclmul crc32_pclmul cryptd i915 psmouse i2c_algo_bit r8169 drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops mii drm wmi video fjes i2c_hid sdhci_acpi hid sdhci
Jun 1 01:12:47 yoga kernel: [ 15.706662] CPU: 0 PID: 431 Comm: systemd-udevd Not tainted 4.4.0-22-generic #40-Ubuntu
Jun 1 01:12:47 yoga kernel: [ 15.706664] Hardware name: LENOVO 80M0/Mini, BIOS C0CN25WW 04/21/2015
Jun 1 01:12:47 yoga kernel: [ 15.706667] 0000000000000286 000000009354a6dc ffff88003e8ef720 ffffffff813e9c53
Jun 1 01:12:47 yoga kernel: [ 15.706672] ffff88003e8ef768 ffffffff81cd8b10 ffff88003e8ef758 ffffffff81080fb2
Jun 1 01:12:47 yoga kernel: [ 15.706675] ffff88003eaf4000 ffff88003fb04bc0 ffff880074e66d20 ffff880074e66d20
Jun 1 01:12:47 yoga kernel: [ 15.706679] Call Trace:
Jun 1 01:12:47 yoga kernel: [ 15.706687] [<ffffffff813e9c53>] dump_stack+0x63/0x90
Jun 1 01:12:47 yoga kernel: [ 15.706692] [<ffffffff81080fb2>] warn_slowpath_common+0x82/0xc0
Jun 1 01:12:47 yoga kernel: [ 15.706696] [<ffffffff8108104c>] warn_slowpath_fmt+0x5c/0x80
Jun 1 01:12:47 yoga kernel: [ 15.706699] [<ffffffff8128ce82>] sysfs_warn_dup+0x62/0x80
Jun 1 01:12:47 yoga kernel: [ 15.706703] [<ffffffff8128d20e>] sysfs_do_create_link_sd.isra.2+0x9e/0xb0
Jun 1 01:12:47 yoga kernel: [ 15.706707] [<ffffffff8128d245>] sysfs_create_link+0x25/0x40
Jun 1 01:12:47 yoga kernel: [ 15.706711] [<ffffffff8154b4fd>] bus_add_device+0x10d/0x1f0
Jun 1 01:12:47 yoga kernel: [ 15.706715] [<ffffffff8154915e>] device_add+0x39e/0x680
Jun 1 01:12:47 yoga kernel: [ 15.706718] [<ffffffff8154945a>] device_register+0x1a/0x20
Jun 1 01:12:47 yoga kernel: [ 15.706722] [<ffffffff8167d1ae>] i2c_new_device+0x18e/0x230
Jun 1 01:12:47 yoga kernel: [ 15.706725] [<ffffffff8167d7f0>] acpi_i2c_add_device+0x1a0/0x210
Jun 1 01:12:47 yoga kernel: [ 15.706730] [<ffffffff8149ff44>] acpi_ns_walk_namespace+0xe1/0x193
Jun 1 01:12:47 yoga kernel: [ 15.706734] [<ffffffff8167d650>] ? i2c_sysfs_new_device+0x280/0x280
Jun 1 01:12:47 yoga kernel: [ 15.706737] [<ffffffff8167d650>] ? i2c_sysfs_new_device+0x280/0x280
Jun 1 01:12:47 yoga kernel: [ 15.706740] [<ffffffff814a0477>] acpi_walk_namespace+0x9c/0xd0
Jun 1 01:12:47 yoga kernel: [ 15.706743] [<ffffffff8167dba0>] i2c_register_adapter+0x340/0x480
Jun 1 01:12:47 yoga kernel: [ 15.706746] [<ffffffff8167dd3c>] i2c_add_adapter+0x5c/0x70
Jun 1 01:12:47 yoga kernel: [ 15.706750] [<ffffffff8167ddc8>] i2c_add_numbered_adapter+0x78/0x80
Jun 1 01:12:47 yoga kernel: [ 15.706756] [<ffffffffc0309657>] i2c_dw_probe+0x117/0x180 [i2c_designware_core]
Jun 1 01:12:47 yoga kernel: [ 15.706762] [<ffffffffc031b494>] dw_i2c_plat_probe+0x1d4/0x410 [i2c_designware_platform]
Jun 1 01:12:47 yoga kernel: [ 15.706766] [<ffffffff8154e8eb>] platform_drv_probe+0x3b/0xa0
Jun 1 01:12:47 yoga kernel: [ 15.706769] [<ffffffff8154c6e2>] driver_probe_device+0x222/0x4a0
Jun 1 01:12:47 yoga kernel: [ 15.706772] [<ffffffff8154c9e4>] __driver_attach+0x84/0x90
Jun 1 01:12:47 yoga kernel: [ 15.706776] [<ffffffff8154c960>] ? driver_probe_device+0x4a0/0x4a0
Jun 1 01:12:47 yoga kernel: [ 15.706779] [<ffffffff8154a30c>] bus_for_each_dev+0x6c/0xc0
Jun 1 01:12:47 yoga kernel: [ 15.706782] [<ffffffff8154be9e>] driver_attach+0x1e/0x20
Jun 1 01:12:47 yoga kernel: [ 15.706785] [<ffffffff8154b9db>] bus_add_driver+0x1eb/0x280
Jun 1 01:12:47 yoga kernel: [ 15.706788] [<ffffffffc0320000>] ? 0xffffffffc0320000
Jun 1 01:12:47 yoga kernel: [ 15.706791] [<ffffffff8154d2f0>] driver_register+0x60/0xe0
Jun 1 01:12:47 yoga kernel: [ 15.706795] [<ffffffff8154e826>] __platform_driver_register+0x36/0x40
Jun 1 01:12:47 yoga kernel: [ 15.706799] [<ffffffffc0320017>] dw_i2c_init_driver+0x17/0x1000 [i2c_designware_platform]
Jun 1 01:12:47 yoga kernel: [ 15.706803] [<ffffffff81002123>] do_one_initcall+0xb3/0x200
Jun 1 01:12:47 yoga kernel: [ 15.706807] [<ffffffff811cee51>] ? __vunmap+0x91/0xe0
Jun 1 01:12:47 yoga kernel: [ 15.706812] [<ffffffff811eaf83>] ? kmem_cache_alloc_trace+0x183/0x1f0
Jun 1 01:12:47 yoga kernel: [ 15.706815] [<ffffffff811ebd7a>] ? kfree+0x13a/0x150
Jun 1 01:12:47 yoga kernel: [ 15.706820] [<ffffffff8118c233>] do_init_module+0x5f/0x1cf
Jun 1 01:12:47 yoga kernel: [ 15.706824] [<ffffffff81109e67>] load_module+0x1667/0x1c00
Jun 1 01:12:47 yoga kernel: [ 15.706827] [<ffffffff81106410>] ? __symbol_put+0x60/0x60
Jun 1 01:12:47 yoga kernel: [ 15.706832] [<ffffffff81212820>] ? kernel_read+0x50/0x80
Jun 1 01:12:47 yoga kernel: [ 15.706835] [<ffffffff8110a644>] SYSC_finit_module+0xb4/0xe0
Jun 1 01:12:47 yoga kernel: [ 15.706839] [<ffffffff8110a68e>] SyS_finit_module+0xe/0x10
Jun 1 01:12:47 yoga kernel: [ 15.706844] [<ffffffff818252f2>] entry_SYSCALL_64_fastpath+0x16/0x71
Jun 1 01:12:47 yoga kernel: [ 15.706847] ---[ end trace 4e628aef655cd072 ]---

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-image-4.4.0-22-generic 4.4.0-22.40
ProcVersionSignature: Ubuntu 4.4.0-22.40-generic 4.4.8
Uname: Linux 4.4.0-22-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: phill 2671 F.... pulseaudio
CurrentDesktop: Unity
Date: Wed Jun 1 19:51:44 2016
HibernationDevice: RESUME=UUID=77cb8394-f284-41ec-969a-74ff33be71d5
InstallationDate: Installed on 2016-05-30 (1 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
MachineType: LENOVO 80M0
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.4.0-22-generic.efi.signed root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-4.4.0-22-generic N/A
 linux-backports-modules-4.4.0-22-generic N/A
 linux-firmware 1.157
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/21/2015
dmi.bios.vendor: LENOVO
dmi.bios.version: C0CN25WW
dmi.board.asset.tag: No Asset Tag
dmi.board.name: Mini
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J33995WIN
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Lenovo YOGA 300-11IBY
dmi.modalias: dmi:bvnLENOVO:bvrC0CN25WW:bd04/21/2015:svnLENOVO:pn80M0:pvrLenovoYOGA300-11IBY:rvnLENOVO:rnMini:rvrSDK0J33995WIN:cvnLENOVO:ct10:cvrLenovoYOGA300-11IBY:
dmi.product.name: 80M0
dmi.product.version: Lenovo YOGA 300-11IBY
dmi.sys.vendor: LENOVO

Revision history for this message
Phill (phill.l) wrote :
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
Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
penalvch (penalvch) wrote :

Phill, thank you for reporting this and helping make Ubuntu better.

In order to allow additional upstream developers to examine the issue, at your earliest convenience, could you please test the latest upstream kernel available from http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=N;O=D ? Please keep in mind the following:
1) The one to test is at the very top line at the top of the page (not the daily folder).
2) The release names are irrelevant.
3) The folder time stamps aren't indicative of when the kernel actually was released upstream.
4) Install instructions are available at https://wiki.ubuntu.com/Kernel/MainlineBuilds .

If testing on your main install would be inconvenient, one may:
1) Install Ubuntu to a different partition and then test this there.
2) Backup, or clone the primary install.

If the latest kernel did not allow you to test to the issue (ex. you couldn't boot into the OS) please make a comment in your report about this, and continue to test the next most recent kernel version until you can test to the issue. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this issue is fixed in the mainline kernel, please add the following tags by clicking on the yellow circle with a black pencil icon, next to the word Tags, located at the bottom of the report description:
kernel-fixed-upstream
kernel-fixed-upstream-X.Y-rcZ

Where X, and Y are the first two numbers of the kernel version, and Z is the release candidate number if it exists.

If the mainline kernel does not fix the issue, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-X.Y-rcZ

Please note, an error to install the kernel does not fit the criteria of kernel-bug-exists-upstream.

Also, you don't need to apport-collect further unless specifically requested to do so.

Once testing of the latest upstream kernel is complete, please mark this report Status Confirmed. Please let us know your results.

Thank you for your understanding.

tags: added: bios-outdated-c0cn31ww
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Phill (phill.l)
tags: added: kernel-bug-exists-upstream kernel-bug-exists-upstream-4.7-rc2
Revision history for this message
Phill (phill.l) wrote :

Updated the BIOS, no change, kernel log reports the same error.

```
$ sudo dmidecode -s bios-version && sudo dmidecode -s bios-release-date
[sudo] password for phill:
C0CN31WW
07/30/2015
```
That was an endeavour! I should have done it before installing Ubuntu. The machine has only 32GB of eMMC storage so dual booting is out, I only has 16GB USB sticks which Windows 8.1 would crash on boot, so I was left re-flashing back to Windows then back to Ubuntu.

Let me know if you have any other suggestions.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
penalvch (penalvch)
tags: added: latest-bios-c0cn31ww
removed: bios-outdated-c0cn31ww
Revision history for this message
penalvch (penalvch) wrote :

Phill, the issue you are reporting is an upstream one. Could you please report this problem following the instructions verbatim at https://wiki.ubuntu.com/Bugs/Upstream/kernel to the appropriate mailing list (TO Wolfram Sang CC linux-i2c)?

Please provide a direct URL to your post to the mailing list when it becomes available so that it may be tracked.

Thank you for your understanding.

Changed in linux (Ubuntu):
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.