on xenial help sign in
use a separate config for the default install, extend the docs one a bit
commit38fd06285453e3f98b95b5353905de5ef609707c authorMichael Zanetti <michael.zanetti@canonical.com> dateThu 31 Mar 2016, 11:11 (11 years ago) parent484fdd3
3 files changed+47−1
data/devices.conf+30 debian/unity8.install+1−1 doc/devices.conf+16
data/devices.confnew file+30
@@ -0,0 +1,30 @@
1+# This file can hold multiple device configs. Devices are separated by sections.
2+#
3+# SupportedOrientations holds a list of all enabled orientations. A standard
4+# phone will usually have Portrait,Landcape,InvertedLandscape in order to
5+# disable upside down usage.
6+#
7+# PrimaryOrientation gives the orientation the device will start up with
8+# when there is no orientations sensor input available (yet) or lock to
9+# when an application specifies to be locked to PrimaryOrientation.
10+#
11+# The other Orientation settings can be used to re-map the orientations.
12+# A device might be used with different orientations than how the screen
13+# is physically mounted on the hardware.
14+#
15+# Category can be phone, tablet, or desktop. This option determines
16+# whether the side stage is shown (tablet) or not (phone). Using
17+# desktop will load the shell in windowed mode. Note that the user
18+# can override/change this by connecting input hardware or change
19+# user settings.
20+#
21+# Any options not listed will default to the values of the example below.
22+
23+[devicename]
24+SupportedOrientations=Portrait,InvertedPortrait,Landscape,InvertedLandscape
25+PrimaryOrientation=PrimaryOrienation
26+PortraitOrientation=Portrait
27+InvertedPortraitOrientation=InvertedPortrait
28+LandscapeOrientation=Landscape
29+InvertedLandscapeOrientation=InvertedLandscape
30+Category=phone
debian/unity8.install+1−1
@@ -2,7 +2,7 @@ var/lib/unity8/version
22data/unity8-dash.conf usr/share/upstart/sessions/
33data/unity8-filewatcher.conf usr/share/upstart/sessions/
44data/unity8.conf usr/share/upstart/sessions/
5−doc/devices.conf etc/ubuntu/
5+data/devices.conf etc/ubuntu/
66usr/bin/unity8
77usr/bin/unity8-dash
88usr/share/applications/unity8-dash.desktop
doc/devices.conf+16
@@ -28,3 +28,19 @@ InvertedPortraitOrientation=InvertedPortrait
2828LandscapeOrientation=Landscape
2929InvertedLandscapeOrientation=InvertedLandscape
3030Category=phone
31+
32+# Example for the Nexus 7
33+# This device has the screen mounted in portrait, but we run it as a landscape
34+# device and we want the side stage on it.
35+[flo]
36+SupportedOrientations=Portrait,InvertedPortrait,Landscape,InvertedLandscape
37+PrimaryOrientation=LandscapeOrienation
38+Category=tablet
39+
40+# Example for the Nexus 4
41+# The screen is already mounted the way we want it, so no special config
42+# required. However, we don't want the phone to rotate upside down, so lets
43+# restrict that.
44+[mako]
45+SupportedOrientations=Portrait,Landscape,InvertedLandscape
46+Category=phone