On 6/11/24 12:54, eben@gmx.us wrote:
On 6/11/24 12:27, Max Nikulin wrote:On 11/06/2024 21:44, eben@gmx.us wrote:Does anyone know how to get the monitor state programmatically?ddccontrolThanks.However I am lost if you need to put your monitor to standby state (or to turn it off) or you expect suspend to RAM after some period of inactivity or when lid is closed. In the latter case check power and display settings in your DE configuration.I'll probably watch ddcontrol, and if the monitors go into <some state> and stay there for 30m or an hour, suspend.
Well that's a no-go, because when you de-power the monitors, ddccontrol gives you no info about what sleep state they're in. Reasonable, I guess. So I'm back to doing it manually, until I figure out what's wrong. Something came to mind: A while back when automatic suspension worked, I got an error that it failed because the swap partition ran out of room. I guess it was doing hybrid sleep and there was too much stuff in swap already? The old partition was the same size as RAM, and the new one is 1.5x. I did these steps to upgrade: Make a new swap partition swapon the new one swapoff the old one remove the old swap partition There wasn't room on the hard drive to just enlarge the old one without spending a lot of time moving partitions around. Some time then or after, automatic suspension stopped working. Do I have to tell something the UUID of the new swap partition, or does it figure it out? -- Information is more dangerous than cannon to a society ruled by lies. --James M Dakin (from RT, S)