Keeping the Screen Turned off While Getting Inputs
Carsten Haitzler
raster at rasterman.com
Sun Aug 27 10:50:40 UTC 2023
On Sat, 26 Aug 2023 15:28:52 +0000 (UTC) Ahmad Nouralizadeh
<ahmadnouralizadeh at yahoo.com> said:
> Hi,
> I need to run a set of (graphical) benchmarks with the screen disabled. The
> following command did not work: xset dpms force off
>
> Because any keyboard/mouse input would re-enable the screen. The other option
> was the following:
>
> xrandr --output eDP-1 --off
>
> This turns off the screen for a second, then, causes the following
> segmentation fault:
>
> gnome-shell[25737]: segfault at 8 ip 00007f3d02ef9210 sp 00007ffeee4e1fd8
> error 4 in libmutter-2.so.0.0.0[7f3d02e99000+156000]
>
> How can the problem be solved? Is there any other user/kernel level
> alternative?Regards. =======
> P.S.: The question is also asked in the following addresses:
> https://superuser.com/q/1805444/1037926
> https://unix.stackexchange.com/q/754782/348219
well first if you're not benchmarking gnome shell.. don't use gnome. there's a
full compositor going on there that will add extra work to any updates on
screen. use no window manager or something very basic (twm, fvwm etc.).
second...
xinput disable XXX
...
xset dpms force on
run xinput to list all your input devices... disable all the id's ... you'll
have no working input devices if you disable them all - nothing to interrupt
dpms (unless some other software is trying to disable the dpms blank - thus
use the simplest setup possible as first point above):)
--
------------- Codito, ergo sum - "I code, therefore I am" --------------
Carsten Haitzler - raster at rasterman.com
More information about the xorg
mailing list