This just happened to me today and seems to happen about once a month.
In my ~/.bashrc
I've created a function called xreset
which I can blindly type after opening a terminal with Ctrl+Alt+T:
xreset () {
# Reset xrandr to normal, first use: xrandr | grep " connected "
# HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 1107mm x 623mm
# eDP-1-1 connected primary 1920x1080+3840+2160 (normal left inverted right x axis y axis) 382mm x 215mm
# DP-1-1 connected 3840x2160+1920+0 (normal left inverted right x axis y axis) 1600mm x 900mm
xrandr --output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate normal \
--output eDP-1-1 --mode 1920x1080 --pos 3840x2160 --rotate normal \
--output DP-1-1 --mode 3840x2160 --pos 1920x0 --rotate normal
} # xreset
This script is also handy the odd time when monitor positions get mixed up in Ubuntu.
For your own version first type xrandr | grep " connected"
to get your setup:
$ xrandr | grep " connected"
HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 1107mm x 623mm
eDP-1-1 connected primary 1920x1080+3840+2160 (normal left inverted right x axis y axis) 382mm x 215mm
DP-1-1 connected 3840x2160+1920+0 (normal left inverted right x axis y axis) 1600mm x 900mm
For simplicity sake lets assume you only have one 1920x1080 monitor positioned at x=0 and y=0 called HDMI-0
above. Edit your ~/.bashrc
and insert these lines:
xreset () {
xrandr --output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate normal
}
Now the command (technically called a function) is available the next time you open a terminal. To make it available in the currently opened terminal type . ~/.bashrc
. If you are already in the ~
directory (your home) you can simply type . .bashrc
(note the space after first ".
").
sudo lshw -C video
which lists-hardware of class=video).freeze
tag is being using with the question. The system isn't frozen nor is this about freeze / thaw which is akin to suspend / resume.forcepae --forcepae
?