Bug 1717712 - F30 installer screen inverted
Summary: F30 installer screen inverted
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 30
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-06 01:36 UTC by Jim Bean
Modified: 2020-02-21 01:17 UTC (History)
31 users (show)

Fixed In Version: systemd-243~rc2-1.fc31 systemd-241-14.git18dd3fb.fc30
Clone Of:
Environment:
Last Closed: 2020-02-21 01:17:48 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
screen photo (2.13 MB, image/jpeg)
2019-06-06 21:25 UTC, Jim Bean
no flags Details
hwdb drop in config file hopefully fixing this (250 bytes, patch)
2019-08-20 21:14 UTC, Hans de Goede
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Github systemd systemd pull 13378 0 None closed hwdb: add sensor location for HP ProBook4535s 2020-02-06 12:06:48 UTC

Description Jim Bean 2019-06-06 01:36:16 UTC
Description of problem:
Installing F30 from a DVD to a HP probook 4535s the installer screen is rotated 180 degrees. The mouse is also rotated
This happens when the screen to choose live or install mode appears.
Using the same DVD on a workstation, no problem.


Version-Release number of selected component (if applicable):


How reproducible:

Steps to Reproduce:
1.boot from DVD
2.wait
3.

Actual results:
rotated screen

Expected results:
normal screen

Additional info:

Comment 1 Jim Bean 2019-06-06 21:25:18 UTC
Created attachment 1578127 [details]
screen photo

Comment 2 Vendula Poncova 2019-06-12 12:56:06 UTC
It seems to be a problem with drivers. Reassigning to kernel.

Comment 3 Hans de Goede 2019-06-12 13:21:17 UTC
I believe the problem you are seeing is caused by an accelerometer in the base of the laptop which is intended for some sort of harddisk crash protection.

This accelerometer is picked by iio-sensor-proxy, which thinks it is in the display and for some reason the accelerometer is reporting the laptop is being held upside-down and therefor iio-sensor-proxy tells GNOME that the screen needs to be flipped.

To confirm this theory, please run "monitor-sensor" and copy and paste the output here.

If this output indeed shows that iio-sensor-proxy thinks the laptop is upside-down then as a workaround, after installing you can do:

sudo systemctl mask iio-sensor-proxy.service

Also please as a regular user do:

grep . /sys/class/dmi/id/* 2> /dev/null

And copy and paste the generated output here. This info will help adding a quirk for the accelerometer in your model laptop to be automatically ignored, once you've confirmed with the monitor-sensor output that this is indeed the problem.

Comment 4 Hans de Goede 2019-06-12 13:27:17 UTC
Can you please also do:

ls /sys/bus/iio/devices

And also copy and paste the output here? We also need that for the quirk.

Comment 5 Jim Bean 2019-06-14 21:26:42 UTC
[jeb2131@ool-2f115b83 ~]$ monitor-sensor
    Waiting for iio-sensor-proxy to appear
+++ iio-sensor-proxy appeared
=== Has accelerometer (orientation: bottom-up)
=== No ambient light sensor

[jeb2131@ool-2f115b83 ~]$ sudo grep . /sys/class/dmi/id/*
/sys/class/dmi/id/bios_date:03/11/2015
/sys/class/dmi/id/bios_vendor:Hewlett-Packard
/sys/class/dmi/id/bios_version:68CPC Ver. F.60
/sys/class/dmi/id/board_asset_tag:Base Board Asset Tag
/sys/class/dmi/id/board_name:168B
/sys/class/dmi/id/board_serial:00000000000000
/sys/class/dmi/id/board_vendor:Hewlett-Packard
/sys/class/dmi/id/board_version:KBC Version 32.1D
/sys/class/dmi/id/chassis_asset_tag:CNU2072GWN
/sys/class/dmi/id/chassis_serial:CNU2072GWN
/sys/class/dmi/id/chassis_type:10
/sys/class/dmi/id/chassis_vendor:Hewlett-Packard
/sys/class/dmi/id/modalias:dmi:bvnHewlett-Packard:bvr68CPCVer.F.60:bd03/11/2015:svnHewlett-Packard:pnHPProBook4535s(A7K36UT):pvrA0001C02:rvnHewlett-Packard:rn168B:rvrKBCVersion32.1D:cvnHewlett-Packard:ct10:cvr:
grep: /sys/class/dmi/id/power: Is a directory
/sys/class/dmi/id/product_family:103C_5336AN
/sys/class/dmi/id/product_name:HP ProBook 4535s (A7K36UT)
/sys/class/dmi/id/product_serial:CNU2072GWN
/sys/class/dmi/id/product_sku:A7K36UT
/sys/class/dmi/id/product_uuid:38988908-a1bf-11e0-9744-39107f191859
/sys/class/dmi/id/product_version:A0001C02
grep: /sys/class/dmi/id/subsystem: Is a directory
/sys/class/dmi/id/sys_vendor:Hewlett-Packard
/sys/class/dmi/id/uevent:MODALIAS=dmi:bvnHewlett-Packard:bvr68CPCVer.F.60:bd03/11/2015:svnHewlett-Packard:pnHPProBook4535s(A7K36UT):pvrA0001C02:rvnHewlett-Packard:rn168B:rvrKBCVersion32.1D:cvnHewlett-Packard:ct10:cvr:

[jeb2131@ool-2f115b83 ~]$ ls /sys/bus/iio/devices
ls: cannot access '/sys/bus/iio/devices': No such file or directory
[jeb2131@ool-2f115b83 ~]$ ls /sys/bus/io/devices
ls: cannot access '/sys/bus/io/devices': No such file or directory

Note that it's not just the install screen. Fedora is also upside down.

A workaround is to orient the device so that the display is where is belongs and then lock it there.
The login screen is still inverted but Fedora is locked right side up.

cheers Jim

Comment 6 Justin M. Forbes 2019-08-20 17:39:11 UTC
*********** MASS BUG UPDATE **************

We apologize for the inconvenience.  There are a large number of bugs to go through and several of them have gone stale.  Due to this, we are doing a mass bug update across all of the Fedora 30 kernel bugs.

Fedora 30 has now been rebased to 5.2.9-200.fc30.  Please test this kernel update (or newer) and let us know if you issue has been resolved or if it is still present with the newer kernel.

If you have moved on to Fedora 31, and are still experiencing this issue, please change the version to Fedora 31.

If you experience different issues, please open a new bug report for those.

Comment 7 Hans de Goede 2019-08-20 20:54:16 UTC
Jim,

Thank you for providing the info I requested and sorry that I missed your reply earlier.

Starting with iio-sensor-proxy version 2.7 it is possible to mark an accelerometer as being in the base of the laptop so that iio-sensor-proxy will ignore it.

This is done through an entry in the hwdb, which is part of systemd, so I'm changing the component to systemd.

I've prepared a hwdb entry which should fix this, I will attach it here.

To test do the following:

1) Run monitor-sensor move the laptop this should at this point still show out like this:

[root@localhost ~]# monitor-sensor 
    Waiting for iio-sensor-proxy to appear
+++ iio-sensor-proxy appeared
=== Has accelerometer (orientation: right-up)
=== No ambient light sensor
    Accelerometer orientation changed: normal
    Accelerometer orientation changed: right-up

3) copy 61-sensor.hwdb to /etc/udev/hwdb.d/
4) "sudo systemd-hwdb update"
5) "sudo udevadm trigger"
5) "sudo systemctl restart iio-sensor-proxy.service"
6) Run monitor-sensor again

This should now just say:

[root@localhost ~]# monitor-sensor 
    Waiting for iio-sensor-proxy to appear

Note iio-sensor-proxy is not running it will exit on startup since it has nothing todo with the sensor being in the base. And without iio-sensr-proxy running your unwanted rotation problems should be gone.

Please let me know if the 61-sensor.hwdb file helps, if it does then I will submit the changes upstream.

Comment 8 Hans de Goede 2019-08-20 21:14:19 UTC
Created attachment 1606278 [details]
hwdb drop in config file hopefully fixing this

Here is the promised 61-sensor.hwdb file.

Also please make sure you are using iio-sensor-proxy 2.7 or newer, do: "rpm -q iio-sensor-proxy" to see your current version, if it is older doing "sudo dnf update iio-sensor-proxy" should get you 2.7 or newer.

Comment 9 Jim Bean 2019-08-22 02:38:12 UTC
I did all in your posts and everything worked.
Then I unlocked the screen and restarted.
Everything now seems normal. Turning the laptop has no effect.
However this is based on having the OS running.
The original problem was with the install boot from DVD.
I will try that and get back.
Jim

Comment 10 Jim Bean 2019-08-22 02:59:12 UTC
I booted from the install DVD.
The "Welcome to Fedora" install screen is still inverted.
Jim

Comment 11 Zbigniew Jędrzejewski-Szmek 2019-08-22 06:58:31 UTC
Submitted as https://github.com/systemd/systemd/pull/13378.

Comment 12 Hans de Goede 2019-08-22 10:40:14 UTC
(In reply to Jim Bean from comment #10)
> I booted from the install DVD.
> The "Welcome to Fedora" install screen is still inverted.

Yes, that is expected, the fix will only work on an already installed system. I expect / hope the fix will make it into the F31 install DVD and then things should work there too.

Comment 13 Fedora Update System 2020-02-06 15:27:49 UTC
FEDORA-2020-f8e267d6d0 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2020-f8e267d6d0

Comment 14 Fedora Update System 2020-02-07 01:03:57 UTC
systemd-241-14.git18dd3fb.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-f8e267d6d0

Comment 15 Fedora Update System 2020-02-21 01:17:48 UTC
systemd-241-14.git18dd3fb.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.


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