I did more debug. I found in the GNOME desktop the dbus message is correct.
When I boot up from bottom-up mode, the value of net.hadess.SensorPorxy.AccelerometerOrientation is "bottom-up", after that, I change to normal mode, I found the value is "normal". But the screen is totally revert.
I tried to use xrandr to rotate the screen.
$ xrandr --output eDP-1 --rotate inverted
Although the screen show correctly, but I found the mouse and touch screen is still keep inverted.
I thought this issue is not related to kernel, cause we could got correct value from AccelerometerProxy, I doubt the gnome-shell could handle it correctly.
I did more debug. I found in the GNOME desktop the dbus message is correct.
When I boot up from bottom-up mode, the value of net.hadess. SensorPorxy. AccelerometerOr ientation is "bottom-up", after that, I change to normal mode, I found the value is "normal". But the screen is totally revert.
I tried to use xrandr to rotate the screen.
$ xrandr --output eDP-1 --rotate inverted
Although the screen show correctly, but I found the mouse and touch screen is still keep inverted.
I thought this issue is not related to kernel, cause we could got correct value from AccelerometerProxy, I doubt the gnome-shell could handle it correctly.
Thanks!