Comment 14 for bug 159026

Revision history for this message
Tom Verdaat (tom-verdaat) wrote : Re: Lenovo Thinkpad x41 Tablet and X60 Tablet rotate events

I'm not a programmer so excuse me if this remark is completely illogical. I was reading this and wondering why we need a rotate_daemon?

There seem to be a number of actions related to screen rotation:
* rotating the screen to and from tablet mode
* vertically rotating the laptop itself
* pushing the rotate display button on the screen edge
If all these actions trigger ACPI events, couldn't they just be handled by an ACPI action script that executes xrandr and xsetwacom rotate commands?

If we do need a rotate daemon, can't it then handle all these actions so it can just be started at boot? If not, I guess it will be responsible for handling the accelerometer-driven events. It should be able to detect whether the laptop is in tablet mode or not, right? This way it could be enabled at all times (e.g. loaded at boot).

p.s. other distributions either support it already or are not paying much attention to it:
* https://bugzilla.redhat.com/show_bug.cgi?id=366211
* http://en.opensuse.org/TabletPCs