We're no longer updating This wiki!!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
3.5inch_lcd_shield:autoconsole [2016/11/08 15:20]
john1117 [Automatically enable the Backlight]
3.5inch_lcd_shield:autoconsole [2016/11/21 15:01] (current)
odroid [Automatically enable the Backlight]
Line 1: Line 1:
 ===== Auto console ===== ===== Auto console =====
 +
 +Start the system console on the LCD automatically after booting.
 ==== Add following lines in "/​etc/​modprobe.d/​lcd35.conf"​ file. ==== ==== Add following lines in "/​etc/​modprobe.d/​lcd35.conf"​ file. ====
   options fbtft_device name=flexpfb rotate=270   options fbtft_device name=flexpfb rotate=270
Line 32: Line 34:
   echo 1 > /​sys/​devices/​platform/​pwm-ctrl/​enable0   echo 1 > /​sys/​devices/​platform/​pwm-ctrl/​enable0
   echo 500000 > /​sys/​devices/​platform/​pwm-ctrl/​freq0   echo 500000 > /​sys/​devices/​platform/​pwm-ctrl/​freq0
-  echo 1023 | sudo tee /​sys/​devices/​platform/​pwm-ctrl/​duty0 +  echo 1023 /​sys/​devices/​platform/​pwm-ctrl/​duty0 
-  chvt 2+  chvt 1
 ==== Reboot ==== ==== Reboot ====
   sudo reboot   sudo reboot
Line 39: Line 41:
  
 ==== Auto login ==== ==== Auto login ====
-Edit tty2 service +Edit tty1 service 
-  sudo systemctl edit getty@tty2+  sudo systemctl edit getty@tty1
 And add And add
   [Service]   [Service]
Line 51: Line 53:
   ExecStart=   ExecStart=
   ExecStart=-/​sbin/​agetty -a odroid --noclear %I $TERM   ExecStart=-/​sbin/​agetty -a odroid --noclear %I $TERM
-Restart ​tty2 service +Restart ​tty1 service 
-  sudo systemctl restart getty@tty2+  sudo systemctl restart getty@tty1
  
3.5inch_lcd_shield/autoconsole.1478587838.txt.gz · Last modified: 2016/11/08 15:20 by john1117
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0