You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



power manager, laptop lid locking bugs

Author (Read 4851 times)

0 Members and 1 Guest are viewing this topic.

Re: power manager, laptop lid locking bugs
« Reply #8 on: May 07, 2015, 03:02:43 PM »
 

anon222

  • Muted
  • Gold Level Poster
  • *
  • 688
    Posts
  • Reputation: 192
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
Hello!

Well, the 'quirk-radeon-off' worked for me - no 'nomodeset' needed. I tried using nomodeset, and it threw me back to the default video driver and 1024x768 resolution, so I turned it back off again.

Glad it worked for you and thank you for letting me know `nomodeset` isn't needed.
Quirk sounds nicer than a `hack`;)
thanks misko that was great information

I tried many quirks and the system returned healthy from many suspends.
I added my-quirk
Did not use nomodeset.

Still buggy when lid is closed.
What else could over riding the power management ?
Checked /var/log/pm-powersave.log
dmesg etc..
nothing is showing a fail.

If I close the lid, the system comes back buggy whether lock lid or suspend is used.
I'll dig so more
No problem Galen. I learned something along the way.
What else could over riding the power management ?
Nothing I can think of. Have you tried different kernel?
Check the BIOS settings, maybe changing something in there would help.
Or maybe just updating microcode would help (not sure).
 

Re: power manager, laptop lid locking bugs
« Reply #7 on: May 06, 2015, 08:38:00 AM »
 

galen

  • New to Forums
  • *
  • 46
    Posts
  • Reputation: 4
  • Linux Lite Member
    • View Profile
    • Galen's pigpen

  • MEMORY: 256mb
thanks misko that was great information

I tried many quirks and the system returned healthy from many suspends.
I added my-quirk
Did not use nomodeset.

Still buggy when lid is closed.
What else could over riding the power management ?
Checked /var/log/pm-powersave.log
dmesg etc..
nothing is showing a fail.

If I close the lid, the system comes back buggy whether lock lid or suspend is used.
I'll dig so more
Linux user and supporter since 1998. Secular Humanist & skeptic.
openPGP: 0xC938FD97  jabber: [email protected]
 

Re: power manager, laptop lid locking bugs
« Reply #6 on: May 05, 2015, 06:56:57 PM »
 

N4RPS

  • Donator
  • Platinum Level Poster
  • **********
  • 1149
    Posts
  • Reputation: 155
  • Knows JUST ENOUGH Linux to be DANGEROUS
    • View Profile
    • Orphans for Christ, Self Advocates of Mecklenburg

  • CPU: Several Different 32-bit & 64-bit CPUs, 2-8 GB RAM

  • MEMORY: 8Gb

  • VIDEO CARD: Several Different AMD and Intel GPUs
Hello!

Well, the 'quirk-radeon-off' worked for me - no 'nomodeset' needed. I tried using nomodeset, and it threw me back to the default video driver and 1024x768 resolution, so I turned it back off again.

I will try some of these 'quirks' on some of the other laptops I have that misbehave when the lid closes...

73 DE N4RPS
Rob




A gun in your hand is worth more than a whole police force on the phone.
 

Re: power manager, laptop lid locking bugs
« Reply #5 on: May 05, 2015, 10:12:46 AM »
 

anon222

  • Muted
  • Gold Level Poster
  • *
  • 688
    Posts
  • Reputation: 192
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
Hello Galen,

Made some research on this.
From the pm-utils
Code: [Select]
man pm-suspendtry running sudo pm-suspend with some of the quirks
For example:
Code: [Select]
sudo pm-suspend --quirk-vbe-post --quirk-vbemode-restoreor
Code: [Select]
sudo pm-suspend --quirk-reset-brightnessor
Code: [Select]
sudo pm-suspend --quirk-dpms-onAll the quirks:
Code: [Select]
  --quirk-dpms-on
  --quirk-dpms-suspend
  --quirk-radeon-off
  --quirk-reset-brightness
  --quirk-s3-bios
  --quirk-s3-mode
  --quirk-vbe-post
  --quirk-vbemode-restore
  --quirk-vbestate-restore
  --quirk-vga-mode-3
  --quirk-none
The trick is finding the right combination. It could be just one parameter or several.
When you find the right quirk. Test your system to see if all is running OK.

From the manual, to save it create a file in /etc/pm/config.d/
Name it anyway you like.
Code: [Select]
gksu leafpad /etc/pm/config.d/my-quirkcontaining
Code: [Select]
ADD_PARAMETERS="pm-suspend --quirk-vbe-post --quirk-vbemode-restore" to make the quirk stick. Just use the parameters that work for you.
Which quirk works depends on your hardware, kernel, driver, KMS settings and the probably the phase of the moon. :)
Save. After reboot it should work.
Code: [Select]
dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.SuspendUPower should use those parameters.
Some usefull links:
https://wiki.archlinux.org/index.php/Pm-utils
http://manpages.ubuntu.com/manpages/oneiric/man8/pm-action.8.html
https://wiki.ubuntu.com/UnderstandingSuspend
Hope that helps.
I got this mostly from reading the manuals. Also I've had a look on this:
https://www.kernel.org/doc/Documentation/power/video.txt
and acpi_sleep kernel parameters here
https://www.kernel.org/doc/Documentation/kernel-parameters.txt
EDIT: I forgot to mention you need nomodeset for this to work.
Do this first:
Code: [Select]
sudo nano /etc/default/grub and then adding nomodeset to the line which reads GRUB_CMDLINE_LINUX_DEFAULT Then close nano saving the modifications (Ctrl+x, y, enter)
and then finally
Code: [Select]
sudo update-grub to implement the changes. Then restart.
After that you can verify that
Code: [Select]
cat /proc/cmdline contains nomodeset.
« Last Edit: May 05, 2015, 10:19:16 AM by misko_2083 »
 

Re: power manager, laptop lid locking bugs
« Reply #4 on: May 04, 2015, 05:23:06 PM »
 

galen

  • New to Forums
  • *
  • 46
    Posts
  • Reputation: 4
  • Linux Lite Member
    • View Profile
    • Galen's pigpen

  • MEMORY: 256mb
still a bug in LL 2.4 on HP nc4400
after returning from a suspend (lid close set to suspend)
login manager appears but quite dark,
after password entry screen goes black,
nothing revives nor wakes the screen.
Sometimes going blindly to a terminal tty1 and ctrl-alt-del the system will reboot
other times the system will hang and power switch does nothing.
That hard lock requires power and battery removal.

Lite locker is not used.
Linux user and supporter since 1998. Secular Humanist & skeptic.
openPGP: 0xC938FD97  jabber: [email protected]
 

Re: power manager, laptop lid locking bugs
« Reply #3 on: April 08, 2015, 06:39:55 AM »
 

galen

  • New to Forums
  • *
  • 46
    Posts
  • Reputation: 4
  • Linux Lite Member
    • View Profile
    • Galen's pigpen

  • MEMORY: 256mb
2.2
Linux user and supporter since 1998. Secular Humanist & skeptic.
openPGP: 0xC938FD97  jabber: [email protected]
 

Re: power manager, laptop lid locking bugs
« Reply #2 on: March 03, 2015, 11:57:51 AM »
 

Scott

  • Global Moderator
  • Gold Level Poster
  • *****
  • 857
    Posts
  • Reputation: 186
  • Linux Lite Member
    • View Profile

  • CPU: Dual core Intel Core i3 M 330

  • MEMORY: 6Gb

  • VIDEO CARD: Intel Integrated Graphics
Hi Galen,

Please confirm if you are running Linux Lite 1.0.8?

Thanks
Scott
 

power manager, laptop lid locking bugs
« Reply #1 on: March 03, 2015, 11:39:12 AM »
 

galen

  • New to Forums
  • *
  • 46
    Posts
  • Reputation: 4
  • Linux Lite Member
    • View Profile
    • Galen's pigpen

  • MEMORY: 256mb
using power manager (screensaver is inactive)
AC settings
lock computer when lid is closed.
turn off = never

bug.
close lid.
open lid, should see password screen,
pw screen screen may show briefly then system goes to sleep.
have tap power button to awake system.
password screen may appear or a blank screen,
if blank screen,have to power button again to get password screen back up

laptop hp nc4400
Linux user and supporter since 1998. Secular Humanist & skeptic.
openPGP: 0xC938FD97  jabber: [email protected]
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section