Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

screens remain black after I resume from suspend

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
dbl
n00b
n00b
Posts: 16
Joined: Thu Dec 03, 2020 1:36 am
Location: China

screens remain black after I resume from suspend

  • Quote

Post by dbl » Sun Aug 29, 2021 4:11 am

Hello, everyone,

I encounter some problems now. I install Gentoo several days ago, also have Xfce installed, everything works ok until I try to suspend (to RAM), when I try to resume from it. Two conditions may happen:

1. The screens do turn on, but it remains black;
2. The screens do not turn on, there is no reaction to keystrokes.

I don't know whether it is a problem of nvidia proprietor driver (which I install from Gentoo repository through "emerge --ask x11-drivers/nvidia-drivers").

I try kernels (from "genkernel all" and "gentoo-kernel-dist"), but the results do not change.

I don't know what to do now. Does someone know something about this? Appreciate it first.
Top
alamahant
Advocate
Advocate
Posts: 4032
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Sun Aug 29, 2021 3:51 pm

Hi
Plz disable screen-lock and try again.
Are you trying to suspend or hibernate?
If the second you need swap.
Plz try

Code: Select all

egrep -i "suspend|resume|screen|auth" /var/log/Xorg.0.log
egrep -i "suspend|resume|screen|auth" /var/log/messages
I don't know whether it is a problem of nvidia proprietor driver (which I install from Gentoo repository through "emerge --ask x11-drivers/nvidia-drivers").
Do NOT explicitly emerge nvidia-drivers
Just in make.conf append
VIDEO_CARDS="nvidia"
and rebuild @world
Plz run

Code: Select all

emerge --deselect nvidia-drivers
emerge -uDUav @world
:)
Top
dbl
n00b
n00b
Posts: 16
Joined: Thu Dec 03, 2020 1:36 am
Location: China

  • Quote

Post by dbl » Sun Aug 29, 2021 5:20 pm

Thank you very much for your help, I try disabling screensaver just now, but it does not work.

I am trying to suspend (to RAM)

Code: Select all

[   399.342] (==) No Layout section.  Using the first Screen section.
[   399.342] (==) No screen section available. Using defaults.
[   399.342] (**) |-->Screen "Default Screen Section" (0)
[   399.343] (==) No device specified for screen "Default Screen Section".
[   399.343] (==) No monitor specified for screen "Default Screen Section".
[   399.346] (II) NVIDIA(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[   399.790] (II) NVIDIA(0): Virtual screen size determined to be 3840 x 1080
[   399.960] (II) Initializing extension MIT-SCREEN-SAVER
[   399.960] (II) GLX: Another vendor is already registered for screen 0
As for not emerge nvidia-driver explicitly, I have noticed this now, and now I install it as you say.

I have also try hibernate, the problem is the same, everything seems work well except that the two screens still have no content (The screens are turned on, just no content!)
Last edited by dbl on Sun Aug 29, 2021 5:29 pm, edited 1 time in total.
Top
alamahant
Advocate
Advocate
Posts: 4032
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Sun Aug 29, 2021 5:27 pm

Maybe you miss something like

Code: Select all

Section "Screen"
        Identifier "nvidia"
        Device "nvidia"
        Option "AllowEmptyInitialConfiguration"
EndSection

in xorg.conf
Plz run

Code: Select all

 nvidia-xconfig
to produce a xorg.conf
:)
Top
dbl
n00b
n00b
Posts: 16
Joined: Thu Dec 03, 2020 1:36 am
Location: China

  • Quote

Post by dbl » Sun Aug 29, 2021 5:45 pm

I add the
Option "Allow..." to Section "Screen" area. Now it looks like

Code: Select all

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 470.57.02

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from data in "/etc/conf.d/gpm"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    Option         "AllowEmptyInitialConfiguration"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Is this enough?

This does not work.
Top
dbl
n00b
n00b
Posts: 16
Joined: Thu Dec 03, 2020 1:36 am
Location: China

  • Quote

Post by dbl » Sun Aug 29, 2021 5:48 pm

Will it be a problem of display manager, I do not use a DM, I use startx instead.
Top
dbl
n00b
n00b
Posts: 16
Joined: Thu Dec 03, 2020 1:36 am
Location: China

  • Quote

Post by dbl » Sun Aug 29, 2021 6:11 pm

I forget to provide the result of

Code: Select all

egrep -i "suspend|resume|screen|auth" /var/log/message"
, sorry, below is the output,

Code: Select all

Aug 29 19:43:30 linbd kernel: nvme 0000:03:00.0: platform quirk: setting simple suspend
Aug 29 19:45:28 linbd kernel: PM: suspend entry (deep)
Aug 29 19:45:28 linbd kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Aug 29 19:45:28 linbd kernel: PM: suspend devices took 0.300 seconds
Aug 29 19:45:30 linbd kernel: ACPI: Low-level resume complete
Aug 29 19:45:30 linbd kernel: PM: resume devices took 0.140 seconds
Aug 29 19:45:30 linbd kernel: PM: suspend exit
Aug 29 20:31:55 linbd kernel: nvme 0000:03:00.0: platform quirk: setting simple suspend
Aug 29 21:58:09 linbd kernel: nvme 0000:03:00.0: platform quirk: setting simple suspend
Aug 29 22:01:44 linbd kernel: PM: suspend entry (deep)
Aug 29 22:01:44 linbd kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Aug 29 22:01:44 linbd kernel: PM: suspend devices took 0.164 seconds
Aug 29 22:01:46 linbd kernel: ACPI: Low-level resume complete
Aug 29 22:01:47 linbd kernel: PM: resume devices took 0.367 seconds
Aug 29 22:01:47 linbd kernel: PM: suspend exit
Aug 29 22:05:25 linbd kernel: nvme 0000:03:00.0: platform quirk: setting simple suspend
Aug 30 00:05:08 linbd kernel: nvme 0000:03:00.0: platform quirk: setting simple suspend
Aug 30 00:06:17 linbd kernel: PM: suspend entry (deep)
Aug 30 00:06:17 linbd kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Aug 30 00:06:18 linbd kernel: PM: suspend devices took 0.174 seconds
Aug 30 00:06:20 linbd kernel: ACPI: Low-level resume complete
Aug 30 00:06:20 linbd kernel: PM: resume devices took 0.364 seconds
Aug 30 00:06:20 linbd kernel: PM: suspend exit
Aug 30 00:47:04 linbd kernel: nvme 0000:03:00.0: platform quirk: setting simple suspend
Aug 30 00:55:20 linbd pulseaudio[6115]: [pulseaudio] authkey.c: Failed to open cookie file '/home/linbd/.config/pulse/cookie': No such file or directory
Aug 30 00:55:20 linbd pulseaudio[6115]: [pulseaudio] authkey.c: Failed to load authentication key '/home/linbd/.config/pulse/cookie': No such file or directory
Aug 30 00:55:20 linbd pulseaudio[6115]: [pulseaudio] authkey.c: Failed to open cookie file '/home/linbd/.pulse-cookie': No such file or directory
Aug 30 00:55:20 linbd pulseaudio[6115]: [pulseaudio] authkey.c: Failed to load authentication key '/home/linbd/.pulse-cookie': No such file or directory
Aug 30 00:57:06 linbd kernel: PM: suspend entry (deep)
Aug 30 00:57:06 linbd kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Aug 30 00:57:06 linbd kernel: PM: suspend devices took 0.167 seconds
Aug 30 00:57:09 linbd kernel: ACPI: Low-level resume complete
Aug 30 00:57:09 linbd kernel: PM: resume devices took 0.404 seconds
Aug 30 00:57:09 linbd kernel: PM: suspend exit
Aug 30 00:57:20 linbd pulseaudio[6115]: [alsa-sink-HDMI 0] alsa-util.c: Could not recover alsa device from SUSPENDED state, trying to restart PCM
Aug 30 00:59:59 linbd kernel: nvme 0000:03:00.0: platform quirk: setting simple suspend
Aug 30 01:03:13 linbd kernel: PM: suspend entry (deep)
Aug 30 01:03:14 linbd kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Aug 30 01:03:14 linbd kernel: PM: suspend devices took 0.170 seconds
Aug 30 01:03:16 linbd kernel: ACPI: Low-level resume complete
Aug 30 01:03:16 linbd kernel: PM: resume devices took 0.410 seconds
Aug 30 01:03:16 linbd kernel: PM: suspend exit
Aug 30 01:03:27 linbd pulseaudio[2440]: [alsa-sink-HDMI 0] alsa-util.c: Could not recover alsa device from SUSPENDED state, trying to restart PCM
Aug 30 01:05:07 linbd kernel: nvme 0000:03:00.0: platform quirk: setting simple suspend
Aug 30 01:06:50 linbd kernel: PM: suspend entry (deep)
Aug 30 01:06:50 linbd kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Aug 30 01:06:50 linbd kernel: PM: suspend devices took 0.170 seconds
Aug 30 01:06:52 linbd kernel: ACPI: Low-level resume complete
Aug 30 01:06:53 linbd kernel: PM: resume devices took 0.384 seconds
Aug 30 01:06:53 linbd kernel: PM: suspend exit
Aug 30 01:07:06 linbd pulseaudio[2427]: [alsa-sink-HDMI 0] alsa-util.c: Could not recover alsa device from SUSPENDED state, trying to restart PCM
Aug 30 01:09:32 linbd kernel: nvme 0000:03:00.0: platform quirk: setting simple suspend
Aug 30 01:11:08 linbd kernel: PM: suspend entry (deep)
Aug 30 01:11:09 linbd kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Aug 30 01:11:09 linbd kernel: PM: suspend devices took 0.174 seconds
Aug 30 01:11:11 linbd kernel: ACPI: Low-level resume complete
Aug 30 01:11:12 linbd kernel: PM: resume devices took 0.407 seconds
Aug 30 01:11:12 linbd kernel: PM: suspend exit
Aug 30 01:11:40 linbd pulseaudio[2428]: [alsa-sink-HDMI 0] alsa-util.c: Could not recover alsa device from SUSPENDED state, trying to restart PCM
Aug 30 01:21:27 linbd kernel: nvme 0000:03:00.0: platform quirk: setting simple suspend
Aug 30 01:22:01 linbd kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Aug 30 01:22:40 linbd pulseaudio[2438]: [alsa-sink-HDMI 0] alsa-util.c: Could not recover alsa device from SUSPENDED state, trying to restart PCM
Aug 30 01:30:23 linbd kernel: nvme 0000:03:00.0: platform quirk: setting simple suspend
Aug 30 01:36:47 linbd kernel: PM: suspend entry (deep)
Aug 30 01:36:48 linbd kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Aug 30 01:36:48 linbd kernel: PM: suspend devices took 0.167 seconds
Aug 30 01:36:50 linbd kernel: ACPI: Low-level resume complete
Aug 30 01:36:50 linbd kernel: PM: resume devices took 0.387 seconds
Aug 30 01:36:50 linbd kernel: PM: suspend exit
Aug 30 01:37:11 linbd pulseaudio[2734]: [alsa-sink-HDMI 0] alsa-util.c: Could not recover alsa device from SUSPENDED state, trying to restart PCM
Aug 30 01:38:41 linbd kernel: nvme 0000:03:00.0: platform quirk: setting simple suspend
Aug 30 02:05:11 linbd kernel: PM: suspend entry (deep)
Aug 30 02:05:12 linbd kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Aug 30 02:05:12 linbd kernel: PM: suspend devices took 0.164 seconds
Aug 30 02:05:14 linbd kernel: ACPI: Low-level resume complete
Aug 30 02:05:14 linbd kernel: PM: resume devices took 0.404 seconds
Aug 30 02:05:14 linbd kernel: PM: suspend exit
Aug 30 02:05:36 linbd pulseaudio[2435]: [alsa-sink-HDMI 0] alsa-util.c: Could not recover alsa device from SUSPENDED state, trying to restart PCM
There seems some prompts about what happened. But I can not understand it.
Top
alamahant
Advocate
Advocate
Posts: 4032
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Sun Aug 29, 2021 6:14 pm

If you use
nvidia-xconfig
you should NOT append my example "screen section",just what is produced by the command.
Yes try with lightdm.
I use xfce with lightdm and just now I checked:
Suspend works just fine
Your output aslo does not look very terrible.
Maybe some alsa/pulseaudio problem.
Plz try with the nvidia-xconfig+lightdm
How do you effect the suspend?
By closing the lid?
Plz check also xfce->settings-manager->power options
:)
Top
dbl
n00b
n00b
Posts: 16
Joined: Thu Dec 03, 2020 1:36 am
Location: China

  • Quote

Post by dbl » Sun Aug 29, 2021 6:29 pm

It works, though I don't know what happened when use only starts, but I'm still very happy that I can suspend/hibernate.

Thank you very much, alamahant!!
Top
dbl
n00b
n00b
Posts: 16
Joined: Thu Dec 03, 2020 1:36 am
Location: China

  • Quote

Post by dbl » Sun Aug 29, 2021 6:36 pm

I think what really matter is the lightdm, it must be some restrictions with startx, may be some authentication/priviledge problem (I guess).

And, actually, I am using a desktop computer.
Top
Post Reply

10 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic