Resume from Suspend freezes/dedicated graphics deactivated

Screen resolution, 3D Acceleration, nVidia, ATI
Forum rules
Before you post please read this

Resume from Suspend freezes/dedicated graphics deactivated

Postby Saphieron on Thu Mar 07, 2013 6:08 am

Hey guys,

I'm still relativly new to Linux Mint and I'm looking now for a solution for quite some time for this problem.
In a nutshell: My resume from Suspend does not work anymore and freezes the System after the first Image is shown after I deactivated manually my dedicated radeon.

Now the more complex explanation:
I'm running Linux Mint 14 with Cinnamon 1.6 on a Lenovo Thinkpad Edge E320 with core i5 and have a switchable graphics solution with Intel HD 3000 and an AMD Radeon HD 6630M.These use the preinstalled driver.
Everything runs monstly out of the box and very stable, but the power consumption seemed very high with a battery life of 2-3 hours max.
I found then out that both the radeon and the intel graphics where powered at the same time and any command I found for switching or turning off specially the radeon didn't work because of not having the permission to do that even with sudo. I later read that copying the command below to /etc/rc.local still works on startup.
Code: Select all
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch


Checking with
Code: Select all
sudo cat /sys/kernel/debug/vgaswitcheroo/switch

shows afterwards that my dedicated is not powered anymore. That's as expected and wished
but

After I add the echo OFF-command to the rc.local I cannot resume from Suspend after closing and opening the lid as well as using:
Code: Select all
sudo pm-suspend

The laptop itself seems to resume to the point of showing me the Desktop with panel, or in case of opening the lid again showing me the lock screen after that the system freezes completly!
I am not able to change to other tty screens, cannot use ctrl+alt+backspace to restart the x-server or any other keyboard input. Neither the touchpad nor the trackpoint work and the only thing left to do i to make a hardware reset and pressing the Power Button to turn it off by force. Booting/rebooting normal works even with the command just fine.

Deleting/commenting the echo command out of rc.local seems to make the suspend work again, but then I'm back to the problem of having both graphics being powered.
Up to now it seems for me that, Cinnamon/x-server have a problem with having the dedicated turned off after the initial configuration, so I have narrowed it down to the deactivated card.

Anybody an idea how to maybe find out what failes exactly and/or what could be looked up/changed? My knowledge of x-server configs is quite equally to zero...

Thanks in advance

Saphieron
Saphieron
Level 1
Level 1
 
Posts: 10
Joined: Tue Feb 26, 2013 1:40 pm

Linux Mint is funded by ads and donations.
 

Re: Resume from Suspend freezes/dedicated graphics deactivat

Postby viking777 on Thu Mar 07, 2013 6:16 am

Saphieron, you appeared to have made this post 4 times so I have deleted the other three entries.
Fujitsu Lifebook AH532. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Lubuntu 13.10,Ubuntu12.10 (Unity), Mint16 (Cinnamon), Manjaro (Xfce).
Image
User avatar
viking777
Level 14
Level 14
 
Posts: 5153
Joined: Mon Dec 01, 2008 11:21 am

Re: Resume from Suspend freezes/dedicated graphics deactivat

Postby Saphieron on Thu Mar 07, 2013 3:09 pm

Thanks. That was not intended :?
Probably the University-Network doing wierd stuff again...
Saphieron
Level 1
Level 1
 
Posts: 10
Joined: Tue Feb 26, 2013 1:40 pm

Re: Resume from Suspend freezes/dedicated graphics deactivat

Postby Saphieron on Fri May 03, 2013 12:19 pm

While not finding any solution with the open source driver, i tried to do it with the AMD/ATI propietary driver.

I followed the installation guide from
http://ubuntuforums.org/printthread.php?s=c2d469eb5a578eb0871a2dfba23a0b8c&t=1930450&pp=75 (thanks to Alexislavie)
after completly breaking my x-server config and drivers.

The suggested driver-version for Ubuntu 12.04 didn't do the trick, as Mint 14 works on 12.10, but using the latest stable(!) driver 13.04 worked perfectly for me.
Careful: There is NO logical name-convention for the .zip hosted at AMD.
What worked for me was:

Code: Select all
wget http://www2.ati.com/drivers/linux/amd-catalyst-13.4-linux-x86.x86_64.zip


Unzip it and then install it with

Code: Select all
unzip amd-catalyst-13.4-linux-x86.x86_64.zip
chmod +x amd-catalyst-13.4-linux-x86.x86_64.run
sudo sh amd-catalyst-13.4-linux-x86.x86_64.run

The rest works more or less as in the other description. Didn't try Step 2 till now, because everything was working as I hoped it would.

You can switch between the graphic cards via

Code: Select all
aticonfig --pxl # List current activated GPU
sudo aticonfig --px-dgpu # Activate discrete GPU (High-Performance mode)
sudo aticonfig --px-igpu # Activate integrated GPU (Power-Saving mode)


but it needs a restart of the x-server (ctrl+alt+backspace for Mint 14).
It even remembers the last setting, so you don't have to type the command for deactivating one card on every startup.

Maybe this helps some other Thinkpad users/people with amd graphics ^^

Cheers,

Saphieron

EDIT:

That in mind, there is no need for any new lines in the rc.local or other modification than the new drivers. Resume from suspend or hibernate work "out of the box" again :3
Saphieron
Level 1
Level 1
 
Posts: 10
Joined: Tue Feb 26, 2013 1:40 pm


Return to Graphic Cards & Monitors

Who is online

Users browsing this forum: No registered users and 1 guest