Reference material¶
Impostazioni schermo¶
Ridimensionamento del display¶
`` GRID_UNIT_PX`` (Pixel per Grid Unit o Px / GU) è specifico per ogni dispositivo. Il suo obiettivo è quello di rendere l’interfaccia utente del sistema e delle sue applicazioni della stessa dimensione * percepita *, indipendentemente dal dispositivo su cui sono visualizzate. Dipende principalmente dalla densità dei pixel dello schermo del dispositivo e dalla distanza dello schermo dall’utente. Quest’ultimo valore non può essere rilevato automaticamente e si basa sull’euristica. Supponiamo che tablet e laptop siano alla stessa distanza e che siano tenuti a 1.235 volte la distanza a cui i telefoni tendono ad essere tenuti.
`` QTWEBKIT DPR`` imposta il ridimensionamento dello schermo per il motore web Oxide, pertanto le modifiche a questo valore influiranno sulla scala del browser e delle webapps.
A reference device has been chosen from which we derive the values for all other devices. The reference device is a laptop with a 120ppi screen. However, there is no exact formula since these options are set for perceived size rather than physical size. Here are some values for other devices so you may derive the correct one for yours:
Dispositivo |
Risoluzione |
Grandezza dello schermo |
PPI |
Px/GU |
QtWebKit DPR |
|---|---|---|---|---|---|
Laptop a densità “normale” |
N/D |
N/D |
96-150 |
8 |
1,0 |
ASUS Nexus 7 |
1280x800 |
7» |
216 |
12 |
2,0 |
Laptop a densità “alta” |
N/D |
N/D |
150-250 |
16 |
1,5 |
Samsung Galaxy Nexus |
1280x720 |
4.65» |
316 |
18 |
2,0 |
LG Nexus 4 |
1280x768 |
4.7» |
320 |
18 |
2,0 |
Samsung Nexus 10 |
2560x1600 |
10,1» |
299 |
20 |
2,0 |
Fairphone 2 |
1080x1920 |
5» |
440 |
23 |
2,5 |
LG Nexus 5 |
1080x1920 |
4,95» |
445 |
23 |
2,5 |
Sperimenta con alcuni valori per trovare quello che meglio si adatta se confrontato con l’esperienza di Ubuntu Touch su altri dispositivi. Se non sei sicuro di quale sia il migliore, condividi con noi alcune immagini (compresi alcuni oggetti per la scala) insieme alle specifiche del dispositivo.
There are two other settings that may be of interest to you:
Fattore di forma¶
FORM_FACTOR specifies the device’s form factor. This value is set as the device’s Chassis, which you can find by running hostnamectl. The acceptable values are handset, tablet, laptop and desktop. Apps such as the gallery use this information to change their functionality. For more information on the Chassis, see the freedesktop.org hostnamed specification.
Native orientation¶
NATIVE_ORIENTATION` configura l'orientazione del dispositivo per il suo schermoil. Tale valore usato qualora non funzionasse correttamente l'autorotazione o quando una applicazione desidera bloccare l'orienzazione nativa del dispositivo. Valori accettabili sono ``orizzontale, che è usato normalmente per tabla, computer portatili e da tavolo; verticale, per apparecchi cellulari.
AppArmor¶
To understand Apparmor, what it is and how it works, refer to AppArmor on the Ubuntu Wiki
Backporting kernel drivers¶
Depending on your device port, what kernel and Halium versions it is based on, you may need to backport one or more kernel drivers. The procedure for backporting bluetooth to Halium 7.1-based ports is described in the porting-FAQ . The process is challenging and has potential pitfalls.
If you wish to gain a better understanding of backporting, please refer to the Backports Project wiki page
Android init scripts¶
The init scripts play a key role in bringing up the different services inside your Android container that need to run on your device in order for it to function properly. Refer to the Android init language for an explanation of the syntax of these scripts.