make thinkpad Fn-F12 work in sid

I went back to debian sid after using ubuntu for a few months. So far,
i've been able to configure my thinkpad t42p to resemble some ubuntu
goodies except for fn-f12: nothing happens when i hit it, as supposed
to hibernate using ubuntu. I have verified that echo disk >
/sys/power/state just works though. Any hint how ubuntu did it?
Also, how do i enable graphical notification of screen brightness in
gnome when i use the appropriate fn-key combination, similar to
ubuntu? Thanks.

--
Paolo Alexis Falcone

--

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

make thinkpad Fn-F12 work in sid

Hello Paolo!

> I went back to debian sid after using ubuntu for a few months. So far,
> i've been able to configure my thinkpad t42p to resemble some ubuntu
> goodies except for fn-f12: nothing happens when i hit it, as supposed
> to hibernate using ubuntu. I have verified that echo disk >
> /sys/power/state just works though. Any hint how ubuntu did it?
> Also, how do i enable graphical notification of screen brightness in
> gnome when i use the appropriate fn-key combination, similar to
> ubuntu? Thanks.
You have to install the acpi and acpid stuff. AFAIK it knows this
shortcut. You can see it in the acpid log file.

CU

Michael

--
,''`. Michael Ott, e-mail: michael at zolnott dot de
: :' : Debian SID on Thinkpad T43:
`. `' http://www.zolnott.de/laptop/ibm-t43-uc34nge.html
`-
Jeden Mittwoch von 21 - 24 Uhr. Zosh! auf Radio Z.
Das Härteste, was der Musikmarkt zu bieten hat. http://www.zosh.de
Online hören: http://www.radio-z.net

make thinkpad Fn-F12 work in sid

On 11/29/06, Michael Ott wrote:
> Hello Paolo!
>
> > I went back to debian sid after using ubuntu for a few months. So far,
> > i've been able to configure my thinkpad t42p to resemble some ubuntu
> > goodies except for fn-f12: nothing happens when i hit it, as supposed
> > to hibernate using ubuntu. I have verified that echo disk >
> > /sys/power/state just works though. Any hint how ubuntu did it?
> > Also, how do i enable graphical notification of screen brightness in
> > gnome when i use the appropriate fn-key combination, similar to
> > ubuntu? Thanks.
> You have to install the acpi and acpid stuff. AFAIK it knows this
> shortcut. You can see it in the acpid log file.
>

I did that beforehand... the problem is that for everything else
except Fn-F12 it works, but when I try to hibernate using the Fn-F12
key combination it doesn't do anything.

--
Paolo Alexis Falcone

--

make thinkpad Fn-F12 work in sid

On Wed Nov 29, 2006 at 15:33:15 +0800, Paolo Alexis Falcone wrote:
> I went back to debian sid after using ubuntu for a few months. So far,
> i've been able to configure my thinkpad t42p to resemble some ubuntu
> goodies except for fn-f12: nothing happens when i hit it, as supposed
> to hibernate using ubuntu. I have verified that echo disk >
> /sys/power/state just works though. Any hint how ubuntu did it?

*seconded* that would be really nice-to-have for Debian too.

> Also, how do i enable graphical notification of screen brightness in
> gnome when i use the appropriate fn-key combination, similar to
> ubuntu? Thanks.

On my T41p the following works:
apt-get install tpb

Greetings
Martin

--
[root@debian /root]# man real-life
No manual entry for real-life

--

make thinkpad Fn-F12 work in sid

On Wed, 2006-11-29 at 15:33 +0800, Paolo Alexis Falcone wrote:
> I went back to debian sid after using ubuntu for a few months. So far,
> i've been able to configure my thinkpad t42p to resemble some ubuntu
> goodies except for fn-f12: nothing happens when i hit it, as supposed
> to hibernate using ubuntu. I have verified that echo disk >
> /sys/power/state just works though. Any hint how ubuntu did it?

I'm guessing Ubuntu uses gnome-power-manager, you need to be in group
powerdev, and possibly bind the correct key to "Sleep" in "Keyboard
Shortcuts".

> Also, how do i enable graphical notification of screen brightness in
> gnome when i use the appropriate fn-key combination, similar to
> ubuntu? Thanks.

Not sure if this is supported in g-p-m 2.14 or if it was added in 2.16.
What version did Ubuntu use?

Also found this,
http://cvs.gnome.org/viewcvs/*checkout*/gnome-power-manager/docs/faq.html#faq-ibm-brightness

HTH,

--
Cheers,
Sven Arvidsson
http://www.whiz.se
PGP Key ID 760BDD22

make thinkpad Fn-F12 work in sid

On 11/30/06, Sven Arvidsson wrote:
> On Wed, 2006-11-29 at 15:33 +0800, Paolo Alexis Falcone wrote:
> > I went back to debian sid after using ubuntu for a few months. So far,
> > i've been able to configure my thinkpad t42p to resemble some ubuntu
> > goodies except for fn-f12: nothing happens when i hit it, as supposed
> > to hibernate using ubuntu. I have verified that echo disk >
> > /sys/power/state just works though. Any hint how ubuntu did it?
>
> I'm guessing Ubuntu uses gnome-power-manager, you need to be in group
> powerdev, and possibly bind the correct key to "Sleep" in "Keyboard
> Shortcuts".

I'm already a member of the powerdev group...

pfalcone@vanguard:~$ groups pfalcone
pfalcone : pfalcone adm dialout cdrom floppy audio src video plugdev
powerdev netdev nvram

Even with that, I still can't make the laptop suspend via Fn-F12
(although using g-p-m works just fine). Here's the log of
/var/log/acpid whenever I press Fn-F12:

[Fri Dec 1 13:50:08 2006] executing action "/etc/acpi/hibernatebtn.sh"
[Fri Dec 1 13:50:08 2006] BEGIN HANDLER MESSAGES
[Fri Dec 1 13:50:09 2006] END HANDLER MESSAGES
[Fri Dec 1 13:50:09 2006] action exited with status 0
[Fri Dec 1 13:50:09 2006] completed event "ibm/hotkey HKEY 00000080 0000100c"

Now, I couldn't map the Fn-F12 script to GNOME keyboard shortcuts as I
don't mask the ibm_acpi module:

pfalcone@vanguard:~$ cat /etc/modprobe.d/ibm_acpi.modprobe
options ibm_acpi hotkey=enable,0xff9f experimental=1

I do believe that this is also the same options that ubuntu passes to
the ibm_acpi module.

> > Also, how do i enable graphical notification of screen brightness in
> > gnome when i use the appropriate fn-key combination, similar to
> > ubuntu? Thanks.
>
> Not sure if this is supported in g-p-m 2.14 or if it was added in 2.16.
> What version did Ubuntu use?

I used Ubuntu 6.06 and 6.10 back then ... both already have that patch
enabled I guess.. at any rate g-p-m 2.14 as packaged by Debian in Sid
I think doesn't have that patch for Thinkpads... (I could be wrong
though...)

> Also found this,
> http://cvs.gnome.org/viewcvs/*checkout*/gnome-power-manager/docs/faq.html#faq-ibm-brightness
>
> HTH,
>
> --
> Cheers,
> Sven Arvidsson
> http://www.whiz.se
> PGP Key ID 760BDD22
>
>
>
>

--
Paolo Alexis Falcone

--

make thinkpad Fn-F12 work in sid

On Fri, Dec 01, 2006 at 13:58:29 +0800, Paolo Alexis Falcone wrote:

[...]

> Even with that, I still can't make the laptop suspend via Fn-F12
> (although using g-p-m works just fine). Here's the log of
> /var/log/acpid whenever I press Fn-F12:
>
> [Fri Dec 1 13:50:08 2006] executing action "/etc/acpi/hibernatebtn.sh"
> [Fri Dec 1 13:50:08 2006] BEGIN HANDLER MESSAGES
> [Fri Dec 1 13:50:09 2006] END HANDLER MESSAGES
> [Fri Dec 1 13:50:09 2006] action exited with status 0
> [Fri Dec 1 13:50:09 2006] completed event "ibm/hotkey HKEY 00000080
> 0000100c"

Check /etc/acpi/hibernatebtn.sh. It could be that the commands in there
are commented out to avoid "accidental" activation of this feature by
users who do not understand what it is. If necessary change the script
to include the exact hibernate command that works for you from the
command line.

--
Regards,
Florian

--

make thinkpad Fn-F12 work in sid

Paolo Alexis Falcone wrote:
> I went back to debian sid after using ubuntu for a few months. So far,
> i've been able to configure my thinkpad t42p to resemble some ubuntu
> goodies except for fn-f12: nothing happens when i hit it, as supposed
> to hibernate using ubuntu. I have verified that echo disk >
> /sys/power/state just works though. Any hint how ubuntu did it?
> Also, how do i enable graphical notification of screen brightness in
> gnome when i use the appropriate fn-key combination, similar to
> ubuntu? Thanks.
>

What does the (sys)log say?

I know little about Gnome-specific power management (eew) but I do have:

antony@myung:~$ cat /etc/acpi/f12.sh
#!/bin/sh
/usr/sbin/hibernate

antony@myung:~$ cat /etc/acpi/events/f12
event=ibm/hotkey HKEY 00000080 0000100c
action=/etc/acpi/f12.sh

I have configured /etc/hibernate/common.conf as appropriate, but I have
an X31 which may be a little different. Hopefully the above will get
you going.

ISTR that the graphical notification comes from tpb.

antony@myung:~$ find /etc/ -exec grep -H tpb {} \;
/etc/default/tpb:# set this option to 'true' if you want to start tpb
automatically after X has

antony@myung:~$ ps ax |grep tpb
30002 ? Sl 0:00 /usr/bin/tpb -d
11924 pts/1 R+ 0:00 grep tpb
antony@myung:~$ killall tpb

Look, no OSD!

antony@myung:~$ /usr/bin/tpb -d

--

Syndicate content