Ferramentas do usuário

Ferramentas do site


embarcados:raspberry_pi

Diferenças

Aqui você vê as diferenças entre duas revisões dessa página.

Link para esta página de comparações

Ambos lados da revisão anteriorRevisão anterior
Próxima revisão
Revisão anterior
embarcados:raspberry_pi [2015/03/01 09:46] – [Custom boot up screen] Édson Kuzniewskiembarcados:raspberry_pi [2022/05/25 16:24] (atual) – edição externa 127.0.0.1
Linha 1: Linha 1:
 ====== Raspberry PI ====== ====== Raspberry PI ======
 {{:embarcados:raspberry_pi_radio.pdf|}}\\ {{:embarcados:raspberry_pi_radio.pdf|}}\\
-[[http://elinux.org/RPi_Beginners]]+[[http://elinux.org/RPi_Beginners]] \\ 
 + 
 +==== How to install XRDP and have it working ==== 
 +[[http://c-nergy.be/blog/?p=5357]] \\ 
 +[[http://c-nergy.be/blog/?p=5874]] \\ 
 + 
 +<code> 
 +sudo apt-get update 
 +sudo apt-get install xrdp 
 +</code> 
 + 
 +===== Warnings Square ===== 
 +[[https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=82373]]\\ 
 +**Currently the symbols are:**\\ 
 +**Red square:** over-temperature\\ 
 +**Rainbow square:** under-voltage\\ 
 +\\ 
 +As usual you can override the behaviour in ''config.txt'' if you understand the risks:\\ 
 +**avoid_warnings=1** removes the warning overlay.\\ 
 +**avoid_warnings=2** additionally allows turbo when low-voltage is present.
  
 ===== Windows Emulador ===== ===== Windows Emulador =====
Linha 85: Linha 104:
  
 ===== Raspberry PI kiosk mode with Chromium ===== ===== Raspberry PI kiosk mode with Chromium =====
-[[http://lokir.wordpress.com/2012/09/16/raspberry-pi-kiosk-mode-with-chromium/]]+[[http://lokir.wordpress.com/2012/09/16/raspberry-pi-kiosk-mode-with-chromium/]] \\ 
 +[[http://superuser.com/questions/873381/how-can-i-disable-the-chromium-didn-t-shut-down-correctly-message-when-my-brow]] \\ 
 +[[http://superuser.com/questions/237608/how-to-hide-chrome-warning-after-crash]]
 <WRAP center round info 60%> <WRAP center round info 60%>
 MODO ANTIGO MODO ANTIGO
Linha 96: Linha 117:
 </code> </code>
  
-**2.** We need to prevent screen from going blank and disable screen saver.+**2.** Here they talk about running this command before starting Chrome to stop the Restore Bar from appearing: 
 +<code bash /etc/rc.local> 
 +sed -i 's/"exited_cleanly": false/"exited_cleanly": true/' \ 
 +    ~/.config/chromium/Default/Preferences 
 +</code> 
 + 
 +**3.** We need to prevent screen from going blank and disable screen saver.
 – edit ''/etc/xdg/lxsession/LXDE/autostart'' and comment # ''screen saver'' line and add those lines: – edit ''/etc/xdg/lxsession/LXDE/autostart'' and comment # ''screen saver'' line and add those lines:
 <code bash> <code bash>
Linha 102: Linha 129:
 @xset -dpms @xset -dpms
 @xset s noblank @xset s noblank
-@chromium --kiosk --incognito http://some.web.+@chromium --kiosk --incognito --disable-infobars http://some.web.
 </code> </code>
 Done. Done.
 +
 +===== fullscreen xinit =====
 +[[http://superuser.com/questions/538367/fullscreen-xinit-raspberry-pi]]\\
 +''~/.config/chromium/Default/Preferences''
 +<code bash>
 +"window_placement": {                                                      
 +     "bottom": 1080,
 +     "left": 0,
 +     "maximized": true,
 +     "right": 1920,
 +     "top": 0,
 +     "work_area_bottom": 1080,
 +     "work_area_left": 0,
 +     "work_area_right": 1920,
 +     "work_area_top": 0
 +  }
 +</code>
 +The ''maximized'' option may not work, since I suppose you are not using a Window Manager, but you can see that the properties ''bottom'', ''left'',  ''right'', ''top'', ''work_area_bottom'', ''work_area_left'', ''work_area_right'' and ''work_area_top'', refer to the size and position of the window. So play around with your own screen size and that should work.
  
 ===== Raspberry PI kiosk mode with Epigraphy Browser ===== ===== Raspberry PI kiosk mode with Epigraphy Browser =====
Linha 118: Linha 163:
   - **Browser:** Epigraphy Browser    - **Browser:** Epigraphy Browser 
   - **Splash screen:** __fbi__. Yea I know how that sounds. :P   - **Splash screen:** __fbi__. Yea I know how that sounds. :P
- 
 ==== 1. Logging in automatically ==== ==== 1. Logging in automatically ====
  
Linha 164: Linha 208:
 <file bash /home/pi/.xsession> <file bash /home/pi/.xsession>
 #!/bin/bash #!/bin/bash
-epiphany-browser --profile=/home/pi/ephy -a file:///home/pi/www/index.html+xset s off 
 +xset -dpms 
 +xset s noblank 
 +epiphany-browser --profile=/home/pi/ephy -a file:///home/pi/www/index.html & exec matchbox-window-manager  -use_titlebar no
 #uzbl -u http://google.com/ -c /home/pi/uzbl.conf & exec matchbox-window-manager  -use_titlebar no #uzbl -u http://google.com/ -c /home/pi/uzbl.conf & exec matchbox-window-manager  -use_titlebar no
 +#chromium-browser --use-gl=egl
 </file> </file>
 That’s it. Save and close the file. What we have done is to start the uzbl browser during boot along with the Matchbox window-manager. The u stands for uri and the c stands for configuration file. uzbl  uses the configuration file to lookup settings and apply them to itself. We are now going to create a configuration file to try and force uzbl to do two things 1. Not display it’s status bar and 2. Open in a maximized window. That’s it. Save and close the file. What we have done is to start the uzbl browser during boot along with the Matchbox window-manager. The u stands for uri and the c stands for configuration file. uzbl  uses the configuration file to lookup settings and apply them to itself. We are now going to create a configuration file to try and force uzbl to do two things 1. Not display it’s status bar and 2. Open in a maximized window.
Linha 176: Linha 224:
 <del>Save it and close it. If you need help with uzbl, check this out: https://wiki.archlinux.org/index.php/UZBL-Browser</del>\\ <del>Save it and close it. If you need help with uzbl, check this out: https://wiki.archlinux.org/index.php/UZBL-Browser</del>\\
 \\ \\
-<del>To make the browser restart automatically if it crashes (it shouldn’t), put this in the .xsession file:+<del>To make the browser restart automatically if it crashes (it shouldn’t), put this in the .xsession file:\\
 '' ''
 #!/bin/bash #!/bin/bash
Linha 199: Linha 247:
  
 <code bash> <code bash>
-#! /bin/sh+#!/bin/sh
  
 do_start () { do_start () {
Linha 241: Linha 289:
 **3.** Add a space in the end of the line and add ''logo.nologo''. That’s logo<dot>nologo that – you guessed it – hides the little raspberry fruit logo.\\ **3.** Add a space in the end of the line and add ''logo.nologo''. That’s logo<dot>nologo that – you guessed it – hides the little raspberry fruit logo.\\
 **4.** Set the following directives in the file **/etc/kbd/config** (This prevents the screen from going to sleep)\\ **4.** Set the following directives in the file **/etc/kbd/config** (This prevents the screen from going to sleep)\\
-<filebash /etc/kbd/config>+<file bash /etc/kbd/config>
 BLANK_TIME=0 BLANK_TIME=0
 POWERDOWN_TIME=0 POWERDOWN_TIME=0
 </file> </file>
 +
 +==== 6. Disable Black Screen ====
 +<code bash>
 +xset -dpms     # disable DPMS (Energy Star) features.
 +xset s off       # disable screen saver
 +xset s noblank # don't blank the video device
 +</code>
 ===== Custom boot up screen ===== ===== Custom boot up screen =====
 [[http://www.raspberry-projects.com/pi/pi-operating-systems/raspbian/custom-boot-up-screen]] [[http://www.raspberry-projects.com/pi/pi-operating-systems/raspbian/custom-boot-up-screen]]
embarcados/raspberry_pi.1425213966.txt.gz · Última modificação: 2022/05/25 16:25 (edição externa)