-
Notifications
You must be signed in to change notification settings - Fork 21
/
xorg.conf.portrait
72 lines (64 loc) · 1.65 KB
/
xorg.conf.portrait
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Xorg.conf for superbird
# Portrait orientation (buttons on the right side)
Section "ServerFlags"
Option "BlankTime" "10"
Option "StandbyTime" "10"
Option "SuspendTime" "10"
Option "OffTime" "10"
Option "dpms" "on"
EndSection
Section "ServerLayout"
Identifier "Simple Layout"
Screen "Panel"
InputDevice "TouchScreen" "Pointer"
InputDevice "GPIOKeys" "Keyboard"
InputDevice "Rotary" "Keyboard"
EndSection
Section "Screen"
Identifier "Panel"
Monitor "DefaultMonitor"
Device "FramebufferDevice"
DefaultDepth 24
DefaultFbBpp 32
SubSection "Display"
Depth 32
Virtual 480 800
ViewPort 0 0
Modes "480x800"
EndSubSection
EndSection
Section "Device"
Identifier "FramebufferDevice"
Driver "fbdev"
Option "fbdev" "/dev/fb0"
# Option "Rotate" "CW"
EndSection
Section "Monitor"
Identifier "DefaultMonitor"
Option "DPMS" "on"
EndSection
# All the device buttons are part of event0, which appears as a keyboard
# buttons along the edge are: 1, 2, 3, 4, m
# next to the knob: ESC
# knob click: Enter
Section "InputDevice"
Identifier "GPIOKeys"
Driver "libinput"
Option "Device" "/dev/input/event0"
EndSection
# Turning the dial is a separate device, event1, which also appears as a keyboard
# turning the knob corresponds to the left and right arrow keys
Section "InputDevice"
Identifier "Rotary"
Driver "libinput"
Option "Device" "/dev/input/event1"
EndSection
# The touchscreen is event3
Section "InputDevice"
Identifier "TouchScreen"
Driver "libinput"
Option "Device" "/dev/input/event3"
Option "Mode" "Absolute"
Option "GrabDevice" "1"
# Option "TransformationMatrix" "0 1 0 -1 0 1 0 0 1"
EndSection