Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #275517

Re: PC monitor is freezing, but I can ssh into it and operate okay

From eben@gmx.us
Newsgroups linux.debian.user
Subject Re: PC monitor is freezing, but I can ssh into it and operate okay
Date 2024-12-11 20:20 +0100
Message-ID <JSApz-gbaH-1@gated-at.bofh.it> (permalink)
References <JSuau-g71x-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 12/11/24 07:33, Tom Browder wrote:
> I can ssh in, reboot, and all is well. Is there any way to completely turn
> off the screen saver and its timer via system settings?
>
> There may be related problems with my newly installed HP printer which
> sometimes hangs when attempting to print random web pages (I don't do it
> intentionally but I'm sometimes "forced" to as a "honey do" task).

If you think something is actually running and the monitor's in some
power-saving state, you can use "ddccontrol" to change the power-saving
state.  Here's how I turn each monitor off and on in turn (in sh):

alltext="$("$DDC" -p 2>/dev/null | sed -n /Detected/,/^Reading/p)"
devices="$(echo "$alltext" | grep '^ - D' | cut -f 4 -d ' ')"
for device in $devices ; do
    echo -n '-=>' $device
    echo " ($(echo "$alltext" | grep -A 3 "$device" | grep 'Monitor Name' \
| cut -f 2 -d : | colrm 1 1)) <=-"
    for state in off on ; do
        case $state in
            off)    ddcstate=5 ;;
            on)     sleep $sleeptime # this assumes this happens last
                    ddcstate=1
        esac
        echo -n "$state "
        "$DDC" -r 0xd6 -w $ddcstate "$device" > /dev/null 2>&1
    done # for state
    echo
done # for device

There are probably better ways to do it.  One of my monitors is pretty slow,
which is why sleeptime is as high as it is.  Adjust to taste.

If nothing is happening, this won't help.  But OTOH it probably won't hurt
either.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

PC monitor is freezing, but I can ssh into it and operate okay Tom Browder <tom.browder@gmail.com> - 2024-12-11 13:40 +0100
  Re: PC monitor is freezing, but I can ssh into it and operate okay Dan Ritter <dsr@randomstring.org> - 2024-12-11 14:40 +0100
    Re: PC monitor is freezing, but I can ssh into it and operate okay Tom Browder <tom.browder@gmail.com> - 2024-12-11 15:30 +0100
      Re: PC monitor is freezing, but I can ssh into it and operate okay Tom Browder <tom.browder@gmail.com> - 2024-12-11 16:10 +0100
        Re: PC monitor is freezing, but I can ssh into it and operate okay <tomas@tuxteam.de> - 2024-12-11 16:20 +0100
          Re: PC monitor is freezing, but I can ssh into it and operate okay tomas@tuxteam.de - 2024-12-11 16:20 +0100
            Re: PC monitor is freezing, but I can ssh into it and operate okay Dan Ritter <dsr@randomstring.org> - 2024-12-11 17:10 +0100
  Re: PC monitor is freezing, but I can ssh into it and operate okay Jeffrey Walton <noloader@gmail.com> - 2024-12-11 19:20 +0100
  Re: PC monitor is freezing, but I can ssh into it and operate okay eben@gmx.us - 2024-12-11 20:20 +0100
    Re: PC monitor is freezing, but I can ssh into it and operate okay Tom Browder <tom.browder@gmail.com> - 2024-12-12 13:00 +0100

csiph-web