doc:appunti:hardware:raspberrypi_digitalframe
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:hardware:raspberrypi_digitalframe [2021/01/09 15:43] – [photo-reframe] niccolo | doc:appunti:hardware:raspberrypi_digitalframe [2024/01/16 15:02] (current) – [Screen Saver] niccolo | ||
---|---|---|---|
Line 12: | Line 12: | ||
- | The first step was to order the hand-made **wood frame** from a craftsman. The profile size is shown in the picture, the inner space to accomodate | + | The first step was to order the hand-made **wood frame** from a craftsman. The profile size is shown in the picture, the inner space to accommodate |
{{ .: | {{ .: | ||
Line 38: | Line 38: | ||
The **software core** of the digital frame is the **[[https:// | The **software core** of the digital frame is the **[[https:// | ||
+ | |||
+ | ===== CheatSheet ===== | ||
+ | |||
+ | Here it is a **Cheat Sheet** to be printed on a 7x7 cm sticker and attached below the **wireless keyboard**. Some shortcuts are related to the **photo-reframe** program, others are related to the **XFCE** desktop (default and custom shortcuts). | ||
^ Space | Immagine successiva | ^ Space | Immagine successiva | ||
Line 58: | Line 62: | ||
I downloaded and installed **RaspiOS 2020-05-27 Buster**, based on Debian 10. I choosed the **full** version "with desktop and recommended software" | I downloaded and installed **RaspiOS 2020-05-27 Buster**, based on Debian 10. I choosed the **full** version "with desktop and recommended software" | ||
- | FIXME The WiFi is handled by Network Manager? The **/etc/ | + | ==== WiFi ==== |
+ | |||
+ | I installed the **Xfce** desktop environment; | ||
+ | |||
+ | Beware that NetworkManager | ||
==== Desktop Autologin ==== | ==== Desktop Autologin ==== | ||
Line 100: | Line 108: | ||
The mouse pointer will disappear after one second of **idle time**, just to reappear if you move the mouse. If you want to customize the options, change the file **/ | The mouse pointer will disappear after one second of **idle time**, just to reappear if you move the mouse. If you want to customize the options, change the file **/ | ||
+ | |||
+ | ==== Turning off the power LED ==== | ||
+ | |||
+ | When the digital frame is in stand-by (the screen is black and turned off), there is a red light glow around the frame, caused by the **Raspberry Pi power LED** being very bright, this is particularly disturbing when the room is dark. Fortunately enough there is a way to turn off the LEDs, just add the following snippet at the end of **/ | ||
+ | |||
+ | < | ||
+ | # Disable Ethernet LEDs | ||
+ | dtparam=eth_led0=14 | ||
+ | dtparam=eth_led1=14 | ||
+ | |||
+ | # Disable the PWR LED | ||
+ | dtparam=pwr_led_trigger=none | ||
+ | dtparam=pwr_led_activelow=off | ||
+ | |||
+ | # Disable the Activity LED | ||
+ | dtparam=act_led_trigger=none | ||
+ | dtparam=act_led_activelow=off | ||
+ | </ | ||
+ | |||
+ | This works well on my **Raspberry Pi 2** model, the matter is discussed in a **[[https:// | ||
==== Keyboard Shortcut ==== | ==== Keyboard Shortcut ==== | ||
Line 106: | Line 134: | ||
==== Screen Saver ==== | ==== Screen Saver ==== | ||
+ | |||
+ | The program **photo-reframe** is configured to call two external programs, one to **disable the screensaver** (at program start) and one to **re-enable the screensaver** (at program exit). The two helper programs should be named **screensaver-off** and **screensaver-on** respectively, | ||
+ | |||
+ | Beware that the **xfce4-power-manager** program overloads the functionality offered by DPMS (controlled by the **xset** program); e.g. the screen blanking is perfomed even with DPMS disabled. The reccommended XFCE power manager settings (// | ||
+ | |||
+ | * **Display power management**: | ||
+ | * **Blank after**: Never - This prevents the software screen blanking (no DPMS). | ||
+ | * **Put sleep after**: 5 minutes - This is enforced via **DPMS Standby**. | ||
+ | * **Switch off after**: 6 minutes - This is enforced via **DPMS Off**. | ||
+ | |||
+ | With these settings display blanking is controlled by DPMS only (no software blanking); the slideshow program can simply disable DPMS to keep the screen always on. XFCE saves the Power Manager settings into the file **$HOME/ | ||
+ | |||
+ | === screensaver-off === | ||
+ | |||
+ | <code bash> | ||
+ | #!/bin/sh | ||
+ | # Disable software screen saver. | ||
+ | xset s off | ||
+ | # Disable DPMS screen saver. | ||
+ | xset dpms force on | ||
+ | xset -dpms | ||
+ | </ | ||
+ | |||
+ | === screensaver-on === | ||
+ | |||
+ | <code bash> | ||
+ | #!/bin/sh | ||
+ | # Disable software screen saver. | ||
+ | xset s off | ||
+ | # Enable DPMS screen saver. | ||
+ | xset dpms 300 300 300 | ||
+ | xset +dpms | ||
+ | </ | ||
+ | |||
+ | === How to use xset === | ||
With the command **xset q** it is possibile to query the status of the **[[wp> | With the command **xset q** it is possibile to query the status of the **[[wp> | ||
Line 132: | Line 195: | ||
If you disable the screensaver from the desktop environment (in our case XFCE // | If you disable the screensaver from the desktop environment (in our case XFCE // | ||
+ | |||
+ | ==== Desktop Fonts ==== | ||
+ | |||
+ | To have bigger fonts into XFCE menu we opened the **Settings** => **Appearance** => **Fonts** menu and increased the font size. Settings are saved into the file **$HOME/ | ||
+ | |||
+ | |||
===== Executing programs from the Firefox browser ===== | ===== Executing programs from the Firefox browser ===== | ||
Line 234: | Line 303: | ||
See the man page for **nm-system-settings.conf**, | See the man page for **nm-system-settings.conf**, | ||
+ | |||
+ | Alternatively you can uninstall the **NetworkManager** package and use **dhcpcd5** for all the network settings. | ||
===== Web References ===== | ===== Web References ===== | ||
* **[[https:// | * **[[https:// | ||
+ | * **[[https:// |
doc/appunti/hardware/raspberrypi_digitalframe.1610203429.txt.gz · Last modified: 2021/01/09 15:43 by niccolo