[Hardware] EeePC 1000H, acpi, powersaved, etc
Denis G. Samsonenko
=?iso-8859-1?q?d=2Eg=2Esamsonenko_=CE=C1_gmail=2Ecom?=
Пн Ноя 17 21:01:38 MSK 2008
Привет!
17 ноября 2008 г. 19:42 Kharitonov A. Dmitry написал:
>> Первым делом заменил в /etc/acpi/events/eeepc_1000-volume-mute вызов
>> /etc/acpi/eeepc_1000-volume-mute.sh на
>> /etc/acpi/eeepc_1000-volume-mutetoggle.sh.
>
> Я для этого его и добавил
Ещё бы сделать его умолчальным для EeePC 1000(H).
>> Монитор всё так же не гаснет по Fn+F7.
>
> пришлите вывод
> # sh -x /etc/acpi/eeepc_1000-monitor-onoff.sh
# sh -x /etc/acpi/eeepc_1000-monitor-onoff.sh
+ /usr/bin/xset -display :0.0 -q
+ grep -q 'Monitor is Off'
+ xset -display :0.0 dpms force off
При этом монитор погас. Но при нажатии на Fn+F7 почему-то не гаснет. В
логах пишет:
Nov 17 23:29:10 kalessin acpid: received event "hotkey ATKD 00000016 00000007"
Nov 17 23:29:10 kalessin acpid: notifying client 5333[112:122]
Nov 17 23:29:10 kalessin acpid: executing action
"/etc/acpi/eeepc_1000-monitor-onoff.sh"
Nov 17 23:29:10 kalessin acpid: action exited with status 1
Nov 17 23:29:10 kalessin acpid: completed event "hotkey ATKD 00000016 00000007"
>> Теперь при нажатии на любую из четырёх верхних кнопок скрипты
>> key{1,2,3,4}.sh не создаются, но пытаются вызваться.
>
> Мне часто кажется, что у нас разные дистрибутивы. У меня создаются и
> запускаются.
У меня бранч-4.1, ежедневно обновляемый.
>> По Fn+F2 проходит цикл (судя по /proc/acpi/asus):
>>
>> 0) bt 0, wlan 0;
>> 1) bt 1, wlan 0;
>> 3) bt 0, wlan 1 -- сразу же превращается в bt 0, wlan 0;
>> 4) bt 1, wlan 1 -- сразу же превращается в bt 1, wlan 0.
>
> Тама еще и окошко должно выводиться.
Окошка не видел. Вот только от kbluetooth появлялось сообщение "Ошибка
соединения с SDP сервером".
>> Видимо что-то с wifi происходит, что он вначале включается, а потом
>> сразу отваливается.
В логах следующее (2 раза нажал на Fn+F2):
Nov 17 23:35:22 kalessin acpid: received event "hotkey ATKD 00000010 00000004"
Nov 17 23:35:22 kalessin acpid: notifying client 5333[112:122]
Nov 17 23:35:22 kalessin acpid: executing action
"/etc/acpi/eeepc_901-manager-wifibt.sh &"
Nov 17 23:35:22 kalessin acpid: action exited with status 0
Nov 17 23:35:22 kalessin acpid: completed event "hotkey ATKD 00000010 00000004"
Nov 17 23:35:26 kalessin kernel: hub 5-0:1.0: unable to enumerate USB
device on port 7
Nov 17 23:35:26 kalessin kernel: usb 4-1: new full speed USB device
using uhci_hcd and address 4
Nov 17 23:35:27 kalessin kernel: usb 4-1: configuration #1 chosen from 1 choice
Nov 17 23:35:27 kalessin kernel: usb 4-1: New USB device found,
idVendor=0b05, idProduct=b700
Nov 17 23:35:27 kalessin kernel: usb 4-1: New USB device strings:
Mfr=1, Product=2, SerialNumber=3
Nov 17 23:35:27 kalessin kernel: usb 4-1: Product: BT-253
Nov 17 23:35:27 kalessin kernel: usb 4-1: Manufacturer: Broadcom Corp
Nov 17 23:35:27 kalessin kernel: usb 4-1: SerialNumber: 002243AA04E1
Nov 17 23:35:27 kalessin eeepc_901-manager-wifibt.sh[9404]: Starting
eeepc_901-bluetooth-on.sh
Nov 17 23:35:27 kalessin eeepc_901-manager-wifibt.sh[9404]: Starting
eeepc_900-wifi-off.sh
Nov 17 23:35:27 kalessin hcid[9803]: Bluetooth HCI daemon
Nov 17 23:35:27 kalessin hcid[9803]: HCI dev 0 registered
Nov 17 23:35:27 kalessin hcid[9803]: Starting SDP server
Nov 17 23:35:27 kalessin bluetooth: hcid startup succeeded
Nov 17 23:35:27 kalessin hcid[9803]: HCI dev 0 up
Nov 17 23:35:27 kalessin hcid[9803]: Device hci0 has been added
Nov 17 23:35:27 kalessin hcid[9803]: Starting security manager 0
Nov 17 23:35:27 kalessin hid2hci: No devices in HID mode found
Nov 17 23:35:27 kalessin bluetooth: hid2hci startup failed
Nov 17 23:35:27 kalessin hcid[9803]: Device hci0 has been activated
Nov 17 23:35:27 kalessin bluetooth: rfcomm startup succeeded
Nov 17 23:35:37 kalessin acpid: received event "hotkey ATKD 00000010 00000005"
Nov 17 23:35:37 kalessin acpid: notifying client 5333[112:122]
Nov 17 23:35:37 kalessin acpid: executing action
"/etc/acpi/eeepc_901-manager-wifibt.sh &"
Nov 17 23:35:37 kalessin acpid: action exited with status 0
Nov 17 23:35:37 kalessin acpid: completed event "hotkey ATKD 00000010 00000005"
Nov 17 23:35:41 kalessin kernel: usb 4-1: USB disconnect, address 4
Nov 17 23:35:41 kalessin hcid[9803]: HCI dev 0 down
Nov 17 23:35:41 kalessin hcid[9803]: Stopping security manager 0
Nov 17 23:35:41 kalessin hcid[9803]: Device hci0 has been disabled
Nov 17 23:35:41 kalessin eeepc_901-manager-wifibt.sh[9825]: Starting
eeepc_901-bluetooth-off.sh
Nov 17 23:35:41 kalessin kernel: pciehp: PCI Express Hot Plug
Controller Driver version: 0.4 unloaded
Nov 17 23:35:41 kalessin kernel: wlan: trunk
Nov 17 23:35:41 kalessin kernel: ath_hal: 0.10.2.2-ATHEROS (AR5210,
AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133,
RF2425)
Nov 17 23:35:41 kalessin kernel: ath_rate_sample: 1.2 (trunk)
Nov 17 23:35:41 kalessin hcid[9803]: HCI dev 0 unregistered
Nov 17 23:35:41 kalessin hcid[9803]: Unregister path: /org/bluez/hci0
Nov 17 23:35:41 kalessin hcid[9803]: Device hci0 has been removed
Nov 17 23:35:41 kalessin kernel: ath_rate_amrr: 0.1 (trunk)
Nov 17 23:35:41 kalessin kernel: wlan: mac acl policy registered
Nov 17 23:35:41 kalessin bluetooth: rfcomm startup succeeded
Nov 17 23:35:41 kalessin kernel: ath_pci: trunk
Nov 17 23:35:42 kalessin hcid[9803]: Stopping SDP server
Nov 17 23:35:42 kalessin hcid[9803]: Exit
Nov 17 23:35:42 kalessin bluetooth: hcid shutdown succeeded
Nov 17 23:35:44 kalessin kernel: pciehp: HPC vendor_id 8086 device_id
27d0 ss_vid 0 ss_did 0
Nov 17 23:35:44 kalessin kernel: pciehp: HPC vendor_id 8086 device_id
27d2 ss_vid 0 ss_did 0
Nov 17 23:35:45 kalessin kernel: pciehp: Device 0000:03:00.0 already
exists at 3:0, cannot hot-add
Nov 17 23:35:45 kalessin kernel: pciehp: Cannot add device 0x3:0
Nov 17 23:35:45 kalessin kernel: pciehp: HPC vendor_id 8086 device_id
27d6 ss_vid 0 ss_did 0
Nov 17 23:35:46 kalessin kernel: program_fw_provided_values: Could not
get hotplug parameters
Nov 17 23:35:46 kalessin kernel: pciehp: PCI Express Hot Plug
Controller Driver version: 0.4
Nov 17 23:35:47 kalessin /etc/net: ERROR: /sbin/ifdown: No TYPE is
specified for iface 'ath0' and can't guess automatically. Please fix.
Nov 17 23:35:47 kalessin kernel: ath_pci: driver unloaded
Nov 17 23:35:47 kalessin kernel: ath_rate_amrr: unloaded
Nov 17 23:35:47 kalessin kernel: ath_rate_sample: unloaded
Nov 17 23:35:47 kalessin kernel: ath_hal: driver unloaded
Nov 17 23:35:47 kalessin kernel: wlan: mac acl policy unregistered
Nov 17 23:35:47 kalessin kernel: wlan: driver unloaded
Nov 17 23:35:47 kalessin kernel: pciehp: Card not present on Slot(0001_0000)
Nov 17 23:35:47 kalessin eeepc_901-manager-wifibt.sh[9825]: Starting
eeepc_900-wifi-on.sh
> пришлите вывод
> # sh -x /etc/acpi/eeepc_900-wifi-on.sh
# sh -x /etc/acpi/eeepc_900-wifi-on.sh
+ wlan_control=/proc/acpi/asus/wlan
++ cat /proc/acpi/asus/wlan
+ '[' 0 == 0 ']'
+ rmmod -f pciehp
+ modprobe wlan_scan_sta
+ modprobe ath_rate_sample
+ modprobe ath_rate_amrr
+ modprobe wlan_ccmp
+ modprobe wlan_wep
+ modprobe wlan_acl
+ modprobe wlan_tkip
+ modprobe ath_pci
+ echo 1
+ sleep 1
+ modprobe pciehp pciehp_force=1
+ sleep 1
+ ifconfig ath0 up
ath0: unknown interface: No such device
+ exec /etc/acpi/eeepc_900-wifi-off.sh
ERROR: /sbin/ifdown: No TYPE is specified for iface 'ath0' and can't
guess automatically. Please fix.
ERROR: Removing 'ath5k': No such file or directory
В логах при этом:
Nov 17 23:39:21 kalessin kernel: pciehp: PCI Express Hot Plug
Controller Driver version: 0.4 unloaded
Nov 17 23:39:21 kalessin kernel: wlan: trunk
Nov 17 23:39:21 kalessin kernel: ath_hal: 0.10.2.2-ATHEROS (AR5210,
AR5211, AR5212, AR5416, RF5111, RF51
12, RF2413, RF5413, RF2133, RF2425)
Nov 17 23:39:21 kalessin kernel: ath_rate_sample: 1.2 (trunk)
Nov 17 23:39:21 kalessin kernel: ath_rate_amrr: 0.1 (trunk)
Nov 17 23:39:21 kalessin kernel: wlan: mac acl policy registered
Nov 17 23:39:21 kalessin kernel: ath_pci: trunk
Nov 17 23:39:23 kalessin kernel: pciehp: HPC vendor_id 8086 device_id
27d0 ss_vid 0 ss_did 0
Nov 17 23:39:23 kalessin kernel: pciehp: HPC vendor_id 8086 device_id
27d2 ss_vid 0 ss_did 0
Nov 17 23:39:24 kalessin kernel: pciehp: Device 0000:03:00.0 already
exists at 3:0, cannot hot-add
Nov 17 23:39:24 kalessin kernel: pciehp: Cannot add device 0x3:0
Nov 17 23:39:24 kalessin kernel: pciehp: HPC vendor_id 8086 device_id
27d6 ss_vid 0 ss_did 0
Nov 17 23:39:25 kalessin kernel: program_fw_provided_values: Could not
get hotplug parameters
Nov 17 23:39:25 kalessin kernel: pciehp: PCI Express Hot Plug
Controller Driver version: 0.4
Nov 17 23:39:27 kalessin /etc/net: ERROR: /sbin/ifdown: No TYPE is
specified for iface 'ath0' and can't
guess automatically. Please fix.
Nov 17 23:39:27 kalessin kernel: ath_pci: driver unloaded
Nov 17 23:39:27 kalessin kernel: ath_rate_amrr: unloaded
Nov 17 23:39:27 kalessin kernel: ath_rate_sample: unloaded
Nov 17 23:39:27 kalessin kernel: ath_hal: driver unloaded
Nov 17 23:39:27 kalessin kernel: wlan: mac acl policy unregistered
Nov 17 23:39:27 kalessin kernel: wlan: driver unloaded
Nov 17 23:39:27 kalessin kernel: pciehp: Card not present on Slot(0001_0000)
> Не проверено переключение производительности
Переключает:
Nov 17 23:42:33 kalessin acpid: received event "hotkey ATKD 00000012 00000000"
Nov 17 23:42:33 kalessin acpid: notifying client 5333[112:122]
Nov 17 23:42:33 kalessin acpid: executing action
"/etc/acpi/eeepc_900-performance.sh &"
Nov 17 23:42:33 kalessin acpid: action exited with status 0
Nov 17 23:42:33 kalessin acpid: completed event "hotkey ATKD 00000012 00000000"
Nov 17 23:42:37 kalessin eeepc_900-performance.sh[10524]: Switch to Dynamic mode
Nov 17 23:44:30 kalessin acpid: received event "hotkey ATKD 00000012 00000001"
Nov 17 23:44:30 kalessin acpid: notifying client 5333[112:122]
Nov 17 23:44:30 kalessin acpid: executing action
"/etc/acpi/eeepc_900-performance.sh &"
Nov 17 23:44:30 kalessin acpid: action exited with status 0
Nov 17 23:44:30 kalessin acpid: completed event "hotkey ATKD 00000012 00000001"
Nov 17 23:44:34 kalessin eeepc_900-performance.sh[10992]: Switch to
Economic mode
Nov 17 23:44:53 kalessin acpid: received event "hotkey ATKD 00000012 00000002"
Nov 17 23:44:53 kalessin acpid: notifying client 5333[112:122]
Nov 17 23:44:53 kalessin acpid: executing action
"/etc/acpi/eeepc_900-performance.sh &"
Nov 17 23:44:53 kalessin acpid: action exited with status 0
Nov 17 23:44:53 kalessin acpid: completed event "hotkey ATKD 00000012 00000002"
Nov 17 23:44:58 kalessin eeepc_900-performance.sh[11596]: Switch to
Performance mode
Nov 17 23:45:16 kalessin acpid: received event "hotkey ATKD 00000012 00000003"
Nov 17 23:45:16 kalessin acpid: notifying client 5333[112:122]
Nov 17 23:45:16 kalessin acpid: executing action
"/etc/acpi/eeepc_900-performance.sh &"
Nov 17 23:45:16 kalessin acpid: action exited with status 0
Nov 17 23:45:16 kalessin acpid: completed event "hotkey ATKD 00000012 00000003"
Nov 17 23:45:19 kalessin eeepc_900-performance.sh[12197]: Switch to Dynamic mode
Только во время переключения часто дёргает винчестер и на 12-й консоли:
...
Nov 17 23:45:17 kalessin su[12426]: pam_tcb(su:session): Session
opened for denis by (uid=0)
Nov 17 23:45:17 kalessin su[12426]: pam_tcb(su:session): Session
closed for denis
Nov 17 23:45:18 kalessin su[12447]: pam_tcb(su:session): Session
opened for denis by (uid=0)
Nov 17 23:45:18 kalessin su[12447]: pam_tcb(su:session): Session
closed for denis
Nov 17 23:45:18 kalessin su[12465]: pam_tcb(su:session): Session
opened for denis by (uid=0)
Nov 17 23:45:18 kalessin su[12465]: pam_tcb(su:session): Session
closed for denis
Nov 17 23:45:18 kalessin su[12486]: pam_tcb(su:session): Session
opened for denis by (uid=0)
Nov 17 23:45:18 kalessin su[12486]: pam_tcb(su:session): Session
closed for denis
Nov 17 23:45:18 kalessin su[12507]: pam_tcb(su:session): Session
opened for denis by (uid=0)
Nov 17 23:45:18 kalessin su[12507]: pam_tcb(su:session): Session
closed for denis
Nov 17 23:45:19 kalessin su[12528]: pam_tcb(su:session): Session
opened for denis by (uid=0)
Nov 17 23:45:19 kalessin su[12528]: pam_tcb(su:session): Session
closed for denis
Nov 17 23:45:19 kalessin su[12549]: pam_tcb(su:session): Session
opened for denis by (uid=0)
Nov 17 23:45:19 kalessin su[12549]: pam_tcb(su:session): Session
closed for denis
Nov 17 23:45:19 kalessin su[12567]: pam_tcb(su:session): Session
opened for denis by (uid=0)
Nov 17 23:45:19 kalessin su[12567]: pam_tcb(su:session): Session
closed for denis
Nov 17 23:45:19 kalessin eeepc_900-performance.sh[12197]: Switch to Dynamic mode
При переключении bt & wlan наблюдается нечто похожее.
> Не проверено suspend
В память заснул и проснулся нормально, даже kmix вернулся после
пробуждения. На диск вроде тоже нормально.
> Не проверено переключение на другой монитор
Завтра попробую подключить внешний монитор.
Ещё на первой консоли проскакивает в листинге стартующих сервисов:
/etc/rc.d/rc.local: line 3: /etc/acpi/eeepc_900-init.sh: No such file
or directory
--
Всего доброго,
Денис.
Подробная информация о списке рассылки Hardware