Garbled screen on functional pc when resuming

Kernels & Hardware, configuring network, installing services

Garbled screen on functional pc when resuming

Postby Chobin75 » 2020-04-02 06:32

Hi guys, greetings from Italy...
while stuck at home due to coronavirus, I installed debian 10 on an old laptop I have here.
It's an Acer Aspire 5100 and I installed the 4.19.0-8 amd64 Kernel. Everything runs fine, and I'm really happy to revive this old machine, there's only one thing that's not working properly: the system goes into suspend but when I resume it the screen is totally garbled. The computer is working and responsive, as I can see that even thru the garbled screen, it seems to be just a graphics problem.
lspci tells me that I have a:
Code: Select all
VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RS482M [Mobility Radeon Xpress 200]

I have tried different solutions with no success... i.e. various combos of pm-utils quirks
Code: Select all
systemctl suspend
gives the same result
the system does hybernate/dehybernate with no problems.
Can you help me solve this issue, or point me to good source of info?
Chobin75
 
Posts: 11
Joined: 2010-08-03 16:57

Re: Garbled screen on functional pc when resuming

Postby Deb-fan » 2020-04-02 07:09

http://blog.ataboydesign.com/2017/10/04 ... -graphics/

Would see if that PKG is installed, if not do so and check results. Always good to hear people are reviving perfectly good hardware via the power of Debian, other gnu/Linux. :) My laptop is elderly but very happy with how well it still performs. That above suggestion is one thing to try though.
Most powerful FREE tech-support tool on the planet * HERE. *
Deb-fan
 
Posts: 968
Joined: 2012-08-14 12:27

Re: Garbled screen on functional pc when resuming

Postby peer » 2020-04-02 07:48

do you have firmware-linux-non-free installed??

see: https://wiki.debian.org/AtiHowTo
peer
 
Posts: 135
Joined: 2017-03-26 10:14

Re: Garbled screen on functional pc when resuming

Postby Chobin75 » 2020-04-02 09:40

First of all, thanks for your replies.

Deb-fan wrote:http://blog.ataboydesign.com/2017/10/04/error-radeon-kernel-modesetting-for-r600-or-later-requires-firmware-amd-graphics/

Would see if that PKG is installed, if not do so and check results. Always good to hear people are reviving perfectly good hardware via the power of Debian, other gnu/Linux. :) My laptop is elderly but very happy with how well it still performs. That above suggestion is one thing to try though.


I do have that pkg installed, and accordingly I don't get any kernel error at boot time:

Code: Select all
02/04/20 09:30      [drm] radeon kernel modesetting enabled.
02/04/20 09:30      [drm] initializing kernel modesetting (RS480 0x1002:0x5975 0x1025:0x009F 0x00).


peer wrote:do you have firmware-linux-non-free installed??

see: https://wiki.debian.org/AtiHowTo


yes, I have it installed too, and the firmware looks to be loaded correctly

Code: Select all
02/04/20 09:30   radeon 0000   1:05.0: firmware: direct-loading firmware radeon/R300_cp.bin
Chobin75
 
Posts: 11
Joined: 2010-08-03 16:57

Re: Garbled screen on functional pc when resuming

Postby Deb-fan » 2020-04-02 10:04

It's dated and Arch related but may be a nugget or pointer if you haven't already looked it over. Gnu/Linux is gnu/nix, much is shared. My grasp of the workings of suspend/hibernate mostly bytes. Seems only time I've taken an interest is when another nixer is having issues. However have developed decent google-fu skills, so perhaps this url will help. :)

https://bbs.archlinux.org/viewtopic.php?id=97503
Most powerful FREE tech-support tool on the planet * HERE. *
Deb-fan
 
Posts: 968
Joined: 2012-08-14 12:27

Re: Garbled screen on functional pc when resuming

Postby Chobin75 » 2020-04-02 11:41

I tried the link above, which basically was about disabling kms and running a suspend command with a few quirks.
Disabling kms (did it setting the “nomodeset” boot option) messed a bit my graphics, as everything on screen was at a really low resolution...btw tried to suspend using the adviced quirks but I get a black screen on resume and nothing else.
Maybe it’s better to give up, I think I’ve tried almost everything!
Chobin75
 
Posts: 11
Joined: 2010-08-03 16:57

Re: Garbled screen on functional pc when resuming

Postby Head_on_a_Stick » 2020-04-02 11:51

Chobin75 wrote:Disabling kms (did it setting the “nomodeset” boot option) messed a bit my graphics, as everything on screen was at a really low resolution...

Kernel modesetting is required for the AMD drivers.

Which drivers are you actually using anyway?
Code: Select all
lspci -knn | grep -iA3 'vga\|display\|3d'

And which desktop are you running? I would try disabling the compositor.

Is there anything in ~/.xsession-errors after you experience the problem? Also check the systemd journal.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12745
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Garbled screen on functional pc when resuming

Postby Deb-fan » 2020-04-02 11:53

Never like seeing folks give up on a nix issue but makes a lot of sense at times, return on time-etc invested. Suspend works on Buster on this 10yr old lappy, even w/o pm-utils installed, couple diff kernels. Still unless some power management nix ninja guru shows up could call enough ... enough here. Personally never even use suspend/hibernate, my idea of suspend is walk away, do whatever else, come back press some keys to rouse the old beast. :)

Oops, Head_on has shown up, might get some suspend joy after all.
Most powerful FREE tech-support tool on the planet * HERE. *
Deb-fan
 
Posts: 968
Joined: 2012-08-14 12:27

Re: Garbled screen on functional pc when resuming

Postby Chobin75 » 2020-04-02 13:39

Head_on_a_Stick wrote:Which drivers are you actually using anyway?


here's the answer:
Code: Select all
marco@marco-debian:~$ lspci -knn | grep -iA3 'vga\|display\|3d'
01:05.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] RS482M [Mobility Radeon Xpress 200] [1002:5975]
   Subsystem: Acer Incorporated [ALI] RS482M [Mobility Radeon Xpress 200] [1025:009f]
   Kernel driver in use: radeon
   Kernel modules: radeonfb, radeon


Head_on_a_Stick wrote:And which desktop are you running? I would try disabling the compositor

openbox ... the compositor is compton (I'll try to figure out how to restart it)

nothing relevant in journald log
in .xsession-errors I've found this:
Code: Select all
[9228:9228:0402/160155.730640:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.



Edit: disabling the compositor did not solve the issue
Chobin75
 
Posts: 11
Joined: 2010-08-03 16:57

Re: Garbled screen on functional pc when resuming

Postby Head_on_a_Stick » 2020-04-02 16:01

You could try using the glamor acceleration method instead of EXA.

Copy the sample file over:
Code: Select all
# mkdir -p /etc/X11/xorg.conf.d
# cp /usr/share/X11/xorg.conf.d/10-radeon.conf /etc/X11/xorg.conf.d

Then edit /etc/X11/xorg.conf.d/10-radeon.conf and add the option, like this:
Code: Select all
Section "OutputClass"
   Identifier "Radeon"
   MatchDriver "radeon"
   Driver "radeon"
   Option "AccelMethod" "glamor"
EndSection

It might not work at all for your card, just delete the new file if X won't start afterwards.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12745
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Garbled screen on functional pc when resuming

Postby Chobin75 » 2020-04-02 18:13

It doesn’t work. After the boot the screen goes black and I don’t know how to go on. I have to delete that file, but how? :?
Chobin75
 
Posts: 11
Joined: 2010-08-03 16:57

Re: Garbled screen on functional pc when resuming

Postby Head_on_a_Stick » 2020-04-02 18:17

Chobin75 wrote:I have to delete that file, but how?

Boot using the "recovery mode" entry in the "Advanced Options" sub-menu.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12745
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Garbled screen on functional pc when resuming

Postby Chobin75 » 2020-04-02 18:44

in rescue mode after a while I get this:

Code: Select all
Cannot open access to console, the root account is locked
See sulogin(8) man page for more details
Press enter to continue


If I press enter the system tries to load the WiFi and then hangs
Chobin75
 
Posts: 11
Joined: 2010-08-03 16:57

Re: Garbled screen on functional pc when resuming

Postby Head_on_a_Stick » 2020-04-02 19:03

Either use the init=/bin/bash kernel parameter or delete the file from the live environment. Sorry for the trouble.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12745
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Garbled screen on functional pc when resuming

Postby Chobin75 » 2020-04-02 19:28

Head_on_a_Stick wrote:Either use the init=/bin/bash kernel parameter or delete the file from the live environment. Sorry for the trouble.


No problem, everything is fine now (not counting the resume problem, which is still here)
Chobin75
 
Posts: 11
Joined: 2010-08-03 16:57


Return to System configuration

Who is online

Users browsing this forum: No registered users and 19 guests

fashionable