-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working on Yoga 2 13 (non-pro) #30
Comments
It looks as if you have a different sensor from the Yoga 2 Pro. Some sensors have glitches that require patches in the kernel. The most modern kernels have the most patches so updating your kernel if possible is a good first step. If that doesn't work, the next step would be to figure out which sensor hub you do have. |
This is the output of lsusb for the sensor package: Bus 002 Device 007: ID 048d:8350 Integrated Technology Express, Inc. Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x048d Integrated Technology Express, Inc. idProduct 0x8350 bcdDevice 10.10 iManufacturer 1 ITE Tech. Inc. iProduct 2 ITE Device(8350) iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 34 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xa0 (Bus Powered) Remote Wakeup MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass 3 Human Interface Device bInterfaceSubClass 0 No Subclass bInterfaceProtocol 0 None iInterface 0 HID Device Descriptor: bLength 9 bDescriptorType 33 bcdHID 1.10 bCountryCode 0 Not supported bNumDescriptors 1 bDescriptorType 34 Report wDescriptorLength 2913 Report Descriptors: ** UNAVAILABLE ** Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 1 Device Status: 0x0000 (Bus Powered) It seems that this sensor is the same as in the ThinkPad 8. I installed mainline Kernel 3.18.1, but it still produces the same behaviour. |
To make this work someone with both the hardware and knowledge of what is going on is going to have to take a look. |
Hi. Do we have always any solution for this trouble ? None value of sensors have been updated for : |
Bumping this: I do have the hardware but not knowledge, would it be enough? :) Sensors values are moving for rotation at least on Kernel 4.2.0-1 in Thanks! |
For me, the quaternion worked fine at the 4.1 but not on the 4.2 At this day, none iio:device is working. The value stay the same, and are updated only at boot. |
I patched kernel 4.3 to support yoga 3 14 and yoga 2 11. |
@guilhem Thx for your initial patch. The Yoga 2 13 has a different USB ID. At least, on my box it is different.
So I added another quirk and tested. Works perfect now. :-) I've submitted the patch upstream. Meanwhile, if more people want try, following is the patch.
|
@bagage If you are in /sys/bus/iio/devices you can just do idefix devices> sudo cat iio:device_/__accel*raw If you tilt your screen and try again you should see different values. If you don't, then something has gone wrong. The mostly likely culprit is a missing quirk. |
@rickysarraf I tried your patch by recompiling kernel 4.3.0 rc2, but unfortunately it does not change anything on my Yoga 2 13 (same usb id) - are you using this kernel as well? If so, which config did you use to generate it? Could you provide it to me? @pfps Thanks for these informations! I know what must be done now, hopefully @rickysarraf 's patch will solve soon. Great work here 👍 . |
The patch should be applied on top of Guilhem's patch, which is already
|
Attaching file. |
@rickysarraf thanks for sharing your |
@bagage Good to know that it worked for you too. Since you have the same variant of the machine, could you please help me with some of the other issues that I've run through. Perhaps you may run through my blog post and let me know if you ran into those problems, and if so, if you've worked around it? |
To everyone else on this bug report: The Yoga 2 13 also has a variant with a rotational drive. Now that the sensors can feed the data, how about feeding this data into hdapsd, to park the head ? I looked into hdapsd source and thought of feeding the same. The only catch is hdapsd, on what thresholds it uses to decide parking the head. THe WD Rotational drive that comes with this variant by default has a very aggressive head parking algorithm. In summary, it parks the head at 4 seconds idle time, which can lead to very aggressive Load Cycle Count. But given the use case of this hybrid laptop, it does make sense to use an aggressive head parking logic. I think the ideal override would be to increase the head park time to something like 15 secs, and instead let the sensors feed in the data, to park the head. Sorry, if I'm hijacking this issue. |
@rickysarraf: I read your blog, nice summary of yoga 2 13" issues ;). I personally only had to fix wifi issue as you stated using |
Hi, |
On Sat, 2015-10-31 at 08:38 -0700, Vito Ammirata wrote:
THe hope was that it'll make into 4.3. But it did not (it went late). It is queued, for 4.4. Ritesh Raj Sarraf |
I know it, but the same steps in Kubuntu 15.04 with 4.2 linux kernel work fine. Why it don't works in 15.10? |
On Sat, 2015-10-31 at 10:48 -0700, Vito Ammirata wrote:
I don't know what to answer, let alone the fact that both the patches Ritesh Raj Sarraf |
On Mon, 2015-11-02 at 23:15 +0530, Ritesh Raj Sarraf wrote:
There may be some more changes that rolled up in 4.3 which has Last I had checked was, when preparing the patch, on 4.3 rc4, where it For now, I'm back to 4.2.5, but will look at it when time permits. Ritesh Raj Sarraf |
@guilhem Does 4.3 final release work for you? Looks like something got broken in between ? |
Sorry for the noise. The issue was with a stale build. Linux kernel 4.3 works perfect with the patches. |
Can you post the kernel config file for Linux kernel 4.3? What is your linux distribution? |
Here you go: https://gist.github.com/rickysarraf/f5137c57585eb3d7ce83 Distro is Debian. But kernel is obviously rolled by me. |
thanks you, |
JFTR: the patches are now completely part of Linux 4.4, which means with 4.4 you will not have to patch anything. |
Hi, In my system lsusb reports exactly the same ITE 8350 as in people above with Yoga. idVendor 0x048d Integrated Technology Express, Inc. Any ideas....? Should i patch the recent 4.4.0.23 kernel to try...? |
Hmm. I don't know why it isn't working on Ubuntu. I haven't been having I don't think that patching is necessary any more, but I run Fedora so I don't peter On 06/02/2016 07:15 AM, gevasiliou wrote:
|
@gevasiliou It depends on how Ubuntu has implemented it. On Debian, under GNOME, it works perfect. |
Thank you guys for your feedback. Maybe i have to try another DE (i.e to replace built in Unity with Gnome) to see how it will go or could swtich distro to Debian + Gnome. From my side (in case that anyone with Ubuntu 16.04 , kernel 4.4.0.23.41 & Unity is following) i can confirm that accelerator raw data in "/sys/bus/iio/devices/iio:device0/in_accel_x_raw" come and refresh (probably) correctly (ITE 8350 is either assigned to device0 or device1 - changes after every reboot), i can see my ITE 8350 device with $lsusb, i can see the corresponding hid modules with $lsmod and $modinfo, i can see with $dmesg that this device is recognized, so theoritically everything is there and should be working! |
On Fri, 2016-06-03 at 04:08 -0700, gevasiliou wrote:
GNOME added the support in 3.18, under Xorg. Maybe Ubuntu's Unity doesn't have Ritesh Raj Sarraf |
I will try to remove Unity and install Gnome 3.18, but as i can see around, this could be a headache , leading to instability.... Maybe fresh install is better. |
On Fri, 2016-06-03 at 08:28 -0700, gevasiliou wrote:
Since you intend to go through the pain, why not try it on something others have For me, Debian + GNOME works For Peter, Fedora works. I'm guessing he too is on GNOME. So you could try either ones. Just make sure to use the latest Fedora (24) or Ritesh Raj Sarraf |
I'm on Fedora with XFCE (not XKCD which I initially typed). peter On 06/03/2016 09:13 AM, Ritesh Raj Sarraf wrote:
|
Yeah, why not... Pain is my middle name! LoL :-) |
Hello, PS1: By the way, rest Gnome features needed to work my laptop as a tablet, seems not to function as well as did Unity (i.e gnome screen keyboard sucks, touchscreen click response is moderate, etc - still working on these issues). But in any case, screen rotation works perfectly with Gnome 3.18. PS2: I was not able to install Debian 8.4 + Gnome... For some reason, my usb stick was not "auto booting" when equipped with Debian 8.4 iso image. The same usb stick boot correctly with Ubuntu + Gnome iso image (in both cases, Rufus was used). |
On Tue, 2016-06-07 at 01:27 -0700, gevasiliou wrote:
I am glad it worked for you. I'm curious about Unity because it is not available On the keyboard front, Yes, I have to agree. That's why I use onboard. It should
|
As a general idea, touch events work great in Unity. On the other hand I have to admit that Gnome3 is an impressive DE and is quite customizable with the gnome extensions. In any case i suppose as long as i go further with Gnome3 i will find pros and cons. FireFox sucks in both cases (touch support is terrible - no zoom in / zoom out, no scrolling). Chromium on Gnome for some reason doesn't support onboard keyboard (!) and this is problem. Application switching in Unity seems a bit easier than Gnome (one click actions = one touch actions), but Gnome Dash and Overview is a great nice looking tool and combined with the dash to dock extension makes the whole experience much better. In any case, i will keep testing and customizing... |
Hello, |
The automatic screen rotation is done by the wm. In case of gnome, mutter sent fr0m a $martph0nè, excuse typ0s Hello, — |
Hm.... This is interesting. PS: I'm just curious Peter (pfps) who confirmed that iio-sensor-proxy works ok for him under Fedora + XFCE, which WM is using. |
On Mon, 2016-07-04 at 03:30 -0700, gevasiliou wrote:
The good news is that Mutter will now support it under Wayland too. :-) Ritesh Raj Sarraf |
As expected, iio-sensor-proxy programmer replied that if sensor proxy doesn't work under xfce then it is an xfce problem since they do not make use of the provided sensor proxy api. Makes sense. |
I don't see that the WM would matter here. There are three main causes of failure. First, the sensor interface might not Running the program with --debug 4 should help to find out what is going on. You can run xrandr and xinput directly to see if they work. peter On 07/04/2016 04:13 AM, gevasiliou wrote:
|
Thanks Peter for the reply. iio-sensor-proxy.service is loaded (i also tried systemctl stop and start in sequence), output of the #monitor-sensor is correct. I tend to believe that it could be just xfce who is not making use of this sensor-proxy api as sensor-proxy programmer advised. Theoritically, somebody has to look at iio-sensor-proxy api, and rotate the screen. In your case maybe Fedora takes care for screen rotation. |
Hello, I have raised a question to xfce people to see if this issue is familiar to them. By the way i was capable to achieve auto rotation under xfce by modifying this script which is based on iio-sensor-proxy: http://linuxappfinder.com/blog/auto_screen_rotation_in_ubuntu But i'm curious to know if screen auto rotation is natively supported on xfce , like in Gnome 3.18 PS: I just noticed that Qt5.7 also supports iio-sensor-proxy, but i'm not sure what Qt5 it is (a DE or a WM or both). |
Using
generic_buffer -c 10 -n als
will only output one result at a time when executing cat on in_intensity_both_raw. Same forgeneric_buffer -c 10 -n gyro3d
. No matter how I am tilting my device I allways get the same values back. "lsusb" is not giving me any device with Id 2047:0855. Also I can't find a device with iManufacturer Invensense or iInterface HID SensorInterface.
The text was updated successfully, but these errors were encountered: