You are not logged in.

#1 2008-01-16 22:11:09

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Suspend - Resume to dark screen

Lately I've been finding it useful to use the suspend feature, I had in the past but this has never really bothered me. I installed acpid and pm-utils but every time I resume from suspending, the screen is very dark. This goes away once I restart X. Did I miss something?

Offline

#2 2008-01-16 22:17:35

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Suspend - Resume to dark screen

Try adding  --quirk-reset-brightness to your pm-suspend command; or try playing with other quirks (EDIT: pm-suspend --help).

Last edited by fwojciec (2008-01-16 22:22:17)

Offline

#3 2008-01-16 23:16:14

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Suspend - Resume to dark screen

I tried that and looked through the possible commands, none of them worked.

Offline

#4 2008-01-17 00:59:53

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: Suspend - Resume to dark screen

Are you suspending to ram or to disk? If to disk, install uswsusp from the AUR and try all the possible combinations of options fro s2ram. If this fails or if you are suspending to disk, then try all the further options offered by the hibernate-script (such as dummyxserver, switchtotext, vbetol to a specific state, and so on); the hibernate-script can be used for suspension to ram and to disk, I suggest to try s2ram before fo suspension to ram just because it is going to include a whitelist of laptops with the routine needed to resume properly.


Mortuus in anima, curam gero cutis

Offline

#5 2008-01-17 02:21:30

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Suspend - Resume to dark screen

I tried but got:

Machine is unknown.
This machine can be identified by:
    sys_vendor   = "Sony Corporation"
    sys_product  = "VGN-FZ145E"
    sys_version  = "C3LP38B7"
    bios_version = "R0040J7"

Offline

#6 2008-01-17 02:24:46

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: Suspend - Resume to dark screen

Yes, but this means only that your machine is not yet in the whitelist. You have to try ANY combination of the other command line options prepended by -f, which tells s2ram to try even if your machine is not yet known.

s2ram -h describes all the possibilities.

Last edited by patroclo7 (2008-01-17 02:25:06)


Mortuus in anima, curam gero cutis

Offline

#7 2008-01-17 02:44:34

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Suspend - Resume to dark screen

I just tried to force it with s2ram --force which got it to suspend, but the screen remained dark. But as I could still see a bit, I tried to change it with xbacklight. While it would say it was changing, it didn't work. Not to sound stupid, but is there a way to see how it was done in Ubuntu as it worked fine back when I used that.

Last edited by Reasons (2008-01-17 02:45:04)

Offline

#8 2008-01-17 02:48:54

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: Suspend - Resume to dark screen

--force simply forces: the other options jointed with --force apply the different tricks (those used by ubuntu are likely to be among them).


Mortuus in anima, curam gero cutis

Offline

#9 2008-01-17 16:09:56

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Suspend - Resume to dark screen

Well I'll get to tinkering with that later. Until then, I noticed that if I'm on battery power, suspend, resume, restart X(to fix the brightness), I resume at max brightness where it should be at 30 (I use laptop-tools). It remembers the scaling of the cpu though (laptop tools controls that too). This might because I use gnome-power-manager so I can see how long I have left on the battery, I'll get you know.

Offline

#10 2008-01-17 17:04:45

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: Suspend - Resume to dark screen

I had similar problem, you can try to restart laptop-tools at any suspend cycle.


Mortuus in anima, curam gero cutis

Offline

#11 2008-01-17 21:11:40

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Suspend - Resume to dark screen

May I ask what you use for s2ram? I've tried all the options and even combined a few to no avail.

Offline

#12 2008-01-17 21:29:32

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: Suspend - Resume to dark screen

I need --vbe_save, but this is not very relevant unless we happen to own the same laptop smile.

In another laptop none of them helped and I had to use the VbeRestore option in the hibernate-script, using vbetool to restore a state saved immediately after booting, before launching X.


Mortuus in anima, curam gero cutis

Offline

#13 2008-01-17 21:36:56

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Suspend - Resume to dark screen

Is there a wiki for that by any chance? smile Sounds like exactly what I want because the screen looks more yellow when I resume but hey, that might just be me.

Offline

#14 2008-01-17 21:42:01

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: Suspend - Resume to dark screen

Do you mean a wiki for suspend to ram? Here it is:
http://wiki.archlinux.org/index.php/Suspend_to_RAM
However the case of a more YELLOW screen seems hard to me! cool


Mortuus in anima, curam gero cutis

Offline

#15 2008-01-18 08:09:55

schivmeister
Developer/TU
From: Singapore
Registered: 2007-05-17
Posts: 971
Website

Re: Suspend - Resume to dark screen

i had absolutely perfect suspension to ram until something went wrong somewhere and SOMETIMES yes i have this problem. but i think that's because of my l33t undervolting to least voltage possible for max freq lol


I need real, proper pen and paper for this.

Offline

#16 2008-01-20 00:55:07

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Suspend - Resume to dark screen

Okay, with a new install (I broke the kernel) and I got it to work with

pm-suspend --quirk-s3-bios --quirk-s3-mode

. Is there a way to go about having that happen when I close the lid using acpid or gnome-power-manager? Possibly have it ask for a password on resume.

Offline

#17 2008-01-20 13:07:26

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: Suspend - Resume to dark screen

Run the acpi service and define an event in /etc/acpi for the lid.

For the password, I do not know if this is possible with pm-suspend, but with the hibernate-script you can lock X.


Mortuus in anima, curam gero cutis

Offline

#18 2008-03-02 23:11:13

reaper
Member
Registered: 2007-02-16
Posts: 27

Re: Suspend - Resume to dark screen

i use... "acpi_sleep=s3_bios" in kernel line in grub :-)

Offline

#19 2008-03-02 23:56:11

SpookyET
Member
Registered: 2008-01-27
Posts: 410

Re: Suspend - Resume to dark screen

Offline

#20 2008-04-06 19:06:49

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Suspend - Resume to dark screen

reaper wrote:

i use... "acpi_sleep=s3_bios" in kernel line in grub :-)

Sorry to bring back this thread. How would I do that for my variables?

Offline

Board footer

Powered by FluxBB