LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-05-2023, 07:33 AM   #1
Yetoo
Member
 
Registered: Dec 2015
Distribution: Fedora, Debian, Ubuntu, couldn't install gentoo
Posts: 44

Rep: Reputation: 5
Monitor doesn’t detect output/black screen on wake up from S3 sleep when i915.modeset=0.


I need to disable kms drivers so resolution and other settings work better for a full screen text application. I use i915.modeset=0 as a boot command to do this. When this is set the monitor doesn’t seem to detect display on wake up from rtcwake -m mem ... or systemctl suspend. Swap size below 4GB isn’t an issue because monitor detects display on wake up when i915.modeset=1 is set as well as swap space being bigger than memory. I have tried changing source on the monitor and power cycling it, but it still doesn’t detect output. Appending no_console_suspend boot command doesn’t work. Replacing no_console_suspend with i915.enable_dc=0 doesn’t work. Grub was updated with /sbin/grub-mkconfig -o /boot/grub/grub.cfg each time. The primary video controller output in the bios was auto and I changed it to onboard and I still experience this issue. This is experienced with Debian 11 with an Intel iGPU. What do I need to do to get the monitor to detect output from the iGPU after wake up from S3 with i915.modeset=0 on boot command line?
 
Old 03-06-2023, 02:52 AM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,924
Blog Entries: 1

Rep: Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082
Disabling KMS, whether by using nomodeset or i915.modeset=0, cripples the graphics system. Disabling KMS is primarily designed for enabling troubleshooting on a system on which no functional video output occurs. Find a way to accommodate the application to a some kind of KMS-enabled environment, or suffer the consequences.

Text can be configured for fullscreen aka vtty session for various needs. So too can resolution be changed. e.g., if the display's native mode is 2560x1440, but 2048x1024 would be more useful, and the display supports it, append the following to the linu line in grub:
Code:
video=2048x1024
This only works if KMS remains enabled.
 
Old 03-12-2023, 04:48 AM   #3
Yetoo
Member
 
Registered: Dec 2015
Distribution: Fedora, Debian, Ubuntu, couldn't install gentoo
Posts: 44

Original Poster
Rep: Reputation: 5
I was able to resolve this with reassurance from https://www.kernel.org/doc/Documenta...ower/video.txt. It requires vbetool is installed. I needed to do
Code:
/sbin/vbetool vbestate save > dump
when the the monitor is active and working and then I could do (FYI: following command spits out Function not supported despite the command working)
Code:
/sbin/vbetool vbestate restore < dump
after computer wakes up. At this point the display has artifacts and all I have to do is refresh the display without kernel text showing up is killing and restarting the display process. Changing vt with function keys or chvt to a different vt and then back to desired one sort of works, but kernel text shows up and brings the full screen text display out of view and necessitates the display being refreshed for my purposes. I'm not sure if the savestate dump actually has contents of the video buffer which may have sensitive info so if someone wants this to be repeatable I would err on the side of caution and make new savestate before sleep and then delete after wakeup.

Last edited by Yetoo; 03-17-2023 at 07:12 PM.
 
  


Reply

Tags
blackscreen, i915, kms, sleep, wake



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using i915 with modeset=1 AND keeping 80x25 console? Yury_T Linux - Hardware 2 04-08-2013 04:40 AM
Screen goes black after exit X or wake from sleep McZ Linux From Scratch 1 01-11-2013 09:53 PM
Monitor screen not wake up from sleep mode gabytf Slackware 1 10-27-2012 04:38 AM
sleep mode problem-monitor doesn't wake up linuxandtsm Linux - Newbie 1 05-08-2012 08:03 PM
can't wake up system after sleep, always black screen with mouth shadow dexper Linux - Laptop and Netbook 2 03-26-2010 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration