doc:appunti:hardware:mini_pc_intel_pentium_j3710
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:hardware:mini_pc_intel_pentium_j3710 [2026/02/22 18:08] – [Video card problem] niccolo | doc:appunti:hardware:mini_pc_intel_pentium_j3710 [2026/02/22 19:35] (current) – [Pygame] niccolo | ||
|---|---|---|---|
| Line 20: | Line 20: | ||
| The only way to boot Debian 13 with kernel 6.12 is to pass the **nomodeset** kernel parameter. | The only way to boot Debian 13 with kernel 6.12 is to pass the **nomodeset** kernel parameter. | ||
| - | ===== Kernel 6.1.0 ===== | + | ===== Kernel |
| + | |||
| + | It is possible to install **kernel | ||
| + | |||
| + | < | ||
| + | [ 5.399065] fbcon: i915drmfb (fb0) is primary device | ||
| + | [ 5.438998] Console: switching to colour frame buffer device 128x37 | ||
| + | [ 5.458533] i915 0000: | ||
| + | </ | ||
| + | |||
| + | Despite the HDMI monitor is connected, the status pseudfile reports that it is **disconnected**: | ||
| + | |||
| + | < | ||
| + | cat / | ||
| + | disconnected | ||
| + | </ | ||
| + | |||
| + | Writing the **on** string to the file changes the status to connected: | ||
| + | |||
| + | < | ||
| + | echo on > / | ||
| + | cat / | ||
| + | connected | ||
| + | </ | ||
| + | |||
| + | but it causes a kernel trace: | ||
| + | |||
| + | < | ||
| + | [ | ||
| + | </ | ||
| + | |||
| + | When the **i915** kernel module is loaded, you can find five **DRM** (Direct Rendering Manager) devices managed by **card0**: | ||
| + | |||
| + | < | ||
| + | ls -1 / | ||
| + | card0 | ||
| + | card0-DP-1 | ||
| + | card0-DP-2 | ||
| + | card0-HDMI-A-1 | ||
| + | card0-HDMI-A-2 | ||
| + | card0-HDMI-A-3 | ||
| + | renderD128 | ||
| + | version | ||
| + | </ | ||
| + | |||
| + | It is possibile to do a **complete hardware reset** of the cards using the following command: | ||
| + | |||
| + | < | ||
| + | echo " | ||
| + | sleep 1 | ||
| + | echo " | ||
| + | </ | ||
| + | |||
| + | After the //unbind// you can verify that the directory **/ | ||
| + | |||
| + | ===== 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: | ||
| + | |||
| + | < | ||
| + | setterm --blank force | ||
| + | setterm --powerdown 0 | ||
| + | </ | ||
| + | |||
| + | The monitor turns off due no signal and remains blank even keys are pressed on the keyboard. | ||
| + | |||
| + | To revive the screen: | ||
| + | |||
| + | < | ||
| + | setterm --blank poke | ||
| + | setterm --powerdown 0 | ||
| + | </ | ||
| + | |||
| + | If the screen is blanked the following command returns **1**: | ||
| + | |||
| + | < | ||
| + | setterm --blank | ||
| + | 1 | ||
| + | </ | ||
| + | |||
| + | ===== Pygame ===== | ||
| + | |||
| + | We verified what driver uses the Pygame app: | ||
| + | |||
| + | <code python> | ||
| + | import pygame | ||
| + | pygame.init() | ||
| + | print(pygame.display.get_driver()) | ||
| + | </ | ||
| + | |||
| + | 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.1771780114.txt.gz · Last modified: by niccolo
