The officially official Devuan Forum!

You are not logged in.

#1 2025-02-06 01:40:47

Red_Fir
Member
Registered: 2023-10-01
Posts: 15  

Resolution

I have a bone stock Optiplex 9020 mini tower. running Daedelus with Intel Mesa HD 4600 graphics via HDMI
Devuan has run stable for a couple years (unless I enable GUFW! which renders it prone to lockups!!) except:
Every. Single. Time. it suspends (or hibernates) it reverts back to the highest resolution available since it detects my 42" LG as a 72" LG the highest resolution is rendered so small as to have me guessing which of the illegible little blurs I want to use as the display adjustment. The settings survive reboot and shutdown, ... but never suspend.
In addition it reverts back to VGA if the LG shuts down from inactivity and I inadvertently shake the mouse prior to restarting the TV,

Wise cognoscenti how can I lock the display to 1920x1080 at 60 HZ ??? and feed it to a single HDMI port rather than have it rescan every port, and every option, on every wakeup?

Offline

#2 2025-02-07 02:02:23

rbit
Member
Registered: 2018-06-12
Posts: 50  

Re: Resolution

As a workaround, I'd make a script to do this
/etc/pm/sleep.d/50_resolution (make it executable)

#!/bin/bash

case $1 in
  suspend|suspend_hybrid|hibernate)
    :
    ;;
  resume|thaw)
    xrandr --output HDMI-0 --mode 1920x1080 --rate 60 --primary
    ;;
esac

Obviously, change the "HDMI-0" to your device's correct output, and make any other adjustments to the xrandr line to fit your desired setting.  If this doesn't work, try putting a short sleep command before the xrandr command.

Offline

#3 2025-02-07 03:02:26

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,335  

Re: Resolution

You could also add a configuraiton snippet for the Monitor in /etc/X11/xorg.conf.d/

Start with running Xorg -configure :1, which dumps the current configuration into a file xorg.conf.new. clip out the applicable "Monitor" for your snippet, and add the desired ModeLine to it. (You might also need to disable "DefaultModes")

See man xorg.conf for details.

Offline

Board footer