Results 1 to 2 of 2

Thread: Raspberry Pi 4 Ubuntu Server 20.10 - setup consoleblank parameter

  1. #1
    Join Date
    Jul 2005
    Beans
    3

    Raspberry Pi 4 Ubuntu Server 20.10 - setup consoleblank parameter

    I am new to Ubuntu Server on Raspberry Pi 4 and I am trying to setup consoleblank to 60secs so my console will black out when not being used. I am using a Raspberry TouchScreen and everything else works fine. I can "setterm --blank 1" from the console itself and I get the desired effect but unfortunately I cannot set the parameter at boot.

    I have tried using /boot/firmware/config.txt, where I set the lcd-rotate=2 with full success, but nothing happens.
    I have tried also to create a /etc/init.d/setterm script but again nothing happens.

    Any hint?
    Last edited by jgrincho; November 7th, 2020 at 03:02 PM.

  2. #2
    Join Date
    Jul 2005
    Beans
    3

    Re: Raspberry Pi 4 Ubuntu Server 20.10 - setup consoleblank parameter

    And the answer is... (tanks to David C. Rankin post in ArchLinux):

    Put this into /etc/systemd/system/setconsole.service...

    ```
    [Unit]
    Description=Enable virtual console blanking and poweroff

    [Service]
    Type=oneshot
    Environment=TERM=linux
    StandardOutput=tty
    TTYPath=/dev/console
    ExecStart=/usr/bin/setterm -blank 1 -powerdown 1

    [Install]
    WantedBy=multi-user.target
    ```

    ...then do `systemctl enable setconsole.service`.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •