Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:c1_tft_autox [2016/09/21 20:07] john1117 |
en:c1_tft_autox [2016/11/14 10:58] john1117 [Auto startx] |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Auto startx ===== | ===== Auto startx ===== | ||
- | Add to file "/etc/modules" | + | === Add following lines in "/etc/modprobe.d/lcd32.conf" file. === |
+ | options fbtft_device name=odroidc_tft32 rotate=270 gpios=reset:116,dc:115 speed=32000000 cs=0 | ||
+ | === Add following lines in "/etc/modules" file. === | ||
spicc | spicc | ||
- | fbtft_device name=odroidc_tft32 rotate=270 gpios=reset:116,dc:115 speed=32000000 cs=0 | + | fbtft_device |
- | Write following lines in "/usr/share/X11/xorg.conf.d/99-odroidc-tftlcd.conf" file. | + | === Create a new config file === |
+ | sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.old | ||
+ | sudo vi /etc/X11/xorg.conf | ||
+ | === And then, add following lines in "/etc/X11/xorg.conf" file. === | ||
<code> | <code> | ||
Section "Device" | Section "Device" | ||
- | Identifier "C1 fbdev" | + | Identifier "C fbdev" |
Driver "fbdev" | Driver "fbdev" | ||
Option "fbdev" "/dev/fb2" | Option "fbdev" "/dev/fb2" | ||
Line 16: | Line 19: | ||
</code> | </code> | ||
- | Add to file "/etc/rc.local" | + | === Reboot === |
- | startx & | + | |
- | Reboot | + | |
sudo reboot | sudo reboot | ||
+ | |||
+ | |||
+ | ===== Auto login ===== | ||
+ | If you want auto login.\\ | ||
+ | Edit /etc/lightdm/lightdm.conf file to enable auto-login: (password: odroid) | ||
+ | |||
+ | <code> | ||
+ | odroid@odroid:~$ sudo vi /etc/lightdm/lightdm.conf | ||
+ | [sudo] password for odroid: | ||
+ | odroid@odroid:~$ cat /etc/lightdm/lightdm.conf | ||
+ | [SeatDefaults] | ||
+ | autologin-user=odroid | ||
+ | autologin-user-timeout=0 | ||
+ | odroid@odroid:~$ | ||
+ | </code> | ||
+ |