Subject: Linux users of Sony Z1 series
List archive
Re: [linux-sony-z1] Fn-Esc script (was: my experiences ....Alps touchpad, suspend config)
Chronological Thread
- From: Sylvain Maucourt <>
- To: , Andre Roth <>
- Subject: Re: [linux-sony-z1] Fn-Esc script (was: my experiences ....Alps touchpad, suspend config)
- Date: Sun, 21 Nov 2004 14:54:46 +0100
Andre Roth a écrit :
it's working!! rouuhaa.. :)congrats :)
thanks!!
ok, i ask to me to not use console mode ;-)juste my last problem :p ... presently ... tty is not under framebuffer (1400x1050) and it's horrible to read it! .. how may i do to have 1400x1050 resolution under my console?
no, suspend with framebuffer is a bit hard to do. read Documentation/power/video.txt in your kernel tree.
Thanks! i forgot that i allready installed sonypidd . . now it's working when i do Fn + F12!! thanks!!and ... somebody have a script to suspend and resume ? thanks !
yes, it's a very quick hack, so maybe better solutions exists...
you need to have the sonypid-1.9.1 utility installed. then I have a script /etc/init.d/sonysleep.sh which is started automatically at boot time. For this you need a link
lrwxrwxrwx 1 root root 22 Nov 11 21:02 /etc/rc2.d/S99sonysleep ->
../init.d/sonysleep.sh
(ok, the script lacks handling to start and stop parameter)
this script starts the sonypid deamon and pipes the output to another script, /usr/local/bin/sleep.sh which greps for the right key combination and suspends the laptop.
any improvements are welcome :-)
salutations
andré
------------------------------------------------------------------------
#!/bin/bash
#
# A quick hack to enable swsuspend on fn-Esc
#
# Author: Andre Roth
<>
/usr/local/bin/sonypid -D 2>&1 | /usr/local/bin/sleep.sh &
------------------------------------------------------------------------
#!/bin/bash
#
# A quick hack to enable swsuspend on fn-Esc
#
# Author: Andre Roth
<>
while true
do
read i
if [ "$i" = "Event: Fn-Esc Pressed" ] ; then
echo 3 > /proc/acpi/sleep;
fi
done
------------------------------------------------------------------------
_______________________________________________
Mailing list of Linux users of Sony Z1 series laptop
http://listes.ined.fr/wws/arc/linux-sony-z1
In order to unsubscribe send a message to or -subscribe for subscribing.
- Fn-Esc script (was: my experiences ....Alps touchpad, suspend config), Andre Roth, 11/21/2004
- Re: [linux-sony-z1] Fn-Esc script (was: my experiences ....Alps touchpad, suspend config), Sylvain Maucourt, 11/21/2004
- Re: [linux-sony-z1] Fn-Esc script (was: my experiences ....Alps touchpad, suspend config), Brouard Nicolas, 11/23/2004
Archive powered by MHonArc 2.6.18.