Como forçar o “startx” na inicialização?

1

Desculpe se usei um assunto errado, mas meu problema é explicado completamente aqui: link

Eu criei arquivos .conf dentro de etc/modprobe.d e etc/modules-loud.d , também em share/X11/xorg.conf.d diretórios, e depois do sistema de inicialização eu posso ver meu LCD ligado (tela preta em branco), como quando eu executei este comando:

sudo modprobe fbtft_device custom name=fb_ili9341 gpios=reset:1,dc:201,led:6 speed=16000000 rotate=90 bgr=1

Mas nada mais ... Eu deveria executar o comando 'startx' manualmente para obter uma tela cinza em branco com um mouse preto e habilidade com o botão direito do mouse!

Mas eu gosto disso acontece automaticamente após a inicialização! Eu procurei em meus documentos do sistema operacional e achei isto:

script.bin/fex file

The settings in the [disp_init] section of the script.bin/fex file define the display output enabled at boot.

An example configuration for HDMI:

[disp_init]
disp_init_enable = 1
disp_mode = 0
screen0_output_type = 3
screen0_output_mode = 4
fb0_framebuffer_num = 2
fb0_format = 10
fb0_pixel_sequence = 0
fb0_scaler_mode_enable = 0

    disp_mode selects single-screen output or different dual screen modes. Generally this is 0, which means use screen0 with fb0 (one screen).
    screen0_output_type = 3 means HDMI output.
    screen0_output_mode selects the video/monitor mode to use (resolution and refresh rate). See the table in the Fex guide.
    fb0_framebuffer_num selects the number of buffers for fb0, generally you need 2 or more for video acceleration or Mali (3D), 3 is better.
    fb0_format and fb0_pixel_sequence determine the pixel format in the framebuffer. The above example (values of 10 and 0) selects the most common variant of 32bpp truecolor (ARGB).
    fb0_scaler_mode_enable selects whether the scaler should be enabled. Enabling it does not really scale pixels, it configures the scaler to scale pixels 1-to-1 which can fix screen refresh-related problems at 1080p resolution. See the section below.

Similar parameter are defined for screen1 (which is usually disabled in practice).

Mas eu não sei como mudar isso? Também sei que meu LCD usa fb8 como framebuffer. Também meu sistema operacional é armbian-5.30 (servidor Ubuntu 16.04 portado para placa allwinner-h3 nanopi-m1)

Também há um guia aqui, mas não consegui entender: link

    
por user145959 01.11.2017 / 19:53

1 resposta

3

Sunxi não é o Ubuntu. Basta colocar o comando startx em /etc/rc.local para executar no momento da inicialização.

    
por 01.11.2017 / 19:58