Hatena::ブログ(Diary)

なんとなく日記 このページをアンテナに追加 RSSフィード

2008-03-09

[][][]suspend/hibernate/backlight-brightness on X61

ここUbuntuのForumに書いてあったshell scriptを使うことで,

が,一応まともに動くようになりました.長かった・・・・

以下そのログ.

#!/bin/sh

rmmod usb_storage
rmmod uhci_hcd
rmmod ehci_hcd

/usr/sbin/s2ram -f -a 1 -m

modprobe uhci_hcd
modprobe ehci_hcd
modprobe usb_storage
#!/bin/bash

#
# Modified from /etc/acpi/hibernate.sh
# 	- Does not get disabled by acpi-support
# 	- May interfere with laptop mode
#

# prepare scripts in /etc/acpi/prepare.d
. /etc/acpi/prepare.sh

# use kernel to write img to disk, then shut power down
echo -n "shutdown" > /sys/power/disk

# allow an image size up to 2GB
echo -n "427131535" > /sys/power/image_size

# suspend to disk
echo -n "disk" > /sys/power/state

# resume scripts in /etc/acpi/resume.d
. /etc/acpi/resume.sh
#!/bin/sh

test -f /usr/share/acpi-support/power-funcs || exit 0

. /usr/share/acpi-support/key-constants
#acpi_fakekey $KEY_SLEEP 
/etc/acpi/sleep.sh
#!/bin/sh

test -f /usr/share/acpi-support/power-funcs || exit 0

. /usr/share/acpi-support/key-constants
#acpi_fakekey $KEY_SUSPEND 
echo -n "disk" > /sys/power/state
  • /etc/acpi/video_brightnessdown.sh
#!/bin/sh

# lower the brightness by one level

xbacklight -dec 10%
  • /etc/acpi/video_brightnessup.sh
#!/bin/sh

# up the brightness by one level

xbacklight -inc 10%

スパム対策のためのダミーです。もし見えても何も入力しないでください
ゲスト


画像認証

トラックバック - http://d.hatena.ne.jp/conceal-rs/20080309/1205083315