Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:3.5inch_lcd_shield [2016/10/21 16:02] odroid [4. Backlight control] |
en:3.5inch_lcd_shield [2017/04/07 09:20] odroid [0. Create a new config file] |
||
---|---|---|---|
Line 13: | Line 13: | ||
|LCD Interface|Parallel 8-bit| | |LCD Interface|Parallel 8-bit| | ||
|LCD Controller|ILI9488| | |LCD Controller|ILI9488| | ||
- | |LCD Active area|98.96(H) x 73.44(V)mm| | + | |LCD Active area|48.96(H) x 73.44(V)mm| |
|Touch Screen Type|Resistive| | |Touch Screen Type|Resistive| | ||
|Touch Screen Controller|SX865X(I2C)| | |Touch Screen Controller|SX865X(I2C)| | ||
|Backlight|LED| | |Backlight|LED| | ||
- | |Resolution|320*480(Pixel)| | + | |Resolution|480*320(Pixel)| |
- | |Board Size|95(H)x56(V)x17(T)mm| | + | |Board Size|56(H) x 95(V) x 17(T)mm| |
|ETC|5pin RTC Shield connector| | |ETC|5pin RTC Shield connector| | ||
Schematic : | Schematic : | ||
Line 113: | Line 113: | ||
echo 500000 | sudo tee /sys/devices/platform/pwm-ctrl/freq0 | echo 500000 | sudo tee /sys/devices/platform/pwm-ctrl/freq0 | ||
echo 1 | sudo tee /sys/devices/platform/pwm-ctrl/enable0 | echo 1 | sudo tee /sys/devices/platform/pwm-ctrl/enable0 | ||
+ | echo 1023 | sudo tee /sys/devices/platform/pwm-ctrl/duty0 | ||
| | ||
==== 2. Run con2fbmap ==== | ==== 2. Run con2fbmap ==== | ||
Line 122: | Line 123: | ||
chvt 1 : console\\ | chvt 1 : console\\ | ||
chvt 7 : X11 | chvt 7 : X11 | ||
- | ==== 4. Backlight control ==== | + | |
- | <WRAP important> | + | ==== 4. Auto login on console ==== |
- | **ODROID-XU4 does not use PWM control** | + | Edit tty1 service |
- | </WRAP> | + | sudo systemctl edit getty@tty1 |
- | Set PWMfrequency & enable | + | And add |
- | echo 500000 | sudo tee /sys/devices/platform/pwm-ctrl/freq0 | + | [Service] |
- | echo 1 | sudo tee /sys/devices/platform/pwm-ctrl/enable0 | + | ExecStart= |
- | echo <0-1023> | sudo tee /sys/devices/platform/pwm-ctrl/duty0 ==> for back light brightness control | + | ExecStart=-/sbin/agetty -a odroid --noclear %I $TERM |
- | echo 1023 | sudo tee /sys/devices/platform/pwm-ctrl/duty0 | + | |
+ | |||
+ | odroid@odroid:~$ sudo systemctl cat getty@tty1 | grep Exec | ||
+ | ExecStart=-/sbin/agetty --noclear %I $TERM | ||
+ | ExecStart= | ||
+ | ExecStart=-/sbin/agetty -a odroid --noclear %I $TERM | ||
+ | Restart tty1 service | ||
+ | sudo systemctl restart getty@tty1 | ||
===== Run Xwindow ===== | ===== Run Xwindow ===== | ||
{{:en:acc:35tft:home.png?400|}} | {{:en:acc:35tft:home.png?400|}} | ||
==== 0. Create a new config file ==== | ==== 0. Create a new config file ==== | ||
- | sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.old | + | sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.old |
sudo rm -fr /etc/X11/xorg.conf.d/exynos.conf | sudo rm -fr /etc/X11/xorg.conf.d/exynos.conf | ||
Add following lines in "/etc/X11/xorg.conf" file. | Add following lines in "/etc/X11/xorg.conf" file. | ||
Line 151: | Line 160: | ||
echo 500000 | sudo tee /sys/devices/platform/pwm-ctrl/freq0 | echo 500000 | sudo tee /sys/devices/platform/pwm-ctrl/freq0 | ||
echo 1 | sudo tee /sys/devices/platform/pwm-ctrl/enable0 | echo 1 | sudo tee /sys/devices/platform/pwm-ctrl/enable0 | ||
+ | echo 1023 | sudo tee /sys/devices/platform/pwm-ctrl/duty0 | ||
==== 2. Run ==== | ==== 2. Run ==== | ||
sudo /etc/init.d/lightdm start | sudo /etc/init.d/lightdm start | ||
- | ==== 3. Backlight control ==== | + | ===== Backlight control ===== |
<WRAP important> | <WRAP important> | ||
**ODROID-XU4 does not use PWM control** | **ODROID-XU4 does not use PWM control** | ||
Line 161: | Line 171: | ||
echo 500000 | sudo tee /sys/devices/platform/pwm-ctrl/freq0 | echo 500000 | sudo tee /sys/devices/platform/pwm-ctrl/freq0 | ||
echo 1 | sudo tee /sys/devices/platform/pwm-ctrl/enable0 | echo 1 | sudo tee /sys/devices/platform/pwm-ctrl/enable0 | ||
- | echo <0-1024> | sudo tee /sys/devices/platform/pwm-ctrl/duty0 | + | echo <0-1023> | sudo tee /sys/devices/platform/pwm-ctrl/duty0 ==> for back light brightness control |
- | echo 1024 | sudo tee /sys/devices/platform/pwm-ctrl/duty0 | + | echo 1023 | sudo tee /sys/devices/platform/pwm-ctrl/duty0 |
===== Touch Calibration ===== | ===== Touch Calibration ===== | ||
Line 254: | Line 264: | ||
====== Auto Run ====== | ====== Auto Run ====== | ||
* [[3.5inch_lcd_shield:AUTOCONSOLE | Automatically start console mode]] | * [[3.5inch_lcd_shield:AUTOCONSOLE | Automatically start console mode]] | ||
- | * [[3.5inch_lcd_shield:AUTOX | Automatically start dekstop GUI mode]] | + | * [[3.5inch_lcd_shield:AUTOX | Automatically start desktop GUI mode]] |
====== Applications ====== | ====== Applications ====== | ||
* [[3.5inch_lcd_shield:MPLAYER | Using the mplayer on framebuffer]] | * [[3.5inch_lcd_shield:MPLAYER | Using the mplayer on framebuffer]] | ||
+ | * [[http://forum.odroid.com/viewtopic.php?f=145&t=26550|Multiclick button handler by mad_ady]] |