Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b93f8281 authored by Anisse Astier's avatar Anisse Astier Committed by Matthew Garrett
Browse files

asus-laptop: pega_accel - Report accelerometer orientation change through udev

parent 16cbf933
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1342,6 +1342,14 @@ static void asus_acpi_notify(struct acpi_device *device, u32 event)
		}
		return ;
	}

	/* Accelerometer "coarse orientation change" event */
	if (asus->pega_accel_poll && event == 0xEA) {
		kobject_uevent(&asus->pega_accel_poll->input->dev.kobj,
			       KOBJ_CHANGE);
		return ;
	}

	asus_input_notify(asus, event);
}