User Tools

Site Tools


doc:appunti:hardware:mini_pc_intel_pentium_j3710

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:hardware:mini_pc_intel_pentium_j3710 [2026/02/22 18:33] – [Kernel 6.1] niccolodoc:appunti:hardware:mini_pc_intel_pentium_j3710 [2026/02/22 19:35] (current) – [Pygame] niccolo
Line 77: Line 77:
 ===== Blanking the Virtual Terminal ===== ===== Blanking the Virtual Terminal =====
  
-When the host is started in frame buffer text console, the **setterm** command can be used to force the screen to go blank (the monitor torns off due no signal):+When the host is started in frame buffer text console, the **setterm** command can be used to force the screen to go blank:
  
 <code> <code>
Line 83: Line 83:
 setterm --powerdown 0 setterm --powerdown 0
 </code> </code>
 +
 +The monitor turns off due no signal and remains blank even keys are pressed on the keyboard.
  
 To revive the screen: To revive the screen:
Line 90: Line 92:
 setterm --powerdown 0 setterm --powerdown 0
 </code> </code>
 +
 +If the screen is blanked the following command returns **1**:
 +
 +<code>
 +setterm --blank
 +1
 +</code>
 +
 +===== Pygame =====
 +
 +We verified what driver uses the Pygame app:
 +
 +<code python>
 +import pygame
 +pygame.init()
 +print(pygame.display.get_driver())
 +</code>
 +
 +It says **KMSDRM**.
 +
 +Using that driver the SDL **Simple DirectMedia Layer** library owns the DRM master, external tools (modetest, sysfs) do not work for blanking the screen. The correct solution is to control this from inside SDL.
  
doc/appunti/hardware/mini_pc_intel_pentium_j3710.1771781631.txt.gz · Last modified: by niccolo