Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
3.5inch_lcd_shield:autox [2016/10/14 13:31] john1117 [Create a new config file] |
3.5inch_lcd_shield:autox [2016/11/21 10:59] (current) odroid [Auto login] |
||
---|---|---|---|
Line 17: | Line 17: | ||
flexfb | flexfb | ||
sx865x | sx865x | ||
+ | | ||
+ | To enable sx865x touch driver on **ODROID-XU4**, you need to fix a dtb as following commands. | ||
+ | sudo apt-get install device-tree-compiler | ||
+ | sudo cp /media/boot/exynos5422-odroidxu3.dtb /media/boot/exynos5422-odroidxu3.dtb.old | ||
+ | sudo fdtput -t s /media/boot/exynos5422-odroidxu3.dtb /hsi2c@12CB0000/sx865x@49 status "okay" | ||
+ | |||
==== Create a new config file ==== | ==== Create a new config file ==== | ||
Line 31: | Line 37: | ||
</code> | </code> | ||
+ | <WRAP hide> | ||
==== Check lightdm service ==== | ==== Check lightdm service ==== | ||
sudo systemctl list-unit-files | grep lightdm | sudo systemctl list-unit-files | grep lightdm | ||
If the lightdm service is static, run following command. | If the lightdm service is static, run following command. | ||
sudo dpkg-reconfigure lightdm | sudo dpkg-reconfigure lightdm | ||
- | | + | </WRAP> |
==== Automatically enable the Backlight ==== | ==== Automatically enable the Backlight ==== | ||
The PWM0 of **ODROID-C2/C1** is pull-down as default, so you have to add following line in "/etc/rc.local" file. | The PWM0 of **ODROID-C2/C1** is pull-down as default, so you have to add following line in "/etc/rc.local" file. | ||
+ | echo 500000 > /sys/devices/platform/pwm-ctrl/freq0 | ||
echo 1 > /sys/devices/platform/pwm-ctrl/enable0 | echo 1 > /sys/devices/platform/pwm-ctrl/enable0 | ||
+ | echo 1023 | sudo tee /sys/devices/platform/pwm-ctrl/duty0 | ||
==== Reboot ==== | ==== Reboot ==== | ||
sudo reboot | sudo reboot | ||
| | ||
===== Auto login ===== | ===== Auto login ===== | ||
- | If you want auto login.\\ | + | If you want auto login on Ubuntu 14.04 \\ |
Edit /etc/lightdm/lightdm.conf file to enable auto-login: (password: odroid) | Edit /etc/lightdm/lightdm.conf file to enable auto-login: (password: odroid) | ||
Line 56: | Line 65: | ||
</code> | </code> | ||
+ | If you want auto login on Ubuntu 16.04 \\ | ||
+ | Edit /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf file like this. | ||
+ | <code> | ||
+ | [SeatDefaults] | ||
+ | greeter-session=lightdm-gtk-greeter | ||
+ | autologin-user=odroid | ||
+ | </code> |