You are not logged in.

#1 2007-09-23 10:10:01

0l33l
Member
Registered: 2007-09-15
Posts: 28

pm-suspend & brightness

Hi. I've got an updated Don't Panic, on my IBM T61 (intel graphics, intel 4965AGN). I installed pm-utils so that I could put the computer to sleep. Well, it goes to sleep fine, but it doesn't bring the monitor back up when I open the lid. The thing is, it works fine when I go to hibernate.

Another issue, I cannot adjust the brightness on the T61. I have loaded the ibm_acpi into the module in rc.conf, and I can change it if I do echo "level 1" >> /proc/acpi/ibm/brightness. But I cannot adjust it with the gnome utility or the buttons on the keyboard. I was able to do both with Ubuntu.

Thanks guys smile

Offline

#2 2007-09-23 10:13:14

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,439
Website

Re: pm-suspend & brightness

When you suspend can you do ctrl+alt+f1 then ctrl+alt+f7 to get the screen back?  If so you might want to try the  file /etc/pm/sleep.d/000hacks I put in this thread (remove networkmanager line if not needed):

http://bbs.archlinux.org/viewtopic.php?id=36705

Last edited by Allan (2007-09-23 10:13:48)

Offline

#3 2007-09-23 15:38:46

kasa
Member
From: Italy
Registered: 2005-07-21
Posts: 48

Re: pm-suspend & brightness

First, have a look here:

http://people.freedesktop.org/~hughsient/quirk/

I have similar hw, (intel i945GM), and experienced the same problem. On my DELL 640m I added this quirk to make it suspend (it worked on hibernate)

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- --> 
<deviceinfo version="0.2">
  <device>
    <match key="system.hardware.vendor" prefix="Dell">
      <match key="system.hardware.product" prefix="MXC061">
          <merge key="power_management.quirk.vbe_post" type="bool">true</merge>
      </match>
    </match>
  </device>
</deviceinfo>

if you don't use HAL & gnome-power-manager, you should try to suspend with:

pm-suspend --quirk-vbe-post

Offline

#4 2007-09-23 19:08:05

0l33l
Member
Registered: 2007-09-15
Posts: 28

Re: pm-suspend & brightness

pm-suspend --quirk-vbestate-restore --quirk-s3-bios --quirk-s3-mode

works for me (resumes fine and no need to do Alt+Cntr+F_) but when I want to press the sleep button on the laptop, i get gnome power manager saying that there was a suspend problem sad

How do I change the gnome scripts so I can go to suspend? Editing /usr/lib/hal/scripts/hal-system-power-suspend and restarting HAL didn't seem to fix the problem.

[Edit] When I hit Fn+F4 (the sleep button), it will go to sleep, but I have to do the Alt+Ctrl+F_ to get the video back. I edited the fdi files, and I made sure to specify my exact model .

Last edited by 0l33l (2007-09-23 19:29:48)

Offline

#5 2007-09-23 21:00:51

0l33l
Member
Registered: 2007-09-15
Posts: 28

Re: pm-suspend & brightness

Also, any way to get suspend/resume to be as fast as on the macbooks?

Offline

#6 2007-09-25 18:05:38

0l33l
Member
Registered: 2007-09-15
Posts: 28

Re: pm-suspend & brightness

bump?

Offline

#7 2007-09-25 18:54:43

kasa
Member
From: Italy
Registered: 2005-07-21
Posts: 48

Re: pm-suspend & brightness

0l33l wrote:

How do I change the gnome scripts so I can go to suspend? Editing /usr/lib/hal/scripts/hal-system-power-suspend and restarting HAL didn't seem to fix the problem.

You shouldn't  edit files like that because they will be overwritten on the next update. You should work on fdi files on /etc/hal/fdi and on files in /etc/pm

Having read the quirks site you should head on the wiki, especially the page on pm-utils:

http://wiki.archlinux.org/index.php/Pm-utils

0l33l wrote:

When I hit Fn+F4 (the sleep button), it will go to sleep, but I have to do the Alt+Ctrl+F_ to get the video back. I edited the fdi files, and I made sure to specify my exact model .

try this:

# lshal | grep quirks

then report back the output

Offline

#8 2007-09-26 06:55:58

0l33l
Member
Registered: 2007-09-15
Posts: 28

Re: pm-suspend & brightness

My /usr/share/hal/fdi/information/10freedesktop/20-video-quirk-pm-ibm.fdi

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- --> 
<deviceinfo version="0.2">
  <device>
    <match key="system.hardware.vendor" string="IBM">
      <match key="system.hardware.product" prefix="7658CTO">
        <merge key="power_management.quirk.vbestate_restore" type="bool">true</merge>
        <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
        <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
      </match>

      <!-- X31 -->
      <match key="system.hardware.product" prefix="2366">
        <merge key="power_management.quirk.radeon_off" type="bool">true</merge>
      </match>
      <!-- X40 -->
      <match key="system.hardware.product" prefix="2672">
    <merge key="power_management.quirk.dpms_suspend" type="bool">true</merge>
        <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
        <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
        <merge key="power_management.quirk.radeon_off" type="bool">true</merge>
      </match>
      <!-- X40 -->
      <match key="system.hardware.product" prefix="2371">
        <match key="system.hardware.version" string="ThinkPad X40">
          <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
          <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
        </match>
      </match>
      <!-- X41 -->
      <match key="system.hardware.product" prefix="2525">
        <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
      </match>
      <!-- T30, T41p, T41p, Z60t, Z60m -->
      <match key="system.hardware.product" prefix_outof="1860;2373;2374;2513;2529">
        <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
        <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
      </match>
      <!-- T42 -->
      <match key="system.hardware.product" prefix="2378">
        <match key="system.hardware.version" string="ThinkPad T42">
          <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
        </match>
      </match>
      <!-- T43 -->
      <match key="system.hardware.version" string="ThinkPad T43">
        <!-- Models 2668, 2669, 2678, 2679, 2686, 2687 use ATI graphics -->
        <match key="system.hardware.product" prefix="26">
          <merge key="power_management.quirk.vbe_post" type="bool">true</merge>
          <merge key="power_management.quirk.vbemode_restore" type="bool">true</merge>
        </match>
        <!-- Models 1871, 1872, 1873, 1874, 1875, 1876 use Intel graphics -->
        <match key="system.hardware.product" prefix="18">
          <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
          <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
        </match>
      </match>
      <!-- G40 -->
      <match key="system.hardware.product" prefix="2388">
        <merge key="power_management.quirk.vbestate_restore" type="bool">true</merge>
      </match>
    </match>
  </device>
</deviceinfo>

lshal | grep system.hardware

  system.hardware.product = '7658CTO'  (string)
  system.hardware.serial = 'L3A9520'  (string)
  system.hardware.uuid = '81EC3A01-4973-11CB-A531-97C625CCEE99'  (string)
  system.hardware.vendor = 'LENOVO'  (string)
  system.hardware.version = 'ThinkPad T61'  (string)

But apparently lshal | grep quirks returns nothing. hmm

Offline

#9 2007-09-26 09:40:09

kasa
Member
From: Italy
Registered: 2005-07-21
Posts: 48

Re: pm-suspend & brightness

Ah ... well you have:

 <match key="system.hardware.vendor" string="IBM">

in your config file, but:

  system.hardware.vendor = 'LENOVO'  (string)

so no quirks are applied. You should move your config in /usr/share/hal/fdi/information/10freedesktop/20-video-quirk-pm-lenovo.fdi

Offline

#10 2007-09-26 15:05:52

0l33l
Member
Registered: 2007-09-15
Posts: 28

Re: pm-suspend & brightness

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
  <device>
    <match key="system.hardware.vendor" string="LENOVO">
      <match key="system.hardware.serial" prefix="L3A9520">
        <merge key="power_management.quirk.vbestate_restore" type="bool">true</$
        <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
        <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
      </match>
    </match>
  </device>
</deviceinfo>

or

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- --> 
<deviceinfo version="0.2">
  <device>
    <match key="system.hardware.vendor" string="LENOVO">
      <!-- X60 / X60s -->
      <match key="system.hardware.product" prefix_outof="1702;1704;1706;1709">
        <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
        <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
      </match>
      <match key="system.hardware.product" prefix="7658CTO">
        <merge key="power_management.quirk.vbe_post" type="bool">true</merge>
      </match>

      <!-- R60 -->
      <match key="system.hardware.version" prefix_ncase="ThinkPad R60">
        <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
        <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
      </match>

      <!-- T60*, Z61* -->
      <match key="system.hardware.version" prefix="ThinkPad ">
        <match key="system.hardware.version" suffix="T60">
          <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
          <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
        </match>
        <match key="system.hardware.version" contains_outof="T60p;Z61m;Z61t;Z60m">
          <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
          <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
        </match>
      </match>

      <!-- T61 -->
      <match key="system.hardware.version" string="766314G">
        <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
      </match>

      <!-- X61 Tablet , system.hardware.version='ThinkPad X61 Tablet' -->
      <match key="system.hardware.product" string="7767C3U">
        <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
        <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
      </match>

    </match>
  </device>
</deviceinfo>

I restart hal after the changes, and yet I still get an empty lshal | grep quirks sad

Offline

#11 2007-09-26 15:06:42

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: pm-suspend & brightness

I have been trying to do the same for my laptop (HP 6510b), it doesn't work either.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#12 2007-09-28 08:28:57

0l33l
Member
Registered: 2007-09-15
Posts: 28

Re: pm-suspend & brightness

Bump?

xbacklight works for setting my backlight. Any way to map it to the keys?

Offline

#13 2007-09-28 08:44:01

kasa
Member
From: Italy
Registered: 2005-07-21
Posts: 48

Re: pm-suspend & brightness

Oops, not on a linux machine right now, but I suspect it should be

lshal | grep quirk

other than that, i'm clueless.

EDIT: there's also a typo:

<merge key="power_management.quirk.vbestate_restore" type="bool">true</$

In regards to mapping Hardware Keys (those you press with Fn), the same site applies. I got my keys working with that.
There's also a GNOME applet to control brightness

Last edited by kasa (2007-09-28 08:46:56)

Offline

#14 2007-09-29 03:39:55

0l33l
Member
Registered: 2007-09-15
Posts: 28

Re: pm-suspend & brightness

kasa wrote:

Oops, not on a linux machine right now, but I suspect it should be

lshal | grep quirk

other than that, i'm clueless.

EDIT: there's also a typo:

<merge key="power_management.quirk.vbestate_restore" type="bool">true</$

In regards to mapping Hardware Keys (those you press with Fn), the same site applies. I got my keys working with that.
There's also a GNOME applet to control brightness

Yes, that was a typo. But unfortunately, it did not fix anything.

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
  <device>
    <match key="system.hardware.vendor" string="LENOVO">
      <match key="system.hardware.product" prefix="7658CTO">
        <merge key="power_management.quirk.vbestate_restore" type="bool">true</>
        <merge key="power_management.quirk.s3_bios" type="bool">true</merge>
        <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
      </match>
    </match>
  </device>
</deviceinfo>

After a hal restart, nothing shows up when I type
lshal | grep quirk
or
lshal | grep quirks.

The gnome backlight applet doesn't do anything sad

Offline

#15 2007-09-29 23:29:36

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: pm-suspend & brightness

For the hotkeys one needs to have hal 0.5.10. I tried to rebuild hal-info from git, it requires hal 0.5.10 also...

I wonder if someone has those 'quirks' detected at all - I'd like to know (as in: see some lshal | grep quirk output). I noticed on the HAL freedesktop site the docs are a bit ahead - already says 0.5.10, I wonder if that applies to the quirks documentation as well.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB