Bug 117641 - on Yoga 3, hid_sensor_hub very often freezes the system during cold boots (but not on reboots)
Summary: on Yoga 3, hid_sensor_hub very often freezes the system during cold boots (bu...
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Platform_x86 (show other bugs)
Hardware: Intel Linux
: P1 high
Assignee: drivers_platform_x86@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-05 08:27 UTC by Alberto Pianon
Modified: 2016-06-13 19:42 UTC (History)
1 user (show)

See Also:
Kernel Version: 4.4.0
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Alberto Pianon 2016-05-05 08:27:35 UTC
I have a Lenovo Yoga 3 11  (product code 80J8001YGE, based on Intel Core M-5Y10c)

Up to kernel 4.2 (tried with Ubuntu 15.10) there were no problems at boot time, but the accelerometer module did not work (in_accel_x_raw, in_accel_y_raw and in_accel_z_raw always returned a fixed value).

Since kernel 4.4 (I'm using Ubuntu 16.04) accelerometer does work, but the system randomly (not always) freezes at boot time, but only on cold boots - if I (finally) manage to do a cold boot, then all subsequent reboots give no problems. 

I have found a workaround by blacklisting hid_sensor_hub module (I have no cold boot problems any more), and by loading such module through a bash script only after a reboot (see my scripts and the README file at https://github.com/alpianon/screenrotation)

With such script, I load the module only after a reboot and only when lightdm service is started; if I load it before, very often the dependent kernel modules (hid_sensor_als,
hid_sensor_gyro_3d, hid_sensor_rotation, hid_sensor_magn_3d, hid_sensor_accel_3d, hid_sensor_incl_3d) are not loaded (so the accelerometer does not work).

I tried to find some information on syslog, but apparently when the system freezes on cold boots, no log entry is saved in syslog (as if the boot never happened).
Comment 1 Alberto Pianon 2016-06-13 19:42:51 UTC
just to be sure, I tried with win8, automatic screen rotation works correctly and system never freezes, so it is a kernel problem

Note You need to log in before you can comment on or make changes to this bug.