Page 1 of 1

No power saving for display

Posted: Sun Sep 04, 2022 12:48 pm
by linuxuzer
As I've detailed in other threads, xscreensaver was not suspending or shutting off the display at the specified time after playing a youtube video, and sometimes randomly without youtube involvement.

I uninstalled it and turned on display management in power manager, but now that's not even blanking the screen either after restarting X or rebooting the system. These are my settings:

Power Manager > Display tab:
Display power management: enabled
Blank after 1 minute
Put to sleep after 2 minutes
Switch off after 60 minutes

Brightness reduction is set to 80% on inactivity, and reduce after says "Never," but those options are both grayed out and can't be adjusted. I don't think it's enabled (guessing it's for laptops?).

Power Manager > Security tab:
Automatically lock the session: When screensaver is activated (which doesn't really make sense, as there is no screensaver installed), and I also tried "when screensaver is deactivated" (again, doesn't make sense). "Never" isn't want I want so those are apparently the only two other choices

Delay locking after screensaver (again, no screensaver, so confusing) for: 1 seconds

Lock screen when system is going to sleep is checked, but I don't put the system to sleep as it works part time as a server, but I just selected that in case it really means when the display is going to sleep

Session and Startup applet:

Screen Locker is selected in Application Autostart tab, and "Lock screen before sleep" checkbox is selected on the General tab. Not sure why all this stuff has to be selected in like 12 different places - wouldn't it be better to have it centralized in just one location? - but as far as I know the configuration is correct. But no power management.

Can anyone help me figure this out? I'm at my wits end just trying to get a simple screen suspend and locked screen for security. I never had these problems in 18 or 19 and it doesn't seem like it should be this difficult. Could something be wrong with my video driver setup? (Nvidia 390xx legacy version - I looked through the app, but nothing jumped out at me as related or misconfigured).

Re: No power saving for display

Posted: Sun Sep 04, 2022 1:38 pm
by Stuart_M
Please post your Quick System Information (QSI) so we can get an idea of what you system looks like.



Is this a new installation? Here are some of the recent posts you have made:
Are all of those problems from the same new fresh installation?

Re: No power saving for display

Posted: Sun Sep 04, 2022 3:06 pm
by Huckleberry Finn
linuxuzer wrote: Sun Sep 04, 2022 12:48 pm... that's not even blanking the screen ...
Sometimes this may be overlooked by users: When it's a laptop there are 2 sub-tabs in tabs of Power Manager: "On battery" and "Plugged in".

So, check if you did settings for both.

Re: No power saving for display

Posted: Sun Sep 04, 2022 3:42 pm
by linuxuzer
Stuart_M wrote: Sun Sep 04, 2022 1:38 pm Please post your Quick System Information (QSI) so we can get an idea of what you system looks like.



Is this a new installation? Here are some of the recent posts you have made:
Are all of those problems from the same new fresh installation?
Yes, same install. Power manager was *sort of working,* but 1) after the screen blanked, the login screen would come on like a second or two later. Then it just stayed that way until it went to sleep. It was going to sleep/suspend, though, so I just dealt with that. 2) this morning when I took it out of sleep, it wouldn't wake up, all I got was the mouse trailing around the blank screen with a strange lag. I tried restarting X with ctrl+alt+del and it wouldn't restart, so I had to reboot. Now it hasn't worked since.

THanks for the info Huck, this is desktop. Laptop seems to work in this regard.

System info:

Code: Select all

System:    Kernel: 5.10.0-17-amd64 [5.10.136-1] x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: BOOT_IMAGE=/boot/vmlinuz-5.10.0-17-amd64 
           root=UUID=<filter> ro quiet splash 
           Desktop: Xfce 4.16.0 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.16.1 vt: 7 
           dm: LightDM 1.26.0 Distro: MX-21.2_x64 Wildflower April 9  2022 
           base: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Desktop Mobo: Micro-Star model: MPG Z390 GAMING PLUS (MS-7B51) v: 1.0 
           serial: <filter> UEFI-[Legacy]: American Megatrends v: 1.80 date: 12/26/2019 
CPU:       Info: 6-Core model: Intel Core i5-9600K bits: 64 type: MCP arch: Kaby Lake note: check 
           family: 6 model-id: 9E (158) stepping: D (13) microcode: F0 cache: L2: 9 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 44398 
           Speed: 1113 MHz min/max: 800/4600 MHz Core speeds (MHz): 1: 1113 2: 1101 3: 1111 4: 843 
           5: 829 6: 957 
           Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           Type: mmio_stale_data mitigation: Clear CPU buffers; SMT disabled 
           Type: retbleed mitigation: Enhanced IBRS 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 
           mitigation: Enhanced IBRS, IBPB: conditional, RSB filling, PBRSB-eIBRS: SW sequence 
           Type: srbds mitigation: Microcode 
           Type: tsx_async_abort mitigation: TSX disabled 
Graphics:  Device-1: Intel CoffeeLake-S GT2 [UHD Graphics 630] vendor: Micro-Star MSI driver: i915 
           v: kernel bus-ID: 00:02.0 chip-ID: 8086:3e98 class-ID: 0380 
           Device-2: NVIDIA GF119 [GeForce GT 610] vendor: ASUSTeK driver: nvidia v: 390.151 
           bus-ID: 01:00.0 chip-ID: 10de:104a class-ID: 0300 
           Device-3: Logitech Webcam C310 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 1-2:3 
           chip-ID: 046d:081b class-ID: 0102 serial: <filter> 
           Display: x11 server: X.Org 1.20.11 compositor: xfwm4 v: 4.16.1 driver: 
           loaded: modesetting,nvidia unloaded: fbdev,nouveau,vesa alternate: nv display-ID: :0.0 
           screens: 1 
           Screen-1: 0 s-res: 3600x1080 s-dpi: 96 s-size: 953x286mm (37.5x11.3") s-diag: 995mm (39.2") 
           Monitor-1: DVI-I-1 res: 1680x1050 hz: 60 dpi: 105 size: 408x306mm (16.1x12.0") 
           diag: 510mm (20.1") 
           Monitor-2: HDMI-0 res: 1920x1080 hz: 60 dpi: 82 size: 598x336mm (23.5x13.2") 
           diag: 686mm (27") 
           OpenGL: renderer: GeForce GT 610/PCIe/SSE2 v: 4.6.0 NVIDIA 390.151 direct render: Yes 
Audio:     Device-1: Intel Cannon Lake PCH cAVS vendor: Micro-Star MSI driver: snd_hda_intel v: kernel 
           alternate: snd_soc_skl,snd_sof_pci bus-ID: 00:1f.3 chip-ID: 8086:a348 class-ID: 0403 
           Device-2: NVIDIA GF119 HDMI Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel 
           bus-ID: 01:00.1 chip-ID: 10de:0e08 class-ID: 0403 
           Device-3: Texas Instruments PCM2705 stereo audio DAC type: USB 
           driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-1:2 chip-ID: 08bb:2705 class-ID: 0300 
           Device-4: Logitech Webcam C310 type: USB driver: snd-usb-audio,uvcvideo bus-ID: 1-2:3 
           chip-ID: 046d:081b class-ID: 0102 serial: <filter> 
           Sound Server-1: ALSA v: k5.10.0-17-amd64 running: yes 
           Sound Server-2: PulseAudio v: 14.2 running: yes 
Network:   Device-1: Intel Ethernet I219-V vendor: Micro-Star MSI driver: e1000e v: kernel port: efa0 
           bus-ID: 00:1f.6 chip-ID: 8086:15bc class-ID: 0200 
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 834.65 GiB used: 221.57 GiB (26.5%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: TeamGroup model: TM8FP4256G size: 238.47 GiB 
           block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD 
           serial: <filter> rev: ECFM13.1 temp: 35.9 C scheme: MBR 
           ID-2: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD6400AAKS-75A7B2 
           size: 596.17 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s type: N/A 
           serial: <filter> rev: 3B01 scheme: MBR 
Partition: ID-1: / raw-size: 50.78 GiB size: 49.68 GiB (97.84%) used: 11.21 GiB (22.6%) fs: ext4 
           dev: /dev/nvme0n1p2 maj-min: 259:2 
           ID-2: /home raw-size: 105.43 GiB size: 103.22 GiB (97.90%) used: 2.72 GiB (2.6%) fs: ext4 
           dev: /dev/nvme0n1p4 maj-min: 259:4 
Swap:      Alert: No swap data was found. 
Sensors:   System Temperatures: cpu: 50.0 C mobo: N/A gpu: nvidia temp: 58 C 
           Fan Speeds (RPM): N/A 
Repos:     Packages: note: see --pkg apt: 2223 lib: 1133 flatpak: 0 
           No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian bullseye-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian bullseye main contrib non-free
           2: deb http://security.debian.org/debian-security bullseye-security main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://mirrors.rit.edu/mxlinux/mx-packages/mx/repo/ bullseye main non-free
Info:      Processes: 302 Uptime: 3h 19m wakeups: 1 Memory: 31.23 GiB used: 6.49 GiB (20.8%) 
           Init: SysVinit v: 2.96 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: 10.2.1 
           alt: 10 Shell: Bash v: 5.1.4 running-in: quick-system-info-mx 
           inxi: 3.3.06 
Boot Mode: BIOS (legacy, CSM, MBR)

Re: No power saving for display  [Solved]

Posted: Sun Sep 04, 2022 5:47 pm
by Huckleberry Finn
linuxuzer wrote: Sun Sep 04, 2022 3:42 pm... when I took it out of sleep, it wouldn't wake up, all I got was the mouse trailing around the blank screen with a strange lag. I tried restarting X with ctrl+alt+del and it wouldn't restart, so I had to reboot...
That's a known issue:

The xfce4-screensaver was causing that on MX19 and we (especially me) suggested the MX Team to not include that in MX21.

But, other than that, there's a known issue (in general , not MX-specific) with some older Nvidia cards and some Intel cards and the Linux kernel. For example on this HP (mine) (no matter what distro and what DE) only 4.9 and 4.19 (kernels) are ok in that manner with Nvidia.

Shortly: You can try different kernels (the newest ones like 5.19 or 5.18 and/or 4.19 to see what happens.

(In fact 5.18 has reached EOL but it'll be simple to install with 2 clicks from Popular Apps tab in MXPI. (5.19 is in other tabs: Test and Backports) )

Re: No power saving for display

Posted: Mon Sep 05, 2022 10:19 am
by linuxuzer
Huckleberry Finn wrote: Sun Sep 04, 2022 5:47 pm
linuxuzer wrote: Sun Sep 04, 2022 3:42 pm... when I took it out of sleep, it wouldn't wake up, all I got was the mouse trailing around the blank screen with a strange lag. I tried restarting X with ctrl+alt+del and it wouldn't restart, so I had to reboot...
That's a known issue:

The xfce4-screensaver was causing that on MX19 and we (especially me) suggested the MX Team to not include that in MX21.

But, other than that, there's a known issue (in general , not MX-specific) with some older Nvidia cards and some Intel cards and the Linux kernel. For example on this HP (mine) (no matter what distro and what DE) only 4.9 and 4.19 (kernels) are ok in that manner with Nvidia.

Shortly: You can try different kernels (the newest ones like 5.19 or 5.18 and/or 4.19 to see what happens.

(In fact 5.18 has reached EOL but it'll be simple to install with 2 clicks from Popular Apps tab in MXPI. (5.19 is in other tabs: Test and Backports) )
Ok, thanks a lot. The interesting thing is I wasn't getting any of these issues with 19, they only started when I upgraded to 21. So maybe it is an issue with the 5.x kernel, because as far as I remember I still had a 4 kernel with 19. I'm going to downgrade that to a 4.x and my guess based on what you said is that it will fix the issue. I'll mark it solved if it works, or just post again if it doesn't. Thanks again.

Part of my problem, just to add, is that MX has been so trouble-free that I generally don't keep up on issues like this with nvidia and the kernel. It "just works," so I just go about my merry way and am oblivious until something breaks, lol

Re: No power saving for display

Posted: Mon Sep 05, 2022 10:23 am
by Huckleberry Finn
linuxuzer wrote: Mon Sep 05, 2022 10:19 am... I wasn't getting any of these issues with 19, they only started when I upgraded to 21. So maybe it is an issue with the 5.x kernel ...
Yep. :)

Re: No power saving for display

Posted: Mon Sep 05, 2022 10:25 am
by Huckleberry Finn
In case you install: You'll find it under "Advanced Options" in Grub to boot with. Then in case it's ok, you can make it the default with "MX Boot Options" - "Boot to" menu.

Just one more note: There's also such a known issue in general (maybe Xfce-specific):

When you first suspend then close the lid.. then open the lid.. everything's fine..

But when you directly close the lid (yes it suspends...) then open the lid : Wakes up with a blank screen (Grrrr)

Re: No power saving for display

Posted: Mon Sep 05, 2022 10:46 am
by linuxuzer
I'm just noticing there are no 4.x kernels in synaptic. I seem to remember there used to be dozens of both 4 and 5 - is there a repo I have to add now for old kernels?

In case upgrading to 5.13 works - i'll try that first - what's the difference between mx-amd64 and mx2-amd64?

Re: No power saving for display

Posted: Mon Sep 05, 2022 10:57 am
by Huckleberry Finn
"MXPI"

Re: No power saving for display

Posted: Mon Sep 05, 2022 12:37 pm
by linuxuzer
Huckleberry Finn wrote: Mon Sep 05, 2022 10:57 am "MXPI"
I'm not seeing any MXPI kernel. I have eight 5.13 kernels listed, all unsigned, one 5.16 liquorix image, and a few dozen 5.10 kernels. Seems like maybe I'm missing something in synaptic.

Re: No power saving for display

Posted: Mon Sep 05, 2022 12:53 pm
by Huckleberry Finn
Menu => "MX Package Installer" :)

Re: No power saving for display

Posted: Mon Sep 05, 2022 1:58 pm
by linuxuzer
Huckleberry Finn wrote: Mon Sep 05, 2022 12:53 pm Menu => "MX Package Installer" :)
Ok, I see a couple of antiX kernels there, those must be the ones. Strange there's no access to earlier kernels through synaptic, I would have expected at least a couple of older legacy kernels there. But whatever works, thanks