Welcome to our peer-to-peer forums, where owners help owners. Need help now? Visit eSupport here.

English Community

Lenovo NotebooksLenovo IdeaPad 1xx, 3xx, 5xx & 7xx, Edge, LaVie Z, Flex Notebooks
All Forum Topics
Options

7 Posts

05-07-2020

Germany

8 Signins

110 Page Views

  • Posts: 7
  • Registered: ‎05-07-2020
  • Location: Germany
  • Views: 110
  • Message 1 of 9

IdeaPad Flex 5, Ryzen 4700, Sensors for automatic screen rotation

2020-06-14, 16:32 PM

Hi,

 

I bought this convertible/laptop and wonder, whether it is able to detect itself, if it should switsch to landscape or portrait mode.

 

First of all, I have to mention, that this is a fantastic convertible for Linux users. The only things, that are not working are the fingerprint-sensor (I don't need ..) and the sensors, to detect its screen orientation automatically (I would like to have ;-) ).

 

When I run as root:

 

# `G_MESSAGES_DEBUG=all /usr/sbin/iio-sensor-proxy **

 

I receive the message:

 

(process:6201): DEBUG: 11:05:21.597: No sensors or missing kernel drivers for the sensors`

 

And since I directly removed Windows, I have no glue, whether there are only no drivers available, or if maybe there are no sensors at all ..

 

Is there anyone here, who can answer this question or who could give me a hint, where to look for this feature?

 

Kind regards,

 

Reply
Options

4 Posts

07-17-2020

Korea (the Republic of)

7 Signins

135 Page Views

  • Posts: 4
  • Registered: ‎07-17-2020
  • Location: Korea (the Republic of)
  • Views: 135
  • Message 2 of 9

Re:IdeaPad Flex 5, Ryzen 4700, Sensors for automatic screen rotation

2020-07-17, 9:04 AM

I know the current kernel doesn't support Lenovo Ideapad Flex5 14are05 and the accelerometer sensor of Lenovo Ideapad Flex5 14ARE is AMD SFH(Sensor Fusion Hub).

 

According to news, the kernel might be supposed to support it from 5.9 version. if you want to use it on current kernel(v5.7.x later), you should patch kernel by linux-sfh patches from 

https://patchwork.kernel.org/project/linux-iio/list/?submitter=175589.

 

After patching and compiling kernel, you can load linux-sfh modules with amd-mp2-pcie and amd-sfhtp-hid.

 

Run monitor-sensor,  and then run iio-sensor-proxy,  you will see "Has accelerometer (orientation: undefined)" message at monitor-sensor.

 

Unfortunately, here is a problem that the sensor does not recognize the rotation value. 

 

I am currently looking for a rotation value to be applied.

 

if you can do, let me know it. 

 

Good luck!!!

 

 

 

Reply
Options

4 Posts

07-17-2020

Korea (the Republic of)

7 Signins

135 Page Views

  • Posts: 4
  • Registered: ‎07-17-2020
  • Location: Korea (the Republic of)
  • Views: 135
  • Message 3 of 9

Re:IdeaPad Flex 5, Ryzen 4700, Sensors for automatic screen rotation

2020-07-20, 8:12 AM

I've been thinking about the problem of not being able to detect the value of the axis of rotation for a few days, but I think it has to do with the folding of the touch screen.

 

in iio-sensor-proxy issues( https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/-/issues/309 ), it is considered as a driver bug. I know it works well on the hp envy x360(use same amd sfh). 

 

 

I'm not sure what's the difference between the hp envy x360 and Lenovo flex5 14ARE, but the flex5 won't also rotate the screen in Windows 10 when not in tablet mode or tend mode.

 

 

If it doesn't support tablet mode switching, I think it can't detect rotation in iio-sensor-proxy.

 

Can someone help with this?

 

Reply
Options

2 Posts

12-26-2020

United States of America

2 Signins

5 Page Views

  • Posts: 2
  • Registered: ‎12-26-2020
  • Location: United States of America
  • Views: 5
  • Message 4 of 9

Re:IdeaPad Flex 5, Ryzen 4700, Sensors for automatic screen rotation

2020-12-26, 7:12 AM

Hi! This is a bit of a thread necro, but I figured I would reply in case someone else came across this (post seems to have high SEO placement). I'm a total linux noob, but I've been dealing with this lack of automatic screen rotation for months.

 

According to Phoronix, the AMD sensor fusion hub (SFH) driver is due to come out in Linux kernel 5.11. The driver has been pushed back and delayed several times even though it was originally introduced in January of 2020. If you're reading this in the future, hopefully you have access to mainline 5.11 and it's stable enough for daily use.

 

The original article from Phoronix can be read here: https://www.phoronix.com/scan.php?page=news_item&px=AMD-SFH-For-Linux-5.11 

Reply
Options

7 Posts

05-07-2020

Germany

8 Signins

110 Page Views

  • Posts: 7
  • Registered: ‎05-07-2020
  • Location: Germany
  • Views: 110
  • Message 5 of 9

Re:IdeaPad Flex 5, Ryzen 4700, Sensors for automatic screen rotation

2020-12-26, 18:28 PM

Thanx for the hint! Well .. maybe more a driver- than a thread necro ;-)

 

Even though it is very welcome that the drivers are going to be delivered with 5.11, Phoronix is announcing that we will face issues with 5.11 due to problems with Schedutil: Linux 5.11 Is Regressing Hard For AMD Performance With Schedutil :-(

 

Let's see, what 2021 will deliver ..

Reply
Options

2 Posts

12-26-2020

United States of America

2 Signins

5 Page Views

  • Posts: 2
  • Registered: ‎12-26-2020
  • Location: United States of America
  • Views: 5
  • Message 6 of 9

Re:IdeaPad Flex 5, Ryzen 4700, Sensors for automatic screen rotation

2021-03-31, 4:47 AM

Well, the promised day is arriving (sorry for continued thread necro). I've been monitoring this for the last year or so and Linux 5.11 is getting into more distros (especially with Ubuntu 21.04 due to release in the next few weeks). I'm using Pop!_OS 20.10 which just had 5.11 support added to it today. After updating, Gnome is now able to display the "Lock Screen Rotation" option in settings and seems to be recognizing that something is there, although there's still no luck on actual screen rotation occurring. It appears that the accelerometer  is exposed in iio-sensor-proxy, but I'm not sure what more to do with the information. Best of luck to those smarter than me in finding a solution for this!

Reply
Options

7 Posts

05-07-2020

Germany

8 Signins

110 Page Views

  • Posts: 7
  • Registered: ‎05-07-2020
  • Location: Germany
  • Views: 110
  • Message 7 of 9

Re:IdeaPad Flex 5, Ryzen 4700, Sensors for automatic screen rotation

2021-03-31, 5:38 AM

Hi yeti-hunter,

 

thank you for reactivating this necro thread! Well, the topic is still up to date - unfortunately.

 

Since I am using an Arch based Linux distribution, I have installed the 5.11 kernel for a while.

 

I am using the command "monitor-sensor". But as you said, the orientation is not detected:

 

┌─[name@host] - [~] - [2021-03-31 07:24:56]
└─[0] monitor-sensor
    Waiting for iio-sensor-proxy to appear
+++ iio-sensor-proxy appeared
=== Has accelerometer (orientation: undefined)
=== No ambient light sensor
=== No proximity sensor

 

independently, wether one rotates the ideapd, in laptop mode as well as in tablett mode.

 

:-(

 

It would be very nice, if Lenovo could give us a helping hand ;-)

 

Best regards,

 

Reply
Options

7 Posts

05-07-2020

Germany

8 Signins

110 Page Views

  • Posts: 7
  • Registered: ‎05-07-2020
  • Location: Germany
  • Views: 110
  • Message 8 of 9

Re:IdeaPad Flex 5, Ryzen 4700, Sensors for automatic screen rotation

2021-03-31, 6:26 AM

Wow, no! There is progress! :-))

 

 

According to this thread on gitlab.freedesktop.org I compiled

 

make -C tools/iio

 

from

 

https://git.kernel.org/pub/scm/linux/kernel/git/hid

 

and started

 

sudo ./tools/iio/iio_generic_buffer --device-num 0

 

and still received an error. But when I accidentially rerunned this command again, I received

 

┌─[user@host] - [somewhere in my directory tree ..] - [2021-03-31 08:20:18]
└─[0] sudo ./tools/iio/iio_generic_buffer --device-num 0
iio device number being used is 0
iio trigger number being used is 0
/sys/bus/iio/devices/iio:device0 accel_3d-dev0
514284.375000 816214.562500 816227.125000 1617171622643316271
514284.375000 816214.562500 816227.125000 1617171622643343858
0.000000 0.000000 0.000000 1617171622645992658
0.000000 0.000000 0.000000 1617171622849406812
0.000000 0.000000 0.000000 1617171623052680166

 

.. and the display rotated immediately upside-down, since I changed it beforehand without any consequences ;-)

 

Rotating it back to normal worked as expected. So, at least rmanual otation of the screen works perfectly via the settings-tool :-)

 

It would be great, if someone could check out, how to get the roation automated :-)

 

Best regards,

 

Reply
Options

1 Posts

04-22-2021

India

1 Signins

0 Page Views

  • Posts: 1
  • Registered: ‎04-22-2021
  • Location: India
  • Views: 0
  • Message 9 of 9

Re:IdeaPad Flex 5, Ryzen 4700, Sensors for automatic screen rotation

2021-04-22, 17:21 PM

@ Paul Kraut wrote:

 

.. and the display rotated immediately upside-down, since I changed it beforehand without any consequences ;-)

 

I also tried the same but display didn't rotate for me. I am using fedora 33. Hopefully it improves in 5.12.
Any hack or method to make it work till then?

Reply
Forum Home

Community Guidelines

Please review our Guidelines before posting.

Learn More

Check out current deals!

Go Shop
X

Save

X

Delete

X

No, I don’t want to share ideas Yes, I agree to these terms